Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/credential-provider-cognito-identity

Package Overview
Dependencies
Maintainers
5
Versions
441
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-cognito-identity - npm Package Compare versions

Comparing version 3.721.0 to 3.723.0

29

dist-cjs/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc