@firebase/auth 1.9.0-canary.6a28a72eb → 1.9.0-canary.b3e68ca41
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-16053f12.js → index-778e1007.js} +6 -20
- package/dist/browser-cjs/index-778e1007.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/{popup_redirect-9dd0e538.js → popup_redirect-7a9d9c73.js} +7 -21
- package/dist/cordova/popup_redirect-7a9d9c73.js.map +1 -0
- package/dist/esm2017/{index-83481384.js → index-fa3284b3.js} +6 -20
- package/dist/esm2017/index-fa3284b3.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/index.webworker.js +5 -19
- 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/{totp-6cfb252e.js → totp-37bd6a0d.js} +6 -20
- package/dist/node/totp-37bd6a0d.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/{totp-47464072.js → totp-badc9c19.js} +6 -20
- package/dist/node-esm/totp-badc9c19.js.map +1 -0
- package/dist/rn/{index-522ed10c.js → index-10d928db.js} +7 -21
- package/dist/rn/index-10d928db.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +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/{register-1e4ef59d.js → register-a8ed5bee.js} +7 -21
- package/dist/web-extension-cjs/register-a8ed5bee.js.map +1 -0
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +2 -2
- package/dist/web-extension-esm2017/{register-2cd31623.js → register-66e31102.js} +7 -21
- package/dist/web-extension-esm2017/register-66e31102.js.map +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-16053f12.js.map +0 -1
- package/dist/cordova/popup_redirect-9dd0e538.js.map +0 -1
- package/dist/esm2017/index-83481384.js.map +0 -1
- package/dist/node/totp-6cfb252e.js.map +0 -1
- package/dist/node-esm/totp-47464072.js.map +0 -1
- package/dist/rn/index-522ed10c.js.map +0 -1
- package/dist/web-extension-cjs/register-1e4ef59d.js.map +0 -1
- package/dist/web-extension-esm2017/register-2cd31623.js.map +0 -1
|
@@ -3692,35 +3692,21 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
3692
3692
|
*/
|
|
3693
3693
|
function connectAuthEmulator(auth, url, options) {
|
|
3694
3694
|
const authInternal = _castAuth(auth);
|
|
3695
|
+
_assert(authInternal._canInitEmulator, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3695
3696
|
_assert(/^https?:\/\//.test(url), authInternal, "invalid-emulator-scheme" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */);
|
|
3696
3697
|
const disableWarnings = !!(options === null || options === void 0 ? void 0 : options.disableWarnings);
|
|
3697
3698
|
const protocol = extractProtocol(url);
|
|
3698
3699
|
const { host, port } = extractHostAndPort(url);
|
|
3699
3700
|
const portStr = port === null ? '' : `:${port}`;
|
|
3700
3701
|
// Always replace path with "/" (even if input url had no path at all, or had a different one).
|
|
3701
|
-
|
|
3702
|
-
|
|
3702
|
+
authInternal.config.emulator = { url: `${protocol}//${host}${portStr}/` };
|
|
3703
|
+
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3704
|
+
authInternal.emulatorConfig = Object.freeze({
|
|
3703
3705
|
host,
|
|
3704
3706
|
port,
|
|
3705
3707
|
protocol: protocol.replace(':', ''),
|
|
3706
3708
|
options: Object.freeze({ disableWarnings })
|
|
3707
3709
|
});
|
|
3708
|
-
// There are a few scenarios to guard against if the Auth instance has already started:
|
|
3709
|
-
if (!authInternal._canInitEmulator) {
|
|
3710
|
-
// Applications may not initialize the emulator for the first time if Auth has already started
|
|
3711
|
-
// to make network requests.
|
|
3712
|
-
_assert(authInternal.config.emulator && authInternal.emulatorConfig, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3713
|
-
// Applications may not alter the configuration of the emulator (aka pass a different config)
|
|
3714
|
-
// once Auth has started to make network requests.
|
|
3715
|
-
_assert(util.deepEqual(emulator, authInternal.config.emulator) &&
|
|
3716
|
-
util.deepEqual(emulatorConfig, authInternal.emulatorConfig), authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3717
|
-
// It's valid, however, to invoke connectAuthEmulator() after Auth has started making
|
|
3718
|
-
// connections, so long as the config matches the existing config. This results in a no-op.
|
|
3719
|
-
return;
|
|
3720
|
-
}
|
|
3721
|
-
authInternal.config.emulator = emulator;
|
|
3722
|
-
authInternal.emulatorConfig = emulatorConfig;
|
|
3723
|
-
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3724
3710
|
if (!disableWarnings) {
|
|
3725
3711
|
emitEmulatorWarning();
|
|
3726
3712
|
}
|
|
@@ -10681,7 +10667,7 @@ function _isEmptyString(input) {
|
|
|
10681
10667
|
}
|
|
10682
10668
|
|
|
10683
10669
|
var name = "@firebase/auth";
|
|
10684
|
-
var version = "1.9.0-canary.
|
|
10670
|
+
var version = "1.9.0-canary.b3e68ca41";
|
|
10685
10671
|
|
|
10686
10672
|
/**
|
|
10687
10673
|
* @license
|
|
@@ -11042,4 +11028,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
11042
11028
|
exports.validatePassword = validatePassword;
|
|
11043
11029
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
11044
11030
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
11045
|
-
//# sourceMappingURL=index-
|
|
11031
|
+
//# sourceMappingURL=index-778e1007.js.map
|