@lifeready/core 6.0.1 → 6.0.4

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.
@@ -637,10 +637,7 @@
637
637
  case 2:
638
638
  error_1 = _a.sent();
639
639
  // The error thrown by Cognito is of type string.
640
- if (error_1 == 'No current user') {
641
- return [2 /*return*/, ''];
642
- }
643
- throw error_1;
640
+ return [2 /*return*/, ''];
644
641
  case 3: return [2 /*return*/];
645
642
  }
646
643
  });
@@ -14013,7 +14010,7 @@
14013
14010
  return this.mutate(this.createReminderMutation(options));
14014
14011
  };
14015
14012
  ReminderService.prototype.createReminderMutation = function (options) {
14016
- var _a, _b;
14013
+ var _a;
14017
14014
  return __awaiter(this, void 0, void 0, function () {
14018
14015
  return __generator(this, function (_c) {
14019
14016
  return [2 /*return*/, new LrMutation({
@@ -14022,8 +14019,8 @@
14022
14019
  input: {
14023
14020
  directoryId: options.directoryId,
14024
14021
  firstEvent: options.firstEvent.toISOString(),
14025
- plain: JSON.stringify((_a = options.plainJson) !== null && _a !== void 0 ? _a : {}),
14026
- notifyAheadSeconds: (_b = options.notifyAheadSeconds) !== null && _b !== void 0 ? _b : 0,
14022
+ plain: JSON.stringify(options.plainJson),
14023
+ notifyAheadSeconds: (_a = options.notifyAheadSeconds) !== null && _a !== void 0 ? _a : 0,
14027
14024
  },
14028
14025
  },
14029
14026
  })];