@aws-amplify/core 6.0.1-console-preview.f7f118b.0 → 6.0.1-console-preview.5a31ca1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const version = "6.0.1-console-preview.f7f118b.0+f7f118b";
1
+ export declare const version = "6.0.1-console-preview.5a31ca1.0+5a31ca1";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '6.0.1-console-preview.f7f118b.0+f7f118b';
5
+ exports.version = '6.0.1-console-preview.5a31ca1.0+5a31ca1';
@@ -48,9 +48,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
49
  }
50
50
  };
51
+ var __importDefault = (this && this.__importDefault) || function (mod) {
52
+ return (mod && mod.__esModule) ? mod : { "default": mod };
53
+ };
51
54
  Object.defineProperty(exports, "__esModule", { value: true });
52
55
  exports.CookieStorage = void 0;
53
- var js_cookie_1 = require("js-cookie");
56
+ var js_cookie_1 = __importDefault(require("js-cookie"));
54
57
  var CookieStorage = /** @class */ (function () {
55
58
  function CookieStorage(data) {
56
59
  if (data === void 0) { data = {}; }
@@ -72,7 +75,7 @@ var CookieStorage = /** @class */ (function () {
72
75
  CookieStorage.prototype.setItem = function (key, value) {
73
76
  return __awaiter(this, void 0, void 0, function () {
74
77
  return __generator(this, function (_a) {
75
- (0, js_cookie_1.set)(key, value, this.getData());
78
+ js_cookie_1.default.set(key, value, this.getData());
76
79
  return [2 /*return*/];
77
80
  });
78
81
  });
@@ -81,7 +84,7 @@ var CookieStorage = /** @class */ (function () {
81
84
  return __awaiter(this, void 0, void 0, function () {
82
85
  var item;
83
86
  return __generator(this, function (_a) {
84
- item = (0, js_cookie_1.get)(key);
87
+ item = js_cookie_1.default.get(key);
85
88
  return [2 /*return*/, item !== null && item !== void 0 ? item : null];
86
89
  });
87
90
  });
@@ -89,7 +92,7 @@ var CookieStorage = /** @class */ (function () {
89
92
  CookieStorage.prototype.removeItem = function (key) {
90
93
  return __awaiter(this, void 0, void 0, function () {
91
94
  return __generator(this, function (_a) {
92
- (0, js_cookie_1.remove)(key, this.getData());
95
+ js_cookie_1.default.remove(key, this.getData());
93
96
  return [2 /*return*/];
94
97
  });
95
98
  });
@@ -101,7 +104,7 @@ var CookieStorage = /** @class */ (function () {
101
104
  return __generator(this, function (_a) {
102
105
  switch (_a.label) {
103
106
  case 0:
104
- cookie = (0, js_cookie_1.get)();
107
+ cookie = js_cookie_1.default.get();
105
108
  promises = Object.keys(cookie).map(function (key) { return _this.removeItem(key); });
106
109
  return [4 /*yield*/, Promise.all(promises)];
107
110
  case 1: