firebase 13.3.0 → 13.4.0
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/app/dist/esm/index.esm.js +1 -1
- package/app/dist/index.cjs.js +1 -1
- package/app/dist/index.mjs +1 -1
- package/compat/app/dist/esm/index.esm.js +1 -1
- package/compat/app/dist/index.cjs.js +1 -1
- package/compat/app/dist/index.mjs +1 -1
- package/compat/dist/esm/index.esm.js +2 -2
- package/compat/dist/index.node.cjs +2 -2
- package/compat/dist/index.rn.cjs.js +2 -2
- package/firebase-ai.js +1 -1
- package/firebase-analytics-compat.js +1 -1
- package/firebase-analytics-compat.js.map +1 -1
- package/firebase-analytics.js +1 -1
- package/firebase-analytics.js.map +1 -1
- package/firebase-app-check-compat.js +1 -1
- package/firebase-app-check-compat.js.map +1 -1
- package/firebase-app-check.js +1 -1
- package/firebase-app-check.js.map +1 -1
- package/firebase-app-compat.js +3 -3
- package/firebase-app-compat.js.map +1 -1
- package/firebase-app.js +134 -6
- package/firebase-app.js.map +1 -1
- package/firebase-auth-compat.js +1 -1
- package/firebase-auth-compat.js.map +1 -1
- package/firebase-auth-cordova.js +1 -1
- package/firebase-auth-web-extension.js +1 -1
- package/firebase-auth.js +1 -1
- package/firebase-auth.js.map +1 -1
- package/firebase-compat.js +11 -11
- package/firebase-compat.js.map +1 -1
- package/firebase-crashlytics.js +1 -1
- package/firebase-crashlytics.js.map +1 -1
- package/firebase-data-connect.js +1 -1
- package/firebase-database.js +1 -1
- package/firebase-firestore-compat.js +1 -1
- package/firebase-firestore-lite-pipelines.js +1 -1
- package/firebase-firestore-lite.js +1 -1
- package/firebase-firestore-pipelines.js +1 -1
- package/firebase-firestore.js +1 -1
- package/firebase-functions.js +1 -1
- package/firebase-installations.js +1 -1
- package/firebase-messaging-sw.js +1 -1
- package/firebase-messaging.js +1 -1
- package/firebase-performance-standalone-compat.js +64 -46
- package/firebase-performance-standalone-compat.js.map +1 -1
- package/firebase-performance.js +1 -1
- package/firebase-remote-config.js +1 -1
- package/firebase-storage.js +1 -1
- package/package.json +10 -10
package/firebase-app.js
CHANGED
|
@@ -1692,8 +1692,8 @@ function isVersionServiceProvider(provider) {
|
|
|
1692
1692
|
const component = provider.getComponent();
|
|
1693
1693
|
return component?.type === "VERSION" /* ComponentType.VERSION */;
|
|
1694
1694
|
}
|
|
1695
|
-
const name$r = "https://www.gstatic.com/firebasejs/13.
|
|
1696
|
-
const version$1 = "0.16.
|
|
1695
|
+
const name$r = "https://www.gstatic.com/firebasejs/13.4.0/firebase-app.js";
|
|
1696
|
+
const version$1 = "0.16.7";
|
|
1697
1697
|
/**
|
|
1698
1698
|
* @license
|
|
1699
1699
|
* Copyright 2019 Google LLC
|
|
@@ -1710,7 +1710,7 @@ const version$1 = "0.16.6";
|
|
|
1710
1710
|
* See the License for the specific language governing permissions and
|
|
1711
1711
|
* limitations under the License.
|
|
1712
1712
|
*/
|
|
1713
|
-
const logger = new Logger('https://www.gstatic.com/firebasejs/13.
|
|
1713
|
+
const logger = new Logger('https://www.gstatic.com/firebasejs/13.4.0/firebase-app.js');
|
|
1714
1714
|
const name$q = "@firebase/app-compat";
|
|
1715
1715
|
const name$p = "@firebase/analytics-compat";
|
|
1716
1716
|
const name$o = "@firebase/analytics";
|
|
@@ -1738,7 +1738,7 @@ const name$3 = "@firebase/firestore";
|
|
|
1738
1738
|
const name$2 = "@firebase/ai";
|
|
1739
1739
|
const name$1 = "@firebase/firestore-compat";
|
|
1740
1740
|
const name$s = "firebase";
|
|
1741
|
-
const version$2 = "13.
|
|
1741
|
+
const version$2 = "13.4.0";
|
|
1742
1742
|
/**
|
|
1743
1743
|
* @license
|
|
1744
1744
|
* Copyright 2019 Google LLC
|
|
@@ -2841,6 +2841,134 @@ function registerCoreComponents(variant) {
|
|
|
2841
2841
|
// Register platform SDK identifier (no version).
|
|
2842
2842
|
registerVersion('fire-js', '');
|
|
2843
2843
|
}
|
|
2844
|
+
/**
|
|
2845
|
+
* @license
|
|
2846
|
+
* Copyright 2026 Google LLC
|
|
2847
|
+
*
|
|
2848
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2849
|
+
* you may not use this file except in compliance with the License.
|
|
2850
|
+
* You may obtain a copy of the License at
|
|
2851
|
+
*
|
|
2852
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2853
|
+
*
|
|
2854
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2855
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2856
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2857
|
+
* See the License for the specific language governing permissions and
|
|
2858
|
+
* limitations under the License.
|
|
2859
|
+
*/
|
|
2860
|
+
/**
|
|
2861
|
+
* Name of the Trusted Types policy that Firebase SDKs use to load external
|
|
2862
|
+
* scripts. Apps that restrict policy names with the `trusted-types` CSP
|
|
2863
|
+
* directive must allow this name.
|
|
2864
|
+
*
|
|
2865
|
+
* @internal
|
|
2866
|
+
*/
|
|
2867
|
+
const _TRUSTED_TYPES_POLICY_NAME = 'firebase-js-sdk-policy';
|
|
2868
|
+
/**
|
|
2869
|
+
* External scripts that Firebase SDKs are allowed to load. A script URL is
|
|
2870
|
+
* allowed if it is one of these URLs, optionally followed by a query string.
|
|
2871
|
+
*
|
|
2872
|
+
* - Analytics: Google tag (gtag.js)
|
|
2873
|
+
* - Auth: Google API loader (gapi), reCAPTCHA v2 and reCAPTCHA Enterprise
|
|
2874
|
+
* - App Check: reCAPTCHA v3 and reCAPTCHA Enterprise
|
|
2875
|
+
*/
|
|
2876
|
+
const ALLOWED_SCRIPT_URLS = [
|
|
2877
|
+
'https://www.googletagmanager.com/gtag/js',
|
|
2878
|
+
'https://apis.google.com/js/api.js',
|
|
2879
|
+
'https://www.google.com/recaptcha/api.js',
|
|
2880
|
+
'https://www.google.com/recaptcha/enterprise.js'
|
|
2881
|
+
];
|
|
2882
|
+
// `undefined` means the policy has not been created yet. `null` means Trusted
|
|
2883
|
+
// Types are unavailable or the policy could not be created.
|
|
2884
|
+
let trustedTypesPolicy;
|
|
2885
|
+
// True if the browser supports Trusted Types but the policy could not be
|
|
2886
|
+
// created, usually because the page's CSP does not allow the policy name.
|
|
2887
|
+
let trustedTypesPolicyBlocked = false;
|
|
2888
|
+
/**
|
|
2889
|
+
* Returns `url` if it is one of the allowed external scripts, and throws
|
|
2890
|
+
* otherwise. Used as the `createScriptURL` implementation of the Trusted Types
|
|
2891
|
+
* policy.
|
|
2892
|
+
*
|
|
2893
|
+
* @internal
|
|
2894
|
+
*/
|
|
2895
|
+
function _createTrustedScriptURL(url) {
|
|
2896
|
+
const allowed = ALLOWED_SCRIPT_URLS.some(allowedUrl => url.startsWith(allowedUrl) &&
|
|
2897
|
+
// Only allow a query string after the allowed URL, so that e.g.
|
|
2898
|
+
// "https://apis.google.com/js/api.js.evil.com" is rejected.
|
|
2899
|
+
(url.length === allowedUrl.length ||
|
|
2900
|
+
url.charAt(allowedUrl.length) === '?'));
|
|
2901
|
+
if (!allowed) {
|
|
2902
|
+
throw new TypeError(`Firebase: Refusing to load untrusted script URL: ${url}`);
|
|
2903
|
+
}
|
|
2904
|
+
return url;
|
|
2905
|
+
}
|
|
2906
|
+
/**
|
|
2907
|
+
* Lazily creates the Trusted Types policy. The policy is only created the first
|
|
2908
|
+
* time a script is loaded, so that pages that load more than one copy of
|
|
2909
|
+
* `@firebase/app` (for example the compat and modular CDN builds) only run
|
|
2910
|
+
* into a policy name collision if more than one copy loads a script.
|
|
2911
|
+
*/
|
|
2912
|
+
function getTrustedTypesPolicy() {
|
|
2913
|
+
if (trustedTypesPolicy === undefined) {
|
|
2914
|
+
trustedTypesPolicy = null;
|
|
2915
|
+
const trustedTypes = typeof window !== 'undefined' ? window.trustedTypes : undefined;
|
|
2916
|
+
if (trustedTypes?.createPolicy) {
|
|
2917
|
+
try {
|
|
2918
|
+
trustedTypesPolicy = trustedTypes.createPolicy(_TRUSTED_TYPES_POLICY_NAME, { createScriptURL: _createTrustedScriptURL });
|
|
2919
|
+
}
|
|
2920
|
+
catch {
|
|
2921
|
+
// The page's CSP does not allow this policy name, or a policy with
|
|
2922
|
+
// this name already exists. Fall back to assigning a plain string,
|
|
2923
|
+
// which still works unless the page also requires Trusted Types for
|
|
2924
|
+
// scripts. If it does, _setTrustedScriptSrc logs an error explaining
|
|
2925
|
+
// how to allow the policy.
|
|
2926
|
+
trustedTypesPolicyBlocked = true;
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
return trustedTypesPolicy;
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* Sets the `src` of a script element through the Firebase Trusted Types policy
|
|
2934
|
+
* when Trusted Types are supported, so that Firebase SDKs can load external
|
|
2935
|
+
* scripts on pages that enforce Trusted Types.
|
|
2936
|
+
*
|
|
2937
|
+
* Throws if `url` is not an allowed Firebase script URL, or if the browser
|
|
2938
|
+
* rejects the assignment.
|
|
2939
|
+
*
|
|
2940
|
+
* @param script - The script element to update.
|
|
2941
|
+
* @param url - The script URL. Must be an allowed Firebase script URL.
|
|
2942
|
+
*
|
|
2943
|
+
* @internal
|
|
2944
|
+
*/
|
|
2945
|
+
function _setTrustedScriptSrc(script, url) {
|
|
2946
|
+
// Validate the URL even when Trusted Types are unavailable, so that the
|
|
2947
|
+
// allowlist is enforced the same way in every browser.
|
|
2948
|
+
_createTrustedScriptURL(url);
|
|
2949
|
+
const policy = getTrustedTypesPolicy();
|
|
2950
|
+
if (policy) {
|
|
2951
|
+
// HTMLScriptElement.src is typed as a string, but accepts a
|
|
2952
|
+
// TrustedScriptURL.
|
|
2953
|
+
script.src = policy.createScriptURL(url);
|
|
2954
|
+
return;
|
|
2955
|
+
}
|
|
2956
|
+
try {
|
|
2957
|
+
script.src = url;
|
|
2958
|
+
}
|
|
2959
|
+
catch (e) {
|
|
2960
|
+
if (trustedTypesPolicyBlocked) {
|
|
2961
|
+
// The browser rejected the plain string because the page requires
|
|
2962
|
+
// Trusted Types, and the page's CSP did not allow our policy.
|
|
2963
|
+
logger.error(`Unable to load ${url} because this page requires Trusted Types ` +
|
|
2964
|
+
`for scripts but does not allow the "${_TRUSTED_TYPES_POLICY_NAME}" ` +
|
|
2965
|
+
`Trusted Types policy. To fix this, add ` +
|
|
2966
|
+
`"${_TRUSTED_TYPES_POLICY_NAME}" to the trusted-types directive ` +
|
|
2967
|
+
`of the page's Content-Security-Policy.`);
|
|
2968
|
+
}
|
|
2969
|
+
throw e;
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2844
2972
|
/**
|
|
2845
2973
|
* Firebase App
|
|
2846
2974
|
*
|
|
@@ -2866,7 +2994,7 @@ function registerCoreComponents(variant) {
|
|
|
2866
2994
|
registerCoreComponents('');
|
|
2867
2995
|
|
|
2868
2996
|
var name = "firebase";
|
|
2869
|
-
var version = "13.
|
|
2997
|
+
var version = "13.4.0";
|
|
2870
2998
|
|
|
2871
2999
|
/**
|
|
2872
3000
|
* @license
|
|
@@ -2886,6 +3014,6 @@ var version = "13.3.0";
|
|
|
2886
3014
|
*/
|
|
2887
3015
|
registerVersion(name, version, 'cdn');
|
|
2888
3016
|
|
|
2889
|
-
export { FirebaseError, SDK_VERSION, DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _isFirebaseApp, _isFirebaseServerApp, _isFirebaseServerAppSettings, _registerComponent, _removeServiceInstance, _serverApps, deleteApp, getApp, getApps, initializeApp, initializeServerApp, onLog, registerVersion, setLogLevel };
|
|
3017
|
+
export { FirebaseError, SDK_VERSION, DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _isFirebaseApp, _isFirebaseServerApp, _isFirebaseServerAppSettings, _registerComponent, _removeServiceInstance, _serverApps, _setTrustedScriptSrc, deleteApp, getApp, getApps, initializeApp, initializeServerApp, onLog, registerVersion, setLogLevel };
|
|
2890
3018
|
|
|
2891
3019
|
//# sourceMappingURL=firebase-app.js.map
|