@lifeready/core 9.0.2 → 9.0.6

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.
@@ -3966,8 +3966,11 @@
3966
3966
  ScenarioLastClaimState["RESET"] = "RESET";
3967
3967
  })(exports.ScenarioLastClaimState || (exports.ScenarioLastClaimState = {}));
3968
3968
  (function (LinkTypeField) {
3969
+ // HARD links will persist the child as long as the parent exists
3969
3970
  LinkTypeField["HARD"] = "HARD";
3971
+ // SOFT links will provides permission inheritance but will not persist the child if the parent is deleted
3970
3972
  LinkTypeField["SOFT"] = "SOFT";
3973
+ // REFERENCE links do not provide permission inheritance and will not persist the child if the parent is deleted
3971
3974
  LinkTypeField["REFERENCE"] = "REFERENCE";
3972
3975
  })(exports.LinkTypeField || (exports.LinkTypeField = {}));
3973
3976
  (function (BillingPeriodField) {
@@ -10280,27 +10283,30 @@
10280
10283
  };
10281
10284
  RegisterService.prototype.hibpBreachedAccounts = function (account) {
10282
10285
  return __awaiter(this, void 0, void 0, function () {
10283
- var response, error_1;
10284
- return __generator(this, function (_a) {
10285
- switch (_a.label) {
10286
+ var response, _a, _b, _c, error_1;
10287
+ return __generator(this, function (_d) {
10288
+ switch (_d.label) {
10286
10289
  case 0:
10287
- _a.trys.push([0, 2, , 3]);
10288
- return [4 /*yield*/, this.http
10289
- .get(this.config.authUrl + "users/hibp/breachedaccount/" + account + "/?truncateResponse=false")
10290
- .toPromise()];
10291
- case 1:
10292
- response = _a.sent();
10293
- return [2 /*return*/, response];
10290
+ _d.trys.push([0, 3, , 4]);
10291
+ _b = (_a = this.http)
10292
+ .get;
10293
+ _c = [this.config.authUrl + "users/hibp/breachedaccount/" + account + "/?truncateResponse=false"];
10294
+ return [4 /*yield*/, httpOptions(this.auth, this.config)];
10295
+ case 1: return [4 /*yield*/, _b.apply(_a, _c.concat([_d.sent()]))
10296
+ .toPromise()];
10294
10297
  case 2:
10295
- error_1 = _a.sent();
10298
+ response = _d.sent();
10299
+ return [2 /*return*/, response];
10300
+ case 3:
10301
+ error_1 = _d.sent();
10296
10302
  if (error_1.status === 404) {
10297
10303
  return [2 /*return*/, null];
10298
10304
  }
10299
10305
  else {
10300
10306
  throw error_1;
10301
10307
  }
10302
- return [3 /*break*/, 3];
10303
- case 3: return [2 /*return*/];
10308
+ return [3 /*break*/, 4];
10309
+ case 4: return [2 /*return*/];
10304
10310
  }
10305
10311
  });
10306
10312
  });