@firebase/installations-compat
Advanced tools
Comparing version 0.0.900-exp.f18a6d41d to 0.0.900-exp.f41d11b71
'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.f41d11b71"; | ||
@@ -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.f41d11b71"; | ||
@@ -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.f41d11b71"; | ||
@@ -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 @@ } |
@@ -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 { FirebaseInstallations, IdChangeCallbackFn, IdChangeUnsubscribeFn } from "@firebase/installations"; | ||
export declare class InstallationsCompat implements FirebaseInstallationsCompat, _FirebaseService { | ||
app: FirebaseApp; | ||
private _installations; | ||
constructor(app: FirebaseApp, _installations: FirebaseInstallations); | ||
readonly _delegate: FirebaseInstallations; | ||
constructor(app: FirebaseApp, _delegate: FirebaseInstallations); | ||
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 { FirebaseInstallations } from "@firebase/installations"; | ||
export declare function getFakeApp(): FirebaseApp; | ||
export declare function getFakeInstallations(): FirebaseInstallations; |
{ | ||
"name": "@firebase/installations-compat", | ||
"version": "0.0.900-exp.f18a6d41d", | ||
"version": "0.0.900-exp.f41d11b71", | ||
"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", | ||
@@ -29,7 +28,3 @@ "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" | ||
}, | ||
@@ -47,20 +42,21 @@ "repository": { | ||
"rollup": "2.33.2", | ||
"@rollup/plugin-commonjs": "15.1.0", | ||
"@rollup/plugin-commonjs": "17.1.0", | ||
"@rollup/plugin-json": "4.1.0", | ||
"@rollup/plugin-node-resolve": "9.0.0", | ||
"@rollup/plugin-node-resolve": "11.2.0", | ||
"rollup-plugin-typescript2": "0.29.0", | ||
"rollup-plugin-uglify": "6.0.4", | ||
"typescript": "4.0.5" | ||
"typescript": "4.2.2" | ||
}, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.0.900-exp.f18a6d41d" | ||
"@firebase/app-compat": "0.0.900-exp.f41d11b71" | ||
}, | ||
"dependencies": { | ||
"@firebase/installations": "0.0.900-exp.f18a6d41d", | ||
"@firebase/installations-types": "0.0.900-exp.f18a6d41d", | ||
"@firebase/util": "0.3.4", | ||
"@firebase/component": "0.1.21", | ||
"@firebase/installations": "0.0.900-exp.f41d11b71", | ||
"@firebase/installations-types": "0.3.4", | ||
"@firebase/util": "1.1.0", | ||
"@firebase/component": "0.5.1", | ||
"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
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
+ Added@firebase/app@0.0.900-exp.f41d11b71(transitive)
+ Added@firebase/app-compat@0.0.900-exp.f41d11b71(transitive)
+ Added@firebase/component@0.5.1(transitive)
+ Added@firebase/installations@0.0.900-exp.f41d11b71(transitive)
+ Added@firebase/installations-types@0.3.4(transitive)
+ Added@firebase/util@1.1.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@firebase/app@0.0.900-exp.f18a6d41d(transitive)
- Removed@firebase/app-compat@0.0.900-exp.f18a6d41d(transitive)
- Removed@firebase/app-types@0.0.900-exp.f18a6d41d(transitive)
- Removed@firebase/component@0.1.21(transitive)
- Removed@firebase/installations@0.0.900-exp.f18a6d41d(transitive)
- Removed@firebase/installations-types@0.0.900-exp.f18a6d41d(transitive)
- Removed@firebase/util@0.3.4(transitive)
- Removedtslib@1.14.1(transitive)
Updated@firebase/component@0.5.1
Updated@firebase/util@1.1.0
Updatedtslib@^2.1.0