@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.
Files changed (98) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  5. package/node_modules/@aws-sdk/core/package.json +8 -5
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  9. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  10. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  11. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  14. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +116 -72
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
  20. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
  26. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
  27. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
  28. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
  29. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
  30. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  33. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
  34. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +17 -0
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +10 -2
  37. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +12 -7
  38. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +4 -4
  39. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +3 -0
  44. package/node_modules/@aws-sdk/nested-clients/package.json +11 -8
  45. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  46. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  47. package/node_modules/@aws-sdk/types/package.json +2 -2
  48. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  49. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
  50. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
  51. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
  52. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
  53. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
  54. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  55. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
  56. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
  57. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
  58. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
  59. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
  60. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
  61. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
  62. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
  63. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
  64. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
  65. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
  66. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
  67. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
  68. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
  69. package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
  70. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
  71. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
  72. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
  73. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
  74. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
  75. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
  76. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
  77. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
  78. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
  79. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
  80. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
  81. package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
  82. package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
  83. package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
  84. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
  85. package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
  86. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
  87. package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
  88. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
  89. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
  90. package/node_modules/@smithy/core/package.json +5 -3
  91. package/node_modules/@smithy/credential-provider-imds/package.json +3 -5
  92. package/node_modules/@smithy/fetch-http-handler/package.json +3 -5
  93. package/node_modules/@smithy/node-http-handler/package.json +3 -5
  94. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
  95. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
  96. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
  97. package/node_modules/@smithy/signature-v4/package.json +3 -5
  98. package/package.json +4 -4
@@ -1,8 +1,12 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/types";
2
- import { SigninClientResolvedConfig } from "./SigninClient";
2
+ import {
3
+ ServiceInputTypes,
4
+ ServiceOutputTypes,
5
+ SigninClientResolvedConfig,
6
+ } from "./SigninClient";
3
7
  export declare const command: <
4
- I extends import("./commands").CreateOAuth2TokenCommandInput,
5
- O extends import("./commands").CreateOAuth2TokenCommandOutput
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
- import("./commands").CreateOAuth2TokenCommandInput,
23
- import("./commands").CreateOAuth2TokenCommandOutput
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
- import("./commands").CreateOAuth2TokenCommandInput,
32
- import("./commands").CreateOAuth2TokenCommandOutput
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
- CreateOAuth2TokenCommandInput,
20
- CreateOAuth2TokenCommandOutput
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
- CreateOAuth2TokenCommandInput,
29
- CreateOAuth2TokenCommandOutput
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
+ }
@@ -1 +1,2 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./CreateOAuth2TokenWithIAMCommand";
@@ -49,4 +49,5 @@ export interface EndpointParameters extends __EndpointParameters {
49
49
  Endpoint?: string | undefined;
50
50
  Region?: string | undefined;
51
51
  IsControlPlane?: boolean | undefined;
52
+ IsOAuthEndpoint?: boolean | undefined;
52
53
  }
@@ -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.31",
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.1",
32
- "@aws-sdk/signature-v4-multi-region": "^3.996.39",
33
- "@aws-sdk/types": "^3.974.0",
34
- "@smithy/core": "^3.29.2",
35
- "@smithy/fetch-http-handler": "^5.6.4",
36
- "@smithy/node-http-handler": "^4.9.4",
37
- "@smithy/types": "^4.16.0",
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.39",
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.0",
29
+ "@aws-sdk/types": "^3.974.1",
30
30
  "@smithy/signature-v4": "^5.6.3",
31
- "@smithy/types": "^4.16.0",
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.1083.0",
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.1",
33
- "@aws-sdk/nested-clients": "^3.997.31",
34
- "@aws-sdk/types": "^3.974.0",
35
- "@smithy/core": "^3.29.2",
36
- "@smithy/types": "^4.16.0",
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.0",
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.0",
45
+ "@smithy/types": "^4.16.1",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "devDependencies": {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.34",
3
+ "version": "3.972.35",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/types": "^4.16.0",
6
+ "@smithy/types": "^4.16.1",
7
7
  "tslib": "^2.6.2"
8
8
  },
9
9
  "scripts": {
@@ -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 (e) { }
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 (e) { }
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 (e) {
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?.connection;
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-@\+\.%:/]+)\2$/;
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 (e) {
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\.\-]{1,61}[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 (error) {
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\.\-]{1,61}[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 (error) {
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 ? 0 : 1]);
72
+ return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
73
73
  case "byte":
74
- return Uint8Array.from([2, header.value]);
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, 3);
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, 4);
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] = 5;
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, 6);
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, 7);
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] = 8;
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] = 9;
116
- uuidBytes.set(fromHex(header.value.replace(/\-/g, "")), 1);
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 0:
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 1:
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 2:
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 3:
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 4:
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 5:
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 6:
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 7:
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 8:
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 9:
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] = {