@aws-sdk/client-sso 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.
- package/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +4 -12
- package/dist-es/commands/GetRoleCredentialsCommand.js +1 -3
- package/dist-es/commands/ListAccountRolesCommand.js +1 -3
- package/dist-es/commands/ListAccountsCommand.js +1 -3
- package/dist-es/commands/LogoutCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +32 -32
|
@@ -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
|
@@ -512,9 +512,7 @@ var _rn = "role_name";
|
|
|
512
512
|
var _xasbt = "x-amz-sso_bearer_token";
|
|
513
513
|
|
|
514
514
|
// src/commands/GetRoleCredentialsCommand.ts
|
|
515
|
-
var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
516
|
-
...commonParams
|
|
517
|
-
}).m(function(Command, cs, config, o) {
|
|
515
|
+
var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
518
516
|
return [
|
|
519
517
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
520
518
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -528,9 +526,7 @@ var GetRoleCredentialsCommand = _GetRoleCredentialsCommand;
|
|
|
528
526
|
|
|
529
527
|
|
|
530
528
|
|
|
531
|
-
var _ListAccountRolesCommand = class _ListAccountRolesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
532
|
-
...commonParams
|
|
533
|
-
}).m(function(Command, cs, config, o) {
|
|
529
|
+
var _ListAccountRolesCommand = class _ListAccountRolesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
534
530
|
return [
|
|
535
531
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
536
532
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -544,9 +540,7 @@ var ListAccountRolesCommand = _ListAccountRolesCommand;
|
|
|
544
540
|
|
|
545
541
|
|
|
546
542
|
|
|
547
|
-
var _ListAccountsCommand = class _ListAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
548
|
-
...commonParams
|
|
549
|
-
}).m(function(Command, cs, config, o) {
|
|
543
|
+
var _ListAccountsCommand = class _ListAccountsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
550
544
|
return [
|
|
551
545
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
552
546
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -560,9 +554,7 @@ var ListAccountsCommand = _ListAccountsCommand;
|
|
|
560
554
|
|
|
561
555
|
|
|
562
556
|
|
|
563
|
-
var _LogoutCommand = class _LogoutCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
564
|
-
...commonParams
|
|
565
|
-
}).m(function(Command, cs, config, o) {
|
|
557
|
+
var _LogoutCommand = class _LogoutCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
566
558
|
return [
|
|
567
559
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
568
560
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
@@ -7,9 +7,7 @@ import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../p
|
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class GetRoleCredentialsCommand 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_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../proto
|
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class ListAccountRolesCommand 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_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws
|
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class ListAccountsCommand 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_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1";
|
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class LogoutCommand 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;
|
|
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
17
17
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
18
18
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
19
|
apiVersion: string;
|
|
20
|
+
cacheMiddleware?: boolean | undefined;
|
|
20
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
22
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
23
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
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;
|
|
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
17
17
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
18
18
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
19
|
apiVersion: string;
|
|
20
|
+
cacheMiddleware?: boolean | undefined;
|
|
20
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
22
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
23
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
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;
|
|
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
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;
|
|
@@ -32,6 +33,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
32
33
|
logger?: import("@smithy/types").Logger | undefined;
|
|
33
34
|
}) => import("@smithy/types").EndpointV2;
|
|
34
35
|
tls?: boolean | undefined;
|
|
36
|
+
serviceConfiguredEndpoint?: undefined;
|
|
35
37
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
36
38
|
schemeId: string;
|
|
37
39
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
20
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
apiVersion: string;
|
|
23
|
+
cacheMiddleware?: boolean | undefined;
|
|
23
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
25
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
26
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -58,6 +59,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
58
59
|
}
|
|
59
60
|
) => import("@smithy/types").EndpointV2;
|
|
60
61
|
tls?: boolean | undefined;
|
|
62
|
+
serviceConfiguredEndpoint?: undefined;
|
|
61
63
|
httpAuthSchemes:
|
|
62
64
|
| import("@smithy/types").HttpAuthScheme[]
|
|
63
65
|
| (
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
20
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
apiVersion: string;
|
|
23
|
+
cacheMiddleware?: boolean | undefined;
|
|
23
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
25
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
26
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -58,6 +59,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
58
59
|
}
|
|
59
60
|
) => import("@smithy/types").EndpointV2;
|
|
60
61
|
tls?: boolean | undefined;
|
|
62
|
+
serviceConfiguredEndpoint?: undefined;
|
|
61
63
|
httpAuthSchemes:
|
|
62
64
|
| import("@smithy/types").HttpAuthScheme[]
|
|
63
65
|
| (
|
|
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
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;
|
|
@@ -52,6 +53,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
|
52
53
|
}
|
|
53
54
|
) => import("@smithy/types").EndpointV2;
|
|
54
55
|
tls?: boolean | undefined;
|
|
56
|
+
serviceConfiguredEndpoint?: undefined;
|
|
55
57
|
httpAuthSchemes:
|
|
56
58
|
| import("@smithy/types").HttpAuthScheme[]
|
|
57
59
|
| (
|
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.
|
|
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",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
25
|
-
"@aws-sdk/middleware-logger": "3.
|
|
26
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
30
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
-
"@smithy/config-resolver": "^3.0.
|
|
34
|
-
"@smithy/core": "^2.4.
|
|
35
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
36
|
-
"@smithy/hash-node": "^3.0.
|
|
37
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
38
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
39
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
40
|
-
"@smithy/middleware-retry": "^3.0.
|
|
41
|
-
"@smithy/middleware-serde": "^3.0.
|
|
42
|
-
"@smithy/middleware-stack": "^3.0.
|
|
43
|
-
"@smithy/node-config-provider": "^3.1.
|
|
44
|
-
"@smithy/node-http-handler": "^3.
|
|
45
|
-
"@smithy/protocol-http": "^4.1.
|
|
46
|
-
"@smithy/smithy-client": "^3.
|
|
47
|
-
"@smithy/types": "^3.
|
|
48
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/core": "3.649.0",
|
|
24
|
+
"@aws-sdk/middleware-host-header": "3.649.0",
|
|
25
|
+
"@aws-sdk/middleware-logger": "3.649.0",
|
|
26
|
+
"@aws-sdk/middleware-recursion-detection": "3.649.0",
|
|
27
|
+
"@aws-sdk/middleware-user-agent": "3.649.0",
|
|
28
|
+
"@aws-sdk/region-config-resolver": "3.649.0",
|
|
29
|
+
"@aws-sdk/types": "3.649.0",
|
|
30
|
+
"@aws-sdk/util-endpoints": "3.649.0",
|
|
31
|
+
"@aws-sdk/util-user-agent-browser": "3.649.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-node": "3.649.0",
|
|
33
|
+
"@smithy/config-resolver": "^3.0.6",
|
|
34
|
+
"@smithy/core": "^2.4.1",
|
|
35
|
+
"@smithy/fetch-http-handler": "^3.2.5",
|
|
36
|
+
"@smithy/hash-node": "^3.0.4",
|
|
37
|
+
"@smithy/invalid-dependency": "^3.0.4",
|
|
38
|
+
"@smithy/middleware-content-length": "^3.0.6",
|
|
39
|
+
"@smithy/middleware-endpoint": "^3.1.1",
|
|
40
|
+
"@smithy/middleware-retry": "^3.0.16",
|
|
41
|
+
"@smithy/middleware-serde": "^3.0.4",
|
|
42
|
+
"@smithy/middleware-stack": "^3.0.4",
|
|
43
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
44
|
+
"@smithy/node-http-handler": "^3.2.0",
|
|
45
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
46
|
+
"@smithy/smithy-client": "^3.3.0",
|
|
47
|
+
"@smithy/types": "^3.4.0",
|
|
48
|
+
"@smithy/url-parser": "^3.0.4",
|
|
49
49
|
"@smithy/util-base64": "^3.0.0",
|
|
50
50
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
51
51
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
52
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
53
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
54
|
-
"@smithy/util-endpoints": "^2.0
|
|
55
|
-
"@smithy/util-middleware": "^3.0.
|
|
56
|
-
"@smithy/util-retry": "^3.0.
|
|
52
|
+
"@smithy/util-defaults-mode-browser": "^3.0.16",
|
|
53
|
+
"@smithy/util-defaults-mode-node": "^3.0.16",
|
|
54
|
+
"@smithy/util-endpoints": "^2.1.0",
|
|
55
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
56
|
+
"@smithy/util-retry": "^3.0.4",
|
|
57
57
|
"@smithy/util-utf8": "^3.0.0",
|
|
58
58
|
"tslib": "^2.6.2"
|
|
59
59
|
},
|