@firebase/installations-compat
Advanced tools
Comparing version 0.0.900-exp.f919db6a9 to 0.1.0-202171919375
'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.1.0-202171919375"; | ||
@@ -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); | ||
}; | ||
@@ -67,3 +71,3 @@ return InstallationsCompat; | ||
var installations = container | ||
.getProvider('installations-exp') | ||
.getProvider('installations') | ||
.getImmediate(); | ||
@@ -74,3 +78,3 @@ return new InstallationsCompat(app, installations); | ||
} | ||
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.1.0-202171919375"; | ||
@@ -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); | ||
}; | ||
@@ -66,3 +66,3 @@ return InstallationsCompat; | ||
var installations = container | ||
.getProvider('installations-exp') | ||
.getProvider('installations') | ||
.getImmediate(); | ||
@@ -69,0 +69,0 @@ return new InstallationsCompat(app, installations); |
@@ -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.1.0-202171919375"; | ||
@@ -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); | ||
} | ||
@@ -65,3 +65,3 @@ } | ||
const installations = container | ||
.getProvider('installations-exp') | ||
.getProvider('installations') | ||
.getImmediate(); | ||
@@ -68,0 +68,0 @@ return new InstallationsCompat(app, installations); |
@@ -18,8 +18,17 @@ /** | ||
import { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types'; | ||
import { FirebaseApp } from '@firebase/app-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; | ||
} | ||
} |
@@ -17,11 +17,9 @@ /** | ||
*/ | ||
import { FirebaseInstallations } from "@firebase/installations-types"; | ||
import { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types'; | ||
import { FirebaseApp } from '@firebase/app-types'; | ||
import { FirebaseService } from '@firebase/app-types/private'; | ||
import { IdChangeCallbackFn, IdChangeUnsubscribeFn } from "@firebase/installations"; | ||
export declare class InstallationsCompat implements FirebaseInstallationsCompat, FirebaseService { | ||
import { FirebaseApp, _FirebaseService } from '@firebase/app-compat'; | ||
import { Installations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from '@firebase/installations'; | ||
export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService { | ||
app: FirebaseApp; | ||
private _installations; | ||
constructor(app: FirebaseApp, _installations: FirebaseInstallations); | ||
readonly _delegate: Installations; | ||
constructor(app: FirebaseApp, _delegate: Installations); | ||
getId(): Promise<string>; | ||
@@ -28,0 +26,0 @@ getToken(forceRefresh?: boolean): Promise<string>; |
@@ -17,5 +17,5 @@ /** | ||
*/ | ||
import { FirebaseApp } from '@firebase/app-types'; | ||
import { FirebaseInstallations } from "@firebase/installations-types"; | ||
import { FirebaseApp } from '@firebase/app-compat'; | ||
import { Installations } from '@firebase/installations'; | ||
export declare function getFakeApp(): FirebaseApp; | ||
export declare function getFakeInstallations(): FirebaseInstallations; | ||
export declare function getFakeInstallations(): Installations; |
{ | ||
"name": "@firebase/installations-compat", | ||
"version": "0.0.900-exp.f919db6a9", | ||
"private": false, | ||
"version": "0.1.0-202171919375", | ||
"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", | ||
@@ -29,10 +27,6 @@ "license": "Apache-2.0", | ||
"serve:build": "rollup -c test-app/rollup.config.js", | ||
"serve:host": "http-server -c-1 test-app", | ||
"api-report": "api-extractor run --local --verbose", | ||
"predoc": "node ../../scripts/exp/remove-exp.js temp", | ||
"doc": "api-documenter markdown --input temp --output docs", | ||
"build:doc": "yarn build && yarn doc" | ||
"serve:host": "http-server -c-1 test-app" | ||
}, | ||
"repository": { | ||
"directory": "packages-exp/installations-compat", | ||
"directory": "packages/installations-compat", | ||
"type": "git", | ||
@@ -45,22 +39,23 @@ "url": "https://github.com/firebase/firebase-js-sdk.git" | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.0.900", | ||
"rollup": "2.33.2", | ||
"@rollup/plugin-commonjs": "15.1.0", | ||
"@firebase/app-compat": "0.1.0-202171919375", | ||
"rollup": "2.52.2", | ||
"@rollup/plugin-commonjs": "17.1.0", | ||
"@rollup/plugin-json": "4.1.0", | ||
"@rollup/plugin-node-resolve": "9.0.0", | ||
"rollup-plugin-typescript2": "0.29.0", | ||
"@rollup/plugin-node-resolve": "11.2.0", | ||
"rollup-plugin-typescript2": "0.30.0", | ||
"rollup-plugin-uglify": "6.0.4", | ||
"typescript": "4.0.5" | ||
"typescript": "4.2.2" | ||
}, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.0.900-exp.f919db6a9" | ||
"@firebase/app-compat": "0.1.0-202171919375" | ||
}, | ||
"dependencies": { | ||
"@firebase/installations": "0.0.900-exp.f919db6a9", | ||
"@firebase/installations-types": "0.0.900-exp.f919db6a9", | ||
"@firebase/util": "0.3.4", | ||
"@firebase/component": "0.1.21", | ||
"@firebase/installations": "0.5.0-202171919375", | ||
"@firebase/installations-types": "0.4.0-202171919375", | ||
"@firebase/util": "1.3.0-202171919375", | ||
"@firebase/component": "0.5.6-202171919375", | ||
"idb": "3.0.2", | ||
"tslib": "^1.11.1" | ||
} | ||
} | ||
"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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
29158
13
321
0
5
+ Added@firebase/app@0.7.0-202171919375(transitive)
+ Added@firebase/app-compat@0.1.0-202171919375(transitive)
+ Added@firebase/component@0.5.6-202171919375(transitive)
+ Added@firebase/installations@0.5.0-202171919375(transitive)
+ Added@firebase/installations-types@0.4.0-202171919375(transitive)
+ Added@firebase/util@1.3.0-202171919375(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@firebase/app@0.0.900-exp.f919db6a9(transitive)
- Removed@firebase/app-compat@0.0.900-exp.f919db6a9(transitive)
- Removed@firebase/app-types@0.0.900-exp.f919db6a9(transitive)
- Removed@firebase/component@0.1.21(transitive)
- Removed@firebase/installations@0.0.900-exp.f919db6a9(transitive)
- Removed@firebase/installations-types@0.0.900-exp.f919db6a9(transitive)
- Removed@firebase/util@0.3.4(transitive)
- Removeddom-storage@2.1.0(transitive)
- Removedtslib@1.14.1(transitive)
- Removedxmlhttprequest@1.8.0(transitive)
Updatedtslib@^2.1.0