typescript aws

pull/235/head
mdugdale 2021-03-28 22:38:29 +01:00
parent a7818a565e
commit aa0f813abd
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -556,7 +556,7 @@ class AWS {
iterator = records.NextShardIterator || "";
if (records.Records.length > 0) {
for (let index = 0; index < records.Records.length; index++) {
const json = JSON.parse(zlib.gunzipSync(Buffer.from(records.Records[index].Data.toString(), 'base64')).toString('utf8'));
const json = JSON.parse(zlib.gunzipSync(Buffer.from(records.Records[index].Data, 'base64')).toString('utf8'));
if (json.messageType === 'DATA_MESSAGE') {
for (let logEventsIndex = 0; logEventsIndex < json.logEvents.length; logEventsIndex++) {
core.info(json.logEvents[logEventsIndex].message);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -400,7 +400,7 @@ class AWS {
if (records.Records.length > 0) {
for (let index = 0; index < records.Records.length; index++) {
const json = JSON.parse(
zlib.gunzipSync(Buffer.from(records.Records[index].Data.toString(), 'base64')).toString('utf8'),
zlib.gunzipSync(Buffer.from((records.Records[index].Data as string), 'base64')).toString('utf8'),
);
if (json.messageType === 'DATA_MESSAGE') {
for (let logEventsIndex = 0; logEventsIndex < json.logEvents.length; logEventsIndex++) {