@aws-sdk/credential-provider-cognito-identity
Advanced tools
Comparing version 3.721.0 to 3.723.0
@@ -74,9 +74,5 @@ "use strict"; | ||
return async (awsIdentityProperties) => { | ||
var _a; | ||
(_a = parameters.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); | ||
parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); | ||
const { GetCredentialsForIdentityCommand: GetCredentialsForIdentityCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports)); | ||
const fromConfigs = /* @__PURE__ */ __name((property) => { | ||
var _a2, _b, _c; | ||
return ((_a2 = parameters.clientConfig) == null ? void 0 : _a2[property]) ?? ((_b = parameters.parentClientConfig) == null ? void 0 : _b[property]) ?? ((_c = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _c[property]); | ||
}, "fromConfigs"); | ||
const fromConfigs = /* @__PURE__ */ __name((property) => parameters.clientConfig?.[property] ?? parameters.parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property], "fromConfigs"); | ||
const { | ||
@@ -129,6 +125,9 @@ Credentials: { | ||
var STORE_NAME = "IdentityIds"; | ||
var _IndexedDbStorage = class _IndexedDbStorage { | ||
var IndexedDbStorage = class { | ||
constructor(dbName = "aws:cognito-identity-ids") { | ||
this.dbName = dbName; | ||
} | ||
static { | ||
__name(this, "IndexedDbStorage"); | ||
} | ||
getItem(key) { | ||
@@ -196,10 +195,11 @@ return this.withObjectStore("readonly", (store) => { | ||
}; | ||
__name(_IndexedDbStorage, "IndexedDbStorage"); | ||
var IndexedDbStorage = _IndexedDbStorage; | ||
// src/InMemoryStorage.ts | ||
var _InMemoryStorage = class _InMemoryStorage { | ||
var InMemoryStorage = class { | ||
constructor(store = {}) { | ||
this.store = store; | ||
} | ||
static { | ||
__name(this, "InMemoryStorage"); | ||
} | ||
getItem(key) { | ||
@@ -218,4 +218,2 @@ if (key in this.store) { | ||
}; | ||
__name(_InMemoryStorage, "InMemoryStorage"); | ||
var InMemoryStorage = _InMemoryStorage; | ||
@@ -248,10 +246,7 @@ // src/localStorage.ts | ||
}) { | ||
logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); | ||
logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); | ||
const cacheKey = userIdentifier ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` : void 0; | ||
let provider = /* @__PURE__ */ __name(async (awsIdentityProperties) => { | ||
const { GetIdCommand: GetIdCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports)); | ||
const fromConfigs = /* @__PURE__ */ __name((property) => { | ||
var _a; | ||
return (clientConfig == null ? void 0 : clientConfig[property]) ?? (parentClientConfig == null ? void 0 : parentClientConfig[property]) ?? ((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a[property]); | ||
}, "fromConfigs"); | ||
const fromConfigs = /* @__PURE__ */ __name((property) => clientConfig?.[property] ?? parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property], "fromConfigs"); | ||
const _client = client ?? new CognitoIdentityClient2( | ||
@@ -258,0 +253,0 @@ Object.assign({}, clientConfig ?? {}, { |
const STORE_NAME = "IdentityIds"; | ||
export class IndexedDbStorage { | ||
dbName; | ||
constructor(dbName = "aws:cognito-identity-ids") { | ||
@@ -4,0 +5,0 @@ this.dbName = dbName; |
export class InMemoryStorage { | ||
store; | ||
constructor(store = {}) { | ||
@@ -3,0 +4,0 @@ this.store = store; |
{ | ||
"name": "@aws-sdk/credential-provider-cognito-identity", | ||
"version": "3.721.0", | ||
"version": "3.723.0", | ||
"scripts": { | ||
@@ -27,10 +27,10 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@aws-sdk/client-cognito-identity": "3.721.0", | ||
"@aws-sdk/types": "3.714.0", | ||
"@smithy/property-provider": "^3.1.11", | ||
"@smithy/types": "^3.7.2", | ||
"@aws-sdk/client-cognito-identity": "3.723.0", | ||
"@aws-sdk/types": "3.723.0", | ||
"@smithy/property-provider": "^4.0.0", | ||
"@smithy/types": "^4.0.0", | ||
"tslib": "^2.6.2" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -58,4 +58,4 @@ "typesVersions": { | ||
"rimraf": "3.0.2", | ||
"typescript": "~4.9.5" | ||
"typescript": "~5.2.2" | ||
} | ||
} |
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
42957
789
+ Added@aws-sdk/client-cognito-identity@3.723.0(transitive)
+ Added@aws-sdk/client-sso@3.723.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.723.0(transitive)
+ Added@aws-sdk/client-sts@3.723.0(transitive)
+ Added@aws-sdk/core@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-http@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.723.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.723.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.723.0(transitive)
+ Added@aws-sdk/middleware-logger@3.723.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.723.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.723.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.723.0(transitive)
+ Added@aws-sdk/token-providers@3.723.0(transitive)
+ Added@aws-sdk/types@3.723.0(transitive)
+ Added@aws-sdk/util-endpoints@3.723.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.723.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.723.0(transitive)
+ Added@smithy/abort-controller@4.0.0(transitive)
+ Added@smithy/config-resolver@4.0.0(transitive)
+ Added@smithy/core@3.0.0(transitive)
+ Added@smithy/credential-provider-imds@4.0.0(transitive)
+ Added@smithy/fetch-http-handler@5.0.0(transitive)
+ Added@smithy/hash-node@4.0.0(transitive)
+ Added@smithy/invalid-dependency@4.0.0(transitive)
+ Added@smithy/is-array-buffer@4.0.0(transitive)
+ Added@smithy/middleware-content-length@4.0.0(transitive)
+ Added@smithy/middleware-endpoint@4.0.0(transitive)
+ Added@smithy/middleware-retry@4.0.0(transitive)
+ Added@smithy/middleware-serde@4.0.0(transitive)
+ Added@smithy/middleware-stack@4.0.0(transitive)
+ Added@smithy/node-config-provider@4.0.0(transitive)
+ Added@smithy/node-http-handler@4.0.0(transitive)
+ Added@smithy/property-provider@4.0.0(transitive)
+ Added@smithy/protocol-http@5.0.0(transitive)
+ Added@smithy/querystring-builder@4.0.0(transitive)
+ Added@smithy/querystring-parser@4.0.0(transitive)
+ Added@smithy/service-error-classification@4.0.0(transitive)
+ Added@smithy/shared-ini-file-loader@4.0.0(transitive)
+ Added@smithy/signature-v4@5.0.0(transitive)
+ Added@smithy/smithy-client@4.0.0(transitive)
+ Added@smithy/types@4.0.0(transitive)
+ Added@smithy/url-parser@4.0.0(transitive)
+ Added@smithy/util-base64@4.0.0(transitive)
+ Added@smithy/util-body-length-browser@4.0.0(transitive)
+ Added@smithy/util-body-length-node@4.0.0(transitive)
+ Added@smithy/util-buffer-from@4.0.0(transitive)
+ Added@smithy/util-config-provider@4.0.0(transitive)
+ Added@smithy/util-defaults-mode-browser@4.0.0(transitive)
+ Added@smithy/util-defaults-mode-node@4.0.0(transitive)
+ Added@smithy/util-endpoints@3.0.0(transitive)
+ Added@smithy/util-hex-encoding@4.0.0(transitive)
+ Added@smithy/util-middleware@4.0.0(transitive)
+ Added@smithy/util-retry@4.0.0(transitive)
+ Added@smithy/util-stream@4.0.0(transitive)
+ Added@smithy/util-uri-escape@4.0.0(transitive)
+ Added@smithy/util-utf8@4.0.0(transitive)
- Removed@aws-sdk/client-cognito-identity@3.721.0(transitive)
- Removed@aws-sdk/client-sso@3.721.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.721.0(transitive)
- Removed@aws-sdk/client-sts@3.721.0(transitive)
- Removed@aws-sdk/core@3.716.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.716.0(transitive)
- Removed@aws-sdk/credential-provider-http@3.716.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.721.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.721.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.716.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.721.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.716.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.714.0(transitive)
- Removed@aws-sdk/middleware-logger@3.714.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.714.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.721.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.714.0(transitive)
- Removed@aws-sdk/token-providers@3.721.0(transitive)
- Removed@aws-sdk/types@3.714.0(transitive)
- Removed@aws-sdk/util-endpoints@3.714.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.714.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.721.0(transitive)
- Removed@smithy/abort-controller@3.1.9(transitive)
- Removed@smithy/config-resolver@3.0.13(transitive)
- Removed@smithy/core@2.5.7(transitive)
- Removed@smithy/credential-provider-imds@3.2.8(transitive)
- Removed@smithy/fetch-http-handler@4.1.3(transitive)
- Removed@smithy/hash-node@3.0.11(transitive)
- Removed@smithy/invalid-dependency@3.0.11(transitive)
- Removed@smithy/is-array-buffer@3.0.0(transitive)
- Removed@smithy/middleware-content-length@3.0.13(transitive)
- Removed@smithy/middleware-endpoint@3.2.8(transitive)
- Removed@smithy/middleware-retry@3.0.34(transitive)
- Removed@smithy/middleware-serde@3.0.11(transitive)
- Removed@smithy/middleware-stack@3.0.11(transitive)
- Removed@smithy/node-config-provider@3.1.12(transitive)
- Removed@smithy/node-http-handler@3.3.3(transitive)
- Removed@smithy/property-provider@3.1.11(transitive)
- Removed@smithy/protocol-http@4.1.8(transitive)
- Removed@smithy/querystring-builder@3.0.11(transitive)
- Removed@smithy/querystring-parser@3.0.11(transitive)
- Removed@smithy/service-error-classification@3.0.11(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.12(transitive)
- Removed@smithy/signature-v4@4.2.4(transitive)
- Removed@smithy/smithy-client@3.7.0(transitive)
- Removed@smithy/types@3.7.2(transitive)
- Removed@smithy/url-parser@3.0.11(transitive)
- Removed@smithy/util-base64@3.0.0(transitive)
- Removed@smithy/util-body-length-browser@3.0.0(transitive)
- Removed@smithy/util-body-length-node@3.0.0(transitive)
- Removed@smithy/util-buffer-from@3.0.0(transitive)
- Removed@smithy/util-config-provider@3.0.0(transitive)
- Removed@smithy/util-defaults-mode-browser@3.0.34(transitive)
- Removed@smithy/util-defaults-mode-node@3.0.34(transitive)
- Removed@smithy/util-endpoints@2.1.7(transitive)
- Removed@smithy/util-hex-encoding@3.0.0(transitive)
- Removed@smithy/util-middleware@3.0.11(transitive)
- Removed@smithy/util-retry@3.0.11(transitive)
- Removed@smithy/util-stream@3.3.4(transitive)
- Removed@smithy/util-uri-escape@3.0.0(transitive)
- Removed@smithy/util-utf8@3.0.0(transitive)
Updated@aws-sdk/types@3.723.0
Updated@smithy/types@^4.0.0