@cdklabs/cdk-ecs-codedeploy 0.0.344 → 0.0.346
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/README.md +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/README.md +1 -1
- 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/README.md +1 -1
- 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 +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +56 -56
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +56 -56
- package/node_modules/@aws-sdk/client-sts/package.json +34 -34
- package/node_modules/@aws-sdk/core/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- 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/index.js +12 -30
- 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 +3 -26
- 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-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/ts3.4/http.d.ts +1 -0
- 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 +4 -4
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/LICENSE +0 -201
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/README.md +0 -11
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +0 -230
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +0 -138
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/index.js +0 -2
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +0 -11
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -27
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +0 -33
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +0 -2
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +0 -1
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +0 -33
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +0 -1
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts +0 -2
- package/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler/package.json +0 -62
- /package/node_modules/@smithy/{util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js → fetch-http-handler/dist-cjs/create-request.js} +0 -0
- /package/node_modules/@smithy/{util-stream/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js → node-http-handler/dist-cjs/timing.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/config-resolver",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
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 config-resolver",
|
|
@@ -11,8 +11,9 @@
|
|
|
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:
|
|
15
|
-
"extract:docs": "api-extractor run --local"
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"extract:docs": "api-extractor run --local",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
16
17
|
},
|
|
17
18
|
"main": "./dist-cjs/index.js",
|
|
18
19
|
"module": "./dist-es/index.js",
|
|
@@ -23,10 +24,10 @@
|
|
|
23
24
|
},
|
|
24
25
|
"license": "Apache-2.0",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@smithy/node-config-provider": "^3.1.
|
|
27
|
-
"@smithy/types": "^3.
|
|
27
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
28
|
+
"@smithy/types": "^3.7.0",
|
|
28
29
|
"@smithy/util-config-provider": "^3.0.0",
|
|
29
|
-
"@smithy/util-middleware": "^3.0.
|
|
30
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
30
31
|
"tslib": "^2.6.2"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
@@ -23,7 +23,7 @@ __export(protocols_exports, {
|
|
|
23
23
|
collectBody: () => collectBody,
|
|
24
24
|
extendedEncodeURIComponent: () => extendedEncodeURIComponent,
|
|
25
25
|
requestBuilder: () => requestBuilder,
|
|
26
|
-
resolvedPath: () =>
|
|
26
|
+
resolvedPath: () => resolvedPath
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(protocols_exports);
|
|
29
29
|
|
|
@@ -48,8 +48,26 @@ function extendedEncodeURIComponent(str) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// src/submodules/protocols/requestBuilder.ts
|
|
51
|
-
var import_protocols = require("@smithy/core/protocols");
|
|
52
51
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
52
|
+
|
|
53
|
+
// src/submodules/protocols/resolve-path.ts
|
|
54
|
+
var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
55
|
+
if (input != null && input[memberName] !== void 0) {
|
|
56
|
+
const labelValue = labelValueProvider();
|
|
57
|
+
if (labelValue.length <= 0) {
|
|
58
|
+
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
59
|
+
}
|
|
60
|
+
resolvedPath2 = resolvedPath2.replace(
|
|
61
|
+
uriLabel,
|
|
62
|
+
isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue)
|
|
63
|
+
);
|
|
64
|
+
} else {
|
|
65
|
+
throw new Error("No value provided for input HTTP label: " + memberName + ".");
|
|
66
|
+
}
|
|
67
|
+
return resolvedPath2;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/submodules/protocols/requestBuilder.ts
|
|
53
71
|
function requestBuilder(input, context) {
|
|
54
72
|
return new RequestBuilder(input, context);
|
|
55
73
|
}
|
|
@@ -103,7 +121,7 @@ var RequestBuilder = class {
|
|
|
103
121
|
*/
|
|
104
122
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
105
123
|
this.resolvePathStack.push((path) => {
|
|
106
|
-
this.path =
|
|
124
|
+
this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
107
125
|
});
|
|
108
126
|
return this;
|
|
109
127
|
}
|
|
@@ -136,23 +154,6 @@ var RequestBuilder = class {
|
|
|
136
154
|
return this;
|
|
137
155
|
}
|
|
138
156
|
};
|
|
139
|
-
|
|
140
|
-
// src/submodules/protocols/resolve-path.ts
|
|
141
|
-
var resolvedPath2 = (resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
142
|
-
if (input != null && input[memberName] !== void 0) {
|
|
143
|
-
const labelValue = labelValueProvider();
|
|
144
|
-
if (labelValue.length <= 0) {
|
|
145
|
-
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
146
|
-
}
|
|
147
|
-
resolvedPath3 = resolvedPath3.replace(
|
|
148
|
-
uriLabel,
|
|
149
|
-
isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue)
|
|
150
|
-
);
|
|
151
|
-
} else {
|
|
152
|
-
throw new Error("No value provided for input HTTP label: " + memberName + ".");
|
|
153
|
-
}
|
|
154
|
-
return resolvedPath3;
|
|
155
|
-
};
|
|
156
157
|
// Annotate the CommonJS export names for ESM import in node:
|
|
157
158
|
0 && (module.exports = {
|
|
158
159
|
RequestBuilder,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
10
10
|
"stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
|
-
"lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" && node ./scripts/lint",
|
|
12
|
+
"lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
-
"test": "yarn g:
|
|
15
|
-
"test:cbor:perf": "node ./scripts/cbor-perf.mjs"
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"test:cbor:perf": "node ./scripts/cbor-perf.mjs",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
16
17
|
},
|
|
17
18
|
"main": "./dist-cjs/index.js",
|
|
18
19
|
"module": "./dist-es/index.js",
|
|
@@ -53,12 +54,12 @@
|
|
|
53
54
|
},
|
|
54
55
|
"license": "Apache-2.0",
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@smithy/middleware-serde": "^3.0.
|
|
57
|
-
"@smithy/protocol-http": "^4.1.
|
|
58
|
-
"@smithy/types": "^3.
|
|
57
|
+
"@smithy/middleware-serde": "^3.0.9",
|
|
58
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
59
|
+
"@smithy/types": "^3.7.0",
|
|
59
60
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
60
|
-
"@smithy/util-middleware": "^3.0.
|
|
61
|
-
"@smithy/util-stream": "^3.
|
|
61
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
62
|
+
"@smithy/util-stream": "^3.3.0",
|
|
62
63
|
"@smithy/util-utf8": "^3.0.0",
|
|
63
64
|
"tslib": "^2.6.2"
|
|
64
65
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
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,17 +27,16 @@
|
|
|
26
27
|
},
|
|
27
28
|
"license": "Apache-2.0",
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^3.1.
|
|
30
|
-
"@smithy/property-provider": "^3.1.
|
|
31
|
-
"@smithy/types": "^3.
|
|
32
|
-
"@smithy/url-parser": "^3.0.
|
|
30
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
31
|
+
"@smithy/property-provider": "^3.1.9",
|
|
32
|
+
"@smithy/types": "^3.7.0",
|
|
33
|
+
"@smithy/url-parser": "^3.0.9",
|
|
33
34
|
"tslib": "^2.6.2"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@types/node": "^16.18.96",
|
|
37
38
|
"concurrently": "7.0.0",
|
|
38
39
|
"downlevel-dts": "0.10.1",
|
|
39
|
-
"nock": "^13.0.2",
|
|
40
40
|
"rimraf": "3.0.2",
|
|
41
41
|
"typedoc": "0.23.23"
|
|
42
42
|
},
|
|
@@ -30,6 +30,12 @@ module.exports = __toCommonJS(src_exports);
|
|
|
30
30
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
31
31
|
var import_querystring_builder = require("@smithy/querystring-builder");
|
|
32
32
|
|
|
33
|
+
// src/create-request.ts
|
|
34
|
+
function createRequest(url, requestOptions) {
|
|
35
|
+
return new Request(url, requestOptions);
|
|
36
|
+
}
|
|
37
|
+
__name(createRequest, "createRequest");
|
|
38
|
+
|
|
33
39
|
// src/request-timeout.ts
|
|
34
40
|
function requestTimeout(timeoutInMs = 0) {
|
|
35
41
|
return new Promise((resolve, reject) => {
|
|
@@ -68,7 +74,7 @@ var _FetchHttpHandler = class _FetchHttpHandler {
|
|
|
68
74
|
}
|
|
69
75
|
if (keepAliveSupport.supported === void 0) {
|
|
70
76
|
keepAliveSupport.supported = Boolean(
|
|
71
|
-
typeof Request !== "undefined" && "keepalive" in
|
|
77
|
+
typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]")
|
|
72
78
|
);
|
|
73
79
|
}
|
|
74
80
|
}
|
|
@@ -127,7 +133,7 @@ var _FetchHttpHandler = class _FetchHttpHandler {
|
|
|
127
133
|
}
|
|
128
134
|
let removeSignalEventListener = /* @__PURE__ */ __name(() => {
|
|
129
135
|
}, "removeSignalEventListener");
|
|
130
|
-
const fetchRequest =
|
|
136
|
+
const fetchRequest = createRequest(url, requestOptions);
|
|
131
137
|
const raceOfPromises = [
|
|
132
138
|
fetch(fetchRequest).then((response) => {
|
|
133
139
|
const fetchHeaders = response.headers;
|
|
@@ -192,19 +198,13 @@ __name(_FetchHttpHandler, "FetchHttpHandler");
|
|
|
192
198
|
var FetchHttpHandler = _FetchHttpHandler;
|
|
193
199
|
|
|
194
200
|
// src/stream-collector.ts
|
|
195
|
-
var
|
|
196
|
-
var
|
|
197
|
-
if (typeof Blob === "function" && stream instanceof Blob) {
|
|
198
|
-
return
|
|
201
|
+
var streamCollector = /* @__PURE__ */ __name(async (stream) => {
|
|
202
|
+
var _a;
|
|
203
|
+
if (typeof Blob === "function" && stream instanceof Blob || ((_a = stream.constructor) == null ? void 0 : _a.name) === "Blob") {
|
|
204
|
+
return new Uint8Array(await stream.arrayBuffer());
|
|
199
205
|
}
|
|
200
206
|
return collectStream(stream);
|
|
201
207
|
}, "streamCollector");
|
|
202
|
-
async function collectBlob(blob) {
|
|
203
|
-
const base64 = await readToBase64(blob);
|
|
204
|
-
const arrayBuffer = (0, import_util_base64.fromBase64)(base64);
|
|
205
|
-
return new Uint8Array(arrayBuffer);
|
|
206
|
-
}
|
|
207
|
-
__name(collectBlob, "collectBlob");
|
|
208
208
|
async function collectStream(stream) {
|
|
209
209
|
const chunks = [];
|
|
210
210
|
const reader = stream.getReader();
|
|
@@ -227,24 +227,6 @@ async function collectStream(stream) {
|
|
|
227
227
|
return collected;
|
|
228
228
|
}
|
|
229
229
|
__name(collectStream, "collectStream");
|
|
230
|
-
function readToBase64(blob) {
|
|
231
|
-
return new Promise((resolve, reject) => {
|
|
232
|
-
const reader = new FileReader();
|
|
233
|
-
reader.onloadend = () => {
|
|
234
|
-
if (reader.readyState !== 2) {
|
|
235
|
-
return reject(new Error("Reader aborted too early"));
|
|
236
|
-
}
|
|
237
|
-
const result = reader.result ?? "";
|
|
238
|
-
const commaIndex = result.indexOf(",");
|
|
239
|
-
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
240
|
-
resolve(result.substring(dataOffset));
|
|
241
|
-
};
|
|
242
|
-
reader.onabort = () => reject(new Error("Read aborted"));
|
|
243
|
-
reader.onerror = () => reject(reader.error);
|
|
244
|
-
reader.readAsDataURL(blob);
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
__name(readToBase64, "readToBase64");
|
|
248
230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
249
231
|
|
|
250
232
|
0 && (module.exports = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { buildQueryString } from "@smithy/querystring-builder";
|
|
3
|
+
import { createRequest } from "./create-request";
|
|
3
4
|
import { requestTimeout } from "./request-timeout";
|
|
4
5
|
export const keepAliveSupport = {
|
|
5
6
|
supported: undefined,
|
|
@@ -20,7 +21,7 @@ export class FetchHttpHandler {
|
|
|
20
21
|
this.configProvider = Promise.resolve(this.config);
|
|
21
22
|
}
|
|
22
23
|
if (keepAliveSupport.supported === undefined) {
|
|
23
|
-
keepAliveSupport.supported = Boolean(typeof Request !== "undefined" && "keepalive" in
|
|
24
|
+
keepAliveSupport.supported = Boolean(typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]"));
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
destroy() {
|
|
@@ -76,7 +77,7 @@ export class FetchHttpHandler {
|
|
|
76
77
|
Object.assign(requestOptions, this.config.requestInit(request));
|
|
77
78
|
}
|
|
78
79
|
let removeSignalEventListener = () => { };
|
|
79
|
-
const fetchRequest =
|
|
80
|
+
const fetchRequest = createRequest(url, requestOptions);
|
|
80
81
|
const raceOfPromises = [
|
|
81
82
|
fetch(fetchRequest).then((response) => {
|
|
82
83
|
const fetchHeaders = response.headers;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return collectBlob(stream);
|
|
1
|
+
export const streamCollector = async (stream) => {
|
|
2
|
+
if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
|
|
3
|
+
return new Uint8Array(await stream.arrayBuffer());
|
|
5
4
|
}
|
|
6
5
|
return collectStream(stream);
|
|
7
6
|
};
|
|
8
|
-
async function collectBlob(blob) {
|
|
9
|
-
const base64 = await readToBase64(blob);
|
|
10
|
-
const arrayBuffer = fromBase64(base64);
|
|
11
|
-
return new Uint8Array(arrayBuffer);
|
|
12
|
-
}
|
|
13
7
|
async function collectStream(stream) {
|
|
14
8
|
const chunks = [];
|
|
15
9
|
const reader = stream.getReader();
|
|
@@ -31,20 +25,3 @@ async function collectStream(stream) {
|
|
|
31
25
|
}
|
|
32
26
|
return collected;
|
|
33
27
|
}
|
|
34
|
-
function readToBase64(blob) {
|
|
35
|
-
return new Promise((resolve, reject) => {
|
|
36
|
-
const reader = new FileReader();
|
|
37
|
-
reader.onloadend = () => {
|
|
38
|
-
if (reader.readyState !== 2) {
|
|
39
|
-
return reject(new Error("Reader aborted too early"));
|
|
40
|
-
}
|
|
41
|
-
const result = (reader.result ?? "");
|
|
42
|
-
const commaIndex = result.indexOf(",");
|
|
43
|
-
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
44
|
-
resolve(result.substring(dataOffset));
|
|
45
|
-
};
|
|
46
|
-
reader.onabort = () => reject(new Error("Read aborted"));
|
|
47
|
-
reader.onerror = () => reject(reader.error);
|
|
48
|
-
reader.readAsDataURL(blob);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
@@ -10,6 +10,12 @@ type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
|
|
|
10
10
|
export declare const keepAliveSupport: {
|
|
11
11
|
supported: boolean | undefined;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export type AdditionalRequestParameters = {
|
|
17
|
+
duplex?: "half";
|
|
18
|
+
};
|
|
13
19
|
/**
|
|
14
20
|
* @public
|
|
15
21
|
*
|
|
@@ -10,6 +10,12 @@ type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
|
|
|
10
10
|
export declare const keepAliveSupport: {
|
|
11
11
|
supported: boolean | undefined;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export type AdditionalRequestParameters = {
|
|
17
|
+
duplex?: "half";
|
|
18
|
+
};
|
|
13
19
|
/**
|
|
14
20
|
* @public
|
|
15
21
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
14
14
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
15
15
|
"extract:docs": "api-extractor run --local",
|
|
16
|
-
"test": "yarn g:
|
|
16
|
+
"test": "yarn g:vitest run && yarn test:browser",
|
|
17
|
+
"test:watch": "yarn g:vitest watch",
|
|
18
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.ts",
|
|
19
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts"
|
|
17
20
|
},
|
|
18
21
|
"author": {
|
|
19
22
|
"name": "AWS SDK for JavaScript Team",
|
|
@@ -24,14 +27,14 @@
|
|
|
24
27
|
"module": "./dist-es/index.js",
|
|
25
28
|
"types": "./dist-types/index.d.ts",
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@smithy/protocol-http": "^4.1.
|
|
28
|
-
"@smithy/querystring-builder": "^3.0.
|
|
29
|
-
"@smithy/types": "^3.
|
|
30
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
31
|
+
"@smithy/querystring-builder": "^3.0.9",
|
|
32
|
+
"@smithy/types": "^3.7.0",
|
|
30
33
|
"@smithy/util-base64": "^3.0.0",
|
|
31
34
|
"tslib": "^2.6.2"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@smithy/abort-controller": "^3.1.
|
|
37
|
+
"@smithy/abort-controller": "^3.1.7",
|
|
35
38
|
"concurrently": "7.0.0",
|
|
36
39
|
"downlevel-dts": "0.10.1",
|
|
37
40
|
"rimraf": "3.0.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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 hash-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",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"typedoc": "0.23.23"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@smithy/types": "^3.
|
|
34
|
+
"@smithy/types": "^3.7.0",
|
|
34
35
|
"@smithy/util-buffer-from": "^3.0.0",
|
|
35
36
|
"@smithy/util-utf8": "^3.0.0",
|
|
36
37
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/invalid-dependency",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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 invalid-dependency",
|
|
@@ -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,7 +23,7 @@
|
|
|
22
23
|
},
|
|
23
24
|
"license": "Apache-2.0",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^3.
|
|
26
|
+
"@smithy/types": "^3.7.0",
|
|
26
27
|
"tslib": "^2.6.2"
|
|
27
28
|
},
|
|
28
29
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-content-length",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
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 middleware-content-length",
|
|
@@ -12,7 +12,8 @@
|
|
|
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
|
"test": "exit 0",
|
|
15
|
-
"test:integration": "yarn g:
|
|
15
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
16
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
|
16
17
|
},
|
|
17
18
|
"main": "./dist-cjs/index.js",
|
|
18
19
|
"module": "./dist-es/index.js",
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
},
|
|
24
25
|
"license": "Apache-2.0",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@smithy/protocol-http": "^4.1.
|
|
27
|
-
"@smithy/types": "^3.
|
|
27
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
28
|
+
"@smithy/types": "^3.7.0",
|
|
28
29
|
"tslib": "^2.6.2"
|
|
29
30
|
},
|
|
30
31
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
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 middleware-endpoint",
|
|
@@ -11,8 +11,9 @@
|
|
|
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:
|
|
15
|
-
"extract:docs": "api-extractor run --local"
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"extract:docs": "api-extractor run --local",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
16
17
|
},
|
|
17
18
|
"main": "./dist-cjs/index.js",
|
|
18
19
|
"module": "./dist-es/index.js",
|
|
@@ -23,13 +24,13 @@
|
|
|
23
24
|
},
|
|
24
25
|
"license": "Apache-2.0",
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@smithy/core": "^2.5.
|
|
27
|
-
"@smithy/middleware-serde": "^3.0.
|
|
28
|
-
"@smithy/node-config-provider": "^3.1.
|
|
29
|
-
"@smithy/shared-ini-file-loader": "^3.1.
|
|
30
|
-
"@smithy/types": "^3.
|
|
31
|
-
"@smithy/url-parser": "^3.0.
|
|
32
|
-
"@smithy/util-middleware": "^3.0.
|
|
27
|
+
"@smithy/core": "^2.5.2",
|
|
28
|
+
"@smithy/middleware-serde": "^3.0.9",
|
|
29
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
30
|
+
"@smithy/shared-ini-file-loader": "^3.1.10",
|
|
31
|
+
"@smithy/types": "^3.7.0",
|
|
32
|
+
"@smithy/url-parser": "^3.0.9",
|
|
33
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
33
34
|
"tslib": "^2.6.2"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.26",
|
|
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 middleware-retry",
|
|
@@ -12,8 +12,10 @@
|
|
|
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",
|
|
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"
|
|
17
19
|
},
|
|
18
20
|
"main": "./dist-cjs/index.js",
|
|
19
21
|
"module": "./dist-es/index.js",
|
|
@@ -31,13 +33,13 @@
|
|
|
31
33
|
},
|
|
32
34
|
"license": "Apache-2.0",
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"@smithy/node-config-provider": "^3.1.
|
|
35
|
-
"@smithy/protocol-http": "^4.1.
|
|
36
|
-
"@smithy/service-error-classification": "^3.0.
|
|
37
|
-
"@smithy/smithy-client": "^3.4.
|
|
38
|
-
"@smithy/types": "^3.
|
|
39
|
-
"@smithy/util-middleware": "^3.0.
|
|
40
|
-
"@smithy/util-retry": "^3.0.
|
|
36
|
+
"@smithy/node-config-provider": "^3.1.10",
|
|
37
|
+
"@smithy/protocol-http": "^4.1.6",
|
|
38
|
+
"@smithy/service-error-classification": "^3.0.9",
|
|
39
|
+
"@smithy/smithy-client": "^3.4.3",
|
|
40
|
+
"@smithy/types": "^3.7.0",
|
|
41
|
+
"@smithy/util-middleware": "^3.0.9",
|
|
42
|
+
"@smithy/util-retry": "^3.0.9",
|
|
41
43
|
"tslib": "^2.6.2",
|
|
42
44
|
"uuid": "^9.0.1"
|
|
43
45
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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 middleware-serde",
|
|
@@ -11,8 +11,10 @@
|
|
|
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:
|
|
15
|
-
"test:integration": "yarn g:
|
|
14
|
+
"test": "yarn g:vitest run",
|
|
15
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
16
|
+
"test:watch": "yarn g:vitest watch",
|
|
17
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
|
16
18
|
},
|
|
17
19
|
"main": "./dist-cjs/index.js",
|
|
18
20
|
"module": "./dist-es/index.js",
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
},
|
|
24
26
|
"license": "Apache-2.0",
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^3.
|
|
28
|
+
"@smithy/types": "^3.7.0",
|
|
27
29
|
"tslib": "^2.6.2"
|
|
28
30
|
},
|
|
29
31
|
"engines": {
|