@auth0/auth0-spa-js 1.22.4 → 1.22.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.
@@ -297,7 +297,9 @@ var createPropertyDescriptor = function(bitmap, value) {
297
297
  };
298
298
  };
299
299
 
300
- var FunctionPrototype$2 = Function.prototype;
300
+ var $Function = Function;
301
+
302
+ var FunctionPrototype$2 = $Function.prototype;
301
303
 
302
304
  var bind$2 = FunctionPrototype$2.bind;
303
305
 
@@ -305,12 +307,10 @@ var call$1 = FunctionPrototype$2.call;
305
307
 
306
308
  var uncurryThis = functionBindNative && bind$2.bind(call$1, call$1);
307
309
 
308
- var functionUncurryThis = functionBindNative ? function(fn) {
309
- return fn && uncurryThis(fn);
310
- } : function(fn) {
311
- return fn && function() {
310
+ var functionUncurryThis = function(fn) {
311
+ return fn instanceof $Function ? functionBindNative ? uncurryThis(fn) : function() {
312
312
  return call$1.apply(fn, arguments);
313
- };
313
+ } : undefined;
314
314
  };
315
315
 
316
316
  var toString$1 = functionUncurryThis({}.toString);
@@ -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
 
@@ -342,11 +346,28 @@ var toIndexedObject = function(it) {
342
346
  return indexedObject(requireObjectCoercible(it));
343
347
  };
344
348
 
345
- var isCallable = function(argument) {
349
+ var documentAll$2 = typeof document == "object" && document.all;
350
+
351
+ var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== undefined;
352
+
353
+ var documentAll_1 = {
354
+ all: documentAll$2,
355
+ IS_HTMLDDA: IS_HTMLDDA
356
+ };
357
+
358
+ var documentAll$1 = documentAll_1.all;
359
+
360
+ var isCallable = documentAll_1.IS_HTMLDDA ? function(argument) {
361
+ return typeof argument == "function" || argument === documentAll$1;
362
+ } : function(argument) {
346
363
  return typeof argument == "function";
347
364
  };
348
365
 
349
- var isObject = function(it) {
366
+ var documentAll = documentAll_1.all;
367
+
368
+ var isObject = documentAll_1.IS_HTMLDDA ? function(it) {
369
+ return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
370
+ } : function(it) {
350
371
  return typeof it == "object" ? it !== null : isCallable(it);
351
372
  };
352
373
 
@@ -387,12 +408,12 @@ if (!version$1 && engineUserAgent) {
387
408
 
388
409
  var engineV8Version = version$1;
389
410
 
390
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails((function() {
411
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails((function() {
391
412
  var symbol = Symbol();
392
413
  return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && engineV8Version && engineV8Version < 41;
393
414
  }));
394
415
 
395
- var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == "symbol";
416
+ var useSymbolAsUid = symbolConstructorDetection && !Symbol.sham && typeof Symbol.iterator == "symbol";
396
417
 
397
418
  var $Object$3 = Object;
398
419
 
@@ -422,7 +443,7 @@ var aCallable = function(argument) {
422
443
 
423
444
  var getMethod = function(V, P) {
424
445
  var func = V[P];
425
- return func == null ? undefined : aCallable(func);
446
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
426
447
  };
427
448
 
428
449
  var $TypeError$a = TypeError;
@@ -460,10 +481,10 @@ var shared = createCommonjsModule((function(module) {
460
481
  (module.exports = function(key, value) {
461
482
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
462
483
  })("versions", []).push({
463
- version: "3.24.0",
484
+ version: "3.25.4",
464
485
  mode: "global",
465
486
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
466
- license: "https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",
487
+ license: "https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",
467
488
  source: "https://github.com/zloirock/core-js"
468
489
  });
469
490
  }));
@@ -499,9 +520,9 @@ var symbolFor = Symbol$1 && Symbol$1["for"];
499
520
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
500
521
 
501
522
  var wellKnownSymbol = function(name) {
502
- if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == "string")) {
523
+ if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore$1[name] == "string")) {
503
524
  var description = "Symbol." + name;
504
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
525
+ if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
505
526
  WellKnownSymbolsStore$1[name] = Symbol$1[name];
506
527
  } else if (useSymbolAsUid && symbolFor) {
507
528
  WellKnownSymbolsStore$1[name] = symbolFor(description);
@@ -661,7 +682,7 @@ var inspectSource = sharedStore.inspectSource;
661
682
 
662
683
  var WeakMap$1 = global_1.WeakMap;
663
684
 
664
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
685
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
665
686
 
666
687
  var keys = shared("keys");
667
688
 
@@ -693,13 +714,13 @@ var getterFor = function(TYPE) {
693
714
  };
694
715
  };
695
716
 
696
- if (nativeWeakMap || sharedStore.state) {
717
+ if (weakMapBasicDetection || sharedStore.state) {
697
718
  var store = sharedStore.state || (sharedStore.state = new WeakMap);
698
719
  var wmget = functionUncurryThis(store.get);
699
720
  var wmhas = functionUncurryThis(store.has);
700
721
  var wmset = functionUncurryThis(store.set);
701
722
  set = function(it, metadata) {
702
- if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
723
+ if (wmhas(store, it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
703
724
  metadata.facade = it;
704
725
  wmset(store, it, metadata);
705
726
  return metadata;
@@ -714,7 +735,7 @@ if (nativeWeakMap || sharedStore.state) {
714
735
  var STATE = sharedKey("state");
715
736
  hiddenKeys$1[STATE] = true;
716
737
  set = function(it, metadata) {
717
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
738
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
718
739
  metadata.facade = it;
719
740
  createNonEnumerableProperty(it, STATE, metadata);
720
741
  return metadata;
@@ -1028,7 +1049,7 @@ var correctIsRegexpLogic = function(METHOD_NAME) {
1028
1049
 
1029
1050
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1030
1051
 
1031
- var un$StartsWith = functionUncurryThis("".startsWith);
1052
+ var nativeStartsWith = functionUncurryThis("".startsWith);
1032
1053
 
1033
1054
  var stringSlice$2 = functionUncurryThis("".slice);
1034
1055
 
@@ -1051,7 +1072,7 @@ _export({
1051
1072
  notARegexp(searchString);
1052
1073
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
1053
1074
  var search = toString_1(searchString);
1054
- return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
1075
+ return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice$2(that, index, index + search.length) === search;
1055
1076
  }
1056
1077
  });
1057
1078
 
@@ -1343,7 +1364,7 @@ var path = global_1;
1343
1364
 
1344
1365
  var defineProperty$6 = objectDefineProperty.f;
1345
1366
 
1346
- var defineWellKnownSymbol = function(NAME) {
1367
+ var wellKnownSymbolDefine = function(NAME) {
1347
1368
  var Symbol = path.Symbol || (path.Symbol = {});
1348
1369
  if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
1349
1370
  value: wellKnownSymbolWrapped.f(NAME)
@@ -1587,7 +1608,7 @@ var $getOwnPropertySymbols = function(O) {
1587
1608
  return result;
1588
1609
  };
1589
1610
 
1590
- if (!nativeSymbol) {
1611
+ if (!symbolConstructorDetection) {
1591
1612
  $Symbol = function Symbol() {
1592
1613
  if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$2("Symbol is not a constructor");
1593
1614
  var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
@@ -1638,20 +1659,20 @@ _export({
1638
1659
  global: true,
1639
1660
  constructor: true,
1640
1661
  wrap: true,
1641
- forced: !nativeSymbol,
1642
- sham: !nativeSymbol
1662
+ forced: !symbolConstructorDetection,
1663
+ sham: !symbolConstructorDetection
1643
1664
  }, {
1644
1665
  Symbol: $Symbol
1645
1666
  });
1646
1667
 
1647
1668
  $forEach(objectKeys(WellKnownSymbolsStore), (function(name) {
1648
- defineWellKnownSymbol(name);
1669
+ wellKnownSymbolDefine(name);
1649
1670
  }));
1650
1671
 
1651
1672
  _export({
1652
1673
  target: SYMBOL,
1653
1674
  stat: true,
1654
- forced: !nativeSymbol
1675
+ forced: !symbolConstructorDetection
1655
1676
  }, {
1656
1677
  useSetter: function() {
1657
1678
  USE_SETTER = true;
@@ -1664,7 +1685,7 @@ _export({
1664
1685
  _export({
1665
1686
  target: "Object",
1666
1687
  stat: true,
1667
- forced: !nativeSymbol,
1688
+ forced: !symbolConstructorDetection,
1668
1689
  sham: !descriptors
1669
1690
  }, {
1670
1691
  create: $create,
@@ -1676,7 +1697,7 @@ _export({
1676
1697
  _export({
1677
1698
  target: "Object",
1678
1699
  stat: true,
1679
- forced: !nativeSymbol
1700
+ forced: !symbolConstructorDetection
1680
1701
  }, {
1681
1702
  getOwnPropertyNames: $getOwnPropertyNames
1682
1703
  });
@@ -1687,7 +1708,7 @@ setToStringTag($Symbol, SYMBOL);
1687
1708
 
1688
1709
  hiddenKeys$1[HIDDEN] = true;
1689
1710
 
1690
- var nativeSymbolRegistry = nativeSymbol && !!Symbol["for"] && !!Symbol.keyFor;
1711
+ var symbolRegistryDetection = symbolConstructorDetection && !!Symbol["for"] && !!Symbol.keyFor;
1691
1712
 
1692
1713
  var StringToSymbolRegistry = shared("string-to-symbol-registry");
1693
1714
 
@@ -1696,7 +1717,7 @@ var SymbolToStringRegistry$1 = shared("symbol-to-string-registry");
1696
1717
  _export({
1697
1718
  target: "Symbol",
1698
1719
  stat: true,
1699
- forced: !nativeSymbolRegistry
1720
+ forced: !symbolRegistryDetection
1700
1721
  }, {
1701
1722
  for: function(key) {
1702
1723
  var string = toString_1(key);
@@ -1713,7 +1734,7 @@ var SymbolToStringRegistry = shared("symbol-to-string-registry");
1713
1734
  _export({
1714
1735
  target: "Symbol",
1715
1736
  stat: true,
1716
- forced: !nativeSymbolRegistry
1737
+ forced: !symbolRegistryDetection
1717
1738
  }, {
1718
1739
  keyFor: function keyFor(sym) {
1719
1740
  if (!isSymbol(sym)) throw TypeError(tryToString(sym) + " is not a symbol");
@@ -1751,7 +1772,7 @@ var low = /^[\uD800-\uDBFF]$/;
1751
1772
 
1752
1773
  var hi = /^[\uDC00-\uDFFF]$/;
1753
1774
 
1754
- var WRONG_SYMBOLS_CONVERSION = !nativeSymbol || fails((function() {
1775
+ var WRONG_SYMBOLS_CONVERSION = !symbolConstructorDetection || fails((function() {
1755
1776
  var symbol = getBuiltIn("Symbol")();
1756
1777
  return $stringify([ symbol ]) != "[null]" || $stringify({
1757
1778
  a: symbol
@@ -1798,7 +1819,7 @@ if ($stringify) {
1798
1819
  });
1799
1820
  }
1800
1821
 
1801
- var FORCED$1 = !nativeSymbol || fails((function() {
1822
+ var FORCED$1 = !symbolConstructorDetection || fails((function() {
1802
1823
  objectGetOwnPropertySymbols.f(1);
1803
1824
  }));
1804
1825
 
@@ -1813,7 +1834,7 @@ _export({
1813
1834
  }
1814
1835
  });
1815
1836
 
1816
- defineWellKnownSymbol("asyncIterator");
1837
+ wellKnownSymbolDefine("asyncIterator");
1817
1838
 
1818
1839
  var defineProperty$4 = objectDefineProperty.f;
1819
1840
 
@@ -1833,17 +1854,17 @@ if (descriptors && isCallable(NativeSymbol) && (!("description" in SymbolPrototy
1833
1854
  SymbolWrapper.prototype = SymbolPrototype;
1834
1855
  SymbolPrototype.constructor = SymbolWrapper;
1835
1856
  var NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)";
1836
- var symbolToString = functionUncurryThis(SymbolPrototype.toString);
1837
- var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
1857
+ var thisSymbolValue = functionUncurryThis(SymbolPrototype.valueOf);
1858
+ var symbolDescriptiveString = functionUncurryThis(SymbolPrototype.toString);
1838
1859
  var regexp = /^Symbol\((.*)\)[^)]+$/;
1839
1860
  var replace = functionUncurryThis("".replace);
1840
1861
  var stringSlice$1 = functionUncurryThis("".slice);
1841
1862
  defineProperty$4(SymbolPrototype, "description", {
1842
1863
  configurable: true,
1843
1864
  get: function description() {
1844
- var symbol = symbolValueOf(this);
1845
- var string = symbolToString(symbol);
1865
+ var symbol = thisSymbolValue(this);
1846
1866
  if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return "";
1867
+ var string = symbolDescriptiveString(symbol);
1847
1868
  var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace(string, regexp, "$1");
1848
1869
  return desc === "" ? undefined : desc;
1849
1870
  }
@@ -1857,33 +1878,33 @@ if (descriptors && isCallable(NativeSymbol) && (!("description" in SymbolPrototy
1857
1878
  });
1858
1879
  }
1859
1880
 
1860
- defineWellKnownSymbol("hasInstance");
1881
+ wellKnownSymbolDefine("hasInstance");
1861
1882
 
1862
- defineWellKnownSymbol("isConcatSpreadable");
1883
+ wellKnownSymbolDefine("isConcatSpreadable");
1863
1884
 
1864
- defineWellKnownSymbol("iterator");
1885
+ wellKnownSymbolDefine("iterator");
1865
1886
 
1866
- defineWellKnownSymbol("match");
1887
+ wellKnownSymbolDefine("match");
1867
1888
 
1868
- defineWellKnownSymbol("matchAll");
1889
+ wellKnownSymbolDefine("matchAll");
1869
1890
 
1870
- defineWellKnownSymbol("replace");
1891
+ wellKnownSymbolDefine("replace");
1871
1892
 
1872
- defineWellKnownSymbol("search");
1893
+ wellKnownSymbolDefine("search");
1873
1894
 
1874
- defineWellKnownSymbol("species");
1895
+ wellKnownSymbolDefine("species");
1875
1896
 
1876
- defineWellKnownSymbol("split");
1897
+ wellKnownSymbolDefine("split");
1877
1898
 
1878
- defineWellKnownSymbol("toPrimitive");
1899
+ wellKnownSymbolDefine("toPrimitive");
1879
1900
 
1880
1901
  symbolDefineToPrimitive();
1881
1902
 
1882
- defineWellKnownSymbol("toStringTag");
1903
+ wellKnownSymbolDefine("toStringTag");
1883
1904
 
1884
1905
  setToStringTag(getBuiltIn("Symbol"), "Symbol");
1885
1906
 
1886
- defineWellKnownSymbol("unscopables");
1907
+ wellKnownSymbolDefine("unscopables");
1887
1908
 
1888
1909
  setToStringTag(global_1.JSON, "JSON", true);
1889
1910
 
@@ -1958,7 +1979,7 @@ if ([].keys) {
1958
1979
  }
1959
1980
  }
1960
1981
 
1961
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails((function() {
1982
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails((function() {
1962
1983
  var test = {};
1963
1984
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
1964
1985
  }));
@@ -1984,7 +2005,7 @@ var returnThis$1 = function() {
1984
2005
  return this;
1985
2006
  };
1986
2007
 
1987
- var createIteratorConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2008
+ var iteratorCreateConstructor = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1988
2009
  var TO_STRING_TAG = NAME + " Iterator";
1989
2010
  IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, {
1990
2011
  next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)
@@ -2040,8 +2061,8 @@ var returnThis = function() {
2040
2061
  return this;
2041
2062
  };
2042
2063
 
2043
- var defineIterator = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2044
- createIteratorConstructor(IteratorConstructor, NAME, next);
2064
+ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2065
+ iteratorCreateConstructor(IteratorConstructor, NAME, next);
2045
2066
  var getIterationMethod = function(KIND) {
2046
2067
  if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2047
2068
  if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
@@ -2120,6 +2141,13 @@ var defineIterator = function(Iterable, NAME, IteratorConstructor, next, DEFAULT
2120
2141
  return methods;
2121
2142
  };
2122
2143
 
2144
+ var createIterResultObject = function(value, done) {
2145
+ return {
2146
+ value: value,
2147
+ done: done
2148
+ };
2149
+ };
2150
+
2123
2151
  var charAt = stringMultibyte.charAt;
2124
2152
 
2125
2153
  var STRING_ITERATOR = "String Iterator";
@@ -2128,7 +2156,7 @@ var setInternalState$2 = internalState.set;
2128
2156
 
2129
2157
  var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
2130
2158
 
2131
- defineIterator(String, "String", (function(iterated) {
2159
+ iteratorDefine(String, "String", (function(iterated) {
2132
2160
  setInternalState$2(this, {
2133
2161
  type: STRING_ITERATOR,
2134
2162
  string: toString_1(iterated),
@@ -2139,16 +2167,10 @@ defineIterator(String, "String", (function(iterated) {
2139
2167
  var string = state.string;
2140
2168
  var index = state.index;
2141
2169
  var point;
2142
- if (index >= string.length) return {
2143
- value: undefined,
2144
- done: true
2145
- };
2170
+ if (index >= string.length) return createIterResultObject(undefined, true);
2146
2171
  point = charAt(string, index);
2147
2172
  state.index += point.length;
2148
- return {
2149
- value: point,
2150
- done: false
2151
- };
2173
+ return createIterResultObject(point, false);
2152
2174
  }));
2153
2175
 
2154
2176
  var iteratorClose = function(iterator, kind, value) {
@@ -2190,7 +2212,7 @@ var isArrayIteratorMethod = function(it) {
2190
2212
  var ITERATOR$1 = wellKnownSymbol("iterator");
2191
2213
 
2192
2214
  var getIteratorMethod = function(it) {
2193
- if (it != undefined) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
2215
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1) || getMethod(it, "@@iterator") || iterators[classof(it)];
2194
2216
  };
2195
2217
 
2196
2218
  var $TypeError$3 = TypeError;
@@ -2290,7 +2312,7 @@ _export({
2290
2312
 
2291
2313
  path.Array.from;
2292
2314
 
2293
- var arrayBufferNative = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
2315
+ var arrayBufferBasicDetection = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
2294
2316
 
2295
2317
  var defineProperty$3 = objectDefineProperty.f;
2296
2318
 
@@ -2320,7 +2342,7 @@ var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG");
2320
2342
 
2321
2343
  var TYPED_ARRAY_CONSTRUCTOR = "TypedArrayConstructor";
2322
2344
 
2323
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
2345
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== "Opera";
2324
2346
 
2325
2347
  var TYPED_ARRAY_TAG_REQUIRED = false;
2326
2348
 
@@ -2483,7 +2505,7 @@ var SPECIES$1 = wellKnownSymbol("species");
2483
2505
  var speciesConstructor = function(O, defaultConstructor) {
2484
2506
  var C = anObject(O).constructor;
2485
2507
  var S;
2486
- return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
2508
+ return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2487
2509
  };
2488
2510
 
2489
2511
  var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
@@ -2571,7 +2593,7 @@ var setInternalState$1 = internalState.set;
2571
2593
 
2572
2594
  var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
2573
2595
 
2574
- defineIterator(Array, "Array", (function(iterated, kind) {
2596
+ iteratorDefine(Array, "Array", (function(iterated, kind) {
2575
2597
  setInternalState$1(this, {
2576
2598
  type: ARRAY_ITERATOR,
2577
2599
  target: toIndexedObject(iterated),
@@ -2585,23 +2607,11 @@ defineIterator(Array, "Array", (function(iterated, kind) {
2585
2607
  var index = state.index++;
2586
2608
  if (!target || index >= target.length) {
2587
2609
  state.target = undefined;
2588
- return {
2589
- value: undefined,
2590
- done: true
2591
- };
2610
+ return createIterResultObject(undefined, true);
2592
2611
  }
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
- };
2612
+ if (kind == "keys") return createIterResultObject(index, false);
2613
+ if (kind == "values") return createIterResultObject(target[index], false);
2614
+ return createIterResultObject([ index, target[index] ], false);
2605
2615
  }), "values");
2606
2616
 
2607
2617
  var values = iterators.Arguments = iterators.Array;
@@ -2839,7 +2849,7 @@ var collection = function(CONSTRUCTOR_NAME, wrapper, common) {
2839
2849
  Constructor = wrapper((function(dummy, iterable) {
2840
2850
  anInstance(dummy, NativePrototype);
2841
2851
  var that = inheritIfRequired(new NativeConstructor, dummy, Constructor);
2842
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2852
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2843
2853
  that: that,
2844
2854
  AS_ENTRIES: IS_MAP
2845
2855
  });
@@ -2907,7 +2917,7 @@ var collectionStrong = {
2907
2917
  size: 0
2908
2918
  });
2909
2919
  if (!descriptors) that.size = 0;
2910
- if (iterable != undefined) iterate(iterable, that[ADDER], {
2920
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], {
2911
2921
  that: that,
2912
2922
  AS_ENTRIES: IS_MAP
2913
2923
  });
@@ -3014,7 +3024,7 @@ var collectionStrong = {
3014
3024
  var ITERATOR_NAME = CONSTRUCTOR_NAME + " Iterator";
3015
3025
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
3016
3026
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
3017
- defineIterator(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
3027
+ iteratorDefine(Constructor, CONSTRUCTOR_NAME, (function(iterated, kind) {
3018
3028
  setInternalState(this, {
3019
3029
  type: ITERATOR_NAME,
3020
3030
  target: iterated,
@@ -3029,23 +3039,11 @@ var collectionStrong = {
3029
3039
  while (entry && entry.removed) entry = entry.previous;
3030
3040
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
3031
3041
  state.target = undefined;
3032
- return {
3033
- value: undefined,
3034
- done: true
3035
- };
3042
+ return createIterResultObject(undefined, true);
3036
3043
  }
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
- };
3044
+ if (kind == "keys") return createIterResultObject(entry.key, false);
3045
+ if (kind == "values") return createIterResultObject(entry.value, false);
3046
+ return createIterResultObject([ entry.key, entry.value ], false);
3049
3047
  }), IS_MAP ? "entries" : "values", !IS_MAP, true);
3050
3048
  setSpecies(CONSTRUCTOR_NAME);
3051
3049
  }
@@ -3614,7 +3612,7 @@ if (typeof globalNS["Promise"] !== "function") {
3614
3612
  })(typeof self !== "undefined" ? self : commonjsGlobal);
3615
3613
  }));
3616
3614
 
3617
- var version = "1.22.4";
3615
+ var version = "1.22.6";
3618
3616
 
3619
3617
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3620
3618
 
@@ -3943,6 +3941,7 @@ var sendMessage = function(message, to) {
3943
3941
  } else {
3944
3942
  resolve(event.data);
3945
3943
  }
3944
+ messageChannel.port1.close();
3946
3945
  };
3947
3946
  to.postMessage(message, [ messageChannel.port2 ]);
3948
3947
  }));
@@ -5307,20 +5306,27 @@ var Auth0Client = function() {
5307
5306
  options = {};
5308
5307
  }
5309
5308
  return __awaiter(this, void 0, void 0, (function() {
5310
- var _a, ignoreCache, getTokenOptions;
5309
+ var _a, ignoreCache, getTokenOptions, result;
5311
5310
  var _this = this;
5312
5311
  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)) ];
5312
+ switch (_b.label) {
5313
+ case 0:
5314
+ _a = __assign(__assign({
5315
+ audience: this.options.audience,
5316
+ ignoreCache: false
5317
+ }, options), {
5318
+ scope: getUniqueScopes(this.defaultScope, this.scope, options.scope)
5319
+ }), ignoreCache = _a.ignoreCache, getTokenOptions = __rest(_a, [ "ignoreCache" ]);
5320
+ return [ 4, singlePromise((function() {
5321
+ return _this._getTokenSilently(__assign({
5322
+ ignoreCache: ignoreCache
5323
+ }, getTokenOptions));
5324
+ }), "".concat(this.options.client_id, "::").concat(getTokenOptions.audience, "::").concat(getTokenOptions.scope)) ];
5325
+
5326
+ case 1:
5327
+ result = _b.sent();
5328
+ return [ 2, options.detailedResponse ? result : result.access_token ];
5329
+ }
5324
5330
  }));
5325
5331
  }));
5326
5332
  };
@@ -5338,8 +5344,7 @@ var Auth0Client = function() {
5338
5344
  return [ 4, this._getEntryFromCache({
5339
5345
  scope: getTokenOptions.scope,
5340
5346
  audience: getTokenOptions.audience || "default",
5341
- client_id: this.options.client_id,
5342
- getDetailedEntry: options.detailedResponse
5347
+ client_id: this.options.client_id
5343
5348
  }) ];
5344
5349
 
5345
5350
  case 1:
@@ -5365,8 +5370,7 @@ var Auth0Client = function() {
5365
5370
  return [ 4, this._getEntryFromCache({
5366
5371
  scope: getTokenOptions.scope,
5367
5372
  audience: getTokenOptions.audience || "default",
5368
- client_id: this.options.client_id,
5369
- getDetailedEntry: options.detailedResponse
5373
+ client_id: this.options.client_id
5370
5374
  }) ];
5371
5375
 
5372
5376
  case 5:
@@ -5403,19 +5407,16 @@ var Auth0Client = function() {
5403
5407
  daysUntilExpire: this.sessionCheckExpiryDays,
5404
5408
  cookieDomain: this.options.cookieDomain
5405
5409
  });
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 ];
5410
+ id_token = authResult.id_token, access_token = authResult.access_token, oauthTokenScope = authResult.oauthTokenScope,
5411
+ expires_in = authResult.expires_in;
5412
+ return [ 2, __assign(__assign({
5413
+ id_token: id_token,
5414
+ access_token: access_token
5415
+ }, oauthTokenScope ? {
5416
+ scope: oauthTokenScope
5417
+ } : null), {
5418
+ expires_in: expires_in
5419
+ }) ];
5419
5420
 
5420
5421
  case 12:
5421
5422
  return [ 4, lock.releaseLock(GET_TOKEN_SILENTLY_LOCK_KEY) ];
@@ -5692,11 +5693,11 @@ var Auth0Client = function() {
5692
5693
  }));
5693
5694
  };
5694
5695
  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;
5696
+ var scope = _a.scope, audience = _a.audience, client_id = _a.client_id;
5696
5697
  return __awaiter(this, void 0, void 0, (function() {
5697
5698
  var entry, id_token, access_token, oauthTokenScope, expires_in;
5698
- return __generator(this, (function(_c) {
5699
- switch (_c.label) {
5699
+ return __generator(this, (function(_b) {
5700
+ switch (_b.label) {
5700
5701
  case 0:
5701
5702
  return [ 4, this.cacheManager.get(new CacheKey({
5702
5703
  scope: scope,
@@ -5705,21 +5706,18 @@ var Auth0Client = function() {
5705
5706
  }), 60) ];
5706
5707
 
5707
5708
  case 1:
5708
- entry = _c.sent();
5709
+ entry = _b.sent();
5709
5710
  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 ];
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
+ }) ];
5723
5721
  }
5724
5722
  return [ 2 ];
5725
5723
  }