@aws-sdk/credential-provider-cognito-identity
Advanced tools
Comparing version 0.1.0-preview.4 to 0.1.0-preview.5
@@ -1,3 +0,3 @@ | ||
import { Logins } from './Logins'; | ||
import { CognitoIdentityClient } from '@aws-sdk/client-cognito-identity-browser/CognitoIdentityClient'; | ||
import { Logins } from "./Logins"; | ||
import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity-browser/CognitoIdentityClient"; | ||
export interface CognitoProviderParameters { | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29nbml0b1Byb3ZpZGVyUGFyYW1ldGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9Db2duaXRvUHJvdmlkZXJQYXJhbWV0ZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMb2dpbnMgfSBmcm9tICcuL0xvZ2lucyc7XG5pbXBvcnQge1xuICAgIENvZ25pdG9JZGVudGl0eUNsaWVudCxcbn0gZnJvbSAnQGF3cy1zZGsvY2xpZW50LWNvZ25pdG8taWRlbnRpdHktYnJvd3Nlci9Db2duaXRvSWRlbnRpdHlDbGllbnQnO1xuXG5leHBvcnQgaW50ZXJmYWNlIENvZ25pdG9Qcm92aWRlclBhcmFtZXRlcnMge1xuICAgIC8qKlxuICAgICAqIFRoZSBTREsgY2xpZW50IHdpdGggd2hpY2ggdGhlIGNyZWRlbnRpYWwgcHJvdmlkZXIgd2lsbCBjb250YWN0IHRoZSBBbWF6b25cbiAgICAgKiBDb2duaXRvIHNlcnZpY2UuXG4gICAgICovXG4gICAgY2xpZW50OiBDb2duaXRvSWRlbnRpdHlDbGllbnQ7XG5cbiAgICAvKipcbiAgICAgKiBUaGUgQW1hem9uIFJlc291cmNlIE5hbWUgKEFSTikgb2YgdGhlIHJvbGUgdG8gYmUgYXNzdW1lZCB3aGVuIG11bHRpcGxlXG4gICAgICogcm9sZXMgd2VyZSByZWNlaXZlZCBpbiB0aGUgdG9rZW4gZnJvbSB0aGUgaWRlbnRpdHkgcHJvdmlkZXIuIEZvciBleGFtcGxlLFxuICAgICAqIGEgU0FNTC1iYXNlZCBpZGVudGl0eSBwcm92aWRlci4gVGhpcyBwYXJhbWV0ZXIgaXMgb3B0aW9uYWwgZm9yIGlkZW50aXR5XG4gICAgICogcHJvdmlkZXJzIHRoYXQgZG8gbm90IHN1cHBvcnQgcm9sZSBjdXN0b21pemF0aW9uLlxuICAgICAqL1xuICAgIGN1c3RvbVJvbGVBcm4/OiBzdHJpbmc7XG5cbiAgICAvKipcbiAgICAgKiBBIHNldCBvZiBrZXktdmFsdWUgcGFpcnMgdGhhdCBtYXAgZXh0ZXJuYWwgaWRlbnRpdHkgcHJvdmlkZXIgbmFtZXMgdG9cbiAgICAgKiBsb2dpbiB0b2tlbnMgb3IgZnVuY3Rpb25zIHRoYXQgcmV0dXJuIHByb21pc2VzIGZvciBsb2dpbiB0b2tlbnMuIFRoZVxuICAgICAqIGxhdHRlciBzaG91bGQgYmUgdXNlZCB3aGVuIGxvZ2luIHRva2VucyBtdXN0IGJlIHBlcmlvZGljYWxseSByZWZyZXNoZWQuXG4gICAgICpcbiAgICAgKiBMb2dpbnMgc2hvdWxkIG5vdCBiZSBzcGVjaWZpZWQgd2hlbiB0cnlpbmcgdG8gZ2V0IGNyZWRlbnRpYWxzIGZvciBhblxuICAgICAqIHVuYXV0aGVudGljYXRlZCBpZGVudGl0eS5cbiAgICAgKi9cbiAgICBsb2dpbnM/OiBMb2dpbnM7XG59XG4iXX0= | ||
//# sourceMappingURL=CognitoProviderParameters.js.map |
@@ -1,3 +0,3 @@ | ||
import { CognitoProviderParameters } from './CognitoProviderParameters'; | ||
import { CredentialProvider } from '@aws-sdk/types'; | ||
import { CognitoProviderParameters } from "./CognitoProviderParameters"; | ||
import { CredentialProvider } from "@aws-sdk/types"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Retrieves temporary AWS credentials using Amazon Cognito's |
@@ -43,3 +43,3 @@ "use strict"; | ||
sessionToken: SessionToken, | ||
expiration: Expiration ? protocol_timestamp_1.epoch(Expiration) : undefined, | ||
expiration: Expiration ? protocol_timestamp_1.epoch(Expiration) : undefined | ||
}]; | ||
@@ -52,10 +52,10 @@ } | ||
function throwOnMissingAccessKeyId() { | ||
throw new property_provider_1.ProviderError('Response from Amazon Cognito contained no access key ID'); | ||
throw new property_provider_1.ProviderError("Response from Amazon Cognito contained no access key ID"); | ||
} | ||
function throwOnMissingCredentials() { | ||
throw new property_provider_1.ProviderError('Response from Amazon Cognito contained no credentials'); | ||
throw new property_provider_1.ProviderError("Response from Amazon Cognito contained no credentials"); | ||
} | ||
function throwOnMissingSecretKey() { | ||
throw new property_provider_1.ProviderError('Response from Amazon Cognito contained no secret key'); | ||
throw new property_provider_1.ProviderError("Response from Amazon Cognito contained no secret key"); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUNvZ25pdG9JZGVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9mcm9tQ29nbml0b0lkZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLGlEQUFnRDtBQUNoRCxnRUFBMkQ7QUFDM0Qsa0VBQW9EO0FBQ3BELHVJQUU0RjtBQUc1Rjs7Ozs7R0FLRztBQUNILFNBQWdCLG1CQUFtQixDQUMvQixVQUF5QztJQUQ3QyxpQkEwQkM7SUF2QkcsT0FBTzs7Ozs7b0JBUU8sS0FBQSxDQUFBLEtBQUEsVUFBVSxDQUFDLE1BQU0sQ0FBQSxDQUFDLElBQUksQ0FBQTt5QkFBSyxtRUFBZ0M7O3dCQUNqRSxhQUFhLEVBQUUsVUFBVSxDQUFDLGFB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RlcnNcbik6IENyZWRlbnRpYWxQcm92aWRlciB7XG4gICAgcmV0dXJuIGFzeW5jICgpOiBQcm9taXNlPENyZWRlbnRpYWxzPiA9PiB7XG4gICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIENyZWRlbnRpYWxzOiB7XG4gICAgICAgICAgICAgICAgQWNjZXNzS2V5SWQgPSB0aHJvd09uTWlzc2luZ0FjY2Vzc0tleUlkKCksXG4gICAgICAgICAgICAgICAgRXhwaXJhdGlvbixcbiAgICAgICAgICAgICAgICBTZWNyZXRLZXkgPSB0aHJvd09uTWlzc2luZ1NlY3JldEtleSgpLFxuICAgICAgICAgICAgICAgIFNlc3Npb25Ub2tlbixcbiAgICAgICAgICAgIH0gPSB0aHJvd09uTWlzc2luZ0NyZWRlbnRpYWxzKClcbiAgICAgICAgfSA9IGF3YWl0IHBhcmFtZXRlcnMuY2xpZW50LnNlbmQobmV3IEdldENyZWRlbnRpYWxzRm9ySWRlbnRpdHlDb21tYW5kKHtcbiAgICAgICAgICAgIEN1c3RvbVJvbGVBcm46IHBhcmFtZXRlcnMuY3VzdG9tUm9sZUFybixcbiAgICAgICAgICAgIElkZW50aXR5SWQ6IHBhcmFtZXRlcnMuaWRlbnRpdHlJZCxcbiAgICAgICAgICAgIExvZ2luczogcGFyYW1ldGVycy5sb2dpbnNcbiAgICAgICAgICAgICAgICA/IGF3YWl0IHJlc29sdmVMb2dpbnMocGFyYW1ldGVycy5sb2dpbnMpXG4gICAgICAgICAgICAgICAgOiB1bmRlZmluZWQsXG4gICAgICAgIH0pKTtcblxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgYWNjZXNzS2V5SWQ6IEFjY2Vzc0tleUlkLFxuICAgICAgICAgICAgc2VjcmV0QWNjZXNzS2V5OiBTZWNyZXRLZXksXG4gICAgICAgICAgICBzZXNzaW9uVG9rZW46IFNlc3Npb25Ub2tlbixcbiAgICAgICAgICAgIGV4cGlyYXRpb246IEV4cGlyYXRpb24gPyBlcG9jaChFeHBpcmF0aW9uKSA6IHVuZGVmaW5lZCxcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZXhwb3J0IGludGVyZmFjZSBGcm9tQ29nbml0b0lkZW50aXR5UGFyYW1ldGVycyBleHRlbmRzXG4gICAgQ29nbml0b1Byb3ZpZGVyUGFyYW1ldGVyc1xue1xuICAgIC8qKlxuICAgICAqIFRoZSB1bmlxdWUgaWRlbnRpZmllciBmb3IgdGhlIGlkZW50aXR5IGFnYWluc3Qgd2hpY2ggY3JlZGVudGlhbHMgd2lsbCBiZVxuICAgICAqIGlzc3VlZC5cbiAgICAgKi9cbiAgICBpZGVudGl0eUlkOiBzdHJpbmc7XG59XG5cbmZ1bmN0aW9uIHRocm93T25NaXNzaW5nQWNjZXNzS2V5SWQoKTogbmV2ZXIge1xuICAgIHRocm93IG5ldyBQcm92aWRlckVycm9yKFxuICAgICAgICAnUmVzcG9uc2UgZnJvbSBBbWF6b24gQ29nbml0byBjb250YWluZWQgbm8gYWNjZXNzIGtleSBJRCdcbiAgICApO1xufVxuXG5mdW5jdGlvbiB0aHJvd09uTWlzc2luZ0NyZWRlbnRpYWxzKCk6IG5ldmVyIHtcbiAgICB0aHJvdyBuZXcgUHJvdmlkZXJFcnJvcihcbiAgICAgICAgJ1Jlc3BvbnNlIGZyb20gQW1hem9uIENvZ25pdG8gY29udGFpbmVkIG5vIGNyZWRlbnRpYWxzJ1xuICAgICk7XG59XG5cbmZ1bmN0aW9uIHRocm93T25NaXNzaW5nU2VjcmV0S2V5KCk6IG5ldmVyIHtcbiAgICB0aHJvdyBuZXcgUHJvdmlkZXJFcnJvcihcbiAgICAgICAgJ1Jlc3BvbnNlIGZyb20gQW1hem9uIENvZ25pdG8gY29udGFpbmVkIG5vIHNlY3JldCBrZXknXG4gICAgKTtcbn1cbiJdfQ== | ||
//# sourceMappingURL=fromCognitoIdentity.js.map |
@@ -1,4 +0,4 @@ | ||
import { CognitoProviderParameters } from './CognitoProviderParameters'; | ||
import { Storage } from './Storage'; | ||
import { CredentialProvider } from '@aws-sdk/types'; | ||
import { CognitoProviderParameters } from "./CognitoProviderParameters"; | ||
import { Storage } from "./Storage"; | ||
import { CredentialProvider } from "@aws-sdk/types"; | ||
/** | ||
@@ -12,3 +12,3 @@ * Retrieves or generates a unique identifier using Amazon Cognito's `GetId` | ||
*/ | ||
export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier, }: FromCognitoIdentityPoolParameters): CredentialProvider; | ||
export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier }: FromCognitoIdentityPoolParameters): CredentialProvider; | ||
export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters { | ||
@@ -15,0 +15,0 @@ /** |
@@ -20,3 +20,3 @@ "use strict"; | ||
var accountId = _a.accountId, _b = _a.cache, cache = _b === void 0 ? localStorage_1.localStorage() : _b, client = _a.client, customRoleArn = _a.customRoleArn, identityPoolId = _a.identityPoolId, logins = _a.logins, _c = _a.userIdentifier, userIdentifier = _c === void 0 ? !logins || Object.keys(logins).length === 0 | ||
? 'ANONYMOUS' | ||
? "ANONYMOUS" | ||
: undefined : _c; | ||
@@ -60,4 +60,3 @@ var cacheKey = userIdentifier | ||
if (cacheKey) { | ||
Promise.resolve(cache.setItem(cacheKey, identityId)) | ||
.catch(function () { }); | ||
Promise.resolve(cache.setItem(cacheKey, identityId)).catch(function () { }); | ||
} | ||
@@ -70,3 +69,3 @@ _h.label = 7; | ||
logins: logins, | ||
identityId: identityId, | ||
identityId: identityId | ||
}); | ||
@@ -77,16 +76,17 @@ return [2 /*return*/, provider()]; | ||
}); }; | ||
return function () { return provider() | ||
.catch(function (err) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
if (cacheKey) { | ||
Promise.resolve(cache.removeItem(cacheKey)).catch(function () { }); | ||
} | ||
throw err; | ||
}); | ||
}); }); }; | ||
return function () { | ||
return provider().catch(function (err) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
if (cacheKey) { | ||
Promise.resolve(cache.removeItem(cacheKey)).catch(function () { }); | ||
} | ||
throw err; | ||
}); | ||
}); }); | ||
}; | ||
} | ||
exports.fromCognitoIdentityPool = fromCognitoIdentityPool; | ||
function throwOnMissingId() { | ||
throw new property_provider_1.ProviderError('Response from Amazon Cognito contained no identity ID'); | ||
throw new property_provider_1.ProviderError("Response from Amazon Cognito contained no identity ID"); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUNvZ25pdG9JZGVudGl0eVBvb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZnJvbUNvZ25pdG9JZGVudGl0eVBvb2wudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsNkRBQTREO0FBQzVELCtDQUE4QztBQUM5QyxpREFBZ0Q7QUFFaEQsZ0VBQTJEO0FBQzNELCtGQUV3RTtBQUd4RTs7Ozs7OztHQU9HO0FBQ0gsU0FBZ0IsdUJBQXVCLENBQUMsRUFVSjtJQVZwQyxpQkFvREM7UUFuREcsd0JBQVMsRUFDVCxhQUFzQixFQUF0QiwwREFBc0IsRUFDdEIsa0JBQU0sRUFDTixnQ0FBYSxFQUNiLGtDQUFjLEVBQ2Qsa0JBQU0sRUFDTixzQkFFZSxFQUZmOzt3QkFFZTtJQUVmLElBQU0sUUFBUSxHQUFHLGNBQWM7UUFDM0IsQ0FBQyxDQUFDLHNDQUFvQyxjQUFjLFNBQUksY0FBZ0I7UUFDeEUsQ0FBQyxDQUFDLFNBQVMsQ0FBQztJQUVoQixJQUFJLFFBQVEsR0FBdUI7Ozs7O29CQUNkLEtBQUEsUUFBUSxDQUFBOzZCQUFSLHdCQUFRO29CQUFJLHFCQUFNLEtBQUssQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLE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yID0gYXN5bmMgKCkgPT4ge1xuICAgICAgICBsZXQgaWRlbnRpdHlJZCA9IGNhY2hlS2V5ICYmIGF3YWl0IGNhY2hlLmdldEl0ZW0oY2FjaGVLZXkpO1xuICAgICAgICBpZiAoIWlkZW50aXR5SWQpIHtcbiAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICBJZGVudGl0eUlkID0gdGhyb3dPbk1pc3NpbmdJZCgpLFxuICAgICAgICAgICAgfSA9IGF3YWl0IGNsaWVudC5zZW5kKG5ldyBHZXRJZENvbW1hbmQoe1xuICAgICAgICAgICAgICAgIEFjY291bnRJZDogYWNjb3VudElkLFxuICAgICAgICAgICAgICAgIElkZW50aXR5UG9vbElkOiBpZGVudGl0eVBvb2xJZCxcbiAgICAgICAgICAgICAgICBMb2dpbnM6IGxvZ2luc1xuICAgICAgICAgICAgICAgICAgICA/IGF3YWl0IHJlc29sdmVMb2dpbnMobG9naW5zKVxuICAgICAgICAgICAgICAgICAgICA6IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgIGlkZW50aXR5SWQgPSBJZGVudGl0eUlkO1xuICAgICAgICAgICAgaWYgKGNhY2hlS2V5KSB7XG4gICAgICAgICAgICAgICAgUHJvbWlzZS5yZXNvbHZlKGNhY2hlLnNldEl0ZW0oY2FjaGVLZXksIGlkZW50aXR5SWQpKVxuICAgICAgICAgICAgICAgICAgICAuY2F0Y2goKCkgPT4ge30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcHJvdmlkZXIgPSBmcm9tQ29nbml0b0lkZW50aXR5KHtcbiAgICAgICAgICAgIGNsaWVudCxcbiAgICAgICAgICAgIGN1c3RvbVJvbGVBcm4sXG4gICAgICAgICAgICBsb2dpbnMsXG4gICAgICAgICAgICBpZGVudGl0eUlkLFxuICAgICAgICB9KVxuXG4gICAgICAgIHJldHVybiBwcm92aWRlcigpO1xuICAgIH1cblxuICAgIHJldHVybiAo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ool.js.map |
@@ -1,5 +0,5 @@ | ||
export * from './CognitoProviderParameters'; | ||
export * from './fromCognitoIdentity'; | ||
export * from './fromCognitoIdentityPool'; | ||
export * from './Logins'; | ||
export * from './Storage'; | ||
export * from "./CognitoProviderParameters"; | ||
export * from "./fromCognitoIdentity"; | ||
export * from "./fromCognitoIdentityPool"; | ||
export * from "./Logins"; | ||
export * from "./Storage"; |
@@ -6,2 +6,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./fromCognitoIdentityPool"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsZ0VBQXNDO0FBQ3RDLG9FQUEwQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vQ29nbml0b1Byb3ZpZGVyUGFyYW1ldGVycyc7XG5leHBvcnQgKiBmcm9tICcuL2Zyb21Db2duaXRvSWRlbnRpdHknO1xuZXhwb3J0ICogZnJvbSAnLi9mcm9tQ29nbml0b0lkZW50aXR5UG9vbCc7XG5leHBvcnQgKiBmcm9tICcuL0xvZ2lucyc7XG5leHBvcnQgKiBmcm9tICcuL1N0b3JhZ2UnO1xuIl19 | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Storage } from './Storage'; | ||
import { Storage } from "./Storage"; | ||
export declare class IndexedDbStorage implements Storage { | ||
@@ -3,0 +3,0 @@ private readonly dbName; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var STORE_NAME = 'IdentityIds'; | ||
var STORE_NAME = "IdentityIds"; | ||
var IndexedDbStorage = /** @class */ (function () { | ||
function IndexedDbStorage(dbName) { | ||
if (dbName === void 0) { dbName = 'aws:cognito-identity-ids'; } | ||
if (dbName === void 0) { dbName = "aws:cognito-identity-ids"; } | ||
this.dbName = dbName; | ||
} | ||
IndexedDbStorage.prototype.getItem = function (key) { | ||
return this.withObjectStore('readonly', function (store) { | ||
return this.withObjectStore("readonly", function (store) { | ||
var req = store.get(key); | ||
@@ -16,7 +16,6 @@ return new Promise(function (resolve) { | ||
}); | ||
}) | ||
.catch(function () { return null; }); | ||
}).catch(function () { return null; }); | ||
}; | ||
IndexedDbStorage.prototype.removeItem = function (key) { | ||
return this.withObjectStore('readwrite', function (store) { | ||
return this.withObjectStore("readwrite", function (store) { | ||
var req = store.delete(key); | ||
@@ -30,3 +29,3 @@ return new Promise(function (resolve, reject) { | ||
IndexedDbStorage.prototype.setItem = function (id, value) { | ||
return this.withObjectStore('readwrite', function (store) { | ||
return this.withObjectStore("readwrite", function (store) { | ||
var req = store.put({ id: id, value: value }); | ||
@@ -49,3 +48,3 @@ return new Promise(function (resolve, reject) { | ||
openDbRequest.onblocked = function () { | ||
reject(new Error('Unable to access DB')); | ||
reject(new Error("Unable to access DB")); | ||
}; | ||
@@ -55,5 +54,5 @@ openDbRequest.onupgradeneeded = function (event) { | ||
db.onerror = function () { | ||
reject(new Error('Failed to create object store')); | ||
reject(new Error("Failed to create object store")); | ||
}; | ||
db.createObjectStore(STORE_NAME, { keyPath: 'id' }); | ||
db.createObjectStore(STORE_NAME, { keyPath: "id" }); | ||
}; | ||
@@ -69,4 +68,3 @@ }); | ||
resolve(action(tx.objectStore(STORE_NAME))); | ||
}) | ||
.catch(function (err) { | ||
}).catch(function (err) { | ||
db.close(); | ||
@@ -80,2 +78,2 @@ throw err; | ||
exports.IndexedDbStorage = IndexedDbStorage; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5kZXhlZERiU3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9JbmRleGVkRGJTdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7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bmx5Jywgc3RvcmUgPT4ge1xuICAgICAgICAgICAgY29uc3QgcmVxID0gc3RvcmUuZ2V0KGtleSk7XG5cbiAgICAgICAgICAgIHJldHVybiBuZXcgUHJvbWlzZTxzdHJpbmd8bnVsbD4ocmVzb2x2ZSA9PiB7XG4gICAgICAgICAgICAgICAgcmVxLm9uZXJyb3IgPSAoKSA9PiByZXNvbHZlKG51bGwpO1xuXG4gICAgICAgICAgICAgICAgcmVxLm9uc3VjY2VzcyA9ICgpID0+IHJlc29sdmUoXG4gICAgICAgICAgICAgICAgICAgIHJlcS5yZXN1bHQgPyByZXEucmVzdWx0LnZhbHVlIDogbnVsbFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaCgoKSA9PiBudWxsKTtcbiAgICB9XG5cbiAgICByZW1vdmVJdGVtKGtleTogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgICAgIHJldHVybiB0aGlzLndpdGhPYmplY3RTdG9yZSgncmVhZHdyaXRlJywgc3RvcmUgPT4ge1xuICAgICAgICAgICAgY29uc3QgcmVxID0gc3RvcmUuZGVsZXRlKGtleSk7XG5cbiAgICAgICAgICAgIHJldHVybiBuZXcgUHJvbWlzZTx2b2lkPigocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgICAgICAgcmVxLm9uZXJyb3IgPSAoKSA9PiByZWplY3QocmVxLmVycm9yKTtcblxuICAgICAgICAgICAgICAgIHJlcS5vbnN1Y2Nlc3MgPSAoKSA9PiByZXNvbHZlKCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgc2V0SXRlbShpZDogc3RyaW5nLCB2YWx1ZTogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgICAgIHJldHVybiB0aGlzLndpdGhPYmplY3RTdG9yZSgncmVhZHdyaXRlJywgc3RvcmUgPT4ge1xuICAgICAgICAgICAgY29uc3QgcmVxID0gc3RvcmUucHV0KHsgaWQsIHZhbHVlIH0pO1xuXG4gICAgICAgICAgICByZXR1cm4gbmV3IFByb21pc2U8dm9pZD4oKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgICAgIHJlcS5vbmVycm9yID0gKCkgPT4gcmVqZWN0KHJlcS5lcnJvcik7XG5cbiAgICAgICAgICAgICAgICByZXEub25zdWNjZXNzID0gKCkgPT4gcmVzb2x2ZSgpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0RGIoKTogUHJvbWlzZTxJREJEYXRhYmFzZT4ge1xuICAgICAgICBjb25zdCBvcGVuRGJSZXF1ZXN0ID0gc2VsZi5pbmRleGVkREIub3Blbih0aGlzLmRiTmFtZSwgMSk7XG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgICBvcGVuRGJSZXF1ZXN0Lm9uc3VjY2VzcyA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICByZXNvbHZlKG9wZW5EYlJlcXVlc3QucmVzdWx0KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgb3BlbkRiUmVxdWVzdC5vbmVycm9yID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgIHJlamVjdChvcGVuRGJSZXF1ZXN0LmVycm9yKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgb3BlbkRiUmVxdWVzdC5vbmJsb2NrZWQgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgcmVqZWN0KG5ldyBFcnJvcignVW5hYmxlIHRvIGFjY2VzcyBEQicpKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgb3BlbkRiUmVxdWVzdC5vbnVwZ3JhZGVuZWVkZWQgPSAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBkYiA9IG9wZW5EYlJlcXVlc3QucmVzdWx0O1xuICAgICAgICAgICAgICAgIGRiLm9uZXJyb3IgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJlamVjdChuZXcgRXJyb3IoJ0ZhaWxlZCB0byBjcmVhdGUgb2JqZWN0IHN0b3JlJykpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGRiLmNyZWF0ZU9iamVjdFN0b3JlKFNUT1JFX05BTUUsIHtrZXlQYXRoOiAnaWQnfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgd2l0aE9iamVjdFN0b3JlPFI+KFxuICAgICAgICBtb2RlOiBJREJUcmFuc2FjdGlvbk1vZGUsXG4gICAgICAgIGFjdGlvbjogKHN0b3JlOiBJREJPYmplY3RTdG9yZSkgPT4gUHJvbWlzZTxSPlxuICAgICk6IFByb21pc2U8Uj4ge1xuICAgICAgICByZXR1cm4gdGhpcy5nZXREYigpLnRoZW4oZGIgPT4ge1xuICAgICAgICAgICAgY29uc3QgdHggPSBkYi50cmFuc2FjdGlvbihTVE9SRV9OQU1FLCBtb2RlKTtcbiAgICAgICAgICAgIHR4Lm9uY29tcGxldGUgPSAoKSA9PiBkYi5jbG9zZSgpO1xuXG4gICAgICAgICAgICByZXR1cm4gbmV3IFByb21pc2U8Uj4oKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgICAgIHR4Lm9uZXJyb3IgPSAoKSA9PiByZWplY3QodHguZXJyb3IpO1xuXG4gICAgICAgICAgICAgICAgcmVzb2x2ZShhY3Rpb24odHgub2JqZWN0U3RvcmUoU1RPUkVfTkFNRSkpKTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGRiLmNsb3NlKCk7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IGVycjtcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0= | ||
//# sourceMappingURL=IndexedDbStorage.js.map |
@@ -1,2 +0,2 @@ | ||
import { Storage } from './Storage'; | ||
import { Storage } from "./Storage"; | ||
export declare class InMemoryStorage implements Storage { | ||
@@ -3,0 +3,0 @@ private store; |
@@ -23,2 +23,2 @@ "use strict"; | ||
exports.InMemoryStorage = InMemoryStorage; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5NZW1vcnlTdG9yYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0luTWVtb3J5U3RvcmFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBO0lBQ0kseUJBQ1ksS0FBbUM7UUFBbkMsc0JBQUEsRUFBQSxVQUFtQztRQUFuQyxVQUFLLEdBQUwsS0FBSyxDQUE4QjtJQUM1QyxDQUFDO0lBRUosaUNBQU8sR0FBUCxVQUFRLEdBQVc7UUFDZixJQUFJLEdBQUcsSUFBSSxJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ25CLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUMxQjtRQUVELE9BQU8sSUFBSSxDQUFDO0lBQ2hCLENBQUM7SUFFRCxvQ0FBVSxHQUFWLFVBQVcsR0FBVztRQUNsQixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDM0IsQ0FBQztJQUVELGlDQUFPLEdBQVAsVUFBUSxHQUFXLEVBQUUsS0FBYTtRQUM5QixJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEtBQUssQ0FBQztJQUM1QixDQUFDO0lBQ0wsc0JBQUM7QUFBRCxDQUFDLEFBcEJELElBb0JDO0FBcEJZLDBDQUFlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3RvcmFnZSB9IGZyb20gJy4vU3RvcmFnZSc7XG5cbmV4cG9ydCBjbGFzcyBJbk1lbW9yeVN0b3JhZ2UgaW1wbGVtZW50cyBTdG9yYWdlIHtcbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHJpdmF0ZSBzdG9yZToge1trZXk6IHN0cmluZ106IHN0cmluZ30gPSB7fVxuICAgICkge31cblxuICAgIGdldEl0ZW0oa2V5OiBzdHJpbmcpOiBzdHJpbmd8bnVsbCB7XG4gICAgICAgIGlmIChrZXkgaW4gdGhpcy5zdG9yZSkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuc3RvcmVba2V5XTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHJlbW92ZUl0ZW0oa2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgZGVsZXRlIHRoaXMuc3RvcmVba2V5XTtcbiAgICB9XG5cbiAgICBzZXRJdGVtKGtleTogc3RyaW5nLCB2YWx1ZTogc3RyaW5nKTogdm9pZCB7XG4gICAgICAgIHRoaXMuc3RvcmVba2V5XSA9IHZhbHVlO1xuICAgIH1cbn1cbiJdfQ== | ||
//# sourceMappingURL=InMemoryStorage.js.map |
@@ -1,2 +0,2 @@ | ||
import { Storage } from './Storage'; | ||
import { Storage } from "./Storage"; | ||
export declare function localStorage(): Storage; |
@@ -7,6 +7,6 @@ "use strict"; | ||
function localStorage() { | ||
if (typeof self === 'object' && self.indexedDB) { | ||
return new IndexedDbStorage_1.IndexedDbStorage; | ||
if (typeof self === "object" && self.indexedDB) { | ||
return new IndexedDbStorage_1.IndexedDbStorage(); | ||
} | ||
if (typeof window === 'object' && window.localStorage) { | ||
if (typeof window === "object" && window.localStorage) { | ||
return window.localStorage; | ||
@@ -17,2 +17,2 @@ } | ||
exports.localStorage = localStorage; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxTd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AmJiB3aW5kb3cubG9jYWxTdG9yYWdlKSB7XG4gICAgICAgIHJldHVybiB3aW5kb3cubG9jYWxTdG9yYWdlO1xuICAgIH1cblxuICAgIHJldHVybiBpbk1lbW9yeVN0b3JhZ2U7XG59XG4iXX0= | ||
//# sourceMappingURL=localStorage.js.map |
@@ -1,2 +0,2 @@ | ||
import { Provider } from '@aws-sdk/types'; | ||
import { Provider } from "@aws-sdk/types"; | ||
export interface Logins { | ||
@@ -3,0 +3,0 @@ [providerName: string]: string | Provider<string>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9naW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0xvZ2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUHJvdmlkZXIgfSBmcm9tICdAYXdzLXNkay90eXBlcyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9naW5zIHtcbiAgICBbcHJvdmlkZXJOYW1lOiBzdHJpbmddOiBzdHJpbmd8UHJvdmlkZXI8c3RyaW5nPjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSZXNvbHZlZExvZ2lucyB7XG4gICAgW3Byb3ZpZGVyTmFtZTogc3RyaW5nXTogc3RyaW5nO1xufVxuIl19 | ||
//# sourceMappingURL=Logins.js.map |
@@ -1,2 +0,2 @@ | ||
import { Logins, ResolvedLogins } from './Logins'; | ||
import { Logins, ResolvedLogins } from "./Logins"; | ||
/** | ||
@@ -3,0 +3,0 @@ * @internal |
@@ -10,17 +10,18 @@ "use strict"; | ||
var tokenOrProvider = logins[name]; | ||
if (typeof tokenOrProvider === 'string') { | ||
if (typeof tokenOrProvider === "string") { | ||
arr.push([name, tokenOrProvider]); | ||
} | ||
else { | ||
arr.push(tokenOrProvider() | ||
.then(function (token) { return [name, token]; })); | ||
arr.push(tokenOrProvider().then(function (token) { return [name, token]; })); | ||
} | ||
return arr; | ||
}, [])).then(function (resolvedPairs) { return resolvedPairs.reduce(function (logins, _a) { | ||
var _b = tslib_1.__read(_a, 2), key = _b[0], value = _b[1]; | ||
logins[key] = value; | ||
return logins; | ||
}, {}); }); | ||
}, [])).then(function (resolvedPairs) { | ||
return resolvedPairs.reduce(function (logins, _a) { | ||
var _b = tslib_1.__read(_a, 2), key = _b[0], value = _b[1]; | ||
logins[key] = value; | ||
return logins; | ||
}, {}); | ||
}); | ||
} | ||
exports.resolveLogins = resolveLogins; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZUxvZ2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXNvbHZlTG9naW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBOztHQUVHO0FBQ0gsU0FBZ0IsYUFBYSxDQUN6QixNQUFjO0lBRWQsT0FBTyxPQUFPLENBQUMsR0FBRyxDQUNkLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsTUFBTSxDQUN0QixVQUFDLEdBQXNELEVBQUUsSUFBWTtRQUNqRSxJQUFNLGVBQWUsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDckMsSUFBSSxPQUFPLGVBQWUsS0FBSyxRQUFRLEVBQUU7WUFDckMsR0FBRyxDQUFDLElBQUksQ0FDSixDQUFDLElBQUksRUFBRSxlQUFlLENBQXFCLENBQzlDLENBQUM7U0FDTDthQUFNO1lBQ0gsR0FBRyxDQUFDLElBQUksQ0FDSixlQUFlLEVBQUU7aUJBQ1osSUFBSSxDQUFDLFVBQUEsS0FBSyxJQUFJLE9BQUEsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFxQixFQUFqQyxDQUFpQyxDQUFDLENBQ3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IHRva2VuT3JQcm92aWRlcl0gYXMgW3N0cmluZywgc3RyaW5nXVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGFyci5wdXNoKFxuICAgICAgICAgICAgICAgICAgICAgICAgdG9rZW5PclByb3ZpZGVyKClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbih0b2tlbiA9PiBbbmFtZSwgdG9rZW5dIGFzIFtzdHJpbmcsIHN0cmluZ10pXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBhcnI7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW10gYXMgQXJyYXk8UHJvbWlzZTxbc3RyaW5nLCBzdHJpbmddPj5cbiAgICAgICAgKVxuICAgICkudGhlbihyZXNvbHZlZFBhaXJzID0+IHJlc29sdmVkUGFpcnMucmVkdWNlKFxuICAgICAgICAobG9naW5zOiBSZXNvbHZlZExvZ2lucywgW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgICBsb2dpbnNba2V5XSA9IHZhbHVlO1xuICAgICAgICAgICAgcmV0dXJuIGxvZ2lucztcbiAgICAgICAgfSxcbiAgICAgICAge30gYXMgUmVzb2x2ZWRMb2dpbnNcbiAgICApKVxufVxuIl19 | ||
//# sourceMappingURL=resolveLogins.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9TdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgc3Vic2V0IG9mIHRoZSBTdG9yYWdlIGludGVyZmFjZSBkZWZpbmVkIGluIHRoZSBXSEFUV0cgSFRNTCBzcGVjaWZpY2F0aW9uLlxuICogQWNjZXNzIGJ5IGluZGV4IGlzIG5vdCBzdXBwb3J0ZWQsIGFzIGl0IGNhbm5vdCBiZSByZXBsaWNhdGVkIHdpdGhvdXQgUHJveHlcbiAqIG9iamVjdHMuXG4gKlxuICogVGhlIGludGVyZmFjZSBoYXMgYmVlbiBhdWdtZW50ZWQgdG8gc3VwcG9ydCBhc3luY2hyb25vdXMgc3RvcmFnZVxuICpcbiAqIEBzZWUgaHR0cHM6Ly9odG1sLnNwZWMud2hhdHdnLm9yZy9tdWx0aXBhZ2Uvd2Vic3RvcmFnZS5odG1sI3RoZS1zdG9yYWdlLWludGVyZmFjZVxuICovXG5leHBvcnQgaW50ZXJmYWNlIFN0b3JhZ2Uge1xuICAgIGdldEl0ZW0oa2V5OiBzdHJpbmcpOiBzdHJpbmd8bnVsbHxQcm9taXNlPHN0cmluZ3xudWxsPjtcbiAgICByZW1vdmVJdGVtKGtleTogc3RyaW5nKTogdm9pZHxQcm9taXNlPHZvaWQ+O1xuICAgIHNldEl0ZW0oa2V5OiBzdHJpbmcsIGRhdGE6IHN0cmluZyk6IHZvaWR8UHJvbWlzZTx2b2lkPjtcbn1cbiJdfQ== | ||
//# sourceMappingURL=Storage.js.map |
@@ -6,12 +6,24 @@ # Change Log | ||
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.3...@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.4) (2019-04-19) | ||
# [0.1.0-preview.5](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.3...@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.5) (2019-07-12) | ||
**Note:** Version bump only for package @aws-sdk/credential-provider-cognito-identity | ||
### Features | ||
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c)) | ||
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab)) | ||
# 0.1.0 (2019-04-19) | ||
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.3...@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.4) (2019-04-19) | ||
**Note:** Version bump only for package @aws-sdk/credential-provider-cognito-identity | ||
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.2...@aws-sdk/credential-provider-cognito-identity@0.1.0-preview.3) (2019-03-27) | ||
**Note:** Version bump only for package @aws-sdk/credential-provider-cognito-identity |
{ | ||
"name": "@aws-sdk/credential-provider-cognito-identity", | ||
"version": "0.1.0-preview.4", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"main": "./build/index.js", | ||
"types": "./build/index.d.ts", | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "aws-sdk-js@amazon.com", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/client-cognito-identity-browser": "^0.1.0-preview.4", | ||
"@aws-sdk/property-provider": "^0.1.0-preview.3", | ||
"@aws-sdk/protocol-timestamp": "^0.1.0-preview.3", | ||
"@aws-sdk/types": "^0.1.0-preview.3", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^21", | ||
"jest": "^21", | ||
"typescript": "^3.0.0" | ||
} | ||
"name": "@aws-sdk/credential-provider-cognito-identity", | ||
"version": "0.1.0-preview.5", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"main": "./build/index.js", | ||
"types": "./build/index.d.ts", | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/client-cognito-identity-browser": "^0.1.0-preview.5", | ||
"@aws-sdk/property-provider": "^0.1.0-preview.4", | ||
"@aws-sdk/protocol-timestamp": "^0.1.0-preview.4", | ||
"@aws-sdk/types": "^0.1.0-preview.4", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.12", | ||
"jest": "^24.7.1", | ||
"typescript": "~3.4.0" | ||
} | ||
} |
@@ -1,1 +0,4 @@ | ||
# credential-provider-cognito-identity | ||
# @aws-sdk/credential-provider-cognito-identity | ||
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-cognito-identity/preview.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-cognito-identity) | ||
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-cognito-identity.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-cognito-identity) |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": true, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": [ | ||
"dom", | ||
"es5", | ||
"es2015.promise", | ||
"es2015.collection", | ||
"es2015.iterable", | ||
"es2015.symbol.wellknown" | ||
], | ||
"rootDir": "./src", | ||
"outDir": "./build" | ||
} | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"strict": true, | ||
"sourceMap": true, | ||
"downlevelIteration": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": [ | ||
"dom", | ||
"es5", | ||
"es2015.promise", | ||
"es2015.collection", | ||
"es2015.iterable", | ||
"es2015.symbol.wellknown" | ||
], | ||
"rootDir": "./src", | ||
"outDir": "./build" | ||
} | ||
} |
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
36
456
5
41091