@aws-sdk/client-cognito-identity-provider
Advanced tools
Comparing version 3.713.0 to 3.714.0
@@ -26,2 +26,3 @@ "use strict"; | ||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version); | ||
const profileConfig = { profile: config?.profile }; | ||
return { | ||
@@ -36,4 +37,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), | ||
@@ -44,10 +46,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; |
@@ -22,2 +22,3 @@ import packageInfo from "../package.json"; | ||
awsCheckVersion(process.version); | ||
const profileConfig = { profile: config?.profile }; | ||
return { | ||
@@ -32,4 +33,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), | ||
@@ -40,9 +42,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), | ||
}; | ||
}; |
@@ -211,2 +211,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 | ||
@@ -213,0 +231,0 @@ * @internal |
@@ -29,2 +29,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -31,0 +32,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -30,2 +30,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -32,0 +33,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -23,2 +23,3 @@ import { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient"; | ||
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 @@ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider; |
@@ -752,2 +752,3 @@ import { | ||
region?: string | __Provider<string>; | ||
profile?: string; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
@@ -754,0 +755,0 @@ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider; |
@@ -38,2 +38,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -40,0 +41,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -43,2 +43,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceId: string; | ||
profile?: string | undefined; | ||
logger: import("@smithy/types").Logger; | ||
@@ -45,0 +46,0 @@ extensions: import("./runtimeExtensions").RuntimeExtension[]; |
@@ -27,2 +27,3 @@ import { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient"; | ||
region: string | import("@smithy/types").Provider<any>; | ||
profile?: string | undefined; | ||
defaultUserAgentProvider: ( | ||
@@ -29,0 +30,0 @@ config?: |
{ | ||
"name": "@aws-sdk/client-cognito-identity-provider", | ||
"description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native", | ||
"version": "3.713.0", | ||
"version": "3.714.0", | ||
"scripts": { | ||
@@ -23,15 +23,15 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "5.2.0", | ||
"@aws-sdk/client-sso-oidc": "3.713.0", | ||
"@aws-sdk/client-sts": "3.713.0", | ||
"@aws-sdk/core": "3.713.0", | ||
"@aws-sdk/credential-provider-node": "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/client-sso-oidc": "3.714.0", | ||
"@aws-sdk/client-sts": "3.714.0", | ||
"@aws-sdk/core": "3.714.0", | ||
"@aws-sdk/credential-provider-node": "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", | ||
@@ -38,0 +38,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
2856686
60546
+ Added@aws-sdk/client-sso@3.714.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.714.0(transitive)
+ Added@aws-sdk/client-sts@3.714.0(transitive)
+ Added@aws-sdk/core@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-http@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.714.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@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/token-providers@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/client-sso@3.713.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.713.0(transitive)
- Removed@aws-sdk/client-sts@3.713.0(transitive)
- Removed@aws-sdk/core@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-http@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.713.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@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/token-providers@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/client-sts@3.714.0
Updated@aws-sdk/core@3.714.0
Updated@aws-sdk/types@3.714.0