@cdk8s/awscdk-resolver 0.0.100 → 0.0.101
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/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +40 -40
- package/node_modules/@aws-sdk/client-sso/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +38 -38
- package/node_modules/@aws-sdk/client-sts/package.json +38 -38
- package/node_modules/@aws-sdk/core/CHANGELOG.md +8 -0
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +8 -9
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +4 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -0
- 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/dist-cjs/index.js +3 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +3 -4
- package/node_modules/@smithy/config-resolver/package.json +6 -7
- package/node_modules/@smithy/core/package.json +10 -10
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -8
- package/node_modules/@smithy/fetch-http-handler/README.md +7 -0
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +11 -6
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +11 -6
- package/node_modules/@smithy/fetch-http-handler/package.json +8 -25
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/package.json +2 -3
- package/node_modules/@smithy/is-array-buffer/package.json +2 -3
- package/node_modules/@smithy/middleware-content-length/package.json +5 -6
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -9
- package/node_modules/@smithy/middleware-retry/package.json +10 -11
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/middleware-serde/package.json +4 -5
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +7 -4
- package/node_modules/@smithy/middleware-stack/package.json +3 -4
- package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
- package/node_modules/@smithy/node-config-provider/package.json +6 -7
- package/node_modules/@smithy/node-http-handler/README.md +5 -0
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +46 -15
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +39 -12
- package/node_modules/@smithy/node-http-handler/package.json +7 -8
- package/node_modules/@smithy/property-provider/package.json +3 -4
- package/node_modules/@smithy/protocol-http/package.json +3 -4
- package/node_modules/@smithy/querystring-builder/package.json +4 -5
- package/node_modules/@smithy/querystring-parser/package.json +3 -4
- package/node_modules/@smithy/service-error-classification/package.json +3 -4
- package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -5
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +1 -1
- package/node_modules/@smithy/smithy-client/package.json +8 -9
- package/node_modules/@smithy/types/dist-types/client.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +5 -5
- package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +9 -1
- package/node_modules/@smithy/types/package.json +2 -3
- package/node_modules/@smithy/url-parser/package.json +3 -4
- package/node_modules/@smithy/util-base64/package.json +5 -6
- package/node_modules/@smithy/util-body-length-browser/package.json +1 -2
- package/node_modules/@smithy/util-body-length-node/package.json +3 -4
- package/node_modules/@smithy/util-buffer-from/package.json +4 -5
- package/node_modules/@smithy/util-config-provider/package.json +3 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -6
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +1 -1
- package/node_modules/@smithy/util-endpoints/package.json +5 -6
- package/node_modules/@smithy/util-hex-encoding/package.json +2 -3
- package/node_modules/@smithy/util-middleware/package.json +4 -5
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/util-retry/package.json +5 -6
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +8 -2
- package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +8 -2
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +1 -1
- package/node_modules/@smithy/util-stream/package.json +13 -29
- package/node_modules/@smithy/util-uri-escape/package.json +2 -3
- package/node_modules/@smithy/util-utf8/package.json +3 -4
- package/node_modules/@smithy/util-waiter/package.json +4 -5
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,12 +24,12 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/client-sso": "3.
|
28
|
-
"@aws-sdk/token-providers": "3.
|
29
|
-
"@aws-sdk/types": "3.
|
30
|
-
"@smithy/property-provider": "^
|
31
|
-
"@smithy/shared-ini-file-loader": "^
|
32
|
-
"@smithy/types": "^
|
27
|
+
"@aws-sdk/client-sso": "3.575.0",
|
28
|
+
"@aws-sdk/token-providers": "3.575.0",
|
29
|
+
"@aws-sdk/types": "3.575.0",
|
30
|
+
"@smithy/property-provider": "^3.0.0",
|
31
|
+
"@smithy/shared-ini-file-loader": "^3.0.0",
|
32
|
+
"@smithy/types": "^3.0.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
@@ -8,11 +8,10 @@ const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
8
8
|
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
9
9
|
const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
10
10
|
const fromTokenFile = (init = {}) => async () => {
|
11
|
-
|
12
|
-
|
13
|
-
const
|
14
|
-
const
|
15
|
-
const roleSessionName = (_d = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _d !== void 0 ? _d : process.env[ENV_ROLE_SESSION_NAME];
|
11
|
+
init.logger?.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile");
|
12
|
+
const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
13
|
+
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
14
|
+
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
16
15
|
if (!webIdentityTokenFile || !roleArn) {
|
17
16
|
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified");
|
18
17
|
}
|
@@ -25,8 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.fromWebToken = void 0;
|
27
27
|
const fromWebToken = (init) => async () => {
|
28
|
-
|
29
|
-
(_a = init.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
28
|
+
init.logger?.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
30
29
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
31
30
|
let { roleAssumerWithWebIdentity } = init;
|
32
31
|
if (!roleAssumerWithWebIdentity) {
|
@@ -39,7 +38,7 @@ const fromWebToken = (init) => async () => {
|
|
39
38
|
}
|
40
39
|
return roleAssumerWithWebIdentity({
|
41
40
|
RoleArn: roleArn,
|
42
|
-
RoleSessionName: roleSessionName
|
41
|
+
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
43
42
|
WebIdentityToken: webIdentityToken,
|
44
43
|
ProviderId: providerId,
|
45
44
|
PolicyArns: policyArns,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -32,9 +32,9 @@
|
|
32
32
|
},
|
33
33
|
"license": "Apache-2.0",
|
34
34
|
"dependencies": {
|
35
|
-
"@aws-sdk/types": "3.
|
36
|
-
"@smithy/property-provider": "^
|
37
|
-
"@smithy/types": "^
|
35
|
+
"@aws-sdk/types": "3.575.0",
|
36
|
+
"@smithy/property-provider": "^3.0.0",
|
37
|
+
"@smithy/types": "^3.0.0",
|
38
38
|
"tslib": "^2.6.2"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"typescript": "~4.9.5"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
|
-
"@aws-sdk/client-sts": "
|
49
|
+
"@aws-sdk/client-sts": "3.575.0"
|
50
50
|
},
|
51
51
|
"types": "./dist-types/index.d.ts",
|
52
52
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
|
@@ -21,9 +21,9 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/types": "3.
|
25
|
-
"@smithy/protocol-http": "^
|
26
|
-
"@smithy/types": "^
|
24
|
+
"@aws-sdk/types": "3.575.0",
|
25
|
+
"@smithy/protocol-http": "^4.0.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
29
29
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
"module": "./dist-es/index.js",
|
23
23
|
"types": "./dist-types/index.d.ts",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/types": "^
|
25
|
+
"@aws-sdk/types": "3.575.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
@@ -21,9 +21,9 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/types": "3.
|
25
|
-
"@smithy/protocol-http": "^
|
26
|
-
"@smithy/types": "^
|
24
|
+
"@aws-sdk/types": "3.575.0",
|
25
|
+
"@smithy/protocol-http": "^4.0.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
29
29
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
@@ -22,10 +22,10 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@aws-sdk/util-endpoints": "3.
|
27
|
-
"@smithy/protocol-http": "^
|
28
|
-
"@smithy/types": "^
|
25
|
+
"@aws-sdk/types": "3.575.0",
|
26
|
+
"@aws-sdk/util-endpoints": "3.575.0",
|
27
|
+
"@smithy/protocol-http": "^4.0.0",
|
28
|
+
"@smithy/types": "^3.0.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
@@ -21,11 +21,11 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/types": "3.
|
25
|
-
"@smithy/node-config-provider": "^
|
26
|
-
"@smithy/types": "^
|
27
|
-
"@smithy/util-config-provider": "^
|
28
|
-
"@smithy/util-middleware": "^
|
24
|
+
"@aws-sdk/types": "3.575.0",
|
25
|
+
"@smithy/node-config-provider": "^3.0.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
|
+
"@smithy/util-config-provider": "^3.0.0",
|
28
|
+
"@smithy/util-middleware": "^3.0.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,10 +26,10 @@
|
|
26
26
|
},
|
27
27
|
"license": "Apache-2.0",
|
28
28
|
"dependencies": {
|
29
|
-
"@aws-sdk/types": "3.
|
30
|
-
"@smithy/property-provider": "^
|
31
|
-
"@smithy/shared-ini-file-loader": "^
|
32
|
-
"@smithy/types": "^
|
29
|
+
"@aws-sdk/types": "3.575.0",
|
30
|
+
"@smithy/property-provider": "^3.0.0",
|
31
|
+
"@smithy/shared-ini-file-loader": "^3.0.0",
|
32
|
+
"@smithy/types": "^3.0.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"typescript": "~4.9.5"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@aws-sdk/client-sso-oidc": "3.
|
44
|
+
"@aws-sdk/client-sso-oidc": "3.575.0"
|
45
45
|
},
|
46
46
|
"types": "./dist-types/index.d.ts",
|
47
47
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/types",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"main": "./dist-cjs/index.js",
|
5
5
|
"module": "./dist-es/index.js",
|
6
6
|
"types": "./dist-types/index.d.ts",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"directory": "packages/types"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@smithy/types": "^
|
44
|
+
"@smithy/types": "^3.0.0",
|
45
45
|
"tslib": "^2.6.2"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/types": "^
|
27
|
-
"@smithy/util-endpoints": "^
|
25
|
+
"@aws-sdk/types": "3.575.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
|
+
"@smithy/util-endpoints": "^2.0.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
30
30
|
"engines": {
|
@@ -4,16 +4,15 @@ exports.defaultUserAgent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const bowser_1 = tslib_1.__importDefault(require("bowser"));
|
6
6
|
const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
7
|
-
|
8
|
-
const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)
|
7
|
+
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent
|
9
8
|
? bowser_1.default.parse(window.navigator.userAgent)
|
10
9
|
: undefined;
|
11
10
|
const sections = [
|
12
11
|
["aws-sdk-js", clientVersion],
|
13
12
|
["ua", "2.0"],
|
14
|
-
[`os/${
|
13
|
+
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version],
|
15
14
|
["lang/js"],
|
16
|
-
["md/browser", `${
|
15
|
+
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`],
|
17
16
|
];
|
18
17
|
if (serviceId) {
|
19
18
|
sections.push([`api/${serviceId}`, clientVersion]);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"react-native": "dist-es/index.native.js",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/types": "^
|
25
|
+
"@aws-sdk/types": "3.575.0",
|
26
|
+
"@smithy/types": "^3.0.0",
|
27
27
|
"bowser": "^2.11.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.575.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
@@ -20,9 +20,9 @@
|
|
20
20
|
},
|
21
21
|
"license": "Apache-2.0",
|
22
22
|
"dependencies": {
|
23
|
-
"@aws-sdk/types": "3.
|
24
|
-
"@smithy/node-config-provider": "^
|
25
|
-
"@smithy/types": "^
|
23
|
+
"@aws-sdk/types": "3.575.0",
|
24
|
+
"@smithy/node-config-provider": "^3.0.0",
|
25
|
+
"@smithy/types": "^3.0.0",
|
26
26
|
"tslib": "^2.6.2"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/abort-controller",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "A simple abort controller library",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,11 +24,11 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/types": "^
|
27
|
+
"@smithy/types": "^3.0.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
30
30
|
"engines": {
|
31
|
-
"node": ">=
|
31
|
+
"node": ">=16.0.0"
|
32
32
|
},
|
33
33
|
"typesVersions": {
|
34
34
|
"<4.0": {
|
@@ -47,7 +47,6 @@
|
|
47
47
|
"directory": "packages/abort-controller"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
|
-
"@tsconfig/recommended": "1.0.1",
|
51
50
|
"concurrently": "7.0.0",
|
52
51
|
"downlevel-dts": "0.10.1",
|
53
52
|
"rimraf": "3.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/config-resolver",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
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",
|
@@ -23,21 +23,20 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@smithy/node-config-provider": "^
|
27
|
-
"@smithy/types": "^
|
28
|
-
"@smithy/util-config-provider": "^
|
29
|
-
"@smithy/util-middleware": "^
|
26
|
+
"@smithy/node-config-provider": "^3.0.0",
|
27
|
+
"@smithy/types": "^3.0.0",
|
28
|
+
"@smithy/util-config-provider": "^3.0.0",
|
29
|
+
"@smithy/util-middleware": "^3.0.0",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@tsconfig/recommended": "1.0.1",
|
34
33
|
"concurrently": "7.0.0",
|
35
34
|
"downlevel-dts": "0.10.1",
|
36
35
|
"rimraf": "3.0.2",
|
37
36
|
"typedoc": "0.23.23"
|
38
37
|
},
|
39
38
|
"engines": {
|
40
|
-
"node": ">=
|
39
|
+
"node": ">=16.0.0"
|
41
40
|
},
|
42
41
|
"typesVersions": {
|
43
42
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/core",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0",
|
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 core",
|
@@ -23,17 +23,17 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@smithy/middleware-endpoint": "^
|
27
|
-
"@smithy/middleware-retry": "^
|
28
|
-
"@smithy/middleware-serde": "^
|
29
|
-
"@smithy/protocol-http": "^
|
30
|
-
"@smithy/smithy-client": "^
|
31
|
-
"@smithy/types": "^
|
32
|
-
"@smithy/util-middleware": "^
|
26
|
+
"@smithy/middleware-endpoint": "^3.0.0",
|
27
|
+
"@smithy/middleware-retry": "^3.0.0",
|
28
|
+
"@smithy/middleware-serde": "^3.0.0",
|
29
|
+
"@smithy/protocol-http": "^4.0.0",
|
30
|
+
"@smithy/smithy-client": "^3.0.0",
|
31
|
+
"@smithy/types": "^3.0.0",
|
32
|
+
"@smithy/util-middleware": "^3.0.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"engines": {
|
36
|
-
"node": ">=
|
36
|
+
"node": ">=16.0.0"
|
37
37
|
},
|
38
38
|
"typesVersions": {
|
39
39
|
"<4.0": {
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"directory": "packages/core"
|
53
53
|
},
|
54
54
|
"devDependencies": {
|
55
|
-
"@
|
55
|
+
"@types/node": "^16.18.96",
|
56
56
|
"concurrently": "7.0.0",
|
57
57
|
"downlevel-dts": "0.10.1",
|
58
58
|
"rimraf": "3.0.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
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",
|
@@ -26,15 +26,14 @@
|
|
26
26
|
},
|
27
27
|
"license": "Apache-2.0",
|
28
28
|
"dependencies": {
|
29
|
-
"@smithy/node-config-provider": "^
|
30
|
-
"@smithy/property-provider": "^
|
31
|
-
"@smithy/types": "^
|
32
|
-
"@smithy/url-parser": "^
|
29
|
+
"@smithy/node-config-provider": "^3.0.0",
|
30
|
+
"@smithy/property-provider": "^3.0.0",
|
31
|
+
"@smithy/types": "^3.0.0",
|
32
|
+
"@smithy/url-parser": "^3.0.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@
|
37
|
-
"@types/node": "^14.14.31",
|
36
|
+
"@types/node": "^16.18.96",
|
38
37
|
"concurrently": "7.0.0",
|
39
38
|
"downlevel-dts": "0.10.1",
|
40
39
|
"nock": "^13.0.2",
|
@@ -43,7 +42,7 @@
|
|
43
42
|
},
|
44
43
|
"types": "./dist-types/index.d.ts",
|
45
44
|
"engines": {
|
46
|
-
"node": ">=
|
45
|
+
"node": ">=16.0.0"
|
47
46
|
},
|
48
47
|
"typesVersions": {
|
49
48
|
"<4.0": {
|
@@ -2,3 +2,10 @@
|
|
2
2
|
|
3
3
|
[](https://www.npmjs.com/package/@smithy/fetch-http-handler)
|
4
4
|
[](https://www.npmjs.com/package/@smithy/fetch-http-handler)
|
5
|
+
|
6
|
+
This is the default `requestHandler` used for browser applications.
|
7
|
+
Since Node.js introduced experimental Web Streams API in v16.5.0 and made it stable in v21.0.0,
|
8
|
+
you can consider using `fetch-http-handler` in Node.js, although it's not recommended.
|
9
|
+
|
10
|
+
For the Node.js default `requestHandler` implementation, see instead
|
11
|
+
[`@smithy/node-http-handler`](https://www.npmjs.com/package/@smithy/node-http-handler).
|
@@ -176,20 +176,25 @@ async function collectBlob(blob) {
|
|
176
176
|
}
|
177
177
|
__name(collectBlob, "collectBlob");
|
178
178
|
async function collectStream(stream) {
|
179
|
-
|
179
|
+
const chunks = [];
|
180
180
|
const reader = stream.getReader();
|
181
181
|
let isDone = false;
|
182
|
+
let length = 0;
|
182
183
|
while (!isDone) {
|
183
184
|
const { done, value } = await reader.read();
|
184
185
|
if (value) {
|
185
|
-
|
186
|
-
|
187
|
-
res.set(prior);
|
188
|
-
res.set(value, prior.length);
|
186
|
+
chunks.push(value);
|
187
|
+
length += value.length;
|
189
188
|
}
|
190
189
|
isDone = done;
|
191
190
|
}
|
192
|
-
|
191
|
+
const collected = new Uint8Array(length);
|
192
|
+
let offset = 0;
|
193
|
+
for (const chunk of chunks) {
|
194
|
+
collected.set(chunk, offset);
|
195
|
+
offset += chunk.length;
|
196
|
+
}
|
197
|
+
return collected;
|
193
198
|
}
|
194
199
|
__name(collectStream, "collectStream");
|
195
200
|
function readToBase64(blob) {
|
@@ -11,20 +11,25 @@ async function collectBlob(blob) {
|
|
11
11
|
return new Uint8Array(arrayBuffer);
|
12
12
|
}
|
13
13
|
async function collectStream(stream) {
|
14
|
-
|
14
|
+
const chunks = [];
|
15
15
|
const reader = stream.getReader();
|
16
16
|
let isDone = false;
|
17
|
+
let length = 0;
|
17
18
|
while (!isDone) {
|
18
19
|
const { done, value } = await reader.read();
|
19
20
|
if (value) {
|
20
|
-
|
21
|
-
|
22
|
-
res.set(prior);
|
23
|
-
res.set(value, prior.length);
|
21
|
+
chunks.push(value);
|
22
|
+
length += value.length;
|
24
23
|
}
|
25
24
|
isDone = done;
|
26
25
|
}
|
27
|
-
|
26
|
+
const collected = new Uint8Array(length);
|
27
|
+
let offset = 0;
|
28
|
+
for (const chunk of chunks) {
|
29
|
+
collected.set(chunk, offset);
|
30
|
+
offset += chunk.length;
|
31
|
+
}
|
32
|
+
return collected;
|
28
33
|
}
|
29
34
|
function readToBase64(blob) {
|
30
35
|
return new Promise((resolve, reject) => {
|