@firebase/app-compat
Advanced tools
Comparing version 0.0.800-exp.f7a1a974d to 0.0.800-exp.fe55004be
@@ -8,3 +8,3 @@ 'use strict'; | ||
var component = require('@firebase/component'); | ||
var appExp = require('@firebase/app-exp'); | ||
var app = require('@firebase/app'); | ||
var logger$1 = require('@firebase/logger'); | ||
@@ -33,10 +33,10 @@ | ||
var FirebaseAppImpl = /** @class */ (function () { | ||
function FirebaseAppImpl(app, firebase) { | ||
function FirebaseAppImpl(app$1, firebase) { | ||
var _this = this; | ||
this.app = app; | ||
this.app = app$1; | ||
this.firebase = firebase; | ||
// add itself to container | ||
// TODO: change the component name to 'app-compat' before the official release | ||
appExp._addComponent(app, new component.Component('app', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
this.container = app.container; | ||
app._addComponent(app$1, new component.Component('app', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
this.container = app$1.container; | ||
} | ||
@@ -74,3 +74,3 @@ Object.defineProperty(FirebaseAppImpl.prototype, "automaticDataCollectionEnabled", { | ||
_this.firebase.INTERNAL.removeApp(_this.name); | ||
return appExp.deleteApp(_this.app); | ||
return app.deleteApp(_this.app); | ||
}); | ||
@@ -93,3 +93,3 @@ }; | ||
FirebaseAppImpl.prototype._getService = function (name, instanceIdentifier) { | ||
if (instanceIdentifier === void 0) { instanceIdentifier = appExp._DEFAULT_ENTRY_NAME; } | ||
if (instanceIdentifier === void 0) { instanceIdentifier = app._DEFAULT_ENTRY_NAME; } | ||
this.app.checkDestroyed(); | ||
@@ -112,3 +112,3 @@ // getImmediate will always succeed because _getService is only called for registered components. | ||
FirebaseAppImpl.prototype._removeServiceInstance = function (name, instanceIdentifier) { | ||
if (instanceIdentifier === void 0) { instanceIdentifier = appExp._DEFAULT_ENTRY_NAME; } | ||
if (instanceIdentifier === void 0) { instanceIdentifier = app._DEFAULT_ENTRY_NAME; } | ||
this.app.container | ||
@@ -124,6 +124,6 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
FirebaseAppImpl.prototype._addComponent = function (component) { | ||
appExp._addComponent(this.app, component); | ||
app._addComponent(this.app, component); | ||
}; | ||
FirebaseAppImpl.prototype._addOrOverwriteComponent = function (component) { | ||
appExp._addOrOverwriteComponent(this.app, component); | ||
app._addOrOverwriteComponent(this.app, component); | ||
}; | ||
@@ -199,9 +199,9 @@ return FirebaseAppImpl; | ||
// @ts-ignore | ||
app: app, | ||
registerVersion: appExp.registerVersion, | ||
setLogLevel: appExp.setLogLevel, | ||
onLog: appExp.onLog, | ||
app: app$1, | ||
registerVersion: app.registerVersion, | ||
setLogLevel: app.setLogLevel, | ||
onLog: app.onLog, | ||
// @ts-ignore | ||
apps: null, | ||
SDK_VERSION: appExp.SDK_VERSION, | ||
SDK_VERSION: app.SDK_VERSION, | ||
INTERNAL: { | ||
@@ -239,4 +239,4 @@ registerComponent: registerComponentCompat, | ||
*/ | ||
function app(name) { | ||
name = name || appExp._DEFAULT_ENTRY_NAME; | ||
function app$1(name) { | ||
name = name || app._DEFAULT_ENTRY_NAME; | ||
if (!util.contains(apps, name)) { | ||
@@ -248,3 +248,3 @@ throw ERROR_FACTORY.create("no-app" /* NO_APP */, { appName: name }); | ||
// @ts-ignore | ||
app['App'] = firebaseAppImpl; | ||
app$1['App'] = firebaseAppImpl; | ||
/** | ||
@@ -255,5 +255,5 @@ * Create a new App instance (name must be unique). | ||
if (rawConfig === void 0) { rawConfig = {}; } | ||
var app = appExp.initializeApp(options, rawConfig); | ||
var appCompat = new firebaseAppImpl(app, namespace); | ||
apps[app.name] = appCompat; | ||
var app$1 = app.initializeApp(options, rawConfig); | ||
var appCompat = new firebaseAppImpl(app$1, namespace); | ||
apps[app$1.name] = appCompat; | ||
return appCompat; | ||
@@ -270,3 +270,3 @@ } | ||
var componentName = component.name; | ||
if (appExp._registerComponent(component) && | ||
if (app._registerComponent(component) && | ||
component.type === "PUBLIC" /* PUBLIC */) { | ||
@@ -276,3 +276,3 @@ // create service namespace for public components | ||
var serviceNamespace = function (appArg) { | ||
if (appArg === void 0) { appArg = app(); } | ||
if (appArg === void 0) { appArg = app$1(); } | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -389,3 +389,3 @@ if (typeof appArg[componentName] !== 'function') { | ||
var name = "@firebase/app-compat"; | ||
var version = "0.0.800-exp.f7a1a974d"; | ||
var version = "0.0.800-exp.fe55004be"; | ||
@@ -410,3 +410,3 @@ /** | ||
// Register `app` package. | ||
appExp.registerVersion(name, version, variant); | ||
app.registerVersion(name, version, variant); | ||
} | ||
@@ -413,0 +413,0 @@ |
import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
import { Component } from '@firebase/component'; | ||
import { _addComponent, deleteApp, _DEFAULT_ENTRY_NAME, _addOrOverwriteComponent, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app-exp'; | ||
import { _addComponent, deleteApp, _DEFAULT_ENTRY_NAME, _addOrOverwriteComponent, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app'; | ||
import { Logger } from '@firebase/logger'; | ||
@@ -348,3 +348,3 @@ | ||
const name = "@firebase/app-compat"; | ||
const version = "0.0.800-exp.f7a1a974d"; | ||
const version = "0.0.800-exp.fe55004be"; | ||
@@ -351,0 +351,0 @@ /** |
import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
import { __assign } from 'tslib'; | ||
import { Component } from '@firebase/component'; | ||
import { deleteApp, _addComponent, _addOrOverwriteComponent, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app-exp'; | ||
import { deleteApp, _addComponent, _addOrOverwriteComponent, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app'; | ||
import { Logger } from '@firebase/logger'; | ||
@@ -373,3 +373,3 @@ | ||
var name = "@firebase/app-compat"; | ||
var version = "0.0.800-exp.f7a1a974d"; | ||
var version = "0.0.800-exp.fe55004be"; | ||
@@ -376,0 +376,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { _addComponent, deleteApp, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app-exp'; | ||
import { _addComponent, deleteApp, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app'; | ||
import { Component } from '@firebase/component'; | ||
@@ -288,3 +288,3 @@ import { ErrorFactory, contains, deepExtend } from '@firebase/util'; | ||
const name$1 = "@firebase/app-compat"; | ||
const version = "0.0.800-exp.f7a1a974d"; | ||
const version = "0.0.800-exp.fe55004be"; | ||
@@ -291,0 +291,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { deleteApp, _addComponent, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app-exp'; | ||
import { deleteApp, _addComponent, _DEFAULT_ENTRY_NAME, registerVersion, setLogLevel, onLog, SDK_VERSION, initializeApp, _registerComponent } from '@firebase/app'; | ||
import { Component } from '@firebase/component'; | ||
@@ -310,3 +310,3 @@ import { ErrorFactory, contains, deepExtend } from '@firebase/util'; | ||
var name$1 = "@firebase/app-compat"; | ||
var version = "0.0.800-exp.f7a1a974d"; | ||
var version = "0.0.800-exp.fe55004be"; | ||
@@ -313,0 +313,0 @@ /** |
@@ -20,3 +20,3 @@ /** | ||
import { Component } from '@firebase/component'; | ||
import { _FirebaseAppInternal } from '@firebase/app-types-exp'; | ||
import { _FirebaseAppInternal } from "@firebase/app-types"; | ||
/** | ||
@@ -23,0 +23,0 @@ * Global context object for a collection of services using |
@@ -19,3 +19,3 @@ /** | ||
import { _FirebaseNamespace, FirebaseService } from '@firebase/app-types/private'; | ||
import { _FirebaseAppInternal } from '@firebase/app-types-exp'; | ||
import { _FirebaseAppInternal } from "@firebase/app-types"; | ||
/** | ||
@@ -22,0 +22,0 @@ * Global context object for a collection of services using |
{ | ||
"name": "@firebase/app-compat", | ||
"version": "0.0.800-exp.f7a1a974d", | ||
"version": "0.0.800-exp.fe55004be", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -20,2 +20,3 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"build": "rollup -c", | ||
"build:release": "rollup -c rollup.config.release.js", | ||
"build:deps": "lerna run --scope @firebase/app-compat --include-dependencies build", | ||
@@ -29,10 +30,10 @@ "dev": "rollup -c -w", | ||
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* src/**/*.test.ts --config ../../config/mocharc.node.js", | ||
"prepare": "yarn build" | ||
"prepare": "yarn build:release" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@firebase/app": "0.0.800-exp.f7a1a974d", | ||
"@firebase/util": "0.3.1", | ||
"@firebase/app": "0.0.800-exp.fe55004be", | ||
"@firebase/util": "0.3.2", | ||
"@firebase/logger": "0.2.6", | ||
"@firebase/component": "0.1.18", | ||
"@firebase/component": "0.1.19", | ||
"tslib": "^1.11.1", | ||
@@ -43,3 +44,3 @@ "dom-storage": "2.1.0", | ||
"devDependencies": { | ||
"rollup": "2.26.5", | ||
"rollup": "2.28.1", | ||
"rollup-plugin-json": "4.0.0", | ||
@@ -46,0 +47,0 @@ "rollup-plugin-replace": "2.2.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
200845
+ Added@firebase/app@0.0.800-exp.fe55004be(transitive)
+ Added@firebase/app-types@0.0.800-exp.fe55004be(transitive)
+ Added@firebase/component@0.1.19(transitive)
+ Added@firebase/util@0.3.2(transitive)
- Removed@firebase/app@0.0.800-exp.f7a1a974d(transitive)
- Removed@firebase/app-types@0.0.800-exp.f7a1a974d(transitive)
- Removed@firebase/component@0.1.18(transitive)
- Removed@firebase/util@0.3.1(transitive)
Updated@firebase/component@0.1.19
Updated@firebase/util@0.3.2