@auth0/auth0-spa-js 1.22.4 → 1.22.5

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.
@@ -331,10 +331,14 @@ var indexedObject = fails((function() {
331
331
  return classofRaw(it) == "String" ? split(it, "") : $Object$4(it);
332
332
  } : $Object$4;
333
333
 
334
+ var isNullOrUndefined = function(it) {
335
+ return it === null || it === undefined;
336
+ };
337
+
334
338
  var $TypeError$c = TypeError;
335
339
 
336
340
  var requireObjectCoercible = function(it) {
337
- if (it == undefined) throw $TypeError$c("Can't call method on " + it);
341
+ if (isNullOrUndefined(it)) throw $TypeError$c("Can't call method on " + it);
338
342
  return it;
339
343
  };
340
344
 
@@ -346,7 +350,13 @@ var isCallable = function(argument) {
346
350
  return typeof argument == "function";
347
351
  };
348
352
 
349
- var isObject = function(it) {
353
+ var documentAll = typeof document == "object" && document.all;
354
+
355
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == "undefined" && documentAll !== undefined;
356
+
357
+ var isObject = SPECIAL_DOCUMENT_ALL ? function(it) {
358
+ return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
359
+ } : function(it) {
350
360
  return typeof it == "object" ? it !== null : isCallable(it);
351
361
  };
352
362
 
@@ -387,12 +397,12 @@ if (!version$1 && engineUserAgent) {
387
397
 
388
398
  var engineV8Version = version$1;
389
399
 
390
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails((function() {
400
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails((function() {
391
401
  var symbol = Symbol();
392
402
  return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && engineV8Version && engineV8Version < 41;
393
403
  }));
394
404
 
395
- var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == "symbol";
405
+ var useSymbolAsUid = symbolConstructorDetection && !Symbol.sham && typeof Symbol.iterator == "symbol";
396
406
 
397
407
  var $Object$3 = Object;
398
408
 
@@ -422,7 +432,7 @@ var aCallable = function(argument) {
422
432
 
423
433
  var getMethod = function(V, P) {
424
434
  var func = V[P];
425
- return func == null ? undefined : aCallable(func);
435
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
426
436
  };
427
437
 
428
438
  var $TypeError$a = TypeError;
@@ -460,10 +470,10 @@ var shared = createCommonjsModule((function(module) {
460
470
  (module.exports = function(key, value) {
461
471
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
462
472
  })("versions", []).push({
463
- version: "3.24.0",
473
+ version: "3.25.1",
464
474
  mode: "global",
465
475
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
466
- license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
476
+ license: "https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",
467
477
  source: "https://github.com/zloirock/core-js"
468
478
  });
469
479
  }));
@@ -499,9 +509,9 @@ var symbolFor = Symbol$1 && Symbol$1["for"];
499
509
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
500
510
 
501
511
  var wellKnownSymbol = function(name) {
502
- if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == "string")) {
512
+ if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore$1[name] == "string")) {
503
513
  var description = "Symbol." + name;
504
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
514
+ if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
505
515
  WellKnownSymbolsStore$1[name] = Symbol$1[name];
506
516
  } else if (useSymbolAsUid && symbolFor) {
507
517
  WellKnownSymbolsStore$1[name] = symbolFor(description);
@@ -661,7 +671,7 @@ var inspectSource = sharedStore.inspectSource;
661
671
 
662
672
  var WeakMap$1 = global_1.WeakMap;
663
673
 
664
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
674
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
665
675
 
666
676
  var keys = shared("keys");
667
677
 
@@ -693,13 +703,13 @@ var getterFor = function(TYPE) {
693
703
  };
694
704
  };
695
705
 
696
- if (nativeWeakMap || sharedStore.state) {
706
+ if (weakMapBasicDetection || sharedStore.state) {
697
707
  var store = sharedStore.state || (sharedStore.state = new WeakMap);
698
708
  var wmget = functionUncurryThis(store.get);
699
709
  var wmhas = functionUncurryThis(store.has);
700
710
  var wmset = functionUncurryThis(store.set);
701
711
  set = function(it, metadata) {
702
- if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
712
+ if (wmhas(store, it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
703
713
  metadata.facade = it;
704
714
  wmset(store, it, metadata);
705
715
  return metadata;
@@ -714,7 +724,7 @@ if (nativeWeakMap || sharedStore.state) {
714
724
  var STATE = sharedKey("state");
715
725
  hiddenKeys$1[STATE] = true;
716
726
  set = function(it, metadata) {
717
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
727
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
718
728
  metadata.facade = it;
719
729
  createNonEnumerableProperty(it, STATE, metadata);
720
730
  return metadata;
@@ -1028,7 +1038,7 @@ var correctIsRegexpLogic = function(METHOD_NAME) {
1028
1038
 
1029
1039
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1030
1040
 
1031
- var un$StartsWith = functionUncurryThis("".startsWith);
1041
+ var nativeStartsWith = functionUncurryThis("".startsWith);
1032
1042
 
1033
1043
  var stringSlice$2 = functionUncurryThis("".slice);
1034
1044
 
@@ -1051,7 +1061,7 @@ _export({
1051
1061
  notARegexp(searchString);
1052
1062
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
1053
1063
  var search = toString_1(searchString);
1054
- return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
1064
+ return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
1055
1065
  }
1056
1066
  });
1057
1067
 
@@ -1343,7 +1353,7 @@ var path = global_1;
1343
1353
 
1344
1354
  var defineProperty$6 = objectDefineProperty.f;
1345
1355
 
1346
- var defineWellKnownSymbol = function(NAME) {
1356
+ var wellKnownSymbolDefine = function(NAME) {
1347
1357
  var Symbol = path.Symbol || (path.Symbol = {});
1348
1358
  if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
1349
1359
  value: wellKnownSymbolWrapped.f(NAME)
@@ -1587,7 +1597,7 @@ var $getOwnPropertySymbols = function(O) {
1587
1597
  return result;
1588
1598
  };
1589
1599
 
1590
- if (!nativeSymbol) {
1600
+ if (!symbolConstructorDetection) {
1591
1601
  $Symbol = function Symbol() {
1592
1602
  if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$2("Symbol is not a constructor");
1593
1603
  var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
@@ -1638,20 +1648,20 @@ _export({
1638
1648
  global: true,
1639
1649
  constructor: true,
1640
1650
  wrap: true,
1641
- forced: !nativeSymbol,
1642
- sham: !nativeSymbol
1651
+ forced: !symbolConstructorDetection,
1652
+ sham: !symbolConstructorDetection
1643
1653
  }, {
1644
1654
  Symbol: $Symbol
1645
1655
  });
1646
1656
 
1647
1657
  $forEach(objectKeys(WellKnownSymbolsStore), (function(name) {
1648
- defineWellKnownSymbol(name);
1658
+ wellKnownSymbolDefine(name);
1649
1659
  }));
1650
1660
 
1651
1661
  _export({
1652
1662
  target: SYMBOL,
1653
1663
  stat: true,
1654
- forced: !nativeSymbol
1664
+ forced: !symbolConstructorDetection
1655
1665
  }, {
1656
1666
  useSetter: function() {
1657
1667
  USE_SETTER = true;
@@ -1664,7 +1674,7 @@ _export({
1664
1674
  _export({
1665
1675
  target: "Object",
1666
1676
  stat: true,
1667
- forced: !nativeSymbol,
1677
+ forced: !symbolConstructorDetection,
1668
1678
  sham: !descriptors
1669
1679
  }, {
1670
1680
  create: $create,
@@ -1676,7 +1686,7 @@ _export({
1676
1686
  _export({
1677
1687
  target: "Object",
1678
1688
  stat: true,
1679
- forced: !nativeSymbol
1689
+ forced: !symbolConstructorDetection
1680
1690
  }, {
1681
1691
  getOwnPropertyNames: $getOwnPropertyNames
1682
1692
  });
@@ -1687,7 +1697,7 @@ setToStringTag($Symbol, SYMBOL);
1687
1697
 
1688
1698
  hiddenKeys$1[HIDDEN] = true;
1689
1699
 
1690
- var nativeSymbolRegistry = nativeSymbol && !!Symbol["for"] && !!Symbol.keyFor;
1700
+ var symbolRegistryDetection = symbolConstructorDetection && !!Symbol["for"] && !!Symbol.keyFor;
1691
1701
 
1692
1702
  var StringToSymbolRegistry = shared("string-to-symbol-registry");
1693
1703
 
@@ -1696,7 +1706,7 @@ var SymbolToStringRegistry$1 = shared("symbol-to-string-registry");
1696
1706
  _export({
1697
1707
  target: "Symbol",
1698
1708
  stat: true,
1699
- forced: !nativeSymbolRegistry
1709
+ forced: !symbolRegistryDetection
1700
1710
  }, {
1701
1711
  for: function(key) {
1702
1712
  var string = toString_1(key);
@@ -1713,7 +1723,7 @@ var SymbolToStringRegistry = shared("symbol-to-string-registry");
1713
1723
  _export({
1714
1724
  target: "Symbol",
1715
1725
  stat: true,
1716
- forced: !nativeSymbolRegistry
1726
+ forced: !symbolRegistryDetection
1717
1727
  }, {
1718
1728
  keyFor: function keyFor(sym) {
1719
1729
  if (!isSymbol(sym)) throw TypeError(tryToString(sym) + " is not a symbol");
@@ -1751,7 +1761,7 @@ var low = /^[\uD800-\uDBFF]$/;
1751
1761
 
1752
1762
  var hi = /^[\uDC00-\uDFFF]$/;
1753
1763
 
1754
- var WRONG_SYMBOLS_CONVERSION = !nativeSymbol || fails((function() {
1764
+ var WRONG_SYMBOLS_CONVERSION = !symbolConstructorDetection || fails((function() {
1755
1765
  var symbol = getBuiltIn("Symbol")();
1756
1766
  return $stringify([ symbol ]) != "[null]" || $stringify({
1757
1767
  a: symbol
@@ -1798,7 +1808,7 @@ if ($stringify) {
1798
1808
  });
1799
1809
  }
1800
1810
 
1801
- var FORCED$1 = !nativeSymbol || fails((function() {
1811
+ var FORCED$1 = !symbolConstructorDetection || fails((function() {
1802
1812
  objectGetOwnPropertySymbols.f(1);
1803
1813
  }));
1804
1814
 
@@ -1813,7 +1823,7 @@ _export({
1813
1823
  }
1814
1824
  });
1815
1825
 
1816
- defineWellKnownSymbol("asyncIterator");
1826
+ wellKnownSymbolDefine("asyncIterator");
1817
1827
 
1818
1828
  var defineProperty$4 = objectDefineProperty.f;
1819
1829
 
@@ -1833,17 +1843,17 @@ if (descriptors && isCallable(NativeSymbol) && (!("description" in SymbolPrototy
1833
1843
  SymbolWrapper.prototype = SymbolPrototype;
1834
1844
  SymbolPrototype.constructor = SymbolWrapper;
1835
1845
  var NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)";
1836
- var symbolToString = functionUncurryThis(SymbolPrototype.toString);
1837
- var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
1846
+ var thisSymbolValue = functionUncurryThis(SymbolPrototype.valueOf);
1847
+ var symbolDescriptiveString = functionUncurryThis(SymbolPrototype.toString);
1838
1848
  var regexp = /^Symbol\((.*)\)[^)]+$/;
1839
1849
  var replace = functionUncurryThis("".replace);
1840
1850
  var stringSlice$1 = functionUncurryThis("".slice);
1841
1851
  defineProperty$4(SymbolPrototype, "description", {
1842
1852
  configurable: true,
1843
1853
  get: function description() {
1844
- var symbol = symbolValueOf(this);
1845
- var string = symbolToString(symbol);
1854
+ var symbol = thisSymbolValue(this);
1846
1855
  if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return "";
1856
+ var string = symbolDescriptiveString(symbol);
1847
1857
  var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace(string, regexp, "$1");
1848
1858
  return desc === "" ? undefined : desc;
1849
1859
  }
@@ -1857,33 +1867,33 @@ if (descriptors && isCallable(NativeSymbol) && (!("description" in SymbolPrototy
1857
1867
  });
1858
1868
  }
1859
1869
 
1860
- defineWellKnownSymbol("hasInstance");
1870
+ wellKnownSymbolDefine("hasInstance");
1861
1871
 
1862
- defineWellKnownSymbol("isConcatSpreadable");
1872
+ wellKnownSymbolDefine("isConcatSpreadable");
1863
1873
 
1864
- defineWellKnownSymbol("iterator");
1874
+ wellKnownSymbolDefine("iterator");
1865
1875
 
1866
- defineWellKnownSymbol("match");
1876
+ wellKnownSymbolDefine("match");
1867
1877
 
1868
- defineWellKnownSymbol("matchAll");
1878
+ wellKnownSymbolDefine("matchAll");
1869
1879
 
1870
- defineWellKnownSymbol("replace");
1880
+ wellKnownSymbolDefine("replace");
1871
1881
 
1872
- defineWellKnownSymbol("search");
1882
+ wellKnownSymbolDefine("search");
1873
1883
 
1874
- defineWellKnownSymbol("species");
1884
+ wellKnownSymbolDefine("species");
1875
1885
 
1876
- defineWellKnownSymbol("split");
1886
+ wellKnownSymbolDefine("split");
1877
1887
 
1878
- defineWellKnownSymbol("toPrimitive");
1888
+ wellKnownSymbolDefine("toPrimitive");
1879
1889
 
1880
1890
  symbolDefineToPrimitive();
1881
1891
 
1882
- defineWellKnownSymbol("toStringTag");
1892
+ wellKnownSymbolDefine("toStringTag");
1883
1893
 
1884
1894
  setToStringTag(getBuiltIn("Symbol"), "Symbol");
1885
1895
 
1886
- defineWellKnownSymbol("unscopables");
1896
+ wellKnownSymbolDefine("unscopables");
1887
1897
 
1888
1898
  setToStringTag(global_1.JSON, "JSON", true);
1889
1899
 
@@ -1958,7 +1968,7 @@ if ([].keys) {
1958
1968
  }
1959
1969
  }
1960
1970
 
1961
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails((function() {
1971
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails((function() {
1962
1972
  var test = {};
1963
1973
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
1964
1974
  }));
@@ -1984,7 +1994,7 @@ var returnThis$1 = function() {
1984
1994
  return this;
1985
1995
  };
1986
1996
 
1987
- var createIteratorConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1997
+ var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1988
1998
  var TO_STRING_TAG = NAME + " Iterator";
1989
1999
  IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, {
1990
2000
  next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
@@ -2040,8 +2050,8 @@ var returnThis = function() {
2040
2050
  return this;
2041
2051
  };
2042
2052
 
2043
- var defineIterator = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2044
- createIteratorConstructor(IteratorConstructor, NAME, next);
2053
+ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2054
+ iteratorCreateConstructor(IteratorConstructor, NAME, next);
2045
2055
  var getIterationMethod = function(KIND) {
2046
2056
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2047
2057
  if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
@@ -2120,6 +2130,13 @@ var defineIterator = function(Iterable, NAME, IteratorConstructor, next, DEFAULT
2120
2130
  return methods;
2121
2131
  };
2122
2132
 
2133
+ var createIterResultObject = function(value, done) {
2134
+ return {
2135
+ value: value,
2136
+ done: done
2137
+ };
2138
+ };
2139
+
2123
2140
  var charAt = stringMultibyte.charAt;
2124
2141
 
2125
2142
  var STRING_ITERATOR = "String Iterator";
@@ -2128,7 +2145,7 @@ var setInternalState$2 = internalState.set;
2128
2145
 
2129
2146
  var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
2130
2147
 
2131
- defineIterator(String, "String", (function(iterated) {
2148
+ iteratorDefine(String, "String", (function(iterated) {
2132
2149
  setInternalState$2(this, {
2133
2150
  type: STRING_ITERATOR,
2134
2151
  string: toString_1(iterated),
@@ -2139,16 +2156,10 @@ defineIterator(String, "String", (function(iterated) {
2139
2156
  var string = state.string;
2140
2157
  var index = state.index;
2141
2158
  var point;
2142
- if (index >= string.length) return {
2143
- value: undefined,
2144
- done: true
2145
- };
2159
+ if (index >= string.length) return createIterResultObject(undefined, true);
2146
2160
  point = charAt(string, index);
2147
2161
  state.index += point.length;
2148
- return {
2149
- value: point,
2150
- done: false
2151
- };
2162
+ return createIterResultObject(point, false);
2152
2163
  }));
2153
2164
 
2154
2165
  var iteratorClose = function(iterator, kind, value) {
@@ -2190,7 +2201,7 @@ var isArrayIteratorMethod = function(it) {
2190
2201
  var ITERATOR$1 = wellKnownSymbol("iterator");
2191
2202
 
2192
2203
  var getIteratorMethod = function(it) {
2193
- if (it != undefined) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
2204
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
2194
2205
  };
2195
2206
 
2196
2207
  var $TypeError$3 = TypeError;
@@ -2290,7 +2301,7 @@ _export({
2290
2301
 
2291
2302
  path.Array.from;
2292
2303
 
2293
- var arrayBufferNative = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
2304
+ var arrayBufferBasicDetection = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
2294
2305
 
2295
2306
  var defineProperty$3 = objectDefineProperty.f;
2296
2307
 
@@ -2320,7 +2331,7 @@ var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG");
2320
2331
 
2321
2332
  var TYPED_ARRAY_CONSTRUCTOR = "TypedArrayConstructor";
2322
2333
 
2323
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
2334
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
2324
2335
 
2325
2336
  var TYPED_ARRAY_TAG_REQUIRED = false;
2326
2337
 
@@ -2483,7 +2494,7 @@ var SPECIES$1 = wellKnownSymbol("species");
2483
2494
  var speciesConstructor = function(O, defaultConstructor) {
2484
2495
  var C = anObject(O).constructor;
2485
2496
  var S;
2486
- return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
2497
+ return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2487
2498
  };
2488
2499
 
2489
2500
  var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
@@ -2571,7 +2582,7 @@ var setInternalState$1 = internalState.set;
2571
2582
 
2572
2583
  var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
2573
2584
 
2574
- defineIterator(Array, "Array", (function(iterated, kind) {
2585
+ iteratorDefine(Array, "Array", (function(iterated, kind) {
2575
2586
  setInternalState$1(this, {
2576
2587
  type: ARRAY_ITERATOR,
2577
2588
  target: toIndexedObject(iterated),
@@ -2585,23 +2596,11 @@ defineIterator(Array, "Array", (function(iterated, kind) {
2585
2596
  var index = state.index++;
2586
2597
  if (!target || index >= target.length) {
2587
2598
  state.target = undefined;
2588
- return {
2589
- value: undefined,
2590
- done: true
2591
- };
2599
+ return createIterResultObject(undefined, true);
2592
2600
  }
2593
- if (kind == "keys") return {
2594
- value: index,
2595
- done: false
2596
- };
2597
- if (kind == "values") return {
2598
- value: target[index],
2599
- done: false
2600
- };
2601
- return {
2602
- value: [ index, target[index] ],
2603
- done: false
2604
- };
2601
+ if (kind == "keys") return createIterResultObject(index, false);
2602
+ if (kind == "values") return createIterResultObject(target[index], false);
2603
+ return createIterResultObject([ index, target[index] ], false);
2605
2604
  }), "values");
2606
2605
 
2607
2606
  var values = iterators.Arguments = iterators.Array;
@@ -2839,7 +2838,7 @@ var collection = function(CONSTRUCTOR_NAME, wrapper, common) {
2839
2838
  Constructor = wrapper((function(dummy, iterable) {
2840
2839
  anInstance(dummy, NativePrototype);
2841
2840
  var that = inheritIfRequired(new NativeConstructor, dummy, Constructor);
2842
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2841
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2843
2842
  that: that,
2844
2843
  AS_ENTRIES: IS_MAP
2845
2844
  });
@@ -2907,7 +2906,7 @@ var collectionStrong = {
2907
2906
  size: 0
2908
2907
  });
2909
2908
  if (!descriptors) that.size = 0;
2910
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2909
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2911
2910
  that: that,
2912
2911
  AS_ENTRIES: IS_MAP
2913
2912
  });
@@ -3014,7 +3013,7 @@ var collectionStrong = {
3014
3013
  var ITERATOR_NAME = CONSTRUCTOR_NAME + " Iterator";
3015
3014
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
3016
3015
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
3017
- defineIterator(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
3016
+ iteratorDefine(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
3018
3017
  setInternalState(this, {
3019
3018
  type: ITERATOR_NAME,
3020
3019
  target: iterated,
@@ -3029,23 +3028,11 @@ var collectionStrong = {
3029
3028
  while (entry && entry.removed) entry = entry.previous;
3030
3029
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
3031
3030
  state.target = undefined;
3032
- return {
3033
- value: undefined,
3034
- done: true
3035
- };
3031
+ return createIterResultObject(undefined, true);
3036
3032
  }
3037
- if (kind == "keys") return {
3038
- value: entry.key,
3039
- done: false
3040
- };
3041
- if (kind == "values") return {
3042
- value: entry.value,
3043
- done: false
3044
- };
3045
- return {
3046
- value: [ entry.key, entry.value ],
3047
- done: false
3048
- };
3033
+ if (kind == "keys") return createIterResultObject(entry.key, false);
3034
+ if (kind == "values") return createIterResultObject(entry.value, false);
3035
+ return createIterResultObject([ entry.key, entry.value ], false);
3049
3036
  }), IS_MAP ? "entries" : "values", !IS_MAP, true);
3050
3037
  setSpecies(CONSTRUCTOR_NAME);
3051
3038
  }
@@ -3614,7 +3601,7 @@ if (typeof globalNS["Promise"] !== "function") {
3614
3601
  })(typeof self !== "undefined" ? self : commonjsGlobal);
3615
3602
  }));
3616
3603
 
3617
- var version = "1.22.4";
3604
+ var version = "1.22.5";
3618
3605
 
3619
3606
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3620
3607
 
@@ -5307,20 +5294,27 @@ var Auth0Client = function() {
5307
5294
  options = {};
5308
5295
  }
5309
5296
  return __awaiter(this, void 0, void 0, (function() {
5310
- var _a, ignoreCache, getTokenOptions;
5297
+ var _a, ignoreCache, getTokenOptions, result;
5311
5298
  var _this = this;
5312
5299
  return __generator(this, (function(_b) {
5313
- _a = __assign(__assign({
5314
- audience: this.options.audience,
5315
- ignoreCache: false
5316
- }, options), {
5317
- scope: getUniqueScopes(this.defaultScope, this.scope, options.scope)
5318
- }), ignoreCache = _a.ignoreCache, getTokenOptions = __rest(_a, [ "ignoreCache" ]);
5319
- return [ 2, singlePromise((function() {
5320
- return _this._getTokenSilently(__assign({
5321
- ignoreCache: ignoreCache
5322
- }, getTokenOptions));
5323
- }), "".concat(this.options.client_id, "::").concat(getTokenOptions.audience, "::").concat(getTokenOptions.scope)) ];
5300
+ switch (_b.label) {
5301
+ case 0:
5302
+ _a = __assign(__assign({
5303
+ audience: this.options.audience,
5304
+ ignoreCache: false
5305
+ }, options), {
5306
+ scope: getUniqueScopes(this.defaultScope, this.scope, options.scope)
5307
+ }), ignoreCache = _a.ignoreCache, getTokenOptions = __rest(_a, [ "ignoreCache" ]);
5308
+ return [ 4, singlePromise((function() {
5309
+ return _this._getTokenSilently(__assign({
5310
+ ignoreCache: ignoreCache
5311
+ }, getTokenOptions));
5312
+ }), "".concat(this.options.client_id, "::").concat(getTokenOptions.audience, "::").concat(getTokenOptions.scope)) ];
5313
+
5314
+ case 1:
5315
+ result = _b.sent();
5316
+ return [ 2, options.detailedResponse ? result : result.access_token ];
5317
+ }
5324
5318
  }));
5325
5319
  }));
5326
5320
  };
@@ -5338,8 +5332,7 @@ var Auth0Client = function() {
5338
5332
  return [ 4, this._getEntryFromCache({
5339
5333
  scope: getTokenOptions.scope,
5340
5334
  audience: getTokenOptions.audience || "default",
5341
- client_id: this.options.client_id,
5342
- getDetailedEntry: options.detailedResponse
5335
+ client_id: this.options.client_id
5343
5336
  }) ];
5344
5337
 
5345
5338
  case 1:
@@ -5365,8 +5358,7 @@ var Auth0Client = function() {
5365
5358
  return [ 4, this._getEntryFromCache({
5366
5359
  scope: getTokenOptions.scope,
5367
5360
  audience: getTokenOptions.audience || "default",
5368
- client_id: this.options.client_id,
5369
- getDetailedEntry: options.detailedResponse
5361
+ client_id: this.options.client_id
5370
5362
  }) ];
5371
5363
 
5372
5364
  case 5:
@@ -5403,19 +5395,16 @@ var Auth0Client = function() {
5403
5395
  daysUntilExpire: this.sessionCheckExpiryDays,
5404
5396
  cookieDomain: this.options.cookieDomain
5405
5397
  });
5406
- if (options.detailedResponse) {
5407
- id_token = authResult.id_token, access_token = authResult.access_token, oauthTokenScope = authResult.oauthTokenScope,
5408
- expires_in = authResult.expires_in;
5409
- return [ 2, __assign(__assign({
5410
- id_token: id_token,
5411
- access_token: access_token
5412
- }, oauthTokenScope ? {
5413
- scope: oauthTokenScope
5414
- } : null), {
5415
- expires_in: expires_in
5416
- }) ];
5417
- }
5418
- return [ 2, authResult.access_token ];
5398
+ id_token = authResult.id_token, access_token = authResult.access_token, oauthTokenScope = authResult.oauthTokenScope,
5399
+ expires_in = authResult.expires_in;
5400
+ return [ 2, __assign(__assign({
5401
+ id_token: id_token,
5402
+ access_token: access_token
5403
+ }, oauthTokenScope ? {
5404
+ scope: oauthTokenScope
5405
+ } : null), {
5406
+ expires_in: expires_in
5407
+ }) ];
5419
5408
 
5420
5409
  case 12:
5421
5410
  return [ 4, lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY) ];
@@ -5692,11 +5681,11 @@ var Auth0Client = function() {
5692
5681
  }));
5693
5682
  };
5694
5683
  Auth0Client.prototype._getEntryFromCache = function(_a) {
5695
- var scope = _a.scope, audience = _a.audience, client_id = _a.client_id, _b = _a.getDetailedEntry, getDetailedEntry = _b === void 0 ? false : _b;
5684
+ var scope = _a.scope, audience = _a.audience, client_id = _a.client_id;
5696
5685
  return __awaiter(this, void 0, void 0, (function() {
5697
5686
  var entry, id_token, access_token, oauthTokenScope, expires_in;
5698
- return __generator(this, (function(_c) {
5699
- switch (_c.label) {
5687
+ return __generator(this, (function(_b) {
5688
+ switch (_b.label) {
5700
5689
  case 0:
5701
5690
  return [ 4, this.cacheManager.get(new CacheKey({
5702
5691
  scope: scope,
@@ -5705,21 +5694,18 @@ var Auth0Client = function() {
5705
5694
  }), 60) ];
5706
5695
 
5707
5696
  case 1:
5708
- entry = _c.sent();
5697
+ entry = _b.sent();
5709
5698
  if (entry && entry.access_token) {
5710
- if (getDetailedEntry) {
5711
- id_token = entry.id_token, access_token = entry.access_token, oauthTokenScope = entry.oauthTokenScope,
5712
- expires_in = entry.expires_in;
5713
- return [ 2, __assign(__assign({
5714
- id_token: id_token,
5715
- access_token: access_token
5716
- }, oauthTokenScope ? {
5717
- scope: oauthTokenScope
5718
- } : null), {
5719
- expires_in: expires_in
5720
- }) ];
5721
- }
5722
- return [ 2, entry.access_token ];
5699
+ id_token = entry.id_token, access_token = entry.access_token, oauthTokenScope = entry.oauthTokenScope,
5700
+ expires_in = entry.expires_in;
5701
+ return [ 2, __assign(__assign({
5702
+ id_token: id_token,
5703
+ access_token: access_token
5704
+ }, oauthTokenScope ? {
5705
+ scope: oauthTokenScope
5706
+ } : null), {
5707
+ expires_in: expires_in
5708
+ }) ];
5723
5709
  }
5724
5710
  return [ 2 ];
5725
5711
  }