@aws-sdk/token-providers
Advanced tools
Comparing version 3.709.0 to 3.713.0
@@ -106,5 +106,14 @@ "use strict"; | ||
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0); | ||
var fromSso = /* @__PURE__ */ __name((init = {}) => async () => { | ||
var _a; | ||
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso"); | ||
var fromSso = /* @__PURE__ */ __name((_init = {}) => async (awsIdentityProperties) => { | ||
var _a, _b, _c; | ||
const init = { | ||
..._init, | ||
...((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a.region) ? { | ||
parentClientConfig: { | ||
region: (_b = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _b.region, | ||
..._init.parentClientConfig | ||
} | ||
} : {} | ||
}; | ||
(_c = init.logger) == null ? void 0 : _c.debug("@aws-sdk/token-providers - fromSso"); | ||
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); | ||
@@ -111,0 +120,0 @@ const profileName = (0, import_shared_ini_file_loader.getProfileName)(init); |
@@ -9,3 +9,14 @@ import { TokenProviderError } from "@smithy/property-provider"; | ||
const lastRefreshAttemptTime = new Date(0); | ||
export const fromSso = (init = {}) => async () => { | ||
export const fromSso = (_init = {}) => async (awsIdentityProperties) => { | ||
const init = { | ||
..._init, | ||
...(awsIdentityProperties?.callerClientConfig?.region | ||
? { | ||
parentClientConfig: { | ||
region: awsIdentityProperties?.callerClientConfig?.region, | ||
..._init.parentClientConfig, | ||
}, | ||
} | ||
: {}), | ||
}; | ||
init.logger?.debug("@aws-sdk/token-providers - fromSso"); | ||
@@ -12,0 +23,0 @@ const profiles = await parseKnownFiles(init); |
@@ -1,2 +0,2 @@ | ||
import { CredentialProviderOptions, TokenIdentityProvider } from "@aws-sdk/types"; | ||
import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types"; | ||
import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; | ||
@@ -12,2 +12,2 @@ export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions { | ||
*/ | ||
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider; | ||
export declare const fromSso: (_init?: FromSsoInit) => RuntimeConfigIdentityProvider<TokenIdentity>; |
import { | ||
CredentialProviderOptions, | ||
TokenIdentityProvider, | ||
RuntimeConfigIdentityProvider, | ||
TokenIdentity, | ||
} from "@aws-sdk/types"; | ||
@@ -11,2 +12,4 @@ import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; | ||
} | ||
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider; | ||
export declare const fromSso: ( | ||
_init?: FromSsoInit | ||
) => RuntimeConfigIdentityProvider<TokenIdentity>; |
{ | ||
"name": "@aws-sdk/token-providers", | ||
"version": "3.709.0", | ||
"version": "3.713.0", | ||
"description": "A collection of token providers", | ||
@@ -30,3 +30,3 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.709.0", | ||
"@aws-sdk/types": "3.713.0", | ||
"@smithy/property-provider": "^3.1.11", | ||
@@ -46,3 +46,3 @@ "@smithy/shared-ini-file-loader": "^3.1.12", | ||
"peerDependencies": { | ||
"@aws-sdk/client-sso-oidc": "^3.709.0" | ||
"@aws-sdk/client-sso-oidc": "^3.713.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "types": "./dist-types/index.d.ts", |
36625
487
+ Added@aws-sdk/types@3.713.0(transitive)
- Removed@aws-sdk/types@3.709.0(transitive)
Updated@aws-sdk/types@3.713.0