@cdklabs/cdk-ecs-codedeploy 0.0.345 → 0.0.347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +376 -376
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +386 -376
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +18 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +18 -18
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +74 -74
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +74 -74
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
- package/node_modules/@aws-sdk/client-sts/README.md +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +89 -12
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRootCommand.js +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +53 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +13 -13
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +15 -30
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +129 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +202 -88
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRootCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +68 -56
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/node_modules/@aws-sdk/client-sts/package.json +36 -36
- package/node_modules/@aws-sdk/core/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-http/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +11 -11
- package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
- package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -7
- package/node_modules/@smithy/abort-controller/package.json +4 -3
- package/node_modules/@smithy/config-resolver/package.json +7 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +21 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/package.json +10 -9
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +1 -0
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -3
- package/node_modules/@smithy/fetch-http-handler/dist-es/create-request.js +3 -0
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +3 -2
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +6 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +6 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/create-request.d.ts +6 -0
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +6 -0
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
- package/node_modules/@smithy/hash-node/package.json +4 -3
- package/node_modules/@smithy/invalid-dependency/package.json +4 -3
- package/node_modules/@smithy/middleware-content-length/package.json +5 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +11 -10
- package/node_modules/@smithy/middleware-retry/package.json +12 -10
- package/node_modules/@smithy/middleware-serde/package.json +6 -4
- package/node_modules/@smithy/middleware-stack/package.json +4 -3
- package/node_modules/@smithy/node-config-provider/package.json +6 -5
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +20 -14
- package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +9 -2
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +5 -4
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/package.json +7 -6
- package/node_modules/@smithy/property-provider/package.json +4 -3
- package/node_modules/@smithy/protocol-http/package.json +4 -3
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +4 -3
- package/node_modules/@smithy/service-error-classification/package.json +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -3
- package/node_modules/@smithy/signature-v4/package.json +6 -5
- package/node_modules/@smithy/smithy-client/package.json +9 -8
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +3 -2
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +5 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -5
- package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -8
- package/node_modules/@smithy/util-endpoints/package.json +7 -5
- package/node_modules/@smithy/util-middleware/package.json +4 -3
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +5 -1
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +2 -1
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +4 -0
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +4 -0
- package/node_modules/@smithy/util-retry/package.json +5 -4
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -1
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +6 -1
- package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +0 -1
- package/node_modules/@smithy/util-stream/dist-es/splitStream.js +2 -2
- package/node_modules/@smithy/util-stream/dist-es/stream-type-check.js +3 -0
- package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +4 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +4 -0
- package/node_modules/@smithy/util-stream/package.json +10 -6
- package/node_modules/@smithy/util-waiter/package.json +5 -4
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/url-parser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline url-parser",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
-
"test": "yarn g:
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"test:watch": "yarn g:vitest watch"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"module": "./dist-es/index.js",
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
},
|
|
23
24
|
"license": "Apache-2.0",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@smithy/querystring-parser": "^3.0.
|
|
26
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/querystring-parser": "^3.0.10",
|
|
27
|
+
"@smithy/types": "^3.7.1",
|
|
27
28
|
"tslib": "^2.6.2"
|
|
28
29
|
},
|
|
29
30
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.27",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
-
"test": "yarn g:
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"test:watch": "yarn g:vitest watch"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"module": "./dist-es/index.js",
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
},
|
|
23
24
|
"license": "Apache-2.0",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@smithy/property-provider": "^3.1.
|
|
26
|
-
"@smithy/smithy-client": "^3.4.
|
|
27
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/property-provider": "^3.1.10",
|
|
27
|
+
"@smithy/smithy-client": "^3.4.4",
|
|
28
|
+
"@smithy/types": "^3.7.1",
|
|
28
29
|
"bowser": "^2.11.0",
|
|
29
30
|
"tslib": "^2.6.2"
|
|
30
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.27",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
-
"test": "yarn g:
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"test:watch": "yarn g:vitest watch"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"module": "./dist-es/index.js",
|
|
@@ -22,12 +23,12 @@
|
|
|
22
23
|
},
|
|
23
24
|
"license": "Apache-2.0",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@smithy/config-resolver": "^3.0.
|
|
26
|
-
"@smithy/credential-provider-imds": "^3.2.
|
|
27
|
-
"@smithy/node-config-provider": "^3.1.
|
|
28
|
-
"@smithy/property-provider": "^3.1.
|
|
29
|
-
"@smithy/smithy-client": "^3.4.
|
|
30
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/config-resolver": "^3.0.12",
|
|
27
|
+
"@smithy/credential-provider-imds": "^3.2.7",
|
|
28
|
+
"@smithy/node-config-provider": "^3.1.11",
|
|
29
|
+
"@smithy/property-provider": "^3.1.10",
|
|
30
|
+
"@smithy/smithy-client": "^3.4.4",
|
|
31
|
+
"@smithy/types": "^3.7.1",
|
|
31
32
|
"tslib": "^2.6.2"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
15
15
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
16
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
|
-
"test": "yarn g:
|
|
18
|
-
"test:integration": "yarn g:
|
|
17
|
+
"test": "yarn g:vitest run",
|
|
18
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
19
|
+
"test:watch": "yarn g:vitest watch",
|
|
20
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
|
19
21
|
},
|
|
20
22
|
"keywords": [
|
|
21
23
|
"endpoint"
|
|
@@ -26,8 +28,8 @@
|
|
|
26
28
|
},
|
|
27
29
|
"license": "Apache-2.0",
|
|
28
30
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^3.1.
|
|
30
|
-
"@smithy/types": "^3.
|
|
31
|
+
"@smithy/node-config-provider": "^3.1.11",
|
|
32
|
+
"@smithy/types": "^3.7.1",
|
|
31
33
|
"tslib": "^2.6.2"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-middleware",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "Shared utilities for to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
15
15
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
16
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
|
-
"test": "yarn g:
|
|
17
|
+
"test": "yarn g:vitest run",
|
|
18
|
+
"test:watch": "yarn g:vitest watch"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [
|
|
20
21
|
"aws",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
},
|
|
27
28
|
"license": "Apache-2.0",
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@smithy/types": "^3.
|
|
30
|
+
"@smithy/types": "^3.7.1",
|
|
30
31
|
"tslib": "^2.6.2"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
@@ -84,7 +84,7 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
|
|
|
84
84
|
this.refillTokenBucket();
|
|
85
85
|
if (amount > this.currentCapacity) {
|
|
86
86
|
const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
|
|
87
|
-
await new Promise((resolve) =>
|
|
87
|
+
await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));
|
|
88
88
|
}
|
|
89
89
|
this.currentCapacity = this.currentCapacity - amount;
|
|
90
90
|
}
|
|
@@ -151,6 +151,10 @@ var _DefaultRateLimiter = class _DefaultRateLimiter {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
__name(_DefaultRateLimiter, "DefaultRateLimiter");
|
|
154
|
+
/**
|
|
155
|
+
* Only used in testing.
|
|
156
|
+
*/
|
|
157
|
+
_DefaultRateLimiter.setTimeoutFn = setTimeout;
|
|
154
158
|
var DefaultRateLimiter = _DefaultRateLimiter;
|
|
155
159
|
|
|
156
160
|
// src/constants.ts
|
|
@@ -32,7 +32,7 @@ export class DefaultRateLimiter {
|
|
|
32
32
|
this.refillTokenBucket();
|
|
33
33
|
if (amount > this.currentCapacity) {
|
|
34
34
|
const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000;
|
|
35
|
-
await new Promise((resolve) =>
|
|
35
|
+
await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay));
|
|
36
36
|
}
|
|
37
37
|
this.currentCapacity = this.currentCapacity - amount;
|
|
38
38
|
}
|
|
@@ -97,3 +97,4 @@ export class DefaultRateLimiter {
|
|
|
97
97
|
return parseFloat(num.toFixed(8));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
DefaultRateLimiter.setTimeoutFn = setTimeout;
|
|
@@ -13,6 +13,10 @@ export interface DefaultRateLimiterOptions {
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
export declare class DefaultRateLimiter implements RateLimiter {
|
|
16
|
+
/**
|
|
17
|
+
* Only used in testing.
|
|
18
|
+
*/
|
|
19
|
+
private static setTimeoutFn;
|
|
16
20
|
private beta;
|
|
17
21
|
private minCapacity;
|
|
18
22
|
private minFillRate;
|
|
@@ -13,6 +13,10 @@ export interface DefaultRateLimiterOptions {
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
export declare class DefaultRateLimiter implements RateLimiter {
|
|
16
|
+
/**
|
|
17
|
+
* Only used in testing.
|
|
18
|
+
*/
|
|
19
|
+
private static setTimeoutFn;
|
|
16
20
|
private beta;
|
|
17
21
|
private minCapacity;
|
|
18
22
|
private minFillRate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
16
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
17
|
"extract:docs": "api-extractor run --local",
|
|
18
|
-
"test": "yarn g:
|
|
18
|
+
"test": "yarn g:vitest run",
|
|
19
|
+
"test:watch": "yarn g:vitest watch"
|
|
19
20
|
},
|
|
20
21
|
"keywords": [
|
|
21
22
|
"aws",
|
|
@@ -27,8 +28,8 @@
|
|
|
27
28
|
},
|
|
28
29
|
"license": "Apache-2.0",
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@smithy/service-error-classification": "^3.0.
|
|
31
|
-
"@smithy/types": "^3.
|
|
31
|
+
"@smithy/service-error-classification": "^3.0.10",
|
|
32
|
+
"@smithy/types": "^3.7.1",
|
|
32
33
|
"tslib": "^2.6.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
@@ -4,7 +4,6 @@ exports.sdkStreamMixin = void 0;
|
|
|
4
4
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
5
5
|
const util_buffer_from_1 = require("@smithy/util-buffer-from");
|
|
6
6
|
const stream_1 = require("stream");
|
|
7
|
-
const util_1 = require("util");
|
|
8
7
|
const sdk_stream_mixin_browser_1 = require("./sdk-stream-mixin.browser");
|
|
9
8
|
const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
10
9
|
const sdkStreamMixin = (stream) => {
|
|
@@ -34,7 +33,7 @@ const sdkStreamMixin = (stream) => {
|
|
|
34
33
|
return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
|
|
35
34
|
}
|
|
36
35
|
else {
|
|
37
|
-
const decoder = new
|
|
36
|
+
const decoder = new TextDecoder(encoding);
|
|
38
37
|
return decoder.decode(buf);
|
|
39
38
|
}
|
|
40
39
|
},
|
|
@@ -5,7 +5,7 @@ const stream_1 = require("stream");
|
|
|
5
5
|
const splitStream_browser_1 = require("./splitStream.browser");
|
|
6
6
|
const stream_type_check_1 = require("./stream-type-check");
|
|
7
7
|
async function splitStream(stream) {
|
|
8
|
-
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
8
|
+
if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {
|
|
9
9
|
return (0, splitStream_browser_1.splitStream)(stream);
|
|
10
10
|
}
|
|
11
11
|
const stream1 = new stream_1.PassThrough();
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isReadableStream = void 0;
|
|
3
|
+
exports.isBlob = exports.isReadableStream = void 0;
|
|
4
4
|
const isReadableStream = (stream) => {
|
|
5
5
|
var _a;
|
|
6
6
|
return typeof ReadableStream === "function" &&
|
|
7
7
|
(((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream);
|
|
8
8
|
};
|
|
9
9
|
exports.isReadableStream = isReadableStream;
|
|
10
|
+
const isBlob = (blob) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob);
|
|
13
|
+
};
|
|
14
|
+
exports.isBlob = isBlob;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { streamCollector } from "@smithy/node-http-handler";
|
|
2
2
|
import { fromArrayBuffer } from "@smithy/util-buffer-from";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
|
-
import { TextDecoder } from "util";
|
|
5
4
|
import { sdkStreamMixin as sdkStreamMixinReadableStream } from "./sdk-stream-mixin.browser";
|
|
6
5
|
const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
7
6
|
export const sdkStreamMixin = (stream) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PassThrough } from "stream";
|
|
2
2
|
import { splitStream as splitWebStream } from "./splitStream.browser";
|
|
3
|
-
import { isReadableStream } from "./stream-type-check";
|
|
3
|
+
import { isBlob, isReadableStream } from "./stream-type-check";
|
|
4
4
|
export async function splitStream(stream) {
|
|
5
|
-
if (isReadableStream(stream)) {
|
|
5
|
+
if (isReadableStream(stream) || isBlob(stream)) {
|
|
6
6
|
return splitWebStream(stream);
|
|
7
7
|
}
|
|
8
8
|
const stream1 = new PassThrough();
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export const isReadableStream = (stream) => typeof ReadableStream === "function" &&
|
|
2
2
|
(stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
|
|
3
|
+
export const isBlob = (blob) => {
|
|
4
|
+
return typeof Blob === "function" && (blob?.constructor?.name === Blob.name || blob instanceof Blob);
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-stream",
|
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
14
|
"extract:docs": "api-extractor run --local",
|
|
15
|
-
"test": "yarn g:
|
|
16
|
-
"test:integration": "yarn g:
|
|
15
|
+
"test": "yarn g:vitest run && yarn test:browser",
|
|
16
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
17
|
+
"test:watch": "yarn g:vitest watch",
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts",
|
|
19
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.ts",
|
|
20
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts"
|
|
17
21
|
},
|
|
18
22
|
"main": "./dist-cjs/index.js",
|
|
19
23
|
"module": "./dist-es/index.js",
|
|
@@ -24,9 +28,9 @@
|
|
|
24
28
|
},
|
|
25
29
|
"license": "Apache-2.0",
|
|
26
30
|
"dependencies": {
|
|
27
|
-
"@smithy/fetch-http-handler": "^4.
|
|
28
|
-
"@smithy/node-http-handler": "^3.
|
|
29
|
-
"@smithy/types": "^3.
|
|
31
|
+
"@smithy/fetch-http-handler": "^4.1.1",
|
|
32
|
+
"@smithy/node-http-handler": "^3.3.1",
|
|
33
|
+
"@smithy/types": "^3.7.1",
|
|
30
34
|
"@smithy/util-base64": "^3.0.0",
|
|
31
35
|
"@smithy/util-buffer-from": "^3.0.0",
|
|
32
36
|
"@smithy/util-hex-encoding": "^3.0.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-waiter",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "Shared utilities for client waiters for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/abort-controller": "^3.1.
|
|
7
|
-
"@smithy/types": "^3.
|
|
6
|
+
"@smithy/abort-controller": "^3.1.8",
|
|
7
|
+
"@smithy/types": "^3.7.1",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
18
18
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
19
19
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
20
|
-
"test": "yarn g:
|
|
20
|
+
"test": "yarn g:vitest run",
|
|
21
|
+
"test:watch": "yarn g:vitest watch"
|
|
21
22
|
},
|
|
22
23
|
"author": {
|
|
23
24
|
"name": "AWS SDK for JavaScript Team",
|
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"aws-cdk-lib": "2.139.0",
|
|
84
84
|
"aws-sdk-client-mock": "^4.1.0",
|
|
85
85
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
86
|
-
"cdk-nag": "^2.
|
|
86
|
+
"cdk-nag": "^2.34.0",
|
|
87
87
|
"cdklabs-projen-project-types": "^0.1.204",
|
|
88
88
|
"commit-and-tag-version": "^12",
|
|
89
89
|
"constructs": "10.0.5",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"jest": "^27",
|
|
95
95
|
"jest-junit": "^15",
|
|
96
96
|
"jsii": "~5.2",
|
|
97
|
-
"jsii-diff": "^1.
|
|
97
|
+
"jsii-diff": "^1.105.0",
|
|
98
98
|
"jsii-docgen": "^10.5.0",
|
|
99
|
-
"jsii-pacmak": "^1.
|
|
100
|
-
"jsii-rosetta": "^5.5.
|
|
99
|
+
"jsii-pacmak": "^1.105.0",
|
|
100
|
+
"jsii-rosetta": "^5.5.13",
|
|
101
101
|
"lambda-tester": "^4.0.1",
|
|
102
102
|
"projen": "0.87.4",
|
|
103
103
|
"ts-jest": "^27",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"constructs": "^10.0.5"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
112
|
+
"@aws-sdk/client-codedeploy": "^3.693.0",
|
|
113
113
|
"jmespath": "^0.16.0"
|
|
114
114
|
},
|
|
115
115
|
"bundledDependencies": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.347",
|
|
131
131
|
"jest": {
|
|
132
132
|
"coverageProvider": "v8",
|
|
133
133
|
"testMatch": [
|