@aws-sdk/client-sso-oidc 3.645.0 → 3.650.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.
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -952,9 +952,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
952
952
  var _ai = "aws_iam";
953
953
 
954
954
  // src/commands/CreateTokenCommand.ts
955
- var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep({
956
- ...commonParams
957
- }).m(function(Command, cs, config, o) {
955
+ var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
958
956
  return [
959
957
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
960
958
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -968,9 +966,7 @@ var CreateTokenCommand = _CreateTokenCommand;
968
966
 
969
967
 
970
968
 
971
- var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client.Command.classBuilder().ep({
972
- ...commonParams
973
- }).m(function(Command, cs, config, o) {
969
+ var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
974
970
  return [
975
971
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
976
972
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -984,9 +980,7 @@ var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand;
984
980
 
985
981
 
986
982
 
987
- var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client.Command.classBuilder().ep({
988
- ...commonParams
989
- }).m(function(Command, cs, config, o) {
983
+ var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
990
984
  return [
991
985
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
992
986
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1000,9 +994,7 @@ var RegisterClientCommand = _RegisterClientCommand;
1000
994
 
1001
995
 
1002
996
 
1003
- var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
1004
- ...commonParams
1005
- }).m(function(Command, cs, config, o) {
997
+ var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1006
998
  return [
1007
999
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1008
1000
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -7,9 +7,7 @@ import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_r
7
7
  export { $Command };
8
8
  export class CreateTokenCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_CreateTokenWithIAMCommand, se_CreateTokenWithIAMCommand } from "../p
7
7
  export { $Command };
8
8
  export class CreateTokenWithIAMCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_RegisterClientCommand, se_RegisterClientCommand } from "../protocols
7
7
  export { $Command };
8
8
  export class RegisterClientCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_StartDeviceAuthorizationCommand, se_StartDeviceAuthorizationCommand
7
7
  export { $Command };
8
8
  export class StartDeviceAuthorizationCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
38
40
  schemeId: string;
39
41
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
38
40
  schemeId: string;
39
41
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
33
34
  logger?: import("@smithy/types").Logger | undefined;
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
37
+ serviceConfiguredEndpoint?: undefined;
36
38
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
37
39
  schemeId: string;
38
40
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  apiVersion: string;
26
+ cacheMiddleware?: boolean | undefined;
26
27
  urlParser: import("@smithy/types").UrlParser;
27
28
  base64Decoder: import("@smithy/types").Decoder;
28
29
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -61,6 +62,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
61
62
  }
62
63
  ) => import("@smithy/types").EndpointV2;
63
64
  tls?: boolean | undefined;
65
+ serviceConfiguredEndpoint?: undefined;
64
66
  httpAuthSchemes:
65
67
  | import("@smithy/types").HttpAuthScheme[]
66
68
  | (
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
27
27
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
30
31
  urlParser: import("@smithy/types").UrlParser;
31
32
  base64Decoder: import("@smithy/types").Decoder;
32
33
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -65,6 +66,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
65
66
  }
66
67
  ) => import("@smithy/types").EndpointV2;
67
68
  tls?: boolean | undefined;
69
+ serviceConfiguredEndpoint?: undefined;
68
70
  httpAuthSchemes:
69
71
  | import("@smithy/types").HttpAuthScheme[]
70
72
  | (
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -55,6 +56,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
55
56
  }
56
57
  ) => import("@smithy/types").EndpointV2;
57
58
  tls?: boolean | undefined;
59
+ serviceConfiguredEndpoint?: undefined;
58
60
  httpAuthSchemes:
59
61
  | import("@smithy/types").HttpAuthScheme[]
60
62
  | (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.645.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.635.0",
24
- "@aws-sdk/credential-provider-node": "3.645.0",
25
- "@aws-sdk/middleware-host-header": "3.620.0",
26
- "@aws-sdk/middleware-logger": "3.609.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
28
- "@aws-sdk/middleware-user-agent": "3.645.0",
29
- "@aws-sdk/region-config-resolver": "3.614.0",
30
- "@aws-sdk/types": "3.609.0",
31
- "@aws-sdk/util-endpoints": "3.645.0",
32
- "@aws-sdk/util-user-agent-browser": "3.609.0",
33
- "@aws-sdk/util-user-agent-node": "3.614.0",
34
- "@smithy/config-resolver": "^3.0.5",
35
- "@smithy/core": "^2.4.0",
36
- "@smithy/fetch-http-handler": "^3.2.4",
37
- "@smithy/hash-node": "^3.0.3",
38
- "@smithy/invalid-dependency": "^3.0.3",
39
- "@smithy/middleware-content-length": "^3.0.5",
40
- "@smithy/middleware-endpoint": "^3.1.0",
41
- "@smithy/middleware-retry": "^3.0.15",
42
- "@smithy/middleware-serde": "^3.0.3",
43
- "@smithy/middleware-stack": "^3.0.3",
44
- "@smithy/node-config-provider": "^3.1.4",
45
- "@smithy/node-http-handler": "^3.1.4",
46
- "@smithy/protocol-http": "^4.1.0",
47
- "@smithy/smithy-client": "^3.2.0",
48
- "@smithy/types": "^3.3.0",
49
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/core": "3.649.0",
24
+ "@aws-sdk/credential-provider-node": "3.650.0",
25
+ "@aws-sdk/middleware-host-header": "3.649.0",
26
+ "@aws-sdk/middleware-logger": "3.649.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
28
+ "@aws-sdk/middleware-user-agent": "3.649.0",
29
+ "@aws-sdk/region-config-resolver": "3.649.0",
30
+ "@aws-sdk/types": "3.649.0",
31
+ "@aws-sdk/util-endpoints": "3.649.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
33
+ "@aws-sdk/util-user-agent-node": "3.649.0",
34
+ "@smithy/config-resolver": "^3.0.6",
35
+ "@smithy/core": "^2.4.1",
36
+ "@smithy/fetch-http-handler": "^3.2.5",
37
+ "@smithy/hash-node": "^3.0.4",
38
+ "@smithy/invalid-dependency": "^3.0.4",
39
+ "@smithy/middleware-content-length": "^3.0.6",
40
+ "@smithy/middleware-endpoint": "^3.1.1",
41
+ "@smithy/middleware-retry": "^3.0.16",
42
+ "@smithy/middleware-serde": "^3.0.4",
43
+ "@smithy/middleware-stack": "^3.0.4",
44
+ "@smithy/node-config-provider": "^3.1.5",
45
+ "@smithy/node-http-handler": "^3.2.0",
46
+ "@smithy/protocol-http": "^4.1.1",
47
+ "@smithy/smithy-client": "^3.3.0",
48
+ "@smithy/types": "^3.4.0",
49
+ "@smithy/url-parser": "^3.0.4",
50
50
  "@smithy/util-base64": "^3.0.0",
51
51
  "@smithy/util-body-length-browser": "^3.0.0",
52
52
  "@smithy/util-body-length-node": "^3.0.0",
53
- "@smithy/util-defaults-mode-browser": "^3.0.15",
54
- "@smithy/util-defaults-mode-node": "^3.0.15",
55
- "@smithy/util-endpoints": "^2.0.5",
56
- "@smithy/util-middleware": "^3.0.3",
57
- "@smithy/util-retry": "^3.0.3",
53
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
54
+ "@smithy/util-defaults-mode-node": "^3.0.16",
55
+ "@smithy/util-endpoints": "^2.1.0",
56
+ "@smithy/util-middleware": "^3.0.4",
57
+ "@smithy/util-retry": "^3.0.4",
58
58
  "@smithy/util-utf8": "^3.0.0",
59
59
  "tslib": "^2.6.2"
60
60
  },
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "license": "Apache-2.0",
87
87
  "peerDependencies": {
88
- "@aws-sdk/client-sts": "^3.645.0"
88
+ "@aws-sdk/client-sts": "^3.650.0"
89
89
  },
90
90
  "browser": {
91
91
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"