@firebase/app-check 0.8.5 → 0.8.6-canary.14b772077

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.
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * Unless required by applicable law or agreed to in writing, software
12
12
  * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or ied.
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
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
@@ -673,7 +675,7 @@ function readOrCreateDebugTokenFromStorage() {
673
675
  if (!existingDebugToken) {
674
676
  newToken = util.uuidv4();
675
677
  // We don't need to block on writing to indexeddb
676
- // In case persistence failed, a new debug token will be generated everytime the page is refreshed.
678
+ // In case persistence failed, a new debug token will be generated every time the page is refreshed.
677
679
  // It renders the debug token useless because you have to manually register(whitelist) the new token in the firebase console again and again.
678
680
  // If you see this error trying to use debug token, it probably means you are using a browser that doesn't support indexeddb.
679
681
  // You should switch to a different browser that supports indexeddb
@@ -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-canary.14b772077";
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