@firebase/app-check 0.8.6 → 0.8.7-20240730204232
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/esm/index.esm.js +8 -9
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/index.esm2017.js +6 -6
- package/dist/esm/index.esm2017.js.map +1 -1
- package/dist/esm/src/api.test.d.ts +1 -1
- package/dist/index.cjs.js +7 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/src/api.test.d.ts +1 -1
- package/package.json +1 -2
package/dist/esm/index.esm.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { _getProvider, getApp, _registerComponent, registerVersion } from '@firebase/app';
|
|
2
2
|
import { Component } from '@firebase/component';
|
|
3
|
-
import { __assign, __awaiter, __generator, __spreadArray
|
|
3
|
+
import { __assign, __awaiter, __generator, __spreadArray } from 'tslib';
|
|
4
4
|
import { Deferred, ErrorFactory, isIndexedDBAvailable, uuidv4, getGlobal, base64, issuedAtTime, calculateBackoffMillis, getModularInstance } from '@firebase/util';
|
|
5
5
|
import { Logger } from '@firebase/logger';
|
|
6
|
-
import { trustedResourceUrl } from 'safevalues';
|
|
7
|
-
import { safeScriptEl } from 'safevalues/dom';
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* @license
|
|
@@ -671,7 +669,7 @@ function readOrCreateDebugTokenFromStorage() {
|
|
|
671
669
|
if (!existingDebugToken) {
|
|
672
670
|
newToken = uuidv4();
|
|
673
671
|
// We don't need to block on writing to indexeddb
|
|
674
|
-
// In case persistence failed, a new debug token will be generated
|
|
672
|
+
// In case persistence failed, a new debug token will be generated every time the page is refreshed.
|
|
675
673
|
// It renders the debug token useless because you have to manually register(whitelist) the new token in the firebase console again and again.
|
|
676
674
|
// If you see this error trying to use debug token, it probably means you are using a browser that doesn't support indexeddb.
|
|
677
675
|
// You should switch to a different browser that supports indexeddb
|
|
@@ -1158,7 +1156,7 @@ function internalFactory(appCheck) {
|
|
|
1158
1156
|
}
|
|
1159
1157
|
|
|
1160
1158
|
var name = "@firebase/app-check";
|
|
1161
|
-
var version = "0.8.
|
|
1159
|
+
var version = "0.8.7-20240730204232";
|
|
1162
1160
|
|
|
1163
1161
|
/**
|
|
1164
1162
|
* @license
|
|
@@ -1176,6 +1174,8 @@ var version = "0.8.6";
|
|
|
1176
1174
|
* See the License for the specific language governing permissions and
|
|
1177
1175
|
* limitations under the License.
|
|
1178
1176
|
*/
|
|
1177
|
+
var RECAPTCHA_URL = 'https://www.google.com/recaptcha/api.js';
|
|
1178
|
+
var RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js';
|
|
1179
1179
|
function initializeV3(app, siteKey) {
|
|
1180
1180
|
var initialized = new Deferred();
|
|
1181
1181
|
var state = getStateReference(app);
|
|
@@ -1291,17 +1291,16 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
function loadReCAPTCHAV3Script(onload) {
|
|
1293
1293
|
var script = document.createElement('script');
|
|
1294
|
-
|
|
1294
|
+
script.src = RECAPTCHA_URL;
|
|
1295
1295
|
script.onload = onload;
|
|
1296
1296
|
document.head.appendChild(script);
|
|
1297
1297
|
}
|
|
1298
1298
|
function loadReCAPTCHAEnterpriseScript(onload) {
|
|
1299
1299
|
var script = document.createElement('script');
|
|
1300
|
-
|
|
1300
|
+
script.src = RECAPTCHA_ENTERPRISE_URL;
|
|
1301
1301
|
script.onload = onload;
|
|
1302
1302
|
document.head.appendChild(script);
|
|
1303
|
-
}
|
|
1304
|
-
var templateObject_1, templateObject_2;
|
|
1303
|
+
}
|
|
1305
1304
|
|
|
1306
1305
|
/**
|
|
1307
1306
|
* @license
|