@firebase/auth 1.13.4 → 1.13.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.
- package/dist/browser-cjs/{index-D1eM-zGc.js → index-DY73Er5u.js} +12 -30
- package/dist/browser-cjs/index-DY73Er5u.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-B-tPyF2Y.js → popup_redirect-D_ZWtJhY.js} +12 -30
- package/dist/cordova/popup_redirect-D_ZWtJhY.js.map +1 -0
- package/dist/esm/{index-DGK4UgBf.js → index-CvXU3_1x.js} +12 -30
- package/dist/esm/index-CvXU3_1x.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal.js +2 -2
- package/dist/index.webworker.js +11 -29
- package/dist/index.webworker.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/{totp-D1uGng8T.js → totp-B19JzI52.js} +2 -2
- package/dist/node/totp-B19JzI52.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/{totp-C7PFgVcO.js → totp-C24pd8aS.js} +2 -2
- package/dist/node-esm/totp-C24pd8aS.js.map +1 -0
- package/dist/rn/{index-bWGFqYVI.js → index-CiDS6PaG.js} +2 -2
- package/dist/rn/index-CiDS6PaG.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +11 -29
- package/dist/rn/internal.js.map +1 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-CFPR54H_.js → register-dQ43sygv.js} +12 -30
- package/dist/web-extension-cjs/register-dQ43sygv.js.map +1 -0
- package/dist/web-extension-esm/index.js +2 -2
- package/dist/web-extension-esm/internal.js +2 -2
- package/dist/web-extension-esm/internal.js.map +1 -1
- package/dist/web-extension-esm/{register-Ct10ccti.js → register-DN05P0kB.js} +12 -30
- package/dist/web-extension-esm/register-DN05P0kB.js.map +1 -0
- package/package.json +5 -6
- package/dist/browser-cjs/index-D1eM-zGc.js.map +0 -1
- package/dist/cordova/popup_redirect-B-tPyF2Y.js.map +0 -1
- package/dist/esm/index-DGK4UgBf.js.map +0 -1
- package/dist/node/totp-D1uGng8T.js.map +0 -1
- package/dist/node-esm/totp-C7PFgVcO.js.map +0 -1
- package/dist/rn/index-bWGFqYVI.js.map +0 -1
- package/dist/web-extension-cjs/register-CFPR54H_.js.map +0 -1
- package/dist/web-extension-esm/register-Ct10ccti.js.map +0 -1
|
@@ -7738,10 +7738,6 @@ class IndexedDBLocalPersistence {
|
|
|
7738
7738
|
window.addEventListener('pagehide', this.onPageHide);
|
|
7739
7739
|
window.addEventListener('pageshow', this.onPageShow);
|
|
7740
7740
|
}
|
|
7741
|
-
if (typeof document !== 'undefined' &&
|
|
7742
|
-
typeof document.addEventListener === 'function') {
|
|
7743
|
-
document.addEventListener('visibilitychange', this.onVisibilityChange);
|
|
7744
|
-
}
|
|
7745
7741
|
}
|
|
7746
7742
|
unregisterLifecycleListeners() {
|
|
7747
7743
|
if (typeof window !== 'undefined' &&
|
|
@@ -7749,10 +7745,6 @@ class IndexedDBLocalPersistence {
|
|
|
7749
7745
|
window.removeEventListener('pagehide', this.onPageHide);
|
|
7750
7746
|
window.removeEventListener('pageshow', this.onPageShow);
|
|
7751
7747
|
}
|
|
7752
|
-
if (typeof document !== 'undefined' &&
|
|
7753
|
-
typeof document.removeEventListener === 'function') {
|
|
7754
|
-
document.removeEventListener('visibilitychange', this.onVisibilityChange);
|
|
7755
|
-
}
|
|
7756
7748
|
}
|
|
7757
7749
|
constructor() {
|
|
7758
7750
|
this.type = "LOCAL" /* PersistenceType.LOCAL */;
|
|
@@ -7763,14 +7755,14 @@ class IndexedDBLocalPersistence {
|
|
|
7763
7755
|
// setTimeout return value is platform specific
|
|
7764
7756
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7765
7757
|
this.pollTimer = null;
|
|
7766
|
-
this.
|
|
7758
|
+
this.isClosing = false;
|
|
7767
7759
|
this.pendingWrites = 0;
|
|
7768
7760
|
this.receiver = null;
|
|
7769
7761
|
this.sender = null;
|
|
7770
7762
|
this.serviceWorkerReceiverAvailable = false;
|
|
7771
7763
|
this.activeServiceWorker = null;
|
|
7772
7764
|
this.onPageHide = () => {
|
|
7773
|
-
this.
|
|
7765
|
+
this.isClosing = true;
|
|
7774
7766
|
this.stopPolling();
|
|
7775
7767
|
if (this.dbPromise) {
|
|
7776
7768
|
this.dbPromise.then(db => db.close()).catch(() => { });
|
|
@@ -7778,30 +7770,20 @@ class IndexedDBLocalPersistence {
|
|
|
7778
7770
|
}
|
|
7779
7771
|
};
|
|
7780
7772
|
this.onPageShow = () => {
|
|
7781
|
-
if (this.
|
|
7782
|
-
this.
|
|
7773
|
+
if (this.isClosing) {
|
|
7774
|
+
this.isClosing = false;
|
|
7783
7775
|
if (Object.keys(this.listeners).length > 0) {
|
|
7784
7776
|
this.startPolling();
|
|
7785
7777
|
}
|
|
7786
7778
|
}
|
|
7787
7779
|
};
|
|
7788
|
-
this.onVisibilityChange = () => {
|
|
7789
|
-
if (typeof document !== 'undefined') {
|
|
7790
|
-
if (document.visibilityState === 'hidden') {
|
|
7791
|
-
this.onPageHide();
|
|
7792
|
-
}
|
|
7793
|
-
else if (document.visibilityState === 'visible') {
|
|
7794
|
-
this.onPageShow();
|
|
7795
|
-
}
|
|
7796
|
-
}
|
|
7797
|
-
};
|
|
7798
7780
|
// Fire & forget the service worker registration as it may never resolve
|
|
7799
7781
|
this._workerInitializationPromise =
|
|
7800
7782
|
this.initializeServiceWorkerMessaging().then(() => { }, () => { });
|
|
7801
7783
|
}
|
|
7802
7784
|
async _openDb() {
|
|
7803
|
-
if (this.
|
|
7804
|
-
throw new Error('Database is closing
|
|
7785
|
+
if (this.isClosing) {
|
|
7786
|
+
throw new Error('Database is closing');
|
|
7805
7787
|
}
|
|
7806
7788
|
if (this.dbPromise) {
|
|
7807
7789
|
return this.dbPromise;
|
|
@@ -7820,7 +7802,7 @@ class IndexedDBLocalPersistence {
|
|
|
7820
7802
|
return await op(db);
|
|
7821
7803
|
}
|
|
7822
7804
|
catch (e) {
|
|
7823
|
-
if (this.
|
|
7805
|
+
if (this.isClosing) {
|
|
7824
7806
|
throw e;
|
|
7825
7807
|
}
|
|
7826
7808
|
if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {
|
|
@@ -7952,7 +7934,7 @@ class IndexedDBLocalPersistence {
|
|
|
7952
7934
|
});
|
|
7953
7935
|
}
|
|
7954
7936
|
async _poll() {
|
|
7955
|
-
if (this.
|
|
7937
|
+
if (this.isClosing) {
|
|
7956
7938
|
return [];
|
|
7957
7939
|
}
|
|
7958
7940
|
try {
|
|
@@ -7961,7 +7943,7 @@ class IndexedDBLocalPersistence {
|
|
|
7961
7943
|
const getAllRequest = getObjectStore(db, false).getAll();
|
|
7962
7944
|
return new DBPromise(getAllRequest).toPromise();
|
|
7963
7945
|
});
|
|
7964
|
-
if (this.
|
|
7946
|
+
if (this.isClosing) {
|
|
7965
7947
|
return [];
|
|
7966
7948
|
}
|
|
7967
7949
|
if (!result) {
|
|
@@ -7992,7 +7974,7 @@ class IndexedDBLocalPersistence {
|
|
|
7992
7974
|
return keys;
|
|
7993
7975
|
}
|
|
7994
7976
|
catch (e) {
|
|
7995
|
-
if (!this.
|
|
7977
|
+
if (!this.isClosing) {
|
|
7996
7978
|
_logWarn(`Firebase Auth cross-tab polling failed with error: ${e}`);
|
|
7997
7979
|
}
|
|
7998
7980
|
return [];
|
|
@@ -8240,7 +8222,7 @@ function _isEmptyString(input) {
|
|
|
8240
8222
|
}
|
|
8241
8223
|
|
|
8242
8224
|
var name = "@firebase/auth";
|
|
8243
|
-
var version = "1.13.
|
|
8225
|
+
var version = "1.13.5";
|
|
8244
8226
|
|
|
8245
8227
|
/**
|
|
8246
8228
|
* @license
|
|
@@ -8504,4 +8486,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
8504
8486
|
exports.validatePassword = validatePassword;
|
|
8505
8487
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
8506
8488
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
8507
|
-
//# sourceMappingURL=register-
|
|
8489
|
+
//# sourceMappingURL=register-dQ43sygv.js.map
|