@aws-sdk/client-sso 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
@@ -9,9 +9,10 @@ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntim
9
9
  const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
10
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
11
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
12
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
13
13
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
14
14
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
15
+ const { Sha256 } = require("@smithy/core/checksum");
15
16
 
16
17
  const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
17
18
  return {
@@ -91,7 +92,7 @@ const commonParams = {
91
92
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
92
93
  };
93
94
 
94
- var version = "3.1075.0";
95
+ var version = "3.1076.0";
95
96
  var packageInfo = {
96
97
  version: version};
97
98
 
@@ -398,6 +399,7 @@ const getRuntimeConfig$1 = (config) => {
398
399
  serviceTarget: "SWBPortalService",
399
400
  },
400
401
  serviceId: config?.serviceId ?? "SSO",
402
+ sha256: config?.sha256 ?? Sha256,
401
403
  urlParser: config?.urlParser ?? parseUrl,
402
404
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
403
405
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -430,7 +432,6 @@ const getRuntimeConfig = (config) => {
430
432
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
431
433
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
432
434
  }, config),
433
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
434
435
  streamCollector: config?.streamCollector ?? streamCollector,
435
436
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
436
437
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_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";
@@ -22,7 +21,6 @@ export const getRuntimeConfig = (config) => {
22
21
  region: config?.region ?? invalidProvider("Region is missing"),
23
22
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
24
23
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
25
- sha256: config?.sha256 ?? Sha256,
26
24
  streamCollector: config?.streamCollector ?? streamCollector,
27
25
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
28
26
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -4,7 +4,7 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
4
4
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
5
5
  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";
6
6
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
7
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
7
+ import { calculateBodyLength } from "@smithy/core/serde";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
9
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
10
  export const getRuntimeConfig = (config) => {
@@ -33,7 +33,6 @@ export const getRuntimeConfig = (config) => {
33
33
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
34
34
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
35
35
  }, config),
36
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
37
36
  streamCollector: config?.streamCollector ?? streamCollector,
38
37
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
39
38
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_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
  };
@@ -1,6 +1,7 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
3
  import { NoAuthSigner } from "@smithy/core";
4
+ import { Sha256 } from "@smithy/core/checksum";
4
5
  import { NoOpLogger } from "@smithy/core/client";
5
6
  import { parseUrl } from "@smithy/core/protocols";
6
7
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -37,6 +38,7 @@ export const getRuntimeConfig = (config) => {
37
38
  serviceTarget: "SWBPortalService",
38
39
  },
39
40
  serviceId: config?.serviceId ?? "SSO",
41
+ sha256: config?.sha256 ?? Sha256,
40
42
  urlParser: config?.urlParser ?? parseUrl,
41
43
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
42
44
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -12,7 +12,6 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
12
12
  region: string | import("@smithy/types").Provider<any>;
13
13
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
14
14
  retryMode: string | import("@smithy/types").Provider<string>;
15
- sha256: import("@smithy/types").HashConstructor;
16
15
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
17
16
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
18
17
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -23,6 +22,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
23
22
  [setting: string]: unknown;
24
23
  };
25
24
  apiVersion: string;
25
+ sha256: import("@smithy/types").HashConstructor;
26
26
  urlParser: import("@smithy/types").UrlParser;
27
27
  base64Decoder: import("@smithy/types").Decoder;
28
28
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -13,7 +13,6 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
13
13
  region: string | import("@smithy/types").Provider<string>;
14
14
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
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>;
19
18
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -25,6 +24,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
25
24
  [setting: string]: unknown;
26
25
  };
27
26
  apiVersion: string;
27
+ sha256: import("@smithy/types").HashConstructor;
28
28
  urlParser: import("@smithy/types").UrlParser;
29
29
  base64Decoder: import("@smithy/types").Decoder;
30
30
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { SSOClientConfig } from "./SSOClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
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").AwsRestJsonProtocol;
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
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>;
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
32
32
  defaultNamespace?: string;
33
33
  };
34
34
  serviceId: string;
35
+ sha256: import("@smithy/types").HashConstructor;
35
36
  urlParser: import("@smithy/types").UrlParser;
36
37
  utf8Decoder: import("@smithy/types").Decoder;
37
38
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
15
15
  | import("@smithy/core/protocols").HttpHandler<any>
16
16
  | RequestHandler;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
18
  streamCollector: (
20
19
  stream:
21
20
  | import("stream").Readable
@@ -37,6 +36,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
37
36
  [setting: string]: unknown;
38
37
  };
39
38
  apiVersion: string;
39
+ sha256: import("@smithy/types").HashConstructor;
40
40
  urlParser: import("@smithy/types").UrlParser;
41
41
  base64Decoder: import("@smithy/types").Decoder;
42
42
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,7 +16,6 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
16
16
  | RequestHandler
17
17
  | import("@smithy/core/protocols").HttpHandler<any>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
19
  streamCollector: (
21
20
  stream:
22
21
  | import("stream").Readable
@@ -37,6 +36,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
37
36
  [setting: string]: unknown;
38
37
  };
39
38
  apiVersion: string;
39
+ sha256: import("@smithy/types").HashConstructor;
40
40
  urlParser: import("@smithy/types").UrlParser;
41
41
  base64Decoder: import("@smithy/types").Decoder;
42
42
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { SSOClientConfig } from "./SSOClient";
2
2
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
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: SSOClientConfig) => {
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: (
@@ -52,6 +52,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
52
52
  defaultNamespace?: string;
53
53
  };
54
54
  serviceId: string;
55
+ sha256: import("@smithy/types").HashConstructor;
55
56
  urlParser: import("@smithy/types").UrlParser;
56
57
  utf8Decoder: import("@smithy/types").Decoder;
57
58
  utf8Encoder: (input: Uint8Array | string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso 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",
@@ -23,18 +23,16 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@aws-crypto/sha256-browser": "5.2.0",
27
- "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.24",
26
+ "@aws-sdk/core": "^3.974.25",
29
27
  "@aws-sdk/types": "^3.973.14",
30
- "@smithy/core": "^3.27.0",
31
- "@smithy/fetch-http-handler": "^5.6.0",
32
- "@smithy/node-http-handler": "^4.9.0",
28
+ "@smithy/core": "^3.28.0",
29
+ "@smithy/fetch-http-handler": "^5.6.1",
30
+ "@smithy/node-http-handler": "^4.9.1",
33
31
  "@smithy/types": "^4.15.0",
34
32
  "tslib": "^2.6.2"
35
33
  },
36
34
  "devDependencies": {
37
- "@smithy/snapshot-testing": "^2.2.3",
35
+ "@smithy/snapshot-testing": "^2.2.4",
38
36
  "@tsconfig/node20": "20.1.8",
39
37
  "@types/node": "^20.14.8",
40
38
  "concurrently": "7.0.0",