@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";
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export var version = '6.0.1-console-preview.f7f118b.0+f7f118b';
2
+ export var version = '6.0.1-console-preview.5a31ca1.0+5a31ca1';
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
48
  }
49
49
  };
50
- import { get as getJsCookie, remove as removeJsCookie, set as setJsCookie, } from 'js-cookie';
50
+ import JsCookie from 'js-cookie';
51
51
  var CookieStorage = /** @class */ (function () {
52
52
  function CookieStorage(data) {
53
53
  if (data === void 0) { data = {}; }
@@ -69,7 +69,7 @@ var CookieStorage = /** @class */ (function () {
69
69
  CookieStorage.prototype.setItem = function (key, value) {
70
70
  return __awaiter(this, void 0, void 0, function () {
71
71
  return __generator(this, function (_a) {
72
- setJsCookie(key, value, this.getData());
72
+ JsCookie.set(key, value, this.getData());
73
73
  return [2 /*return*/];
74
74
  });
75
75
  });
@@ -78,7 +78,7 @@ var CookieStorage = /** @class */ (function () {
78
78
  return __awaiter(this, void 0, void 0, function () {
79
79
  var item;
80
80
  return __generator(this, function (_a) {
81
- item = getJsCookie(key);
81
+ item = JsCookie.get(key);
82
82
  return [2 /*return*/, item !== null && item !== void 0 ? item : null];
83
83
  });
84
84
  });
@@ -86,7 +86,7 @@ var CookieStorage = /** @class */ (function () {
86
86
  CookieStorage.prototype.removeItem = function (key) {
87
87
  return __awaiter(this, void 0, void 0, function () {
88
88
  return __generator(this, function (_a) {
89
- removeJsCookie(key, this.getData());
89
+ JsCookie.remove(key, this.getData());
90
90
  return [2 /*return*/];
91
91
  });
92
92
  });
@@ -98,7 +98,7 @@ var CookieStorage = /** @class */ (function () {
98
98
  return __generator(this, function (_a) {
99
99
  switch (_a.label) {
100
100
  case 0:
101
- cookie = getJsCookie();
101
+ cookie = JsCookie.get();
102
102
  promises = Object.keys(cookie).map(function (key) { return _this.removeItem(key); });
103
103
  return [4 /*yield*/, Promise.all(promises)];
104
104
  case 1: