@auth0/auth0-spa-js 1.22.2 → 1.22.3

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.
@@ -359,10 +359,10 @@
359
359
  (module.exports = function(key, value) {
360
360
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
361
361
  })("versions", []).push({
362
- version: "3.23.2",
362
+ version: "3.24.0",
363
363
  mode: "global",
364
364
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
365
- license: "https://github.com/zloirock/core-js/blob/v3.23.2/LICENSE",
365
+ license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
366
366
  source: "https://github.com/zloirock/core-js"
367
367
  });
368
368
  }));
@@ -592,10 +592,10 @@
592
592
  if (options && options.getter) name = "get " + name;
593
593
  if (options && options.setter) name = "set " + name;
594
594
  if (!hasOwnProperty_1(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
595
- defineProperty(value, "name", {
595
+ if (descriptors) defineProperty(value, "name", {
596
596
  value: name,
597
597
  configurable: true
598
- });
598
+ }); else value.name = name;
599
599
  }
600
600
  if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, "arity") && value.length !== options.arity) {
601
601
  defineProperty(value, "length", {
@@ -627,7 +627,9 @@
627
627
  if (options.global) {
628
628
  if (simple) O[key] = value; else defineGlobalProperty(key, value);
629
629
  } else {
630
- if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
630
+ try {
631
+ if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
632
+ } catch (error) {}
631
633
  if (simple) O[key] = value; else objectDefineProperty.f(O, key, {
632
634
  value: value,
633
635
  enumerable: false,
@@ -2212,6 +2214,7 @@
2212
2214
  var iterate = function(iterable, unboundFunction, options) {
2213
2215
  var that = options && options.that;
2214
2216
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2217
+ var IS_RECORD = !!(options && options.IS_RECORD);
2215
2218
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2216
2219
  var INTERRUPTED = !!(options && options.INTERRUPTED);
2217
2220
  var fn = functionBindContext(unboundFunction, that);
@@ -2227,7 +2230,9 @@
2227
2230
  }
2228
2231
  return INTERRUPTED ? fn(value, stop) : fn(value);
2229
2232
  };
2230
- if (IS_ITERATOR) {
2233
+ if (IS_RECORD) {
2234
+ iterator = iterable.iterator;
2235
+ } else if (IS_ITERATOR) {
2231
2236
  iterator = iterable;
2232
2237
  } else {
2233
2238
  iterFn = getIteratorMethod(iterable);
@@ -2241,7 +2246,7 @@
2241
2246
  }
2242
2247
  iterator = getIterator(iterable, iterFn);
2243
2248
  }
2244
- next = iterator.next;
2249
+ next = IS_RECORD ? iterable.next : iterator.next;
2245
2250
  while (!(step = functionCall(next, iterator)).done) {
2246
2251
  try {
2247
2252
  result = callFn(step.value);
@@ -3607,7 +3612,7 @@
3607
3612
  exports.default = SuperTokensLock;
3608
3613
  }));
3609
3614
  var Lock = unwrapExports(browserTabsLock);
3610
- var version = "1.22.2";
3615
+ var version = "1.22.3";
3611
3616
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3612
3617
  var DEFAULT_POPUP_CONFIG_OPTIONS = {
3613
3618
  timeoutInSeconds: DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS
@@ -4638,8 +4643,12 @@
4638
4643
  }
4639
4644
  esCookie_5(key, JSON.stringify(value), cookieAttributes);
4640
4645
  },
4641
- remove: function(key) {
4642
- esCookie_6(key);
4646
+ remove: function(key, options) {
4647
+ var cookieAttributes = {};
4648
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4649
+ cookieAttributes.domain = options.cookieDomain;
4650
+ }
4651
+ esCookie_6(key, cookieAttributes);
4643
4652
  }
4644
4653
  };
4645
4654
  var LEGACY_PREFIX = "_legacy_";
@@ -4664,9 +4673,14 @@
4664
4673
  esCookie_5("".concat(LEGACY_PREFIX).concat(key), JSON.stringify(value), cookieAttributes);
4665
4674
  CookieStorage.save(key, value, options);
4666
4675
  },
4667
- remove: function(key) {
4668
- CookieStorage.remove(key);
4669
- CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key));
4676
+ remove: function(key, options) {
4677
+ var cookieAttributes = {};
4678
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4679
+ cookieAttributes.domain = options.cookieDomain;
4680
+ }
4681
+ esCookie_6(key, cookieAttributes);
4682
+ CookieStorage.remove(key, options);
4683
+ CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key), options);
4670
4684
  }
4671
4685
  };
4672
4686
  var SessionStorage = {
@@ -5007,7 +5021,9 @@
5007
5021
  cookieDomain: this.options.cookieDomain
5008
5022
  });
5009
5023
  } else {
5010
- this.cookieStorage.remove(this.orgHintCookieName);
5024
+ this.cookieStorage.remove(this.orgHintCookieName, {
5025
+ cookieDomain: this.options.cookieDomain
5026
+ });
5011
5027
  }
5012
5028
  };
5013
5029
  Auth0Client.prototype.buildAuthorizeUrl = function(options) {
@@ -5511,8 +5527,12 @@
5511
5527
  throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");
5512
5528
  }
5513
5529
  var postCacheClear = function() {
5514
- _this.cookieStorage.remove(_this.orgHintCookieName);
5515
- _this.cookieStorage.remove(_this.isAuthenticatedCookieName);
5530
+ _this.cookieStorage.remove(_this.orgHintCookieName, {
5531
+ cookieDomain: _this.options.cookieDomain
5532
+ });
5533
+ _this.cookieStorage.remove(_this.isAuthenticatedCookieName, {
5534
+ cookieDomain: _this.options.cookieDomain
5535
+ });
5516
5536
  if (localOnly) {
5517
5537
  return;
5518
5538
  }