@cdk8s/awscdk-resolver 0.0.628 → 0.0.629
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/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/core/package.json +8 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- 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/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +116 -72
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +10 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +12 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- 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/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +5 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -5
- package/node_modules/@smithy/node-http-handler/package.json +3 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
- package/node_modules/@smithy/signature-v4/package.json +3 -5
- package/package.json +4 -4
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ServiceInputTypes,
|
|
4
|
+
ServiceOutputTypes,
|
|
5
|
+
SigninClientResolvedConfig,
|
|
6
|
+
} from "./SigninClient";
|
|
3
7
|
export declare const command: <
|
|
4
|
-
I extends
|
|
5
|
-
O extends
|
|
8
|
+
I extends ServiceInputTypes,
|
|
9
|
+
O extends ServiceOutputTypes
|
|
6
10
|
>(
|
|
7
11
|
added: EndpointParameterInstructions,
|
|
8
12
|
plugins: (
|
|
@@ -19,8 +23,8 @@ export declare const command: <
|
|
|
19
23
|
I,
|
|
20
24
|
O,
|
|
21
25
|
SigninClientResolvedConfig,
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
24
28
|
>;
|
|
25
29
|
new (
|
|
26
30
|
...[input]: import("@smithy/types").OptionalParameter<I>
|
|
@@ -28,12 +32,13 @@ export declare const command: <
|
|
|
28
32
|
I,
|
|
29
33
|
O,
|
|
30
34
|
SigninClientResolvedConfig,
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
33
37
|
>;
|
|
34
38
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
35
39
|
};
|
|
36
40
|
export declare const _ep0: EndpointParameterInstructions;
|
|
41
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
37
42
|
export declare const _mw0: (
|
|
38
43
|
Command: any,
|
|
39
44
|
cs: any,
|
|
@@ -16,8 +16,8 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
16
16
|
CreateOAuth2TokenCommandInput,
|
|
17
17
|
CreateOAuth2TokenCommandOutput,
|
|
18
18
|
import("..").SigninClientResolvedConfig,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
21
|
>;
|
|
22
22
|
new (
|
|
23
23
|
input: CreateOAuth2TokenCommandInput
|
|
@@ -25,8 +25,8 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
25
25
|
CreateOAuth2TokenCommandInput,
|
|
26
26
|
CreateOAuth2TokenCommandOutput,
|
|
27
27
|
import("..").SigninClientResolvedConfig,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
30
|
>;
|
|
31
31
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
32
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
CreateOAuth2TokenWithIAMRequest,
|
|
4
|
+
CreateOAuth2TokenWithIAMResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface CreateOAuth2TokenWithIAMCommandInput
|
|
8
|
+
extends CreateOAuth2TokenWithIAMRequest {}
|
|
9
|
+
export interface CreateOAuth2TokenWithIAMCommandOutput
|
|
10
|
+
extends CreateOAuth2TokenWithIAMResponse,
|
|
11
|
+
__MetadataBearer {}
|
|
12
|
+
declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
13
|
+
new (
|
|
14
|
+
input: CreateOAuth2TokenWithIAMCommandInput
|
|
15
|
+
): import("@smithy/core/client").CommandImpl<
|
|
16
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
17
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
18
|
+
import("..").SigninClientResolvedConfig,
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
|
+
>;
|
|
22
|
+
new (
|
|
23
|
+
input: CreateOAuth2TokenWithIAMCommandInput
|
|
24
|
+
): import("@smithy/core/client").CommandImpl<
|
|
25
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
26
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
27
|
+
import("..").SigninClientResolvedConfig,
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
|
+
>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
|
|
34
|
+
protected static __types: {
|
|
35
|
+
api: {
|
|
36
|
+
input: CreateOAuth2TokenWithIAMRequest;
|
|
37
|
+
output: CreateOAuth2TokenWithIAMResponse;
|
|
38
|
+
};
|
|
39
|
+
sdk: {
|
|
40
|
+
input: CreateOAuth2TokenWithIAMCommandInput;
|
|
41
|
+
output: CreateOAuth2TokenWithIAMCommandOutput;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts
CHANGED
|
@@ -24,3 +24,12 @@ export interface CreateOAuth2TokenResponseBody {
|
|
|
24
24
|
export interface CreateOAuth2TokenResponse {
|
|
25
25
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
26
26
|
}
|
|
27
|
+
export interface CreateOAuth2TokenWithIAMRequest {
|
|
28
|
+
grantType: string | undefined;
|
|
29
|
+
resource: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface CreateOAuth2TokenWithIAMResponse {
|
|
32
|
+
accessToken: string | undefined;
|
|
33
|
+
tokenType: string | undefined;
|
|
34
|
+
expiresIn: number | undefined;
|
|
35
|
+
}
|
|
@@ -15,4 +15,7 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
|
15
15
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
16
16
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
17
17
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
18
|
+
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
|
|
19
|
+
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
18
20
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
21
|
+
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.32",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.975.
|
|
32
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
33
|
-
"@aws-sdk/types": "^3.974.
|
|
34
|
-
"@smithy/core": "^3.29.
|
|
35
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
36
|
-
"@smithy/node-http-handler": "^4.9.
|
|
37
|
-
"@smithy/types": "^4.16.
|
|
31
|
+
"@aws-sdk/core": "^3.975.2",
|
|
32
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.40",
|
|
33
|
+
"@aws-sdk/types": "^3.974.1",
|
|
34
|
+
"@smithy/core": "^3.29.3",
|
|
35
|
+
"@smithy/fetch-http-handler": "^5.6.5",
|
|
36
|
+
"@smithy/node-http-handler": "^4.9.5",
|
|
37
|
+
"@smithy/types": "^4.16.1",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"<4.5": {
|
|
48
48
|
"dist-types/*": [
|
|
49
49
|
"dist-types/ts3.4/*"
|
|
50
|
+
],
|
|
51
|
+
"*": [
|
|
52
|
+
"dist-types/ts3.4/submodules/*/index.d.ts"
|
|
50
53
|
]
|
|
51
54
|
}
|
|
52
55
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.40",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:browser": "node ./test-browser/browser-build/esbuild",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "^3.974.
|
|
29
|
+
"@aws-sdk/types": "^3.974.1",
|
|
30
30
|
"@smithy/signature-v4": "^5.6.3",
|
|
31
|
-
"@smithy/types": "^4.16.
|
|
31
|
+
"@smithy/types": "^4.16.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1087.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.975.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
34
|
-
"@aws-sdk/types": "^3.974.
|
|
35
|
-
"@smithy/core": "^3.29.
|
|
36
|
-
"@smithy/types": "^4.16.
|
|
32
|
+
"@aws-sdk/core": "^3.975.2",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.32",
|
|
34
|
+
"@aws-sdk/types": "^3.974.1",
|
|
35
|
+
"@smithy/core": "^3.29.3",
|
|
36
|
+
"@smithy/types": "^4.16.1",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.1",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"directory": "packages-internal/types"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@smithy/types": "^4.16.
|
|
45
|
+
"@smithy/types": "^4.16.1",
|
|
46
46
|
"tslib": "^2.6.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -928,7 +928,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
928
928
|
try {
|
|
929
929
|
contents.headers["content-length"] = String(calculateBodyLength(body));
|
|
930
930
|
}
|
|
931
|
-
catch (
|
|
931
|
+
catch (ignored) { }
|
|
932
932
|
}
|
|
933
933
|
return new HttpRequest(contents);
|
|
934
934
|
};
|
|
@@ -1177,7 +1177,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
1177
1177
|
try {
|
|
1178
1178
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
1179
1179
|
}
|
|
1180
|
-
catch (
|
|
1180
|
+
catch (ignored) { }
|
|
1181
1181
|
}
|
|
1182
1182
|
const { service, operation } = getSmithyContext(context);
|
|
1183
1183
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -1209,7 +1209,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
1209
1209
|
try {
|
|
1210
1210
|
errorSchema = registry.getSchema(errorName);
|
|
1211
1211
|
}
|
|
1212
|
-
catch (
|
|
1212
|
+
catch (ignored) {
|
|
1213
1213
|
if (dataObject.Message) {
|
|
1214
1214
|
dataObject.message = dataObject.Message;
|
|
1215
1215
|
}
|
|
@@ -245,7 +245,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
|
|
|
245
245
|
|
|
246
246
|
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
247
247
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
248
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
248
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
249
249
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
250
250
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
251
251
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
@@ -291,7 +291,7 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () =
|
|
|
291
291
|
const useMobileConfiguration = () => {
|
|
292
292
|
const navigator = window?.navigator;
|
|
293
293
|
if (navigator?.connection) {
|
|
294
|
-
const { effectiveType, rtt, downlink } = navigator
|
|
294
|
+
const { effectiveType, rtt, downlink } = navigator.connection;
|
|
295
295
|
const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
|
|
296
296
|
if (slow) {
|
|
297
297
|
return true;
|
|
@@ -207,7 +207,7 @@ const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(
|
|
|
207
207
|
const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
208
208
|
const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials");
|
|
209
209
|
|
|
210
|
-
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w
|
|
210
|
+
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
211
211
|
const profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
212
212
|
const parseIni = (iniData) => {
|
|
213
213
|
const map = {};
|
|
@@ -355,7 +355,7 @@ function getSelectorName(functionString) {
|
|
|
355
355
|
constants.delete("ENV");
|
|
356
356
|
return [...constants].join(", ");
|
|
357
357
|
}
|
|
358
|
-
catch (
|
|
358
|
+
catch (ignored) {
|
|
359
359
|
return functionString;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -659,7 +659,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
|
|
|
659
659
|
|
|
660
660
|
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
661
661
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
662
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
662
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
663
663
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
664
664
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
665
665
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
@@ -245,7 +245,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
|
|
|
245
245
|
|
|
246
246
|
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
247
247
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
248
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
248
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
249
249
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
250
250
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
251
251
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
@@ -28,7 +28,7 @@ const resolveParamsForS3 = async (endpointParams) => {
|
|
|
28
28
|
}
|
|
29
29
|
return endpointParams;
|
|
30
30
|
};
|
|
31
|
-
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9
|
|
31
|
+
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;
|
|
32
32
|
const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
33
33
|
const DOTS_PATTERN = /\.\./;
|
|
34
34
|
const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
@@ -417,7 +417,7 @@ const parseURL = (value) => {
|
|
|
417
417
|
}
|
|
418
418
|
return new URL(value);
|
|
419
419
|
}
|
|
420
|
-
catch (
|
|
420
|
+
catch (ignored) {
|
|
421
421
|
return null;
|
|
422
422
|
}
|
|
423
423
|
})();
|
|
@@ -60,7 +60,7 @@ const resolveParamsForS3 = async (endpointParams) => {
|
|
|
60
60
|
}
|
|
61
61
|
return endpointParams;
|
|
62
62
|
};
|
|
63
|
-
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9
|
|
63
|
+
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;
|
|
64
64
|
const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
65
65
|
const DOTS_PATTERN = /\.\./;
|
|
66
66
|
const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
@@ -449,7 +449,7 @@ const parseURL = (value) => {
|
|
|
449
449
|
}
|
|
450
450
|
return new URL(value);
|
|
451
451
|
}
|
|
452
|
-
catch (
|
|
452
|
+
catch (ignored) {
|
|
453
453
|
return null;
|
|
454
454
|
}
|
|
455
455
|
})();
|
|
@@ -69,27 +69,27 @@ class HeaderMarshaller {
|
|
|
69
69
|
formatHeaderValue(header) {
|
|
70
70
|
switch (header.type) {
|
|
71
71
|
case "boolean":
|
|
72
|
-
return Uint8Array.from([header.value ?
|
|
72
|
+
return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
|
|
73
73
|
case "byte":
|
|
74
|
-
return Uint8Array.from([
|
|
74
|
+
return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
|
|
75
75
|
case "short":
|
|
76
76
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
77
|
-
shortView.setUint8(0,
|
|
77
|
+
shortView.setUint8(0, HEADER_VALUE_TYPE.short);
|
|
78
78
|
shortView.setInt16(1, header.value, false);
|
|
79
79
|
return new Uint8Array(shortView.buffer);
|
|
80
80
|
case "integer":
|
|
81
81
|
const intView = new DataView(new ArrayBuffer(5));
|
|
82
|
-
intView.setUint8(0,
|
|
82
|
+
intView.setUint8(0, HEADER_VALUE_TYPE.integer);
|
|
83
83
|
intView.setInt32(1, header.value, false);
|
|
84
84
|
return new Uint8Array(intView.buffer);
|
|
85
85
|
case "long":
|
|
86
86
|
const longBytes = new Uint8Array(9);
|
|
87
|
-
longBytes[0] =
|
|
87
|
+
longBytes[0] = HEADER_VALUE_TYPE.long;
|
|
88
88
|
longBytes.set(header.value.bytes, 1);
|
|
89
89
|
return longBytes;
|
|
90
90
|
case "binary":
|
|
91
91
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
92
|
-
binView.setUint8(0,
|
|
92
|
+
binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
|
|
93
93
|
binView.setUint16(1, header.value.byteLength, false);
|
|
94
94
|
const binBytes = new Uint8Array(binView.buffer);
|
|
95
95
|
binBytes.set(header.value, 3);
|
|
@@ -97,14 +97,14 @@ class HeaderMarshaller {
|
|
|
97
97
|
case "string":
|
|
98
98
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
99
99
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
100
|
-
strView.setUint8(0,
|
|
100
|
+
strView.setUint8(0, HEADER_VALUE_TYPE.string);
|
|
101
101
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
102
102
|
const strBytes = new Uint8Array(strView.buffer);
|
|
103
103
|
strBytes.set(utf8Bytes, 3);
|
|
104
104
|
return strBytes;
|
|
105
105
|
case "timestamp":
|
|
106
106
|
const tsBytes = new Uint8Array(9);
|
|
107
|
-
tsBytes[0] =
|
|
107
|
+
tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
|
|
108
108
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
109
109
|
return tsBytes;
|
|
110
110
|
case "uuid":
|
|
@@ -112,8 +112,8 @@ class HeaderMarshaller {
|
|
|
112
112
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
113
113
|
}
|
|
114
114
|
const uuidBytes = new Uint8Array(17);
|
|
115
|
-
uuidBytes[0] =
|
|
116
|
-
uuidBytes.set(fromHex(header.value.replace(
|
|
115
|
+
uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
|
|
116
|
+
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
117
117
|
return uuidBytes;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -125,46 +125,46 @@ class HeaderMarshaller {
|
|
|
125
125
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
126
126
|
position += nameLength;
|
|
127
127
|
switch (headers.getUint8(position++)) {
|
|
128
|
-
case
|
|
128
|
+
case HEADER_VALUE_TYPE.boolTrue:
|
|
129
129
|
out[name] = {
|
|
130
130
|
type: BOOLEAN_TAG,
|
|
131
131
|
value: true,
|
|
132
132
|
};
|
|
133
133
|
break;
|
|
134
|
-
case
|
|
134
|
+
case HEADER_VALUE_TYPE.boolFalse:
|
|
135
135
|
out[name] = {
|
|
136
136
|
type: BOOLEAN_TAG,
|
|
137
137
|
value: false,
|
|
138
138
|
};
|
|
139
139
|
break;
|
|
140
|
-
case
|
|
140
|
+
case HEADER_VALUE_TYPE.byte:
|
|
141
141
|
out[name] = {
|
|
142
142
|
type: BYTE_TAG,
|
|
143
143
|
value: headers.getInt8(position++),
|
|
144
144
|
};
|
|
145
145
|
break;
|
|
146
|
-
case
|
|
146
|
+
case HEADER_VALUE_TYPE.short:
|
|
147
147
|
out[name] = {
|
|
148
148
|
type: SHORT_TAG,
|
|
149
149
|
value: headers.getInt16(position, false),
|
|
150
150
|
};
|
|
151
151
|
position += 2;
|
|
152
152
|
break;
|
|
153
|
-
case
|
|
153
|
+
case HEADER_VALUE_TYPE.integer:
|
|
154
154
|
out[name] = {
|
|
155
155
|
type: INT_TAG,
|
|
156
156
|
value: headers.getInt32(position, false),
|
|
157
157
|
};
|
|
158
158
|
position += 4;
|
|
159
159
|
break;
|
|
160
|
-
case
|
|
160
|
+
case HEADER_VALUE_TYPE.long:
|
|
161
161
|
out[name] = {
|
|
162
162
|
type: LONG_TAG,
|
|
163
163
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
164
164
|
};
|
|
165
165
|
position += 8;
|
|
166
166
|
break;
|
|
167
|
-
case
|
|
167
|
+
case HEADER_VALUE_TYPE.byteArray:
|
|
168
168
|
const binaryLength = headers.getUint16(position, false);
|
|
169
169
|
position += 2;
|
|
170
170
|
out[name] = {
|
|
@@ -173,7 +173,7 @@ class HeaderMarshaller {
|
|
|
173
173
|
};
|
|
174
174
|
position += binaryLength;
|
|
175
175
|
break;
|
|
176
|
-
case
|
|
176
|
+
case HEADER_VALUE_TYPE.string:
|
|
177
177
|
const stringLength = headers.getUint16(position, false);
|
|
178
178
|
position += 2;
|
|
179
179
|
out[name] = {
|
|
@@ -182,14 +182,14 @@ class HeaderMarshaller {
|
|
|
182
182
|
};
|
|
183
183
|
position += stringLength;
|
|
184
184
|
break;
|
|
185
|
-
case
|
|
185
|
+
case HEADER_VALUE_TYPE.timestamp:
|
|
186
186
|
out[name] = {
|
|
187
187
|
type: TIMESTAMP_TAG,
|
|
188
188
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
189
189
|
};
|
|
190
190
|
position += 8;
|
|
191
191
|
break;
|
|
192
|
-
case
|
|
192
|
+
case HEADER_VALUE_TYPE.uuid:
|
|
193
193
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
194
194
|
position += 16;
|
|
195
195
|
out[name] = {
|