@liquid-state/iwa-cognito-identity
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -71,10 +71,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.sync = function () { return __awaiter(_this, void 0, void 0, function () { | ||
var _a; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
var cache, e_1; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a = this; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.store.fetch(this.storeKey)]; | ||
case 1: | ||
_a.cache = _b.sent(); | ||
cache = _a.sent(); | ||
return [3 /*break*/, 3]; | ||
case 2: | ||
e_1 = _a.sent(); | ||
return [3 /*break*/, 3]; | ||
case 3: | ||
// Default if cache errors, or returns null. | ||
if (!cache) { | ||
cache = {}; | ||
} | ||
this.cache = cache; | ||
return [2 /*return*/]; | ||
@@ -81,0 +91,0 @@ } |
{ | ||
"name": "@liquid-state/iwa-cognito-identity", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
57132
830