@firebase/app-check-compat
Advanced tools
Comparing version 0.3.15-canary.beaa4dffb to 0.3.15-vertexai-preview.36cb0178c
@@ -7,3 +7,3 @@ import firebase from '@firebase/app-compat'; | ||
const name = "@firebase/app-check-compat"; | ||
const version = "0.3.15-canary.beaa4dffb"; | ||
const version = "0.3.15-vertexai-preview.36cb0178c"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -14,4 +14,4 @@ 'use strict'; | ||
var name = "@firebase/app-check-compat"; | ||
var version = "0.3.15-canary.beaa4dffb"; | ||
const name = "@firebase/app-check-compat"; | ||
const version = "0.3.15-vertexai-preview.36cb0178c"; | ||
@@ -34,8 +34,7 @@ /** | ||
*/ | ||
var _a; | ||
var ERRORS = (_a = {}, | ||
_a["use-before-activation" /* AppCheckError.USE_BEFORE_ACTIVATION */] = 'App Check is being used before activate() is called for FirebaseApp {$appName}. ' + | ||
'Call activate() before instantiating other Firebase services.', | ||
_a); | ||
var ERROR_FACTORY = new util.ErrorFactory('appCheck', 'AppCheck', ERRORS); | ||
const ERRORS = { | ||
["use-before-activation" /* AppCheckError.USE_BEFORE_ACTIVATION */]: 'App Check is being used before activate() is called for FirebaseApp {$appName}. ' + | ||
'Call activate() before instantiating other Firebase services.' | ||
}; | ||
const ERROR_FACTORY = new util.ErrorFactory('appCheck', 'AppCheck', ERRORS); | ||
@@ -58,8 +57,8 @@ /** | ||
*/ | ||
var AppCheckService = /** @class */ (function () { | ||
function AppCheckService(app) { | ||
class AppCheckService { | ||
constructor(app) { | ||
this.app = app; | ||
} | ||
AppCheckService.prototype.activate = function (siteKeyOrProvider, isTokenAutoRefreshEnabled) { | ||
var provider; | ||
activate(siteKeyOrProvider, isTokenAutoRefreshEnabled) { | ||
let provider; | ||
if (typeof siteKeyOrProvider === 'string') { | ||
@@ -77,7 +76,7 @@ provider = new appCheck.ReCaptchaV3Provider(siteKeyOrProvider); | ||
this._delegate = appCheck.initializeAppCheck(this.app, { | ||
provider: provider, | ||
isTokenAutoRefreshEnabled: isTokenAutoRefreshEnabled | ||
provider, | ||
isTokenAutoRefreshEnabled | ||
}); | ||
}; | ||
AppCheckService.prototype.setTokenAutoRefreshEnabled = function (isTokenAutoRefreshEnabled) { | ||
} | ||
setTokenAutoRefreshEnabled(isTokenAutoRefreshEnabled) { | ||
if (!this._delegate) { | ||
@@ -89,4 +88,4 @@ throw ERROR_FACTORY.create("use-before-activation" /* AppCheckError.USE_BEFORE_ACTIVATION */, { | ||
appCheck.setTokenAutoRefreshEnabled(this._delegate, isTokenAutoRefreshEnabled); | ||
}; | ||
AppCheckService.prototype.getToken = function (forceRefresh) { | ||
} | ||
getToken(forceRefresh) { | ||
if (!this._delegate) { | ||
@@ -98,4 +97,4 @@ throw ERROR_FACTORY.create("use-before-activation" /* AppCheckError.USE_BEFORE_ACTIVATION */, { | ||
return appCheck.getToken(this._delegate, forceRefresh); | ||
}; | ||
AppCheckService.prototype.onTokenChanged = function (onNextOrObserver, onError, onCompletion) { | ||
} | ||
onTokenChanged(onNextOrObserver, onError, onCompletion) { | ||
if (!this._delegate) { | ||
@@ -112,5 +111,4 @@ throw ERROR_FACTORY.create("use-before-activation" /* AppCheckError.USE_BEFORE_ACTIVATION */, { | ||
onNextOrObserver, onError, onCompletion); | ||
}; | ||
return AppCheckService; | ||
}()); | ||
} | ||
} | ||
@@ -133,5 +131,5 @@ /** | ||
*/ | ||
var factory = function (container) { | ||
const factory = (container) => { | ||
// Dependencies | ||
var app = container.getProvider('app-compat').getImmediate(); | ||
const app = container.getProvider('app-compat').getImmediate(); | ||
return new AppCheckService(app); | ||
@@ -138,0 +136,0 @@ }; |
{ | ||
"name": "@firebase/app-check-compat", | ||
"version": "0.3.15-canary.beaa4dffb", | ||
"version": "0.3.15-vertexai-preview.36cb0178c", | ||
"description": "A compat App Check package for new firebase packages", | ||
@@ -9,3 +9,2 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"module": "dist/esm/index.esm2017.js", | ||
"esm5": "dist/esm/index.esm.js", | ||
"exports": { | ||
@@ -15,3 +14,2 @@ ".": { | ||
"require": "./dist/index.cjs.js", | ||
"esm5": "./dist/esm/index.esm.js", | ||
"default": "./dist/esm/index.esm2017.js" | ||
@@ -38,10 +36,10 @@ }, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.2.41-canary.beaa4dffb" | ||
"@firebase/app-compat": "0.2.41-vertexai-preview.36cb0178c" | ||
}, | ||
"dependencies": { | ||
"@firebase/app-check": "0.8.8-canary.beaa4dffb", | ||
"@firebase/app-check-types": "0.5.2-canary.beaa4dffb", | ||
"@firebase/logger": "0.4.2-canary.beaa4dffb", | ||
"@firebase/util": "1.10.0-canary.beaa4dffb", | ||
"@firebase/component": "0.6.9-canary.beaa4dffb", | ||
"@firebase/app-check": "0.8.8-vertexai-preview.36cb0178c", | ||
"@firebase/app-check-types": "0.5.2-vertexai-preview.36cb0178c", | ||
"@firebase/logger": "0.4.2-vertexai-preview.36cb0178c", | ||
"@firebase/util": "1.10.0-vertexai-preview.36cb0178c", | ||
"@firebase/component": "0.6.9-vertexai-preview.36cb0178c", | ||
"tslib": "^2.1.0" | ||
@@ -51,3 +49,3 @@ }, | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.2.41-canary.beaa4dffb", | ||
"@firebase/app-compat": "0.2.41-vertexai-preview.36cb0178c", | ||
"rollup": "2.79.1", | ||
@@ -74,3 +72,6 @@ "@rollup/plugin-commonjs": "21.1.0", | ||
"reportDir": "./coverage/node" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2
40105
15
439
+ Added@firebase/app@0.10.11-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/app-check@0.8.8-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/app-check-types@0.5.2-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/app-compat@0.2.41-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/component@0.6.9-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/logger@0.4.2-vertexai-preview.36cb0178c(transitive)
+ Added@firebase/util@1.10.0-vertexai-preview.36cb0178c(transitive)
- Removed@firebase/app@0.10.11-canary.beaa4dffb(transitive)
- Removed@firebase/app-check@0.8.8-canary.beaa4dffb(transitive)
- Removed@firebase/app-check-types@0.5.2-canary.beaa4dffb(transitive)
- Removed@firebase/app-compat@0.2.41-canary.beaa4dffb(transitive)
- Removed@firebase/component@0.6.9-canary.beaa4dffb(transitive)
- Removed@firebase/logger@0.4.2-canary.beaa4dffb(transitive)
- Removed@firebase/util@1.10.0-canary.beaa4dffb(transitive)
Updated@firebase/app-check-types@0.5.2-vertexai-preview.36cb0178c