@firebase/installations-compat
Advanced tools
Comparing version 0.0.900-exp.555fe23c5 to 0.0.900-exp.57f19127c
'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.57f19127c"; | ||
@@ -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.57f19127c"; | ||
@@ -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.57f19127c"; | ||
@@ -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.57f19127c", | ||
"private": false, | ||
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"browser": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"module": "dist/index.esm2017.js", | ||
"browser": "dist/index.esm2017.js", | ||
"typings": "dist/installations-compat.d.ts", | ||
@@ -50,11 +49,13 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.0.900-exp.555fe23c5" | ||
"@firebase/app-compat": "0.0.900-exp.57f19127c" | ||
}, | ||
"dependencies": { | ||
"@firebase/installations": "0.0.900-exp.555fe23c5", | ||
"@firebase/util": "0.3.4", | ||
"@firebase/component": "0.2.0", | ||
"@firebase/installations": "0.0.900-exp.57f19127c", | ||
"@firebase/installations-types": "0.3.4", | ||
"@firebase/util": "1.1.0", | ||
"@firebase/component": "0.5.3", | ||
"idb": "3.0.2", | ||
"tslib": "^2.0.0" | ||
} | ||
"tslib": "^2.1.0" | ||
}, | ||
"esm5": "dist/index.esm.js" | ||
} |
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
29059
321
7
+ Added@firebase/app@0.0.900-exp.57f19127c(transitive)
+ Added@firebase/app-compat@0.0.900-exp.57f19127c(transitive)
+ Added@firebase/app-types@0.9.3(transitive)
+ Added@firebase/component@0.5.3(transitive)
+ Added@firebase/installations@0.0.900-exp.57f19127c(transitive)
+ Added@firebase/installations-types@0.3.4(transitive)
+ Added@firebase/util@1.1.0(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.5.3
Updated@firebase/util@1.1.0
Updatedtslib@^2.1.0