@firebase/app-check 0.8.6 → 0.8.7-canary.b4c5ef3c3

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,8 +7,6 @@ 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');
12
10
 
13
11
  /**
14
12
  * @license
@@ -675,7 +673,7 @@ function readOrCreateDebugTokenFromStorage() {
675
673
  if (!existingDebugToken) {
676
674
  newToken = util.uuidv4();
677
675
  // We don't need to block on writing to indexeddb
678
- // In case persistence failed, a new debug token will be generated everytime the page is refreshed.
676
+ // In case persistence failed, a new debug token will be generated every time the page is refreshed.
679
677
  // It renders the debug token useless because you have to manually register(whitelist) the new token in the firebase console again and again.
680
678
  // If you see this error trying to use debug token, it probably means you are using a browser that doesn't support indexeddb.
681
679
  // You should switch to a different browser that supports indexeddb
@@ -1162,7 +1160,7 @@ function internalFactory(appCheck) {
1162
1160
  }
1163
1161
 
1164
1162
  var name = "@firebase/app-check";
1165
- var version = "0.8.6";
1163
+ var version = "0.8.7-canary.b4c5ef3c3";
1166
1164
 
1167
1165
  /**
1168
1166
  * @license
@@ -1180,6 +1178,8 @@ var version = "0.8.6";
1180
1178
  * See the License for the specific language governing permissions and
1181
1179
  * limitations under the License.
1182
1180
  */
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,17 +1295,16 @@ function renderInvisibleWidget(app, siteKey, grecaptcha, container) {
1295
1295
  }
1296
1296
  function loadReCAPTCHAV3Script(onload) {
1297
1297
  var script = document.createElement('script');
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"]))));
1298
+ script.src = RECAPTCHA_URL;
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
- 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"]))));
1304
+ script.src = RECAPTCHA_ENTERPRISE_URL;
1305
1305
  script.onload = onload;
1306
1306
  document.head.appendChild(script);
1307
- }
1308
- var templateObject_1, templateObject_2;
1307
+ }
1309
1308
 
1310
1309
  /**
1311
1310
  * @license