firebase 9.9.0 → 9.9.1
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/CHANGELOG.md +12 -0
- package/app/dist/index.cjs.js +1 -1
- package/app/dist/index.esm.js +1 -1
- package/app/dist/index.mjs +1 -1
- package/compat/app/dist/index.cjs.js +1 -1
- package/compat/app/dist/index.esm.js +1 -1
- package/compat/app/dist/index.mjs +1 -1
- package/compat/dist/index.esm.js +2 -2
- package/compat/dist/index.node.cjs +2 -2
- package/compat/dist/index.rn.cjs.js +2 -2
- package/firebase-analytics.js +3 -3
- package/firebase-app-check-compat.js +1 -1
- package/firebase-app-check-compat.js.map +1 -1
- package/firebase-app-check.js +11 -11
- package/firebase-app-check.js.map +1 -1
- package/firebase-app-compat.js +2 -2
- package/firebase-app.js +9 -9
- package/firebase-auth-cordova.js +1 -1
- package/firebase-auth-react-native.js +1 -1
- package/firebase-auth.js +2 -2
- package/firebase-compat.js +3 -3
- package/firebase-compat.js.map +1 -1
- package/firebase-database-compat.js.map +1 -1
- package/firebase-database.js +8 -9
- package/firebase-database.js.map +1 -1
- package/firebase-firestore-compat.js +1 -1
- package/firebase-firestore-compat.js.map +1 -1
- package/firebase-firestore-lite.js +7 -7
- package/firebase-firestore-lite.js.map +1 -1
- package/firebase-firestore.js +8 -8
- package/firebase-firestore.js.map +1 -1
- package/firebase-functions.js +2 -2
- package/firebase-installations.js +3 -3
- package/firebase-messaging-sw.js +1 -1
- package/firebase-messaging.js +1 -1
- package/firebase-performance-standalone-compat.es2017.js +5 -5
- package/firebase-performance-standalone-compat.js +1 -1
- package/firebase-performance.js +3 -3
- package/firebase-remote-config.js +2 -2
- package/firebase-storage.js +1 -1
- package/package.json +7 -7
package/firebase-app-check.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _getProvider, getApp, _registerComponent, registerVersion } from 'https://www.gstatic.com/firebasejs/9.9.
|
|
1
|
+
import { _getProvider, getApp, _registerComponent, registerVersion } from 'https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -1405,7 +1405,7 @@ function computeKey(app) {
|
|
|
1405
1405
|
* See the License for the specific language governing permissions and
|
|
1406
1406
|
* limitations under the License.
|
|
1407
1407
|
*/
|
|
1408
|
-
const logger = new Logger('https://www.gstatic.com/firebasejs/9.9.
|
|
1408
|
+
const logger = new Logger('https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js-check');
|
|
1409
1409
|
|
|
1410
1410
|
/**
|
|
1411
1411
|
* @license
|
|
@@ -1841,8 +1841,8 @@ function internalFactory(appCheck) {
|
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
-
const name = "https://www.gstatic.com/firebasejs/9.9.
|
|
1845
|
-
const version = "0.5.
|
|
1844
|
+
const name = "https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js-check";
|
|
1845
|
+
const version = "0.5.12";
|
|
1846
1846
|
|
|
1847
1847
|
/**
|
|
1848
1848
|
* @license
|
|
@@ -2011,7 +2011,7 @@ class ReCaptchaV3Provider {
|
|
|
2011
2011
|
* @internal
|
|
2012
2012
|
*/
|
|
2013
2013
|
async getToken() {
|
|
2014
|
-
var _a;
|
|
2014
|
+
var _a, _b;
|
|
2015
2015
|
throwIfThrottled(this._throttleData);
|
|
2016
2016
|
// Top-level `getToken()` has already checked that App Check is initialized
|
|
2017
2017
|
// and therefore this._app and this._heartbeatServiceProvider are available.
|
|
@@ -2024,8 +2024,8 @@ class ReCaptchaV3Provider {
|
|
|
2024
2024
|
result = await exchangeToken(getExchangeRecaptchaV3TokenRequest(this._app, attestedClaimsToken), this._heartbeatServiceProvider);
|
|
2025
2025
|
}
|
|
2026
2026
|
catch (e) {
|
|
2027
|
-
if (e.code === "fetch-status-error" /* FETCH_STATUS_ERROR */) {
|
|
2028
|
-
this._throttleData = setBackoff(Number((
|
|
2027
|
+
if ((_a = e.code) === null || _a === void 0 ? void 0 : _a.includes("fetch-status-error" /* FETCH_STATUS_ERROR */)) {
|
|
2028
|
+
this._throttleData = setBackoff(Number((_b = e.customData) === null || _b === void 0 ? void 0 : _b.httpStatus), this._throttleData);
|
|
2029
2029
|
throw ERROR_FACTORY.create("throttled" /* THROTTLED */, {
|
|
2030
2030
|
time: getDurationString(this._throttleData.allowRequestsAfter - Date.now()),
|
|
2031
2031
|
httpStatus: this._throttleData.httpStatus
|
|
@@ -2085,7 +2085,7 @@ class ReCaptchaEnterpriseProvider {
|
|
|
2085
2085
|
* @internal
|
|
2086
2086
|
*/
|
|
2087
2087
|
async getToken() {
|
|
2088
|
-
var _a;
|
|
2088
|
+
var _a, _b;
|
|
2089
2089
|
throwIfThrottled(this._throttleData);
|
|
2090
2090
|
// Top-level `getToken()` has already checked that App Check is initialized
|
|
2091
2091
|
// and therefore this._app and this._heartbeatServiceProvider are available.
|
|
@@ -2098,8 +2098,8 @@ class ReCaptchaEnterpriseProvider {
|
|
|
2098
2098
|
result = await exchangeToken(getExchangeRecaptchaEnterpriseTokenRequest(this._app, attestedClaimsToken), this._heartbeatServiceProvider);
|
|
2099
2099
|
}
|
|
2100
2100
|
catch (e) {
|
|
2101
|
-
if (e.code === "fetch-status-error" /* FETCH_STATUS_ERROR */) {
|
|
2102
|
-
this._throttleData = setBackoff(Number((
|
|
2101
|
+
if ((_a = e.code) === null || _a === void 0 ? void 0 : _a.includes("fetch-status-error" /* FETCH_STATUS_ERROR */)) {
|
|
2102
|
+
this._throttleData = setBackoff(Number((_b = e.customData) === null || _b === void 0 ? void 0 : _b.httpStatus), this._throttleData);
|
|
2103
2103
|
throw ERROR_FACTORY.create("throttled" /* THROTTLED */, {
|
|
2104
2104
|
time: getDurationString(this._throttleData.allowRequestsAfter - Date.now()),
|
|
2105
2105
|
httpStatus: this._throttleData.httpStatus
|
|
@@ -2250,7 +2250,7 @@ function throwIfThrottled(throttleData) {
|
|
|
2250
2250
|
*/
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Activate App Check for the given app. Can be called only once per app.
|
|
2253
|
-
* @param app - the {@link https://www.gstatic.com/firebasejs/9.9.
|
|
2253
|
+
* @param app - the {@link https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js#FirebaseApp} to activate App Check for
|
|
2254
2254
|
* @param options - App Check initialization options
|
|
2255
2255
|
* @public
|
|
2256
2256
|
*/
|