@auth0/auth0-spa-js 1.22.5 → 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);
@@ -346,15 +346,26 @@ var toIndexedObject = function(it) {
346
346
  return indexedObject(requireObjectCoercible(it));
347
347
  };
348
348
 
349
- var isCallable = function(argument) {
350
- return typeof argument == "function";
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
351
356
  };
352
357
 
353
- var documentAll = typeof document == "object" && document.all;
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) {
363
+ return typeof argument == "function";
364
+ };
354
365
 
355
- var SPECIAL_DOCUMENT_ALL = typeof documentAll == "undefined" && documentAll !== undefined;
366
+ var documentAll = documentAll_1.all;
356
367
 
357
- var isObject = SPECIAL_DOCUMENT_ALL ? function(it) {
368
+ var isObject = documentAll_1.IS_HTMLDDA ? function(it) {
358
369
  return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
359
370
  } : function(it) {
360
371
  return typeof it == "object" ? it !== null : isCallable(it);
@@ -470,10 +481,10 @@ var shared = createCommonjsModule((function(module) {
470
481
  (module.exports = function(key, value) {
471
482
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
472
483
  })("versions", []).push({
473
- version: "3.25.1",
484
+ version: "3.25.4",
474
485
  mode: "global",
475
486
  copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
476
- license: "https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",
487
+ license: "https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",
477
488
  source: "https://github.com/zloirock/core-js"
478
489
  });
479
490
  }));
@@ -3601,7 +3612,7 @@ if (typeof globalNS["Promise"] !== "function") {
3601
3612
  })(typeof self !== "undefined" ? self : commonjsGlobal);
3602
3613
  }));
3603
3614
 
3604
- var version = "1.22.5";
3615
+ var version = "1.22.6";
3605
3616
 
3606
3617
  var DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
3607
3618
 
@@ -3930,6 +3941,7 @@ var sendMessage = function(message, to) {
3930
3941
  } else {
3931
3942
  resolve(event.data);
3932
3943
  }
3944
+ messageChannel.port1.close();
3933
3945
  };
3934
3946
  to.postMessage(message, [ messageChannel.port2 ]);
3935
3947
  }));