Skip to content

Commit

Permalink
Upgrade @AWS-SDK (limited by Node version)
Browse files Browse the repository at this point in the history
Somehow introduces ts lint issue in prerender/fleet.ts
  • Loading branch information
RoyEJohnson committed Aug 28, 2024
1 parent cbd0a62 commit 1b4f781
Show file tree
Hide file tree
Showing 3 changed files with 972 additions and 925 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
"not op_mini all"
],
"devDependencies": {
"@aws-sdk/client-cloudformation": "^3.373.0",
"@aws-sdk/client-s3": "^3.374.0",
"@aws-sdk/client-sqs": "^3.370.0",
"@aws-sdk/credential-providers": "^3.370.0",
"@aws-sdk/client-cloudformation": "<3.567.0",
"@aws-sdk/client-s3": "<3.567.0",
"@aws-sdk/client-sqs": "<3.567.0",
"@aws-sdk/credential-providers": "<3.567.0",
"@babel/core": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
Expand Down
6 changes: 3 additions & 3 deletions script/prerender/fleet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ async function waitUntilWorkDone(
'[SQS] [GetQueueAttributes] Unexpected response: missing Attributes key'
);

const numMessages = parseInt(attributes.ApproximateNumberOfMessages, 10) +
parseInt(attributes.ApproximateNumberOfMessagesDelayed, 10) +
parseInt(attributes.ApproximateNumberOfMessagesNotVisible, 10);
const numMessages = parseInt(attributes.ApproximateNumberOfMessages!, 10) +
parseInt(attributes.ApproximateNumberOfMessagesDelayed!, 10) +
parseInt(attributes.ApproximateNumberOfMessagesNotVisible!, 10);

if (numMessages === 0) { break; }

Expand Down
Loading

0 comments on commit 1b4f781

Please sign in to comment.