@auth0/auth0-spa-js 1.19.3 → 1.19.4

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,11 +359,11 @@
359
359
  };
360
360
 
361
361
  // eslint-disable-next-line es/no-object-defineproperty -- safe
362
- var defineProperty$5 = Object.defineProperty;
362
+ var defineProperty$6 = Object.defineProperty;
363
363
 
364
364
  var setGlobal = function (key, value) {
365
365
  try {
366
- defineProperty$5(global_1, key, { value: value, configurable: true, writable: true });
366
+ defineProperty$6(global_1, key, { value: value, configurable: true, writable: true });
367
367
  } catch (error) {
368
368
  global_1[key] = value;
369
369
  } return value;
@@ -378,7 +378,7 @@
378
378
  (module.exports = function (key, value) {
379
379
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
380
380
  })('versions', []).push({
381
- version: '3.19.1',
381
+ version: '3.20.0',
382
382
  mode: 'global',
383
383
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
384
384
  });
@@ -675,7 +675,7 @@
675
675
  return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
676
676
  };
677
677
 
678
- var max = Math.max;
678
+ var max$1 = Math.max;
679
679
  var min$2 = Math.min;
680
680
 
681
681
  // Helper for a popular repeating case of the spec:
@@ -683,7 +683,7 @@
683
683
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
684
684
  var toAbsoluteIndex = function (index, length) {
685
685
  var integer = toIntegerOrInfinity(index);
686
- return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
686
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
687
687
  };
688
688
 
689
689
  var min$1 = Math.min;
@@ -787,13 +787,15 @@
787
787
  return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
788
788
  };
789
789
 
790
- var copyConstructorProperties = function (target, source) {
790
+ var copyConstructorProperties = function (target, source, exceptions) {
791
791
  var keys = ownKeys(source);
792
792
  var defineProperty = objectDefineProperty.f;
793
793
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
794
794
  for (var i = 0; i < keys.length; i++) {
795
795
  var key = keys[i];
796
- if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
796
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
797
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
798
+ }
797
799
  }
798
800
  };
799
801
 
@@ -1002,7 +1004,7 @@
1002
1004
  var exec = functionUncurryThis(constructorRegExp.exec);
1003
1005
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop$1);
1004
1006
 
1005
- var isConstructorModern = function (argument) {
1007
+ var isConstructorModern = function isConstructor(argument) {
1006
1008
  if (!isCallable(argument)) return false;
1007
1009
  try {
1008
1010
  construct(noop$1, empty, argument);
@@ -1012,16 +1014,25 @@
1012
1014
  }
1013
1015
  };
1014
1016
 
1015
- var isConstructorLegacy = function (argument) {
1017
+ var isConstructorLegacy = function isConstructor(argument) {
1016
1018
  if (!isCallable(argument)) return false;
1017
1019
  switch (classof(argument)) {
1018
1020
  case 'AsyncFunction':
1019
1021
  case 'GeneratorFunction':
1020
1022
  case 'AsyncGeneratorFunction': return false;
1023
+ }
1024
+ try {
1021
1025
  // we can't check .prototype since constructors produced by .bind haven't it
1022
- } return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1026
+ // `Function#toString` throws on some built-it function in some legacy engines
1027
+ // (for example, `DOMQuad` and similar in FF41-)
1028
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1029
+ } catch (error) {
1030
+ return true;
1031
+ }
1023
1032
  };
1024
1033
 
1034
+ isConstructorLegacy.sham = true;
1035
+
1025
1036
  // `IsConstructor` abstract operation
1026
1037
  // https://tc39.es/ecma262/#sec-isconstructor
1027
1038
  var isConstructor = !construct || fails(function () {
@@ -1033,7 +1044,7 @@
1033
1044
  }) ? isConstructorLegacy : isConstructorModern;
1034
1045
 
1035
1046
  var SPECIES$3 = wellKnownSymbol('species');
1036
- var Array$2 = global_1.Array;
1047
+ var Array$3 = global_1.Array;
1037
1048
 
1038
1049
  // a part of `ArraySpeciesCreate` abstract operation
1039
1050
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -1042,12 +1053,12 @@
1042
1053
  if (isArray$1(originalArray)) {
1043
1054
  C = originalArray.constructor;
1044
1055
  // cross-realm fallback
1045
- if (isConstructor(C) && (C === Array$2 || isArray$1(C.prototype))) C = undefined;
1056
+ if (isConstructor(C) && (C === Array$3 || isArray$1(C.prototype))) C = undefined;
1046
1057
  else if (isObject(C)) {
1047
1058
  C = C[SPECIES$3];
1048
1059
  if (C === null) C = undefined;
1049
1060
  }
1050
- } return C === undefined ? Array$2 : C;
1061
+ } return C === undefined ? Array$3 : C;
1051
1062
  };
1052
1063
 
1053
1064
  // `ArraySpeciesCreate` abstract operation
@@ -1250,7 +1261,18 @@
1250
1261
  return Properties === undefined ? result : objectDefineProperties(result, Properties);
1251
1262
  };
1252
1263
 
1253
- var arraySlice = functionUncurryThis([].slice);
1264
+ var Array$2 = global_1.Array;
1265
+ var max = Math.max;
1266
+
1267
+ var arraySliceSimple = function (O, start, end) {
1268
+ var length = lengthOfArrayLike(O);
1269
+ var k = toAbsoluteIndex(start, length);
1270
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
1271
+ var result = Array$2(max(fin - k, 0));
1272
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
1273
+ result.length = n;
1274
+ return result;
1275
+ };
1254
1276
 
1255
1277
  /* eslint-disable es/no-object-getownpropertynames -- safe */
1256
1278
 
@@ -1265,7 +1287,7 @@
1265
1287
  try {
1266
1288
  return $getOwnPropertyNames$1(it);
1267
1289
  } catch (error) {
1268
- return arraySlice(windowNames);
1290
+ return arraySliceSimple(windowNames);
1269
1291
  }
1270
1292
  };
1271
1293
 
@@ -1280,6 +1302,8 @@
1280
1302
  f: f$1
1281
1303
  };
1282
1304
 
1305
+ var arraySlice = functionUncurryThis([].slice);
1306
+
1283
1307
  var f = wellKnownSymbol;
1284
1308
 
1285
1309
  var wellKnownSymbolWrapped = {
@@ -1288,24 +1312,25 @@
1288
1312
 
1289
1313
  var path = global_1;
1290
1314
 
1291
- var defineProperty$4 = objectDefineProperty.f;
1315
+ var defineProperty$5 = objectDefineProperty.f;
1292
1316
 
1293
1317
  var defineWellKnownSymbol = function (NAME) {
1294
1318
  var Symbol = path.Symbol || (path.Symbol = {});
1295
- if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$4(Symbol, NAME, {
1319
+ if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$5(Symbol, NAME, {
1296
1320
  value: wellKnownSymbolWrapped.f(NAME)
1297
1321
  });
1298
1322
  };
1299
1323
 
1300
- var defineProperty$3 = objectDefineProperty.f;
1324
+ var defineProperty$4 = objectDefineProperty.f;
1301
1325
 
1302
1326
 
1303
1327
 
1304
1328
  var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1305
1329
 
1306
- var setToStringTag = function (it, TAG, STATIC) {
1307
- if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG$1)) {
1308
- defineProperty$3(it, TO_STRING_TAG$1, { configurable: true, value: TAG });
1330
+ var setToStringTag = function (target, TAG, STATIC) {
1331
+ if (target && !STATIC) target = target.prototype;
1332
+ if (target && !hasOwnProperty_1(target, TO_STRING_TAG$1)) {
1333
+ defineProperty$4(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1309
1334
  }
1310
1335
  };
1311
1336
 
@@ -1672,7 +1697,7 @@
1672
1697
  // https://tc39.es/ecma262/#sec-symbol.asynciterator
1673
1698
  defineWellKnownSymbol('asyncIterator');
1674
1699
 
1675
- var defineProperty$2 = objectDefineProperty.f;
1700
+ var defineProperty$3 = objectDefineProperty.f;
1676
1701
 
1677
1702
 
1678
1703
  var NativeSymbol = global_1.Symbol;
@@ -1705,7 +1730,7 @@
1705
1730
  var replace = functionUncurryThis(''.replace);
1706
1731
  var stringSlice$1 = functionUncurryThis(''.slice);
1707
1732
 
1708
- defineProperty$2(SymbolPrototype, 'description', {
1733
+ defineProperty$3(SymbolPrototype, 'description', {
1709
1734
  configurable: true,
1710
1735
  get: function description() {
1711
1736
  var symbol = symbolValueOf(this);
@@ -1888,9 +1913,9 @@
1888
1913
 
1889
1914
  var returnThis$1 = function () { return this; };
1890
1915
 
1891
- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1916
+ var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1892
1917
  var TO_STRING_TAG = NAME + ' Iterator';
1893
- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1918
+ IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1894
1919
  setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1895
1920
  iterators[TO_STRING_TAG] = returnThis$1;
1896
1921
  return IteratorConstructor;
@@ -2186,7 +2211,7 @@
2186
2211
  // eslint-disable-next-line es/no-typed-arrays -- safe
2187
2212
  var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
2188
2213
 
2189
- var defineProperty$1 = objectDefineProperty.f;
2214
+ var defineProperty$2 = objectDefineProperty.f;
2190
2215
 
2191
2216
 
2192
2217
 
@@ -2252,7 +2277,7 @@
2252
2277
  throw TypeError$4(tryToString(C) + ' is not a typed array constructor');
2253
2278
  };
2254
2279
 
2255
- var exportTypedArrayMethod$1 = function (KEY, property, forced) {
2280
+ var exportTypedArrayMethod$1 = function (KEY, property, forced, options) {
2256
2281
  if (!descriptors) return;
2257
2282
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
2258
2283
  var TypedArrayConstructor = global_1[ARRAY];
@@ -2262,7 +2287,7 @@
2262
2287
  }
2263
2288
  if (!TypedArrayPrototype[KEY] || forced) {
2264
2289
  redefine(TypedArrayPrototype, KEY, forced ? property
2265
- : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);
2290
+ : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
2266
2291
  }
2267
2292
  };
2268
2293
 
@@ -2329,7 +2354,7 @@
2329
2354
 
2330
2355
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG)) {
2331
2356
  TYPED_ARRAY_TAG_REQIRED = true;
2332
- defineProperty$1(TypedArrayPrototype, TO_STRING_TAG, { get: function () {
2357
+ defineProperty$2(TypedArrayPrototype, TO_STRING_TAG, { get: function () {
2333
2358
  return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
2334
2359
  } });
2335
2360
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
@@ -2447,6 +2472,11 @@
2447
2472
 
2448
2473
  entryUnbind('String', 'includes');
2449
2474
 
2475
+ var defineProperty$1 = objectDefineProperty.f;
2476
+
2477
+
2478
+
2479
+
2450
2480
  var ARRAY_ITERATOR = 'Array Iterator';
2451
2481
  var setInternalState$1 = internalState.set;
2452
2482
  var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
@@ -2487,13 +2517,18 @@
2487
2517
  // argumentsList[@@iterator] is %ArrayProto_values%
2488
2518
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2489
2519
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2490
- iterators.Arguments = iterators.Array;
2520
+ var values = iterators.Arguments = iterators.Array;
2491
2521
 
2492
2522
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2493
2523
  addToUnscopables('keys');
2494
2524
  addToUnscopables('values');
2495
2525
  addToUnscopables('entries');
2496
2526
 
2527
+ // V8 ~ Chrome 45- bug
2528
+ if (descriptors && values.name !== 'values') try {
2529
+ defineProperty$1(values, 'name', { value: 'values' });
2530
+ } catch (error) { /* empty */ }
2531
+
2497
2532
  // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
2498
2533
 
2499
2534
 
@@ -4143,7 +4178,7 @@
4143
4178
 
4144
4179
  var Lock = unwrapExports(browserTabsLock);
4145
4180
 
4146
- var version = '1.19.3';
4181
+ var version = '1.19.4';
4147
4182
 
4148
4183
  /**
4149
4184
  * @ignore
@@ -5611,7 +5646,9 @@
5611
5646
  };
5612
5647
  Auth0Client.prototype._processOrgIdHint = function (organizationId) {
5613
5648
  if (organizationId) {
5614
- this.cookieStorage.save(this.orgHintCookieName, organizationId);
5649
+ this.cookieStorage.save(this.orgHintCookieName, organizationId, {
5650
+ daysUntilExpire: this.sessionCheckExpiryDays
5651
+ });
5615
5652
  }
5616
5653
  else {
5617
5654
  this.cookieStorage.remove(this.orgHintCookieName);