@firebase/app-compat 0.1.24 → 0.1.25-canary.412ff6e2a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @firebase/app-compat
2
2
 
3
+ ## 0.1.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @firebase/app@0.7.24
9
+
3
10
  ## 0.1.24
4
11
 
5
12
  ### Patch Changes
@@ -1,158 +1,158 @@
1
- import { Compat } from '@firebase/util';
2
- import { Component } from '@firebase/component';
3
- import { LogCallback } from '@firebase/logger';
4
- import { LogLevelString } from '@firebase/logger';
5
- import { LogOptions } from '@firebase/logger';
6
- import { Name } from '@firebase/component';
7
-
8
- declare const firebase: FirebaseNamespace;
9
- export default firebase;
10
-
11
- /**
12
- * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
13
- * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
14
- *
15
- * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
16
- * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
17
- *
18
- * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
19
- * and let FirebaseApp extends it.
20
- */
21
- export declare interface FirebaseApp extends _FirebaseApp {
22
- }
23
-
24
- declare interface _FirebaseApp {
25
- /**
26
- * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
27
- * App.
28
- */
29
- name: string;
30
- /**
31
- * The (read-only) configuration options from the app initialization.
32
- */
33
- options: FirebaseOptions;
34
- /**
35
- * The settable config flag for GDPR opt-in/opt-out
36
- */
37
- automaticDataCollectionEnabled: boolean;
38
- /**
39
- * Make the given App unusable and free resources.
40
- */
41
- delete(): Promise<void>;
42
- }
43
-
44
- declare interface FirebaseAppConfig {
45
- name?: string;
46
- automaticDataCollectionEnabled?: boolean;
47
- }
48
-
49
- declare interface FirebaseAppContructor {
50
- new (): FirebaseApp;
51
- }
52
-
53
- export declare interface FirebaseNamespace {
54
- /**
55
- * Create (and initialize) a FirebaseApp.
56
- *
57
- * @param options Options to configure the services used in the App.
58
- * @param config The optional config for your firebase app
59
- */
60
- initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
61
- /**
62
- * Create (and initialize) a FirebaseApp.
63
- *
64
- * @param options Options to configure the services used in the App.
65
- * @param name The optional name of the app to initialize ('[DEFAULT]' if
66
- * omitted)
67
- */
68
- initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
69
- app: {
70
- /**
71
- * Retrieve an instance of a FirebaseApp.
72
- *
73
- * Usage: firebase.app()
74
- *
75
- * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
76
- */
77
- (name?: string): FirebaseApp;
78
- /**
79
- * For testing FirebaseApp instances:
80
- * app() instanceof firebase.app.App
81
- *
82
- * DO NOT call this constuctor directly (use firebase.app() instead).
83
- */
84
- App: FirebaseAppContructor;
85
- };
86
- /**
87
- * A (read-only) array of all the initialized Apps.
88
- */
89
- apps: FirebaseApp[];
90
- /**
91
- * Registers a library's name and version for platform logging purposes.
92
- * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
93
- * @param version Current version of that library.
94
- */
95
- registerVersion(library: string, version: string, variant?: string): void;
96
- setLogLevel(logLevel: LogLevelString): void;
97
- onLog(logCallback: LogCallback, options?: LogOptions): void;
98
- SDK_VERSION: string;
99
- }
100
-
101
- export declare interface _FirebaseNamespace extends FirebaseNamespace {
102
- INTERNAL: {
103
- /**
104
- * Internal API to register a Firebase Service into the firebase namespace.
105
- *
106
- * Each service will create a child namespace (firebase.<name>) which acts as
107
- * both a namespace for service specific properties, and also as a service
108
- * accessor function (firebase.<name>() or firebase.<name>(app)).
109
- *
110
- * @param name The Firebase Service being registered.
111
- * @param createService Factory function to create a service instance.
112
- * @param serviceProperties Properties to copy to the service's namespace.
113
- * @param appHook All appHooks called before initializeApp returns to caller.
114
- * @param allowMultipleInstances Whether the registered service supports
115
- * multiple instances per app. If not specified, the default is false.
116
- */
117
- registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
118
- /**
119
- * Internal API to remove an app from the list of registered apps.
120
- */
121
- removeApp(name: string): void;
122
- useAsService(app: FirebaseApp, serviceName: string): string | null;
123
- [index: string]: unknown;
124
- };
125
- }
126
-
127
- declare interface FirebaseOptions {
128
- apiKey?: string;
129
- authDomain?: string;
130
- databaseURL?: string;
131
- projectId?: string;
132
- storageBucket?: string;
133
- messagingSenderId?: string;
134
- appId?: string;
135
- measurementId?: string;
136
- }
137
-
138
- export declare interface _FirebaseService extends Compat<unknown> {
139
- app: FirebaseApp;
140
- INTERNAL?: FirebaseServiceInternals;
141
- }
142
-
143
- declare interface FirebaseServiceInternals {
144
- /**
145
- * Delete the service and free it's resources - called from
146
- * app.delete().
147
- */
148
- delete(): Promise<void>;
149
- }
150
-
151
- /**
152
- * All ServiceNamespaces extend from FirebaseServiceNamespace
153
- */
154
- declare interface FirebaseServiceNamespace<T extends _FirebaseService> {
155
- (app?: FirebaseApp): T;
156
- }
157
-
158
- export { }
1
+ import { Compat } from '@firebase/util';
2
+ import { Component } from '@firebase/component';
3
+ import { LogCallback } from '@firebase/logger';
4
+ import { LogLevelString } from '@firebase/logger';
5
+ import { LogOptions } from '@firebase/logger';
6
+ import { Name } from '@firebase/component';
7
+
8
+ declare const firebase: FirebaseNamespace;
9
+ export default firebase;
10
+
11
+ /**
12
+ * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
13
+ * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
14
+ *
15
+ * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
16
+ * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
17
+ *
18
+ * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
19
+ * and let FirebaseApp extends it.
20
+ */
21
+ export declare interface FirebaseApp extends _FirebaseApp {
22
+ }
23
+
24
+ declare interface _FirebaseApp {
25
+ /**
26
+ * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
27
+ * App.
28
+ */
29
+ name: string;
30
+ /**
31
+ * The (read-only) configuration options from the app initialization.
32
+ */
33
+ options: FirebaseOptions;
34
+ /**
35
+ * The settable config flag for GDPR opt-in/opt-out
36
+ */
37
+ automaticDataCollectionEnabled: boolean;
38
+ /**
39
+ * Make the given App unusable and free resources.
40
+ */
41
+ delete(): Promise<void>;
42
+ }
43
+
44
+ declare interface FirebaseAppConfig {
45
+ name?: string;
46
+ automaticDataCollectionEnabled?: boolean;
47
+ }
48
+
49
+ declare interface FirebaseAppContructor {
50
+ new (): FirebaseApp;
51
+ }
52
+
53
+ export declare interface FirebaseNamespace {
54
+ /**
55
+ * Create (and initialize) a FirebaseApp.
56
+ *
57
+ * @param options Options to configure the services used in the App.
58
+ * @param config The optional config for your firebase app
59
+ */
60
+ initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
61
+ /**
62
+ * Create (and initialize) a FirebaseApp.
63
+ *
64
+ * @param options Options to configure the services used in the App.
65
+ * @param name The optional name of the app to initialize ('[DEFAULT]' if
66
+ * omitted)
67
+ */
68
+ initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
69
+ app: {
70
+ /**
71
+ * Retrieve an instance of a FirebaseApp.
72
+ *
73
+ * Usage: firebase.app()
74
+ *
75
+ * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
76
+ */
77
+ (name?: string): FirebaseApp;
78
+ /**
79
+ * For testing FirebaseApp instances:
80
+ * app() instanceof firebase.app.App
81
+ *
82
+ * DO NOT call this constuctor directly (use firebase.app() instead).
83
+ */
84
+ App: FirebaseAppContructor;
85
+ };
86
+ /**
87
+ * A (read-only) array of all the initialized Apps.
88
+ */
89
+ apps: FirebaseApp[];
90
+ /**
91
+ * Registers a library's name and version for platform logging purposes.
92
+ * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
93
+ * @param version Current version of that library.
94
+ */
95
+ registerVersion(library: string, version: string, variant?: string): void;
96
+ setLogLevel(logLevel: LogLevelString): void;
97
+ onLog(logCallback: LogCallback, options?: LogOptions): void;
98
+ SDK_VERSION: string;
99
+ }
100
+
101
+ export declare interface _FirebaseNamespace extends FirebaseNamespace {
102
+ INTERNAL: {
103
+ /**
104
+ * Internal API to register a Firebase Service into the firebase namespace.
105
+ *
106
+ * Each service will create a child namespace (firebase.<name>) which acts as
107
+ * both a namespace for service specific properties, and also as a service
108
+ * accessor function (firebase.<name>() or firebase.<name>(app)).
109
+ *
110
+ * @param name The Firebase Service being registered.
111
+ * @param createService Factory function to create a service instance.
112
+ * @param serviceProperties Properties to copy to the service's namespace.
113
+ * @param appHook All appHooks called before initializeApp returns to caller.
114
+ * @param allowMultipleInstances Whether the registered service supports
115
+ * multiple instances per app. If not specified, the default is false.
116
+ */
117
+ registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
118
+ /**
119
+ * Internal API to remove an app from the list of registered apps.
120
+ */
121
+ removeApp(name: string): void;
122
+ useAsService(app: FirebaseApp, serviceName: string): string | null;
123
+ [index: string]: unknown;
124
+ };
125
+ }
126
+
127
+ declare interface FirebaseOptions {
128
+ apiKey?: string;
129
+ authDomain?: string;
130
+ databaseURL?: string;
131
+ projectId?: string;
132
+ storageBucket?: string;
133
+ messagingSenderId?: string;
134
+ appId?: string;
135
+ measurementId?: string;
136
+ }
137
+
138
+ export declare interface _FirebaseService extends Compat<unknown> {
139
+ app: FirebaseApp;
140
+ INTERNAL?: FirebaseServiceInternals;
141
+ }
142
+
143
+ declare interface FirebaseServiceInternals {
144
+ /**
145
+ * Delete the service and free it's resources - called from
146
+ * app.delete().
147
+ */
148
+ delete(): Promise<void>;
149
+ }
150
+
151
+ /**
152
+ * All ServiceNamespaces extend from FirebaseServiceNamespace
153
+ */
154
+ declare interface FirebaseServiceNamespace<T extends _FirebaseService> {
155
+ (app?: FirebaseApp): T;
156
+ }
157
+
158
+ export { }
@@ -1,158 +1,158 @@
1
- import { Compat } from '@firebase/util';
2
- import { Component } from '@firebase/component';
3
- import { LogCallback } from '@firebase/logger';
4
- import { LogLevelString } from '@firebase/logger';
5
- import { LogOptions } from '@firebase/logger';
6
- import { Name } from '@firebase/component';
7
-
8
- declare const firebase: FirebaseNamespace;
9
- export default firebase;
10
-
11
- /**
12
- * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
13
- * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
14
- *
15
- * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
16
- * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
17
- *
18
- * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
19
- * and let FirebaseApp extends it.
20
- */
21
- export declare interface FirebaseApp extends _FirebaseApp {
22
- }
23
-
24
- declare interface _FirebaseApp {
25
- /**
26
- * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
27
- * App.
28
- */
29
- name: string;
30
- /**
31
- * The (read-only) configuration options from the app initialization.
32
- */
33
- options: FirebaseOptions;
34
- /**
35
- * The settable config flag for GDPR opt-in/opt-out
36
- */
37
- automaticDataCollectionEnabled: boolean;
38
- /**
39
- * Make the given App unusable and free resources.
40
- */
41
- delete(): Promise<void>;
42
- }
43
-
44
- declare interface FirebaseAppConfig {
45
- name?: string;
46
- automaticDataCollectionEnabled?: boolean;
47
- }
48
-
49
- declare interface FirebaseAppContructor {
50
- new (): FirebaseApp;
51
- }
52
-
53
- export declare interface FirebaseNamespace {
54
- /**
55
- * Create (and initialize) a FirebaseApp.
56
- *
57
- * @param options Options to configure the services used in the App.
58
- * @param config The optional config for your firebase app
59
- */
60
- initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
61
- /**
62
- * Create (and initialize) a FirebaseApp.
63
- *
64
- * @param options Options to configure the services used in the App.
65
- * @param name The optional name of the app to initialize ('[DEFAULT]' if
66
- * omitted)
67
- */
68
- initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
69
- app: {
70
- /**
71
- * Retrieve an instance of a FirebaseApp.
72
- *
73
- * Usage: firebase.app()
74
- *
75
- * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
76
- */
77
- (name?: string): FirebaseApp;
78
- /**
79
- * For testing FirebaseApp instances:
80
- * app() instanceof firebase.app.App
81
- *
82
- * DO NOT call this constuctor directly (use firebase.app() instead).
83
- */
84
- App: FirebaseAppContructor;
85
- };
86
- /**
87
- * A (read-only) array of all the initialized Apps.
88
- */
89
- apps: FirebaseApp[];
90
- /**
91
- * Registers a library's name and version for platform logging purposes.
92
- * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
93
- * @param version Current version of that library.
94
- */
95
- registerVersion(library: string, version: string, variant?: string): void;
96
- setLogLevel(logLevel: LogLevelString): void;
97
- onLog(logCallback: LogCallback, options?: LogOptions): void;
98
- SDK_VERSION: string;
99
- }
100
-
101
- export declare interface _FirebaseNamespace extends FirebaseNamespace {
102
- INTERNAL: {
103
- /**
104
- * Internal API to register a Firebase Service into the firebase namespace.
105
- *
106
- * Each service will create a child namespace (firebase.<name>) which acts as
107
- * both a namespace for service specific properties, and also as a service
108
- * accessor function (firebase.<name>() or firebase.<name>(app)).
109
- *
110
- * @param name The Firebase Service being registered.
111
- * @param createService Factory function to create a service instance.
112
- * @param serviceProperties Properties to copy to the service's namespace.
113
- * @param appHook All appHooks called before initializeApp returns to caller.
114
- * @param allowMultipleInstances Whether the registered service supports
115
- * multiple instances per app. If not specified, the default is false.
116
- */
117
- registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
118
- /**
119
- * Internal API to remove an app from the list of registered apps.
120
- */
121
- removeApp(name: string): void;
122
- useAsService(app: FirebaseApp, serviceName: string): string | null;
123
- [index: string]: unknown;
124
- };
125
- }
126
-
127
- declare interface FirebaseOptions {
128
- apiKey?: string;
129
- authDomain?: string;
130
- databaseURL?: string;
131
- projectId?: string;
132
- storageBucket?: string;
133
- messagingSenderId?: string;
134
- appId?: string;
135
- measurementId?: string;
136
- }
137
-
138
- export declare interface _FirebaseService extends Compat<unknown> {
139
- app: FirebaseApp;
140
- INTERNAL?: FirebaseServiceInternals;
141
- }
142
-
143
- declare interface FirebaseServiceInternals {
144
- /**
145
- * Delete the service and free it's resources - called from
146
- * app.delete().
147
- */
148
- delete(): Promise<void>;
149
- }
150
-
151
- /**
152
- * All ServiceNamespaces extend from FirebaseServiceNamespace
153
- */
154
- declare interface FirebaseServiceNamespace<T extends _FirebaseService> {
155
- (app?: FirebaseApp): T;
156
- }
157
-
158
- export { }
1
+ import { Compat } from '@firebase/util';
2
+ import { Component } from '@firebase/component';
3
+ import { LogCallback } from '@firebase/logger';
4
+ import { LogLevelString } from '@firebase/logger';
5
+ import { LogOptions } from '@firebase/logger';
6
+ import { Name } from '@firebase/component';
7
+
8
+ declare const firebase: FirebaseNamespace;
9
+ export default firebase;
10
+
11
+ /**
12
+ * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
13
+ * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
14
+ *
15
+ * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
16
+ * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
17
+ *
18
+ * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
19
+ * and let FirebaseApp extends it.
20
+ */
21
+ export declare interface FirebaseApp extends _FirebaseApp {
22
+ }
23
+
24
+ declare interface _FirebaseApp {
25
+ /**
26
+ * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
27
+ * App.
28
+ */
29
+ name: string;
30
+ /**
31
+ * The (read-only) configuration options from the app initialization.
32
+ */
33
+ options: FirebaseOptions;
34
+ /**
35
+ * The settable config flag for GDPR opt-in/opt-out
36
+ */
37
+ automaticDataCollectionEnabled: boolean;
38
+ /**
39
+ * Make the given App unusable and free resources.
40
+ */
41
+ delete(): Promise<void>;
42
+ }
43
+
44
+ declare interface FirebaseAppConfig {
45
+ name?: string;
46
+ automaticDataCollectionEnabled?: boolean;
47
+ }
48
+
49
+ declare interface FirebaseAppContructor {
50
+ new (): FirebaseApp;
51
+ }
52
+
53
+ export declare interface FirebaseNamespace {
54
+ /**
55
+ * Create (and initialize) a FirebaseApp.
56
+ *
57
+ * @param options Options to configure the services used in the App.
58
+ * @param config The optional config for your firebase app
59
+ */
60
+ initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
61
+ /**
62
+ * Create (and initialize) a FirebaseApp.
63
+ *
64
+ * @param options Options to configure the services used in the App.
65
+ * @param name The optional name of the app to initialize ('[DEFAULT]' if
66
+ * omitted)
67
+ */
68
+ initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
69
+ app: {
70
+ /**
71
+ * Retrieve an instance of a FirebaseApp.
72
+ *
73
+ * Usage: firebase.app()
74
+ *
75
+ * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
76
+ */
77
+ (name?: string): FirebaseApp;
78
+ /**
79
+ * For testing FirebaseApp instances:
80
+ * app() instanceof firebase.app.App
81
+ *
82
+ * DO NOT call this constuctor directly (use firebase.app() instead).
83
+ */
84
+ App: FirebaseAppContructor;
85
+ };
86
+ /**
87
+ * A (read-only) array of all the initialized Apps.
88
+ */
89
+ apps: FirebaseApp[];
90
+ /**
91
+ * Registers a library's name and version for platform logging purposes.
92
+ * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
93
+ * @param version Current version of that library.
94
+ */
95
+ registerVersion(library: string, version: string, variant?: string): void;
96
+ setLogLevel(logLevel: LogLevelString): void;
97
+ onLog(logCallback: LogCallback, options?: LogOptions): void;
98
+ SDK_VERSION: string;
99
+ }
100
+
101
+ export declare interface _FirebaseNamespace extends FirebaseNamespace {
102
+ INTERNAL: {
103
+ /**
104
+ * Internal API to register a Firebase Service into the firebase namespace.
105
+ *
106
+ * Each service will create a child namespace (firebase.<name>) which acts as
107
+ * both a namespace for service specific properties, and also as a service
108
+ * accessor function (firebase.<name>() or firebase.<name>(app)).
109
+ *
110
+ * @param name The Firebase Service being registered.
111
+ * @param createService Factory function to create a service instance.
112
+ * @param serviceProperties Properties to copy to the service's namespace.
113
+ * @param appHook All appHooks called before initializeApp returns to caller.
114
+ * @param allowMultipleInstances Whether the registered service supports
115
+ * multiple instances per app. If not specified, the default is false.
116
+ */
117
+ registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
118
+ /**
119
+ * Internal API to remove an app from the list of registered apps.
120
+ */
121
+ removeApp(name: string): void;
122
+ useAsService(app: FirebaseApp, serviceName: string): string | null;
123
+ [index: string]: unknown;
124
+ };
125
+ }
126
+
127
+ declare interface FirebaseOptions {
128
+ apiKey?: string;
129
+ authDomain?: string;
130
+ databaseURL?: string;
131
+ projectId?: string;
132
+ storageBucket?: string;
133
+ messagingSenderId?: string;
134
+ appId?: string;
135
+ measurementId?: string;
136
+ }
137
+
138
+ export declare interface _FirebaseService extends Compat<unknown> {
139
+ app: FirebaseApp;
140
+ INTERNAL?: FirebaseServiceInternals;
141
+ }
142
+
143
+ declare interface FirebaseServiceInternals {
144
+ /**
145
+ * Delete the service and free it's resources - called from
146
+ * app.delete().
147
+ */
148
+ delete(): Promise<void>;
149
+ }
150
+
151
+ /**
152
+ * All ServiceNamespaces extend from FirebaseServiceNamespace
153
+ */
154
+ declare interface FirebaseServiceNamespace<T extends _FirebaseService> {
155
+ (app?: FirebaseApp): T;
156
+ }
157
+
158
+ export { }
@@ -369,7 +369,7 @@ const firebase$1 = createFirebaseNamespace();
369
369
  const logger = new Logger('@firebase/app-compat');
370
370
 
371
371
  const name = "@firebase/app-compat";
372
- const version = "0.1.24";
372
+ const version = "0.1.25-canary.412ff6e2a";
373
373
 
374
374
  /**
375
375
  * @license