@aws-sdk/client-sts 3.1076.0 → 3.1077.0

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/dist-cjs/index.js CHANGED
@@ -11,9 +11,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
11
  const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
12
  const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
13
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
15
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
16
16
  const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
17
18
 
18
19
  const q = "ref";
19
20
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
@@ -262,7 +263,7 @@ const commonParams = {
262
263
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
263
264
  };
264
265
 
265
- var version = "3.1075.0";
266
+ var version = "3.1076.0";
266
267
  var packageInfo = {
267
268
  version: version};
268
269
 
@@ -835,6 +836,7 @@ const getRuntimeConfig$1 = (config) => {
835
836
  serviceTarget: "AWSSecurityTokenServiceV20110615",
836
837
  },
837
838
  serviceId: config?.serviceId ?? "STS",
839
+ sha256: config?.sha256 ?? Sha256,
838
840
  signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
839
841
  urlParser: config?.urlParser ?? parseUrl,
840
842
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -886,7 +888,6 @@ const getRuntimeConfig = (config) => {
886
888
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
887
889
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
888
890
  }, config),
889
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
890
891
  sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
891
892
  streamCollector: config?.streamCollector ?? streamCollector,
892
893
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -6,7 +6,7 @@ import { NoAuthSigner } from "@smithy/core";
6
6
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
7
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
8
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
9
+ import { calculateBodyLength } from "@smithy/core/serde";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export const getRuntimeConfig = (config) => {
@@ -53,7 +53,6 @@ export const getRuntimeConfig = (config) => {
53
53
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
54
54
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
55
55
  }, config),
56
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
57
56
  sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
58
57
  streamCollector: config?.streamCollector ?? streamCollector,
59
58
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -2,6 +2,7 @@ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSch
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
3
  import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
4
4
  import { NoAuthSigner } from "@smithy/core";
5
+ import { Sha256 } from "@smithy/core/checksum";
5
6
  import { NoOpLogger } from "@smithy/core/client";
6
7
  import { parseUrl } from "@smithy/core/protocols";
7
8
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -44,6 +45,7 @@ export const getRuntimeConfig = (config) => {
44
45
  serviceTarget: "AWSSecurityTokenServiceV20110615",
45
46
  },
46
47
  serviceId: config?.serviceId ?? "STS",
48
+ sha256: config?.sha256 ?? Sha256,
47
49
  signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
48
50
  urlParser: config?.urlParser ?? parseUrl,
49
51
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -13,7 +13,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
16
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -26,7 +26,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
26
26
  region: string | import("@smithy/types").Provider<string>;
27
27
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
- sha256: import("@smithy/types").HashConstructor;
30
29
  sigv4aSigningRegionSet: string[] | import("@smithy/types").Provider<string[] | undefined>;
31
30
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
32
31
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -39,6 +38,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
39
38
  [setting: string]: unknown;
40
39
  };
41
40
  apiVersion: string;
41
+ sha256: import("@smithy/types").HashConstructor;
42
42
  urlParser: import("@smithy/types").UrlParser;
43
43
  base64Decoder: import("@smithy/types").Decoder;
44
44
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { STSClientConfig } from "./STSClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: STSClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
33
33
  defaultNamespace?: string;
34
34
  };
35
35
  serviceId: string;
36
+ sha256: import("@smithy/types").HashConstructor;
36
37
  signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
37
38
  urlParser: import("@smithy/types").UrlParser;
38
39
  utf8Decoder: import("@smithy/types").Decoder;
@@ -20,7 +20,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
20
20
  | import("@smithy/core/protocols").HttpHandler<any>
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
- sha256: import("@smithy/types").HashConstructor;
24
23
  streamCollector: (
25
24
  stream:
26
25
  | import("stream").Readable
@@ -42,6 +41,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
42
41
  [setting: string]: unknown;
43
42
  };
44
43
  apiVersion: string;
44
+ sha256: import("@smithy/types").HashConstructor;
45
45
  urlParser: import("@smithy/types").UrlParser;
46
46
  base64Decoder: import("@smithy/types").Decoder;
47
47
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -50,7 +50,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
50
50
  | RequestHandler
51
51
  | import("@smithy/core/protocols").HttpHandler<any>;
52
52
  retryMode: string | import("@smithy/types").Provider<string>;
53
- sha256: import("@smithy/types").HashConstructor;
54
53
  sigv4aSigningRegionSet:
55
54
  | string[]
56
55
  | import("@smithy/types").Provider<string[] | undefined>;
@@ -74,6 +73,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
74
73
  [setting: string]: unknown;
75
74
  };
76
75
  apiVersion: string;
76
+ sha256: import("@smithy/types").HashConstructor;
77
77
  urlParser: import("@smithy/types").UrlParser;
78
78
  base64Decoder: import("@smithy/types").Decoder;
79
79
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { STSClientConfig } from "./STSClient";
2
2
  export declare const getRuntimeConfig: (config: STSClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
23
  streamCollector: (
@@ -53,6 +53,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
53
53
  defaultNamespace?: string;
54
54
  };
55
55
  serviceId: string;
56
+ sha256: import("@smithy/types").HashConstructor;
56
57
  signerConstructor:
57
58
  | typeof SignatureV4MultiRegion
58
59
  | (new (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.1076.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -25,20 +25,18 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@aws-crypto/sha256-browser": "5.2.0",
29
- "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.24",
31
- "@aws-sdk/credential-provider-node": "^3.972.59",
32
- "@aws-sdk/signature-v4-multi-region": "^3.996.36",
28
+ "@aws-sdk/core": "^3.974.25",
29
+ "@aws-sdk/credential-provider-node": "^3.972.60",
30
+ "@aws-sdk/signature-v4-multi-region": "^3.996.37",
33
31
  "@aws-sdk/types": "^3.973.14",
34
- "@smithy/core": "^3.27.0",
35
- "@smithy/fetch-http-handler": "^5.6.0",
36
- "@smithy/node-http-handler": "^4.9.0",
32
+ "@smithy/core": "^3.28.0",
33
+ "@smithy/fetch-http-handler": "^5.6.1",
34
+ "@smithy/node-http-handler": "^4.9.1",
37
35
  "@smithy/types": "^4.15.0",
38
36
  "tslib": "^2.6.2"
39
37
  },
40
38
  "devDependencies": {
41
- "@smithy/snapshot-testing": "^2.2.3",
39
+ "@smithy/snapshot-testing": "^2.2.4",
42
40
  "@tsconfig/node20": "20.1.8",
43
41
  "@types/node": "^20.14.8",
44
42
  "concurrently": "7.0.0",