@firebase/installations-compat
Advanced tools
Comparing version 0.0.900-exp.555fe23c5 to 0.0.900-exp.8294e6082
'use strict'; | ||
var appCompat = require('@firebase/app-compat'); | ||
var firebase = require('@firebase/app-compat'); | ||
var component = require('@firebase/component'); | ||
var installations = require('@firebase/installations'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase); | ||
var name = "@firebase/installations-compat"; | ||
var version = "0.0.900"; | ||
var version = "0.0.900-exp.8294e6082"; | ||
@@ -27,17 +31,17 @@ /** | ||
var InstallationsCompat = /** @class */ (function () { | ||
function InstallationsCompat(app, _installations) { | ||
function InstallationsCompat(app, _delegate) { | ||
this.app = app; | ||
this._installations = _installations; | ||
this._delegate = _delegate; | ||
} | ||
InstallationsCompat.prototype.getId = function () { | ||
return installations.getId(this._installations); | ||
return installations.getId(this._delegate); | ||
}; | ||
InstallationsCompat.prototype.getToken = function (forceRefresh) { | ||
return installations.getToken(this._installations, forceRefresh); | ||
return installations.getToken(this._delegate, forceRefresh); | ||
}; | ||
InstallationsCompat.prototype.delete = function () { | ||
return installations.deleteInstallations(this._installations); | ||
return installations.deleteInstallations(this._delegate); | ||
}; | ||
InstallationsCompat.prototype.onIdChange = function (callback) { | ||
return installations.onIdChange(this._installations, callback); | ||
return installations.onIdChange(this._delegate, callback); | ||
}; | ||
@@ -73,3 +77,3 @@ return InstallationsCompat; | ||
} | ||
registerInstallations(appCompat.firebase); | ||
registerInstallations(firebase__default['default']); | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import { firebase } from '@firebase/app-compat'; | ||
import firebase from '@firebase/app-compat'; | ||
import { Component } from '@firebase/component'; | ||
@@ -6,3 +6,3 @@ import { getId, getToken, deleteInstallations, onIdChange } from '@firebase/installations'; | ||
var name = "@firebase/installations-compat"; | ||
var version = "0.0.900"; | ||
var version = "0.0.900-exp.8294e6082"; | ||
@@ -26,17 +26,17 @@ /** | ||
var InstallationsCompat = /** @class */ (function () { | ||
function InstallationsCompat(app, _installations) { | ||
function InstallationsCompat(app, _delegate) { | ||
this.app = app; | ||
this._installations = _installations; | ||
this._delegate = _delegate; | ||
} | ||
InstallationsCompat.prototype.getId = function () { | ||
return getId(this._installations); | ||
return getId(this._delegate); | ||
}; | ||
InstallationsCompat.prototype.getToken = function (forceRefresh) { | ||
return getToken(this._installations, forceRefresh); | ||
return getToken(this._delegate, forceRefresh); | ||
}; | ||
InstallationsCompat.prototype.delete = function () { | ||
return deleteInstallations(this._installations); | ||
return deleteInstallations(this._delegate); | ||
}; | ||
InstallationsCompat.prototype.onIdChange = function (callback) { | ||
return onIdChange(this._installations, callback); | ||
return onIdChange(this._delegate, callback); | ||
}; | ||
@@ -43,0 +43,0 @@ return InstallationsCompat; |
@@ -1,2 +0,2 @@ | ||
import { firebase } from '@firebase/app-compat'; | ||
import firebase from '@firebase/app-compat'; | ||
import { Component } from '@firebase/component'; | ||
@@ -6,3 +6,3 @@ import { getId, getToken, deleteInstallations, onIdChange } from '@firebase/installations'; | ||
const name = "@firebase/installations-compat"; | ||
const version = "0.0.900"; | ||
const version = "0.0.900-exp.8294e6082"; | ||
@@ -26,17 +26,17 @@ /** | ||
class InstallationsCompat { | ||
constructor(app, _installations) { | ||
constructor(app, _delegate) { | ||
this.app = app; | ||
this._installations = _installations; | ||
this._delegate = _delegate; | ||
} | ||
getId() { | ||
return getId(this._installations); | ||
return getId(this._delegate); | ||
} | ||
getToken(forceRefresh) { | ||
return getToken(this._installations, forceRefresh); | ||
return getToken(this._delegate, forceRefresh); | ||
} | ||
delete() { | ||
return deleteInstallations(this._installations); | ||
return deleteInstallations(this._delegate); | ||
} | ||
onIdChange(callback) { | ||
return onIdChange(this._installations, callback); | ||
return onIdChange(this._delegate, callback); | ||
} | ||
@@ -43,0 +43,0 @@ } |
@@ -17,9 +17,18 @@ /** | ||
*/ | ||
import { FirebaseApp } from '@firebase/app-compat'; | ||
import { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types'; | ||
declare module '@firebase/component' { | ||
interface NameServiceMapping { | ||
'app-compat': FirebaseApp; | ||
'installations-compat': FirebaseInstallationsCompat; | ||
} | ||
} | ||
/** | ||
* Define extension behavior of `registerInstallations` | ||
*/ | ||
declare module '@firebase/app-compat' { | ||
interface FirebaseNamespace { | ||
installations(app?: FirebaseApp): FirebaseInstallationsCompat; | ||
} | ||
interface FirebaseApp { | ||
installations(): FirebaseInstallationsCompat; | ||
} | ||
} |
@@ -22,4 +22,4 @@ /** | ||
app: FirebaseApp; | ||
private _installations; | ||
constructor(app: FirebaseApp, _installations: FirebaseInstallations); | ||
readonly _delegate: FirebaseInstallations; | ||
constructor(app: FirebaseApp, _delegate: FirebaseInstallations); | ||
getId(): Promise<string>; | ||
@@ -26,0 +26,0 @@ getToken(forceRefresh?: boolean): Promise<string>; |
{ | ||
"name": "@firebase/installations-compat", | ||
"version": "0.0.900-exp.555fe23c5", | ||
"version": "0.0.900-exp.8294e6082", | ||
"private": false, | ||
@@ -50,11 +50,12 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.0.900-exp.555fe23c5" | ||
"@firebase/app-compat": "0.0.900-exp.8294e6082" | ||
}, | ||
"dependencies": { | ||
"@firebase/installations": "0.0.900-exp.555fe23c5", | ||
"@firebase/util": "0.3.4", | ||
"@firebase/component": "0.2.0", | ||
"@firebase/installations": "0.0.900-exp.8294e6082", | ||
"@firebase/installations-types": "0.3.4", | ||
"@firebase/util": "0.4.1", | ||
"@firebase/component": "0.3.1", | ||
"idb": "3.0.2", | ||
"tslib": "^2.0.0" | ||
"tslib": "^2.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
29058
321
7
+ Added@firebase/app@0.0.900-exp.8294e6082(transitive)
+ Added@firebase/app-compat@0.0.900-exp.8294e6082(transitive)
+ Added@firebase/app-types@0.9.3(transitive)
+ Added@firebase/component@0.3.1(transitive)
+ Added@firebase/installations@0.0.900-exp.8294e6082(transitive)
+ Added@firebase/installations-types@0.3.4(transitive)
+ Added@firebase/util@0.4.1(transitive)
- Removed@firebase/app@0.0.900-exp.555fe23c5(transitive)
- Removed@firebase/app-compat@0.0.900-exp.555fe23c5(transitive)
- Removed@firebase/component@0.2.0(transitive)
- Removed@firebase/installations@0.0.900-exp.555fe23c5(transitive)
- Removed@firebase/util@0.3.4(transitive)
- Removedtslib@1.14.1(transitive)
Updated@firebase/component@0.3.1
Updated@firebase/util@0.4.1
Updatedtslib@^2.1.0