@firebase/app-compat
Advanced tools
Comparing version 0.0.900-exp.ab60f5fa9 to 0.0.900-exp.c778ccd9d
@@ -59,4 +59,3 @@ 'use strict'; | ||
// add itself to container | ||
// TODO: change the component name to 'app-compat' before the official release | ||
modularAPIs._addComponent(app, new component.Component('app', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
modularAPIs._addComponent(app, new component.Component('app-compat', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
this.container = app.container; | ||
@@ -147,2 +146,9 @@ } | ||
}; | ||
FirebaseAppImpl.prototype.toJSON = function () { | ||
return { | ||
name: this.name, | ||
automaticDataCollectionEnabled: this.automaticDataCollectionEnabled, | ||
options: this.options | ||
}; | ||
}; | ||
return FirebaseAppImpl; | ||
@@ -149,0 +155,0 @@ }()); |
@@ -32,4 +32,3 @@ import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
// add itself to container | ||
// TODO: change the component name to 'app-compat' before the official release | ||
_addComponent(app, new Component('app', () => this, "PUBLIC" /* PUBLIC */)); | ||
_addComponent(app, new Component('app-compat', () => this, "PUBLIC" /* PUBLIC */)); | ||
this.container = app.container; | ||
@@ -105,2 +104,9 @@ } | ||
} | ||
toJSON() { | ||
return { | ||
name: this.name, | ||
automaticDataCollectionEnabled: this.automaticDataCollectionEnabled, | ||
options: this.options | ||
}; | ||
} | ||
} | ||
@@ -107,0 +113,0 @@ // TODO: investigate why the following needs to be commented out |
@@ -34,4 +34,3 @@ import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
// add itself to container | ||
// TODO: change the component name to 'app-compat' before the official release | ||
_addComponent(app, new Component('app', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
_addComponent(app, new Component('app-compat', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
this.container = app.container; | ||
@@ -122,2 +121,9 @@ } | ||
}; | ||
FirebaseAppImpl.prototype.toJSON = function () { | ||
return { | ||
name: this.name, | ||
automaticDataCollectionEnabled: this.automaticDataCollectionEnabled, | ||
options: this.options | ||
}; | ||
}; | ||
return FirebaseAppImpl; | ||
@@ -124,0 +130,0 @@ }()); |
@@ -31,3 +31,3 @@ import * as modularAPIs from '@firebase/app'; | ||
// add itself to container | ||
_addComponent(app, new Component('app', () => this, "PUBLIC" /* PUBLIC */)); | ||
_addComponent(app, new Component('app-compat', () => this, "PUBLIC" /* PUBLIC */)); | ||
} | ||
@@ -269,4 +269,3 @@ get automaticDataCollectionEnabled() { | ||
namespace.SDK_VERSION = `${namespace.SDK_VERSION}_LITE`; | ||
const registerComponent = namespace.INTERNAL | ||
.registerComponent; | ||
const registerComponent = namespace.INTERNAL.registerComponent; | ||
namespace.INTERNAL.registerComponent = registerComponentForLite; | ||
@@ -273,0 +272,0 @@ /** |
@@ -32,3 +32,3 @@ import * as modularAPIs from '@firebase/app'; | ||
// add itself to container | ||
_addComponent(app, new Component('app', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
_addComponent(app, new Component('app-compat', function () { return _this; }, "PUBLIC" /* PUBLIC */)); | ||
} | ||
@@ -291,4 +291,3 @@ Object.defineProperty(FirebaseAppLiteImpl.prototype, "automaticDataCollectionEnabled", { | ||
namespace.SDK_VERSION = namespace.SDK_VERSION + "_LITE"; | ||
var registerComponent = namespace.INTERNAL | ||
.registerComponent; | ||
var registerComponent = namespace.INTERNAL.registerComponent; | ||
namespace.INTERNAL.registerComponent = registerComponentForLite; | ||
@@ -295,0 +294,0 @@ /** |
@@ -17,6 +17,6 @@ /** | ||
*/ | ||
import { FirebaseApp, FirebaseOptions } from '@firebase/app-types'; | ||
import { _FirebaseNamespace, FirebaseService } from '@firebase/app-types/private'; | ||
import { FirebaseApp, FirebaseOptions } from './public-types'; | ||
import { Component } from '@firebase/component'; | ||
import { _FirebaseAppInternal } from "@firebase/app-types"; | ||
import { _FirebaseAppInternal as _FirebaseAppExp } from "@firebase/app"; | ||
import { _FirebaseService, _FirebaseNamespace } from './types'; | ||
/** | ||
@@ -29,4 +29,4 @@ * Global context object for a collection of services using | ||
private readonly firebase; | ||
private readonly container; | ||
constructor(app: _FirebaseAppInternal, firebase: _FirebaseNamespace); | ||
private container; | ||
constructor(app: _FirebaseAppExp, firebase: _FirebaseNamespace); | ||
get automaticDataCollectionEnabled(): boolean; | ||
@@ -51,3 +51,3 @@ set automaticDataCollectionEnabled(val: boolean); | ||
*/ | ||
_getService(name: string, instanceIdentifier?: string): FirebaseService; | ||
_getService(name: string, instanceIdentifier?: string): _FirebaseService; | ||
/** | ||
@@ -70,2 +70,3 @@ * Remove a service instance from the cache, so we will create a new instance for this service | ||
_addOrOverwriteComponent(component: Component): void; | ||
toJSON(): object; | ||
} |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
import { FirebaseNamespace } from '@firebase/app-types'; | ||
import { FirebaseNamespace } from './public-types'; | ||
/** | ||
@@ -20,0 +20,0 @@ * Return a firebase namespace object. |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
import { FirebaseNamespace } from '@firebase/app-types'; | ||
import { _FirebaseNamespace } from './types'; | ||
import { FirebaseAppImpl } from './firebaseApp'; | ||
@@ -28,2 +28,2 @@ import { FirebaseAppLiteImpl } from './lite/firebaseAppLite'; | ||
*/ | ||
export declare function createFirebaseNamespaceCore(firebaseAppImpl: typeof FirebaseAppImpl | typeof FirebaseAppLiteImpl): FirebaseNamespace; | ||
export declare function createFirebaseNamespaceCore(firebaseAppImpl: typeof FirebaseAppImpl | typeof FirebaseAppLiteImpl): _FirebaseNamespace; |
@@ -17,4 +17,6 @@ /** | ||
*/ | ||
import { FirebaseNamespace } from '@firebase/app-types'; | ||
import { FirebaseNamespace } from './public-types'; | ||
export declare const firebase: FirebaseNamespace; | ||
export default firebase; | ||
export { _FirebaseNamespace, _FirebaseService } from './types'; | ||
export { FirebaseApp } from './public-types'; |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
export declare const firebase: import("@firebase/app-types").FirebaseNamespace; | ||
export declare const firebase: import("./public-types").FirebaseNamespace; | ||
export default firebase; |
@@ -17,5 +17,5 @@ /** | ||
*/ | ||
import { FirebaseApp, FirebaseOptions } from '@firebase/app-types'; | ||
import { _FirebaseNamespace, FirebaseService } from '@firebase/app-types/private'; | ||
import { _FirebaseAppInternal } from "@firebase/app-types"; | ||
import { FirebaseApp, FirebaseOptions } from '../public-types'; | ||
import { _FirebaseNamespace, _FirebaseService } from '../types'; | ||
import { _FirebaseAppInternal as FirebaseAppExp } from "@firebase/app"; | ||
/** | ||
@@ -28,3 +28,3 @@ * Global context object for a collection of services using | ||
private readonly firebase; | ||
constructor(app: _FirebaseAppInternal, firebase: _FirebaseNamespace); | ||
constructor(app: FirebaseAppExp, firebase: _FirebaseNamespace); | ||
get automaticDataCollectionEnabled(): boolean; | ||
@@ -49,3 +49,3 @@ set automaticDataCollectionEnabled(val: boolean); | ||
*/ | ||
_getService(name: string, instanceIdentifier?: string): FirebaseService; | ||
_getService(name: string, instanceIdentifier?: string): _FirebaseService; | ||
} |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
import { FirebaseNamespace } from '@firebase/app-types'; | ||
import { FirebaseNamespace } from '../public-types'; | ||
export declare function createFirebaseNamespaceLite(): FirebaseNamespace; |
@@ -17,6 +17,6 @@ /** | ||
*/ | ||
import { FirebaseService } from '@firebase/app-types/private'; | ||
import { FirebaseApp } from '@firebase/app-types'; | ||
import { _FirebaseService } from '../src/types'; | ||
import { FirebaseApp } from '../src/public-types'; | ||
import { ComponentType, Component } from '@firebase/component'; | ||
export declare class TestService implements FirebaseService { | ||
export declare class TestService implements _FirebaseService { | ||
private app_; | ||
@@ -23,0 +23,0 @@ instanceIdentifier?: string | undefined; |
{ | ||
"name": "@firebase/app-compat", | ||
"version": "0.0.900-exp.ab60f5fa9", | ||
"version": "0.0.900-exp.c778ccd9d", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -32,6 +32,6 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"dependencies": { | ||
"@firebase/app": "0.0.900-exp.ab60f5fa9", | ||
"@firebase/app": "0.0.900-exp.c778ccd9d", | ||
"@firebase/util": "0.3.4", | ||
"@firebase/logger": "0.2.6", | ||
"@firebase/component": "0.1.21", | ||
"@firebase/component": "0.2.0", | ||
"tslib": "^1.11.1", | ||
@@ -38,0 +38,0 @@ "dom-storage": "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
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
209342
27
2475
+ Added@firebase/app@0.0.900-exp.c778ccd9d(transitive)
+ Added@firebase/component@0.2.0(transitive)
- Removed@firebase/app@0.0.900-exp.ab60f5fa9(transitive)
- Removed@firebase/app-types@0.0.900-exp.ab60f5fa9(transitive)
- Removed@firebase/component@0.1.21(transitive)
Updated@firebase/component@0.2.0