@aws-sdk/client-sso
Advanced tools
Comparing version 3.713.0 to 3.714.0
@@ -25,2 +25,3 @@ "use strict"; | ||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version); | ||
const profileConfig = { profile: config?.profile }; | ||
return { | ||
@@ -34,4 +35,5 @@ ...clientSharedValues, | ||
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), | ||
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), | ||
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
region: config?.region ?? | ||
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), | ||
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
@@ -42,10 +44,10 @@ retryMode: config?.retryMode ?? | ||
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, | ||
}), | ||
}, config), | ||
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), | ||
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), | ||
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS), | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), | ||
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig), | ||
}; | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; |
@@ -21,2 +21,3 @@ import packageInfo from "../package.json"; | ||
awsCheckVersion(process.version); | ||
const profileConfig = { profile: config?.profile }; | ||
return { | ||
@@ -30,4 +31,5 @@ ...clientSharedValues, | ||
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), | ||
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
region: config?.region ?? | ||
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), | ||
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
@@ -38,9 +40,9 @@ retryMode: config?.retryMode ?? | ||
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
}), | ||
}, config), | ||
sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
streamCollector: config?.streamCollector ?? streamCollector, | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), | ||
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS), | ||
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), | ||
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), | ||
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig), | ||
}; | ||
}; |
@@ -28,2 +28,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -30,0 +31,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -29,2 +29,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -31,0 +32,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -23,2 +23,3 @@ import { SSOClientConfig } from "./SSOClient"; | ||
region: string | import("@smithy/types").Provider<any>; | ||
profile?: string | undefined; | ||
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>; | ||
@@ -25,0 +26,0 @@ maxAttempts: number | import("@smithy/types").Provider<number>; |
@@ -102,2 +102,20 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; | ||
/** | ||
* Setting a client profile is similar to setting a value for the | ||
* AWS_PROFILE environment variable. Setting a profile on a client | ||
* in code only affects the single client instance, unlike AWS_PROFILE. | ||
* | ||
* When set, and only for environments where an AWS configuration | ||
* file exists, fields configurable by this file will be retrieved | ||
* from the specified profile within that file. | ||
* Conflicting code configuration and environment variables will | ||
* still have higher priority. | ||
* | ||
* For client credential resolution that involves checking the AWS | ||
* configuration file, the client's profile (this value) will be | ||
* used unless a different profile is set in the credential | ||
* provider options. | ||
* | ||
*/ | ||
profile?: string; | ||
/** | ||
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header | ||
@@ -104,0 +122,0 @@ * @internal |
@@ -33,2 +33,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -35,0 +36,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -34,2 +34,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -36,0 +37,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -25,2 +25,3 @@ import { SSOClientConfig } from "./SSOClient"; | ||
region: string | import("@smithy/types").Provider<any>; | ||
profile?: string | undefined; | ||
defaultUserAgentProvider: ( | ||
@@ -27,0 +28,0 @@ config?: |
@@ -97,2 +97,3 @@ import { | ||
region?: string | __Provider<string>; | ||
profile?: string; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
@@ -99,0 +100,0 @@ maxAttempts?: number | __Provider<number>; |
{ | ||
"name": "@aws-sdk/client-sso", | ||
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", | ||
"version": "3.713.0", | ||
"version": "3.714.0", | ||
"scripts": { | ||
@@ -23,12 +23,12 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "5.2.0", | ||
"@aws-sdk/core": "3.713.0", | ||
"@aws-sdk/middleware-host-header": "3.713.0", | ||
"@aws-sdk/middleware-logger": "3.713.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.713.0", | ||
"@aws-sdk/middleware-user-agent": "3.713.0", | ||
"@aws-sdk/region-config-resolver": "3.713.0", | ||
"@aws-sdk/types": "3.713.0", | ||
"@aws-sdk/util-endpoints": "3.713.0", | ||
"@aws-sdk/util-user-agent-browser": "3.713.0", | ||
"@aws-sdk/util-user-agent-node": "3.713.0", | ||
"@aws-sdk/core": "3.714.0", | ||
"@aws-sdk/middleware-host-header": "3.714.0", | ||
"@aws-sdk/middleware-logger": "3.714.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.714.0", | ||
"@aws-sdk/middleware-user-agent": "3.714.0", | ||
"@aws-sdk/region-config-resolver": "3.714.0", | ||
"@aws-sdk/types": "3.714.0", | ||
"@aws-sdk/util-endpoints": "3.714.0", | ||
"@aws-sdk/util-user-agent-browser": "3.714.0", | ||
"@aws-sdk/util-user-agent-node": "3.714.0", | ||
"@smithy/config-resolver": "^3.0.13", | ||
@@ -35,0 +35,0 @@ "@smithy/core": "^2.5.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203037
4088
+ Added@aws-sdk/core@3.714.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.714.0(transitive)
+ Added@aws-sdk/middleware-logger@3.714.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.714.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.714.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.714.0(transitive)
+ Added@aws-sdk/types@3.714.0(transitive)
+ Added@aws-sdk/util-endpoints@3.714.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.714.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.714.0(transitive)
- Removed@aws-sdk/core@3.713.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.713.0(transitive)
- Removed@aws-sdk/middleware-logger@3.713.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.713.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.713.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.713.0(transitive)
- Removed@aws-sdk/types@3.713.0(transitive)
- Removed@aws-sdk/util-endpoints@3.713.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.713.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.713.0(transitive)
Updated@aws-sdk/core@3.714.0
Updated@aws-sdk/types@3.714.0