@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.
package/dist/index.cjs.js CHANGED
@@ -7,6 +7,8 @@ var component = require('@firebase/component');
7
7
  var tslib = require('tslib');
8
8
  var util = require('@firebase/util');
9
9
  var logger$1 = require('@firebase/logger');
10
+ var safevalues = require('safevalues');
11
+ var dom = require('safevalues/dom');
10
12
 
11
13
  /**
12
14
  * @license
@@ -1160,7 +1162,7 @@ function internalFactory(appCheck) {
1160
1162
  }
1161
1163
 
1162
1164
  var name = "@firebase/app-check";
1163
- var version = "0.8.5";
1165
+ var version = "0.8.6-20240716220314";
1164
1166
 
1165
1167
  /**
1166
1168
  * @license
@@ -1178,8 +1180,6 @@ var version = "0.8.5";
1178
1180
  * See the License for the specific language governing permissions and
1179
1181
  * limitations under the License.
1180
1182
  */
1181
- var RECAPTCHA_URL = 'https://www.google.com/recaptcha/api.js';
1182
- var RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js';
1183
1183
  function initializeV3(app, siteKey) {
1184
1184
  var initialized = new util.Deferred();
1185
1185
  var state = getStateReference(app);
@@ -1295,16 +1295,17 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) {
1295
1295
  }
1296
1296
  function loadReCAPTCHAV3Script(onload) {
1297
1297
  var script = document.createElement('script');
1298
- script.src = RECAPTCHA_URL;
1298
+ dom.safeScriptEl.setSrc(script, safevalues.trustedResourceUrl(templateObject_1 || (templateObject_1 = tslib.__makeTemplateObject(["https://www.google.com/recaptcha/api.js"], ["https://www.google.com/recaptcha/api.js"]))));
1299
1299
  script.onload = onload;
1300
1300
  document.head.appendChild(script);
1301
1301
  }
1302
1302
  function loadReCAPTCHAEnterpriseScript(onload) {
1303
1303
  var script = document.createElement('script');
1304
- script.src = RECAPTCHA_ENTERPRISE_URL;
1304
+ dom.safeScriptEl.setSrc(script, safevalues.trustedResourceUrl(templateObject_2 || (templateObject_2 = tslib.__makeTemplateObject(["https://www.google.com/recaptcha/enterprise.js"], ["https://www.google.com/recaptcha/enterprise.js"]))));
1305
1305
  script.onload = onload;
1306
1306
  document.head.appendChild(script);
1307
- }
1307
+ }
1308
+ var templateObject_1, templateObject_2;
1308
1309
 
1309
1310
  /**
1310
1311
  * @license