@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
|
@@ -7736,10 +7736,6 @@ class IndexedDBLocalPersistence {
|
|
|
7736
7736
|
window.addEventListener('pagehide', this.onPageHide);
|
|
7737
7737
|
window.addEventListener('pageshow', this.onPageShow);
|
|
7738
7738
|
}
|
|
7739
|
-
if (typeof document !== 'undefined' &&
|
|
7740
|
-
typeof document.addEventListener === 'function') {
|
|
7741
|
-
document.addEventListener('visibilitychange', this.onVisibilityChange);
|
|
7742
|
-
}
|
|
7743
7739
|
}
|
|
7744
7740
|
unregisterLifecycleListeners() {
|
|
7745
7741
|
if (typeof window !== 'undefined' &&
|
|
@@ -7747,10 +7743,6 @@ class IndexedDBLocalPersistence {
|
|
|
7747
7743
|
window.removeEventListener('pagehide', this.onPageHide);
|
|
7748
7744
|
window.removeEventListener('pageshow', this.onPageShow);
|
|
7749
7745
|
}
|
|
7750
|
-
if (typeof document !== 'undefined' &&
|
|
7751
|
-
typeof document.removeEventListener === 'function') {
|
|
7752
|
-
document.removeEventListener('visibilitychange', this.onVisibilityChange);
|
|
7753
|
-
}
|
|
7754
7746
|
}
|
|
7755
7747
|
constructor() {
|
|
7756
7748
|
this.type = "LOCAL" /* PersistenceType.LOCAL */;
|
|
@@ -7761,14 +7753,14 @@ class IndexedDBLocalPersistence {
|
|
|
7761
7753
|
// setTimeout return value is platform specific
|
|
7762
7754
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7763
7755
|
this.pollTimer = null;
|
|
7764
|
-
this.
|
|
7756
|
+
this.isClosing = false;
|
|
7765
7757
|
this.pendingWrites = 0;
|
|
7766
7758
|
this.receiver = null;
|
|
7767
7759
|
this.sender = null;
|
|
7768
7760
|
this.serviceWorkerReceiverAvailable = false;
|
|
7769
7761
|
this.activeServiceWorker = null;
|
|
7770
7762
|
this.onPageHide = () => {
|
|
7771
|
-
this.
|
|
7763
|
+
this.isClosing = true;
|
|
7772
7764
|
this.stopPolling();
|
|
7773
7765
|
if (this.dbPromise) {
|
|
7774
7766
|
this.dbPromise.then(db => db.close()).catch(() => { });
|
|
@@ -7776,30 +7768,20 @@ class IndexedDBLocalPersistence {
|
|
|
7776
7768
|
}
|
|
7777
7769
|
};
|
|
7778
7770
|
this.onPageShow = () => {
|
|
7779
|
-
if (this.
|
|
7780
|
-
this.
|
|
7771
|
+
if (this.isClosing) {
|
|
7772
|
+
this.isClosing = false;
|
|
7781
7773
|
if (Object.keys(this.listeners).length > 0) {
|
|
7782
7774
|
this.startPolling();
|
|
7783
7775
|
}
|
|
7784
7776
|
}
|
|
7785
7777
|
};
|
|
7786
|
-
this.onVisibilityChange = () => {
|
|
7787
|
-
if (typeof document !== 'undefined') {
|
|
7788
|
-
if (document.visibilityState === 'hidden') {
|
|
7789
|
-
this.onPageHide();
|
|
7790
|
-
}
|
|
7791
|
-
else if (document.visibilityState === 'visible') {
|
|
7792
|
-
this.onPageShow();
|
|
7793
|
-
}
|
|
7794
|
-
}
|
|
7795
|
-
};
|
|
7796
7778
|
// Fire & forget the service worker registration as it may never resolve
|
|
7797
7779
|
this._workerInitializationPromise =
|
|
7798
7780
|
this.initializeServiceWorkerMessaging().then(() => { }, () => { });
|
|
7799
7781
|
}
|
|
7800
7782
|
async _openDb() {
|
|
7801
|
-
if (this.
|
|
7802
|
-
throw new Error('Database is closing
|
|
7783
|
+
if (this.isClosing) {
|
|
7784
|
+
throw new Error('Database is closing');
|
|
7803
7785
|
}
|
|
7804
7786
|
if (this.dbPromise) {
|
|
7805
7787
|
return this.dbPromise;
|
|
@@ -7818,7 +7800,7 @@ class IndexedDBLocalPersistence {
|
|
|
7818
7800
|
return await op(db);
|
|
7819
7801
|
}
|
|
7820
7802
|
catch (e) {
|
|
7821
|
-
if (this.
|
|
7803
|
+
if (this.isClosing) {
|
|
7822
7804
|
throw e;
|
|
7823
7805
|
}
|
|
7824
7806
|
if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {
|
|
@@ -7950,7 +7932,7 @@ class IndexedDBLocalPersistence {
|
|
|
7950
7932
|
});
|
|
7951
7933
|
}
|
|
7952
7934
|
async _poll() {
|
|
7953
|
-
if (this.
|
|
7935
|
+
if (this.isClosing) {
|
|
7954
7936
|
return [];
|
|
7955
7937
|
}
|
|
7956
7938
|
try {
|
|
@@ -7959,7 +7941,7 @@ class IndexedDBLocalPersistence {
|
|
|
7959
7941
|
const getAllRequest = getObjectStore(db, false).getAll();
|
|
7960
7942
|
return new DBPromise(getAllRequest).toPromise();
|
|
7961
7943
|
});
|
|
7962
|
-
if (this.
|
|
7944
|
+
if (this.isClosing) {
|
|
7963
7945
|
return [];
|
|
7964
7946
|
}
|
|
7965
7947
|
if (!result) {
|
|
@@ -7990,7 +7972,7 @@ class IndexedDBLocalPersistence {
|
|
|
7990
7972
|
return keys;
|
|
7991
7973
|
}
|
|
7992
7974
|
catch (e) {
|
|
7993
|
-
if (!this.
|
|
7975
|
+
if (!this.isClosing) {
|
|
7994
7976
|
_logWarn(`Firebase Auth cross-tab polling failed with error: ${e}`);
|
|
7995
7977
|
}
|
|
7996
7978
|
return [];
|
|
@@ -8238,7 +8220,7 @@ function _isEmptyString(input) {
|
|
|
8238
8220
|
}
|
|
8239
8221
|
|
|
8240
8222
|
var name = "@firebase/auth";
|
|
8241
|
-
var version = "1.13.
|
|
8223
|
+
var version = "1.13.5";
|
|
8242
8224
|
|
|
8243
8225
|
/**
|
|
8244
8226
|
* @license
|
|
@@ -8384,4 +8366,4 @@ function registerAuth(clientPlatform) {
|
|
|
8384
8366
|
}
|
|
8385
8367
|
|
|
8386
8368
|
export { unlink as $, ActionCodeURL as A, linkWithCredential as B, multiFactor as C, onAuthStateChanged as D, EmailAuthCredential as E, FacebookAuthProvider as F, GithubAuthProvider as G, onIdTokenChanged as H, parseActionCodeURL as I, prodErrorMap as J, reauthenticateWithCredential as K, reload as L, revokeAccessToken as M, sendEmailVerification as N, OAuthCredential as O, PhoneAuthCredential as P, sendPasswordResetEmail as Q, sendSignInLinkToEmail as R, SAMLAuthProvider as S, TotpMultiFactorGenerator as T, setPersistence as U, signInAnonymously as V, signInWithCredential as W, signInWithCustomToken as X, signInWithEmailAndPassword as Y, signInWithEmailLink as Z, signOut as _, indexedDBLocalPersistence as a, UserImpl as a$, updateCurrentUser as a0, updateEmail as a1, updatePassword as a2, updateProfile as a3, useDeviceLanguage as a4, validatePassword as a5, verifyBeforeUpdateEmail as a6, verifyPasswordResetCode as a7, STORAGE_AVAILABLE_KEY as a8, _isMobileBrowser as a9, signInWithIdp as aA, _fail as aB, debugAssert as aC, _assertInstanceOf as aD, _generateEventId as aE, FederatedAuthProvider as aF, _persistenceKeyName as aG, _performApiRequest as aH, _getCurrentUrl as aI, _gapiScriptUrl as aJ, _emulatorUrl as aK, _isChromeIOS as aL, _isFirefox as aM, _isIOSStandalone as aN, BaseOAuthProvider as aO, _setWindowLocation as aP, _isSafari as aQ, _isIOS as aR, MultiFactorAssertionImpl as aS, finalizeEnrollPhoneMfa as aT, finalizeSignInPhoneMfa as aU, _setExternalJSProvider as aV, _isAndroid as aW, _isIOS7Or8 as aX, AuthImpl as aY, FetchProvider as aZ, SAMLAuthCredential as a_, _isIE10 as aa, Delay as ab, MockReCaptcha as ac, _window as ad, _assert as ae, isV2 as af, _createError as ag, _recaptchaV2ScriptUrl as ah, _loadJS as ai, _generateCallbackName as aj, _castAuth as ak, _isHttpOrHttps as al, _isWorker as am, getRecaptchaParams as an, _assertLinkedStatus as ao, _serverAppCurrentUserOperationNotSupportedError as ap, _link as aq, _initializeRecaptchaConfig as ar, FAKE_TOKEN as as, startEnrollPhoneMfa as at, handleRecaptchaFlow as au, startSignInPhoneMfa as av, sendPhoneVerificationCode as aw, _getInstance as ax, _reauthenticate as ay, _signInWithCredential as az, AuthCredential as b, _getClientVersion as b0, connectAuthEmulator as c, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as d, EmailAuthProvider as e, GoogleAuthProvider as f, OAuthProvider as g, TotpSecret as h, initializeAuth as i, TwitterAuthProvider as j, applyActionCode as k, beforeAuthStateChanged as l, checkActionCode as m, confirmPasswordReset as n, createUserWithEmailAndPassword as o, debugErrorMap as p, deleteUser as q, registerAuth as r, fetchSignInMethodsForEmail as s, getAdditionalUserInfo as t, getIdToken as u, getIdTokenResult as v, getMultiFactorResolver as w, inMemoryPersistence as x, initializeRecaptchaConfig as y, isSignInWithEmailLink as z };
|
|
8387
|
-
//# sourceMappingURL=register-
|
|
8369
|
+
//# sourceMappingURL=register-DN05P0kB.js.map
|