Skip to content

Commit

Permalink
fix: dependency check script and undeclared dependencies (#5658)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Jan 9, 2024
1 parent 2bd2eea commit 3c249d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/middleware-compression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
"dependencies": {
"@smithy/eventstream-codec": "^2.0.0",
"@smithy/is-array-buffer": "^2.0.0",
"@smithy/node-config-provider": "^2.1.9",
"@smithy/protocol-http": "^3.0.12",
"@smithy/types": "^2.8.0",
"@smithy/util-utf8": "^2.0.2",
"@smithy/util-config-provider": "^2.1.0",
"fflate": "0.8.1",
"tslib": "^2.5.0"
Expand Down
1 change: 1 addition & 0 deletions packages/middleware-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@aws-sdk/middleware-signing": "*",
"@aws-sdk/types": "*",
"@aws-sdk/util-format-url": "*",
"@smithy/eventstream-codec": "^2.0.0",
"@smithy/eventstream-serde-browser": "^2.0.16",
"@smithy/fetch-http-handler": "^2.3.2",
"@smithy/protocol-http": "^3.0.12",
Expand Down
1 change: 1 addition & 0 deletions packages/region-config-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/types": "*",
"@smithy/node-config-provider": "^2.1.9",
"@smithy/types": "^2.8.0",
"@smithy/util-config-provider": "^2.1.0",
Expand Down
1 change: 1 addition & 0 deletions packages/util-endpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/types": "*",
"@smithy/types": "^2.8.0",
"@smithy/util-endpoints": "^1.0.8",
"tslib": "^2.5.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ const walk = require("../utils/walk");
const importedDependencies = [];
importedDependencies.push(
...new Set(
[...(contents.toString().match(/from "(@(aws-sdk|smithy)\/.*?)"/g) || [])]
.slice(1)
.map((_) => _.replace(/from "/g, "").replace(/"$/, ""))
[...(contents.toString().match(/from "(@(aws-sdk|smithy)\/.*?)";/g) || [])].map((_) =>
_.replace(/from "/g, "").replace(/";$/, "")
)
)
);

Expand Down

0 comments on commit 3c249d0

Please sign in to comment.