@firebase/app-check 0.8.5 → 0.8.6-20240716220314

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.
@@ -1,8 +1,10 @@
1
1
  import { _getProvider, getApp, _registerComponent, registerVersion } from '@firebase/app';
2
2
  import { Component } from '@firebase/component';
3
- import { __assign, __awaiter, __generator, __spreadArray } from 'tslib';
3
+ import { __assign, __awaiter, __generator, __spreadArray, __makeTemplateObject } 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';
6
8
 
7
9
  /**
8
10
  * @license
@@ -1156,7 +1158,7 @@ function internalFactory(appCheck) {
1156
1158
  }
1157
1159
 
1158
1160
  var name = "@firebase/app-check";
1159
- var version = "0.8.5";
1161
+ var version = "0.8.6-20240716220314";
1160
1162
 
1161
1163
  /**
1162
1164
  * @license
@@ -1174,8 +1176,6 @@ var version = "0.8.5";
1174
1176
  * See the License for the specific language governing permissions and
1175
1177
  * limitations under the License.
1176
1178
  */
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,16 +1291,17 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) {
1291
1291
  }
1292
1292
  function loadReCAPTCHAV3Script(onload) {
1293
1293
  var script = document.createElement('script');
1294
- script.src = RECAPTCHA_URL;
1294
+ safeScriptEl.setSrc(script, trustedResourceUrl(templateObject_1 || (templateObject_1 = __makeTemplateObject(["https://www.google.com/recaptcha/api.js"], ["https://www.google.com/recaptcha/api.js"]))));
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
- script.src = RECAPTCHA_ENTERPRISE_URL;
1300
+ safeScriptEl.setSrc(script, trustedResourceUrl(templateObject_2 || (templateObject_2 = __makeTemplateObject(["https://www.google.com/recaptcha/enterprise.js"], ["https://www.google.com/recaptcha/enterprise.js"]))));
1301
1301
  script.onload = onload;
1302
1302
  document.head.appendChild(script);
1303
- }
1303
+ }
1304
+ var templateObject_1, templateObject_2;
1304
1305
 
1305
1306
  /**
1306
1307
  * @license