@cdklabs/cdk-ecs-codedeploy 0.0.95 → 0.0.97
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 +6 -6
- package/.projenrc.ts +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/abort-controller/package.json +6 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -41
- package/node_modules/@aws-sdk/client-sso/package.json +32 -37
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +32 -37
- package/node_modules/@aws-sdk/client-sts/package.json +35 -40
- package/node_modules/@aws-sdk/config-resolver/package.json +10 -7
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -4
- package/node_modules/@aws-sdk/credential-provider-imds/package.json +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -4
- package/node_modules/@aws-sdk/fetch-http-handler/package.json +10 -7
- package/node_modules/@aws-sdk/hash-node/package.json +8 -5
- package/node_modules/@aws-sdk/invalid-dependency/package.json +6 -3
- package/node_modules/@aws-sdk/is-array-buffer/package.json +5 -2
- package/node_modules/@aws-sdk/middleware-content-length/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-endpoint/package.json +12 -9
- package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-retry/package.json +11 -8
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +10 -7
- package/node_modules/@aws-sdk/middleware-serde/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +10 -7
- package/node_modules/@aws-sdk/middleware-stack/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +5 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +5 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -5
- package/node_modules/@aws-sdk/node-config-provider/package.json +8 -5
- package/node_modules/@aws-sdk/node-http-handler/package.json +9 -6
- package/node_modules/@aws-sdk/property-provider/package.json +6 -3
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js +0 -10
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +24 -99
- package/node_modules/@aws-sdk/protocol-http/dist-es/Field.js +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-es/Fields.js +0 -10
- package/node_modules/@aws-sdk/protocol-http/dist-es/httpRequest.js +24 -99
- package/node_modules/@aws-sdk/protocol-http/dist-types/Field.d.ts +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-types/Fields.d.ts +1 -18
- package/node_modules/@aws-sdk/protocol-http/dist-types/httpRequest.d.ts +7 -50
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/Fields.d.ts +1 -3
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpRequest.d.ts +15 -30
- package/node_modules/@aws-sdk/protocol-http/package.json +7 -4
- package/node_modules/@aws-sdk/querystring-builder/package.json +7 -4
- package/node_modules/@aws-sdk/querystring-parser/package.json +6 -3
- package/node_modules/@aws-sdk/service-error-classification/package.json +6 -3
- package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +6 -3
- package/node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +1 -18
- package/node_modules/@aws-sdk/signature-v4/dist-es/prepareRequest.js +1 -18
- package/node_modules/@aws-sdk/signature-v4/package.json +13 -10
- package/node_modules/@aws-sdk/smithy-client/dist-types/date-utils.d.ts +16 -16
- package/node_modules/@aws-sdk/smithy-client/dist-types/default-error-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/parse-utils.d.ts +23 -23
- package/node_modules/@aws-sdk/smithy-client/dist-types/ser-utils.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/split-every.d.ts +3 -3
- package/node_modules/@aws-sdk/smithy-client/package.json +7 -4
- package/node_modules/@aws-sdk/token-providers/package.json +9 -6
- package/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/dns.d.ts +3 -3
- package/node_modules/@aws-sdk/types/dist-types/http.d.ts +6 -10
- package/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/logger.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +15 -15
- package/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/serde.d.ts +7 -7
- package/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -2
- package/node_modules/@aws-sdk/types/dist-types/signature.d.ts +4 -4
- package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/util.d.ts +4 -4
- package/node_modules/@aws-sdk/types/package.json +5 -2
- package/node_modules/@aws-sdk/url-parser/package.json +7 -4
- package/node_modules/@aws-sdk/util-base64/package.json +6 -3
- package/node_modules/@aws-sdk/util-body-length-browser/package.json +5 -2
- package/node_modules/@aws-sdk/util-body-length-node/package.json +5 -2
- package/node_modules/@aws-sdk/util-buffer-from/package.json +6 -3
- package/node_modules/@aws-sdk/util-config-provider/package.json +5 -2
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +8 -5
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +11 -8
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js +16 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +12 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +30 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +26 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -3
- package/node_modules/@aws-sdk/util-hex-encoding/package.json +5 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -2
- package/node_modules/@aws-sdk/util-middleware/package.json +6 -3
- package/node_modules/@aws-sdk/util-retry/package.json +7 -4
- package/node_modules/@aws-sdk/util-uri-escape/package.json +5 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -4
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -5
- package/node_modules/@aws-sdk/util-utf8/package.json +6 -3
- package/node_modules/@aws-sdk/util-waiter/dist-types/poller.d.ts +4 -4
- package/node_modules/@aws-sdk/util-waiter/dist-types/utils/validate.d.ts +1 -1
- package/node_modules/@aws-sdk/util-waiter/dist-types/waiter.d.ts +1 -1
- package/node_modules/@aws-sdk/util-waiter/package.json +7 -4
- package/package.json +14 -14
- package/node_modules/@aws-sdk/is-array-buffer/CHANGELOG.md +0 -663
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/headersProxy.js +0 -52
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/queryProxy.js +0 -71
- package/node_modules/@aws-sdk/protocol-http/dist-es/headersProxy.js +0 -45
- package/node_modules/@aws-sdk/protocol-http/dist-es/queryProxy.js +0 -65
- package/node_modules/@aws-sdk/protocol-http/dist-types/headersProxy.d.ts +0 -39
- package/node_modules/@aws-sdk/protocol-http/dist-types/queryProxy.d.ts +0 -29
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/headersProxy.d.ts +0 -8
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/queryProxy.d.ts +0 -10
- package/node_modules/@aws-sdk/util-body-length-browser/CHANGELOG.md +0 -681
- package/node_modules/@aws-sdk/util-hex-encoding/CHANGELOG.md +0 -676
- package/node_modules/@aws-sdk/util-uri-escape/CHANGELOG.md +0 -768
|
@@ -9,7 +9,7 @@ export interface StandardRetryStrategyOptions {
|
|
|
9
9
|
retryQuota?: RetryQuota;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* @
|
|
12
|
+
* @deprecated use StandardRetryStrategy from @aws-sdk/util-retry
|
|
13
13
|
*/
|
|
14
14
|
export declare class StandardRetryStrategy implements RetryStrategy {
|
|
15
15
|
private readonly maxAttemptsProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-retry",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.293.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/protocol-http": "3.
|
|
24
|
-
"@aws-sdk/service-error-classification": "3.
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@aws-sdk/util-middleware": "3.
|
|
27
|
-
"@aws-sdk/util-retry": "3.
|
|
23
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
24
|
+
"@aws-sdk/service-error-classification": "3.292.0",
|
|
25
|
+
"@aws-sdk/types": "3.292.0",
|
|
26
|
+
"@aws-sdk/util-middleware": "3.292.0",
|
|
27
|
+
"@aws-sdk/util-retry": "3.292.0",
|
|
28
28
|
"tslib": "^2.3.1",
|
|
29
29
|
"uuid": "^8.3.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@aws-sdk/node-config-provider": "3.
|
|
32
|
+
"@aws-sdk/node-config-provider": "3.292.0",
|
|
33
33
|
"@tsconfig/recommended": "1.0.1",
|
|
34
34
|
"@types/uuid": "^8.3.0",
|
|
35
35
|
"concurrently": "7.0.0",
|
|
36
36
|
"downlevel-dts": "0.10.1",
|
|
37
37
|
"rimraf": "3.0.2",
|
|
38
|
-
"typedoc": "0.
|
|
38
|
+
"typedoc": "0.23.23",
|
|
39
39
|
"typescript": "~4.6.2"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
@@ -56,5 +56,8 @@
|
|
|
56
56
|
"type": "git",
|
|
57
57
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
58
58
|
"directory": "packages/middleware-retry"
|
|
59
|
+
},
|
|
60
|
+
"typedoc": {
|
|
61
|
+
"entryPoint": "src/index.ts"
|
|
59
62
|
}
|
|
60
63
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-sts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/middleware-signing": "3.
|
|
24
|
-
"@aws-sdk/property-provider": "3.
|
|
25
|
-
"@aws-sdk/protocol-http": "3.
|
|
26
|
-
"@aws-sdk/signature-v4": "3.
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/middleware-signing": "3.292.0",
|
|
24
|
+
"@aws-sdk/property-provider": "3.292.0",
|
|
25
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
26
|
+
"@aws-sdk/signature-v4": "3.292.0",
|
|
27
|
+
"@aws-sdk/types": "3.292.0",
|
|
28
28
|
"tslib": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
|
-
"typedoc": "0.
|
|
54
|
+
"typedoc": "0.23.23",
|
|
55
55
|
"typescript": "~4.6.2"
|
|
56
|
+
},
|
|
57
|
+
"typedoc": {
|
|
58
|
+
"entryPoint": "src/index.ts"
|
|
56
59
|
}
|
|
57
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-serde",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.292.0",
|
|
24
24
|
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
"concurrently": "7.0.0",
|
|
48
48
|
"downlevel-dts": "0.10.1",
|
|
49
49
|
"rimraf": "3.0.2",
|
|
50
|
-
"typedoc": "0.
|
|
50
|
+
"typedoc": "0.23.23",
|
|
51
51
|
"typescript": "~4.6.2"
|
|
52
|
+
},
|
|
53
|
+
"typedoc": {
|
|
54
|
+
"entryPoint": "src/index.ts"
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-signing",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/property-provider": "3.
|
|
24
|
-
"@aws-sdk/protocol-http": "3.
|
|
25
|
-
"@aws-sdk/signature-v4": "3.
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@aws-sdk/util-middleware": "3.
|
|
23
|
+
"@aws-sdk/property-provider": "3.292.0",
|
|
24
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
25
|
+
"@aws-sdk/signature-v4": "3.292.0",
|
|
26
|
+
"@aws-sdk/types": "3.292.0",
|
|
27
|
+
"@aws-sdk/util-middleware": "3.292.0",
|
|
28
28
|
"tslib": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
|
-
"typedoc": "0.
|
|
54
|
+
"typedoc": "0.23.23",
|
|
55
55
|
"typescript": "~4.6.2"
|
|
56
|
+
},
|
|
57
|
+
"typedoc": {
|
|
58
|
+
"entryPoint": "src/index.ts"
|
|
56
59
|
}
|
|
57
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-stack",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/types": "3.292.0",
|
|
29
29
|
"@tsconfig/recommended": "1.0.1",
|
|
30
30
|
"concurrently": "7.0.0",
|
|
31
31
|
"downlevel-dts": "0.10.1",
|
|
32
32
|
"rimraf": "3.0.2",
|
|
33
|
-
"typedoc": "0.
|
|
33
|
+
"typedoc": "0.23.23",
|
|
34
34
|
"typescript": "~4.6.2"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -51,5 +51,8 @@
|
|
|
51
51
|
"type": "git",
|
|
52
52
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
53
53
|
"directory": "packages/middleware-stack"
|
|
54
|
+
},
|
|
55
|
+
"typedoc": {
|
|
56
|
+
"entryPoint": "src/index.ts"
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
6
|
const constants_1 = require("./constants");
|
|
6
7
|
const userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
7
8
|
var _a, _b;
|
|
@@ -12,7 +13,10 @@ const userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
|
12
13
|
const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || [];
|
|
13
14
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
14
15
|
const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || [];
|
|
15
|
-
const
|
|
16
|
+
const prefix = (0, util_endpoints_1.getUserAgentPrefix)();
|
|
17
|
+
const sdkUserAgentValue = (prefix ? [prefix] : [])
|
|
18
|
+
.concat([...defaultUserAgent, ...userAgent, ...customUserAgent])
|
|
19
|
+
.join(constants_1.SPACE);
|
|
16
20
|
const normalUAValue = [
|
|
17
21
|
...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
|
|
18
22
|
...customUserAgent,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { getUserAgentPrefix } from "@aws-sdk/util-endpoints";
|
|
2
3
|
import { SPACE, UA_ESCAPE_REGEX, USER_AGENT, X_AMZ_USER_AGENT } from "./constants";
|
|
3
4
|
export const userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
4
5
|
const { request } = args;
|
|
@@ -8,7 +9,10 @@ export const userAgentMiddleware = (options) => (next, context) => async (args)
|
|
|
8
9
|
const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
|
|
9
10
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
10
11
|
const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
|
|
11
|
-
const
|
|
12
|
+
const prefix = getUserAgentPrefix();
|
|
13
|
+
const sdkUserAgentValue = (prefix ? [prefix] : [])
|
|
14
|
+
.concat([...defaultUserAgent, ...userAgent, ...customUserAgent])
|
|
15
|
+
.join(SPACE);
|
|
12
16
|
const normalUAValue = [
|
|
13
17
|
...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")),
|
|
14
18
|
...customUserAgent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.293.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,17 +20,18 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/protocol-http": "3.
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
24
|
+
"@aws-sdk/types": "3.292.0",
|
|
25
|
+
"@aws-sdk/util-endpoints": "3.293.0",
|
|
25
26
|
"tslib": "^2.3.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@aws-sdk/middleware-stack": "3.
|
|
29
|
+
"@aws-sdk/middleware-stack": "3.292.0",
|
|
29
30
|
"@tsconfig/recommended": "1.0.1",
|
|
30
31
|
"concurrently": "7.0.0",
|
|
31
32
|
"downlevel-dts": "0.10.1",
|
|
32
33
|
"rimraf": "3.0.2",
|
|
33
|
-
"typedoc": "0.
|
|
34
|
+
"typedoc": "0.23.23",
|
|
34
35
|
"typescript": "~4.6.2"
|
|
35
36
|
},
|
|
36
37
|
"engines": {
|
|
@@ -51,5 +52,8 @@
|
|
|
51
52
|
"type": "git",
|
|
52
53
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
53
54
|
"directory": "packages/middleware-user-agent"
|
|
55
|
+
},
|
|
56
|
+
"typedoc": {
|
|
57
|
+
"entryPoint": "src/index.ts"
|
|
54
58
|
}
|
|
55
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/node-config-provider",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"module": "./dist-es/index.js",
|
|
23
23
|
"types": "./dist-types/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/property-provider": "3.
|
|
26
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/property-provider": "3.292.0",
|
|
26
|
+
"@aws-sdk/shared-ini-file-loader": "3.292.0",
|
|
27
|
+
"@aws-sdk/types": "3.292.0",
|
|
28
28
|
"tslib": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"concurrently": "7.0.0",
|
|
34
34
|
"downlevel-dts": "0.10.1",
|
|
35
35
|
"rimraf": "3.0.2",
|
|
36
|
-
"typedoc": "0.
|
|
36
|
+
"typedoc": "0.23.23",
|
|
37
37
|
"typescript": "~4.6.2"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
@@ -54,5 +54,8 @@
|
|
|
54
54
|
"type": "git",
|
|
55
55
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
56
56
|
"directory": "packages/node-config-provider"
|
|
57
|
+
},
|
|
58
|
+
"typedoc": {
|
|
59
|
+
"entryPoint": "src/index.ts"
|
|
57
60
|
}
|
|
58
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/node-http-handler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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'",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"module": "./dist-es/index.js",
|
|
23
23
|
"types": "./dist-types/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/abort-controller": "3.
|
|
26
|
-
"@aws-sdk/protocol-http": "3.
|
|
27
|
-
"@aws-sdk/querystring-builder": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/abort-controller": "3.292.0",
|
|
26
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
27
|
+
"@aws-sdk/querystring-builder": "3.292.0",
|
|
28
|
+
"@aws-sdk/types": "3.292.0",
|
|
29
29
|
"tslib": "^2.3.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"concurrently": "7.0.0",
|
|
35
35
|
"downlevel-dts": "0.10.1",
|
|
36
36
|
"rimraf": "3.0.2",
|
|
37
|
-
"typedoc": "0.
|
|
37
|
+
"typedoc": "0.23.23",
|
|
38
38
|
"typescript": "~4.6.2"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
@@ -55,5 +55,8 @@
|
|
|
55
55
|
"type": "git",
|
|
56
56
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
57
57
|
"directory": "packages/node-http-handler"
|
|
58
|
+
},
|
|
59
|
+
"typedoc": {
|
|
60
|
+
"entryPoint": "src/index.ts"
|
|
58
61
|
}
|
|
59
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/property-provider",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.292.0",
|
|
24
24
|
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
"concurrently": "7.0.0",
|
|
48
48
|
"downlevel-dts": "0.10.1",
|
|
49
49
|
"rimraf": "3.0.2",
|
|
50
|
-
"typedoc": "0.
|
|
50
|
+
"typedoc": "0.23.23",
|
|
51
51
|
"typescript": "~4.6.2"
|
|
52
|
+
},
|
|
53
|
+
"typedoc": {
|
|
54
|
+
"entryPoint": "src/index.ts"
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -18,7 +18,7 @@ class Field {
|
|
|
18
18
|
this.values = this.values.filter((v) => v !== value);
|
|
19
19
|
}
|
|
20
20
|
toString() {
|
|
21
|
-
return this.values.map((v) => (v.includes(",") ? `"${v}"` : v)).join(", ");
|
|
21
|
+
return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", ");
|
|
22
22
|
}
|
|
23
23
|
get() {
|
|
24
24
|
return this.values;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Fields = void 0;
|
|
4
|
-
const Field_1 = require("./Field");
|
|
5
4
|
class Fields {
|
|
6
5
|
constructor({ fields = [], encoding = "utf-8" }) {
|
|
7
6
|
this.entries = {};
|
|
@@ -20,14 +19,5 @@ class Fields {
|
|
|
20
19
|
getByType(kind) {
|
|
21
20
|
return Object.values(this.entries).filter((field) => field.kind === kind);
|
|
22
21
|
}
|
|
23
|
-
getAll() {
|
|
24
|
-
return Object.values(this.entries);
|
|
25
|
-
}
|
|
26
|
-
static from(fieldsToCreate, encoding) {
|
|
27
|
-
return fieldsToCreate.reduce((fields, fieldArgs) => {
|
|
28
|
-
fields.setField(new Field_1.Field(fieldArgs));
|
|
29
|
-
return fields;
|
|
30
|
-
}, new Fields({ encoding }));
|
|
31
|
-
}
|
|
32
22
|
}
|
|
33
23
|
exports.Fields = Fields;
|
|
@@ -1,89 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HttpRequest = void 0;
|
|
4
|
-
const Fields_1 = require("./Fields");
|
|
5
|
-
const headersProxy_1 = require("./headersProxy");
|
|
6
|
-
const queryProxy_1 = require("./queryProxy");
|
|
7
4
|
class HttpRequest {
|
|
8
5
|
constructor(options) {
|
|
9
|
-
this.protocol = "https";
|
|
10
|
-
this.hostname = "localhost";
|
|
11
|
-
this.path = "/";
|
|
12
|
-
this.query = {};
|
|
13
|
-
this.headers = {};
|
|
14
6
|
this.method = options.method || "GET";
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
7
|
+
this.hostname = options.hostname || "localhost";
|
|
8
|
+
this.port = options.port;
|
|
9
|
+
this.query = options.query || {};
|
|
10
|
+
this.headers = options.headers || {};
|
|
17
11
|
this.body = options.body;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
set(protocol) {
|
|
26
|
-
httpRequest.destination.protocol = protocol;
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
hostname: {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get() {
|
|
32
|
-
return httpRequest.destination.hostname;
|
|
33
|
-
},
|
|
34
|
-
set(hostname) {
|
|
35
|
-
httpRequest.destination.hostname = hostname;
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
port: {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get() {
|
|
41
|
-
const port = httpRequest.destination.port;
|
|
42
|
-
return port ? Number(port) : undefined;
|
|
43
|
-
},
|
|
44
|
-
set(port) {
|
|
45
|
-
httpRequest.destination.port = String(port);
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
path: {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get() {
|
|
51
|
-
return httpRequest.destination.pathname;
|
|
52
|
-
},
|
|
53
|
-
set(path) {
|
|
54
|
-
httpRequest.destination.pathname = path;
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
query: {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get() {
|
|
60
|
-
return (0, queryProxy_1.getQueryProxy)(httpRequest.destination.searchParams);
|
|
61
|
-
},
|
|
62
|
-
set(query) {
|
|
63
|
-
const searchParams = (0, queryProxy_1.queryToSearchParams)(query || {});
|
|
64
|
-
httpRequest.destination.search = searchParams.toString();
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
headers: {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get() {
|
|
70
|
-
return (0, headersProxy_1.getHeadersProxy)(httpRequest.fields);
|
|
71
|
-
},
|
|
72
|
-
set(headers) {
|
|
73
|
-
httpRequest.fields = (0, headersProxy_1.headersToFields)(headers);
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
static from(options) {
|
|
79
|
-
const request = new HttpRequest(options);
|
|
80
|
-
if (options.destination) {
|
|
81
|
-
request.destination = options.destination;
|
|
82
|
-
}
|
|
83
|
-
if (options.fields) {
|
|
84
|
-
request.fields = options.fields;
|
|
85
|
-
}
|
|
86
|
-
return request;
|
|
12
|
+
this.protocol = options.protocol
|
|
13
|
+
? options.protocol.slice(-1) !== ":"
|
|
14
|
+
? `${options.protocol}:`
|
|
15
|
+
: options.protocol
|
|
16
|
+
: "https:";
|
|
17
|
+
this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
|
|
87
18
|
}
|
|
88
19
|
static isInstance(request) {
|
|
89
20
|
if (!request)
|
|
@@ -97,28 +28,22 @@ class HttpRequest {
|
|
|
97
28
|
typeof req["headers"] === "object");
|
|
98
29
|
}
|
|
99
30
|
clone() {
|
|
100
|
-
|
|
31
|
+
const cloned = new HttpRequest({
|
|
101
32
|
...this,
|
|
102
|
-
|
|
103
|
-
fields: Fields_1.Fields.from(this.fields.getAll().map((field) => ({
|
|
104
|
-
...field,
|
|
105
|
-
values: [...field.values],
|
|
106
|
-
}))),
|
|
33
|
+
headers: { ...this.headers },
|
|
107
34
|
});
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
? options.protocol.slice(-1) !== ":"
|
|
112
|
-
? `${options.protocol}:`
|
|
113
|
-
: options.protocol
|
|
114
|
-
: "https:";
|
|
115
|
-
const hostname = options.hostname || "localhost";
|
|
116
|
-
const port = options.port ? `:${String(options.port)}` : "";
|
|
117
|
-
const path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
|
|
118
|
-
const searchParams = (0, queryProxy_1.queryToSearchParams)(options.query || {});
|
|
119
|
-
const url = new URL(`${protocol}//${hostname}${port}${path}`);
|
|
120
|
-
url.search = searchParams.toString();
|
|
121
|
-
return url;
|
|
35
|
+
if (cloned.query)
|
|
36
|
+
cloned.query = cloneQuery(cloned.query);
|
|
37
|
+
return cloned;
|
|
122
38
|
}
|
|
123
39
|
}
|
|
124
40
|
exports.HttpRequest = HttpRequest;
|
|
41
|
+
function cloneQuery(query) {
|
|
42
|
+
return Object.keys(query).reduce((carry, paramName) => {
|
|
43
|
+
const param = query[paramName];
|
|
44
|
+
return {
|
|
45
|
+
...carry,
|
|
46
|
+
[paramName]: Array.isArray(param) ? [...param] : param,
|
|
47
|
+
};
|
|
48
|
+
}, {});
|
|
49
|
+
}
|
|
@@ -15,7 +15,7 @@ export class Field {
|
|
|
15
15
|
this.values = this.values.filter((v) => v !== value);
|
|
16
16
|
}
|
|
17
17
|
toString() {
|
|
18
|
-
return this.values.map((v) => (v.includes(",") ? `"${v}"` : v)).join(", ");
|
|
18
|
+
return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", ");
|
|
19
19
|
}
|
|
20
20
|
get() {
|
|
21
21
|
return this.values;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Field } from "./Field";
|
|
2
1
|
export class Fields {
|
|
3
2
|
constructor({ fields = [], encoding = "utf-8" }) {
|
|
4
3
|
this.entries = {};
|
|
@@ -17,13 +16,4 @@ export class Fields {
|
|
|
17
16
|
getByType(kind) {
|
|
18
17
|
return Object.values(this.entries).filter((field) => field.kind === kind);
|
|
19
18
|
}
|
|
20
|
-
getAll() {
|
|
21
|
-
return Object.values(this.entries);
|
|
22
|
-
}
|
|
23
|
-
static from(fieldsToCreate, encoding) {
|
|
24
|
-
return fieldsToCreate.reduce((fields, fieldArgs) => {
|
|
25
|
-
fields.setField(new Field(fieldArgs));
|
|
26
|
-
return fields;
|
|
27
|
-
}, new Fields({ encoding }));
|
|
28
|
-
}
|
|
29
19
|
}
|