@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.
@@ -460,10 +460,10 @@ var shared = createCommonjsModule((function(module) {
460
460
  (module.exports = function(key, value) {
461
461
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
462
462
  })("versions", []).push({
463
- version: "3.23.2",
463
+ version: "3.24.0",
464
464
  mode: "global",
465
465
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
466
- license: "https://github.com/zloirock/core-js/blob/v3.23.2/LICENSE",
466
+ license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
467
467
  source: "https://github.com/zloirock/core-js"
468
468
  });
469
469
  }));
@@ -753,10 +753,10 @@ var makeBuiltIn_1 = createCommonjsModule((function(module) {
753
753
  if (options && options.getter) name = "get " + name;
754
754
  if (options && options.setter) name = "set " + name;
755
755
  if (!hasOwnProperty_1(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
756
- defineProperty(value, "name", {
756
+ if (descriptors) defineProperty(value, "name", {
757
757
  value: name,
758
758
  configurable: true
759
- });
759
+ }); else value.name = name;
760
760
  }
761
761
  if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, "arity") && value.length !== options.arity) {
762
762
  defineProperty(value, "length", {
@@ -789,7 +789,9 @@ var defineBuiltIn = function(O, key, value, options) {
789
789
  if (options.global) {
790
790
  if (simple) O[key] = value; else defineGlobalProperty(key, value);
791
791
  } else {
792
- if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
792
+ try {
793
+ if (!options.unsafe) delete O[key]; else if (O[key]) simple = true;
794
+ } catch (error) {}
793
795
  if (simple) O[key] = value; else objectDefineProperty.f(O, key, {
794
796
  value: value,
795
797
  enumerable: false,
@@ -2731,6 +2733,7 @@ var ResultPrototype = Result.prototype;
2731
2733
  var iterate = function(iterable, unboundFunction, options) {
2732
2734
  var that = options && options.that;
2733
2735
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2736
+ var IS_RECORD = !!(options && options.IS_RECORD);
2734
2737
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2735
2738
  var INTERRUPTED = !!(options && options.INTERRUPTED);
2736
2739
  var fn = functionBindContext(unboundFunction, that);
@@ -2746,7 +2749,9 @@ var iterate = function(iterable, unboundFunction, options) {
2746
2749
  }
2747
2750
  return INTERRUPTED ? fn(value, stop) : fn(value);
2748
2751
  };
2749
- if (IS_ITERATOR) {
2752
+ if (IS_RECORD) {
2753
+ iterator = iterable.iterator;
2754
+ } else if (IS_ITERATOR) {
2750
2755
  iterator = iterable;
2751
2756
  } else {
2752
2757
  iterFn = getIteratorMethod(iterable);
@@ -2760,7 +2765,7 @@ var iterate = function(iterable, unboundFunction, options) {
2760
2765
  }
2761
2766
  iterator = getIterator(iterable, iterFn);
2762
2767
  }
2763
- next = iterator.next;
2768
+ next = IS_RECORD ? iterable.next : iterator.next;
2764
2769
  while (!(step = functionCall(next, iterator)).done) {
2765
2770
  try {
2766
2771
  result = callFn(step.value);
@@ -3609,7 +3614,7 @@ if (typeof globalNS["Promise"] !== "function") {
3609
3614
  })(typeof self !== "undefined" ? self : commonjsGlobal);
3610
3615
  }));
3611
3616
 
3612
- var version = "1.22.2";
3617
+ var version = "1.22.3";
3613
3618
 
3614
3619
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3615
3620
 
@@ -4577,8 +4582,12 @@ var CookieStorage = {
4577
4582
  }
4578
4583
  Cookies__namespace.set(key, JSON.stringify(value), cookieAttributes);
4579
4584
  },
4580
- remove: function(key) {
4581
- Cookies__namespace.remove(key);
4585
+ remove: function(key, options) {
4586
+ var cookieAttributes = {};
4587
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4588
+ cookieAttributes.domain = options.cookieDomain;
4589
+ }
4590
+ Cookies__namespace.remove(key, cookieAttributes);
4582
4591
  }
4583
4592
  };
4584
4593
 
@@ -4605,9 +4614,14 @@ var CookieStorageWithLegacySameSite = {
4605
4614
  Cookies__namespace.set("".concat(LEGACY_PREFIX).concat(key), JSON.stringify(value), cookieAttributes);
4606
4615
  CookieStorage.save(key, value, options);
4607
4616
  },
4608
- remove: function(key) {
4609
- CookieStorage.remove(key);
4610
- CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key));
4617
+ remove: function(key, options) {
4618
+ var cookieAttributes = {};
4619
+ if (options === null || options === void 0 ? void 0 : options.cookieDomain) {
4620
+ cookieAttributes.domain = options.cookieDomain;
4621
+ }
4622
+ Cookies__namespace.remove(key, cookieAttributes);
4623
+ CookieStorage.remove(key, options);
4624
+ CookieStorage.remove("".concat(LEGACY_PREFIX).concat(key), options);
4611
4625
  }
4612
4626
  };
4613
4627
 
@@ -4970,7 +4984,9 @@ var Auth0Client = function() {
4970
4984
  cookieDomain: this.options.cookieDomain
4971
4985
  });
4972
4986
  } else {
4973
- this.cookieStorage.remove(this.orgHintCookieName);
4987
+ this.cookieStorage.remove(this.orgHintCookieName, {
4988
+ cookieDomain: this.options.cookieDomain
4989
+ });
4974
4990
  }
4975
4991
  };
4976
4992
  Auth0Client.prototype.buildAuthorizeUrl = function(options) {
@@ -5474,8 +5490,12 @@ var Auth0Client = function() {
5474
5490
  throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");
5475
5491
  }
5476
5492
  var postCacheClear = function() {
5477
- _this.cookieStorage.remove(_this.orgHintCookieName);
5478
- _this.cookieStorage.remove(_this.isAuthenticatedCookieName);
5493
+ _this.cookieStorage.remove(_this.orgHintCookieName, {
5494
+ cookieDomain: _this.options.cookieDomain
5495
+ });
5496
+ _this.cookieStorage.remove(_this.isAuthenticatedCookieName, {
5497
+ cookieDomain: _this.options.cookieDomain
5498
+ });
5479
5499
  if (localOnly) {
5480
5500
  return;
5481
5501
  }