@firebase/app 0.15.1 → 0.16.0-eap-crashlytics.e21972d2a
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/dist/app/src/constants.d.ts +1 -1
- package/dist/app/src/errors.d.ts +3 -0
- package/dist/app/src/global_index.d.ts +0 -4
- package/dist/app/src/public-types.d.ts +0 -4
- package/dist/app-public.d.ts +0 -4
- package/dist/app.d.ts +0 -4
- package/dist/esm/app/src/constants.d.ts +1 -1
- package/dist/esm/app/src/errors.d.ts +3 -0
- package/dist/esm/app/src/public-types.d.ts +0 -4
- package/dist/esm/index.esm.js +58 -26
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/index.cjs.js +59 -27
- package/dist/index.cjs.js.map +1 -1
- package/package.json +6 -6
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const DEFAULT_ENTRY_NAME = "[DEFAULT]";
|
|
23
23
|
export declare const PLATFORM_LOG_STRING: {
|
|
24
|
-
readonly [x: string]: "fire-core" | "fire-core-compat" | "fire-analytics" | "fire-analytics-compat" | "fire-app-check" | "fire-app-check-compat" | "fire-auth" | "fire-auth-compat" | "fire-rtdb" | "fire-data-connect" | "fire-rtdb-compat" | "fire-fn" | "fire-fn-compat" | "fire-iid" | "fire-iid-compat" | "fire-fcm" | "fire-fcm-compat" | "fire-perf" | "fire-perf-compat" | "fire-rc" | "fire-rc-compat" | "fire-gcs" | "fire-gcs-compat" | "fire-fst" | "fire-fst-compat" | "fire-vertex" | "fire-js" | "fire-js-all";
|
|
24
|
+
readonly [x: string]: "fire-core" | "fire-core-compat" | "fire-analytics" | "fire-analytics-compat" | "fire-app-check" | "fire-app-check-compat" | "fire-auth" | "fire-auth-compat" | "fire-cls" | "fire-rtdb" | "fire-data-connect" | "fire-rtdb-compat" | "fire-fn" | "fire-fn-compat" | "fire-iid" | "fire-iid-compat" | "fire-fcm" | "fire-fcm-compat" | "fire-perf" | "fire-perf-compat" | "fire-rc" | "fire-rc-compat" | "fire-gcs" | "fire-gcs-compat" | "fire-fst" | "fire-fst-compat" | "fire-vertex" | "fire-js" | "fire-js-all";
|
|
25
25
|
readonly 'fire-js': "fire-js";
|
|
26
26
|
};
|
package/dist/app/src/errors.d.ts
CHANGED
|
@@ -140,10 +140,6 @@ export interface FirebaseOptions {
|
|
|
140
140
|
* and higher, this parameter is optional.
|
|
141
141
|
*/
|
|
142
142
|
measurementId?: string;
|
|
143
|
-
/**
|
|
144
|
-
* ReCAPTCHA Enterprise site key associated with this app.
|
|
145
|
-
*/
|
|
146
|
-
recaptchaSiteKey?: string;
|
|
147
143
|
}
|
|
148
144
|
/**
|
|
149
145
|
* @public
|
package/dist/app-public.d.ts
CHANGED
|
@@ -161,10 +161,6 @@ export declare interface FirebaseOptions {
|
|
|
161
161
|
* and higher, this parameter is optional.
|
|
162
162
|
*/
|
|
163
163
|
measurementId?: string;
|
|
164
|
-
/**
|
|
165
|
-
* ReCAPTCHA Enterprise site key associated with this app.
|
|
166
|
-
*/
|
|
167
|
-
recaptchaSiteKey?: string;
|
|
168
164
|
}
|
|
169
165
|
|
|
170
166
|
/**
|
package/dist/app.d.ts
CHANGED
|
@@ -195,10 +195,6 @@ export declare interface FirebaseOptions {
|
|
|
195
195
|
* and higher, this parameter is optional.
|
|
196
196
|
*/
|
|
197
197
|
measurementId?: string;
|
|
198
|
-
/**
|
|
199
|
-
* ReCAPTCHA Enterprise site key associated with this app.
|
|
200
|
-
*/
|
|
201
|
-
recaptchaSiteKey?: string;
|
|
202
198
|
}
|
|
203
199
|
|
|
204
200
|
/**
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const DEFAULT_ENTRY_NAME = "[DEFAULT]";
|
|
23
23
|
export declare const PLATFORM_LOG_STRING: {
|
|
24
|
-
readonly [x: string]: "fire-core" | "fire-core-compat" | "fire-analytics" | "fire-analytics-compat" | "fire-app-check" | "fire-app-check-compat" | "fire-auth" | "fire-auth-compat" | "fire-rtdb" | "fire-data-connect" | "fire-rtdb-compat" | "fire-fn" | "fire-fn-compat" | "fire-iid" | "fire-iid-compat" | "fire-fcm" | "fire-fcm-compat" | "fire-perf" | "fire-perf-compat" | "fire-rc" | "fire-rc-compat" | "fire-gcs" | "fire-gcs-compat" | "fire-fst" | "fire-fst-compat" | "fire-vertex" | "fire-js" | "fire-js-all";
|
|
24
|
+
readonly [x: string]: "fire-core" | "fire-core-compat" | "fire-analytics" | "fire-analytics-compat" | "fire-app-check" | "fire-app-check-compat" | "fire-auth" | "fire-auth-compat" | "fire-cls" | "fire-rtdb" | "fire-data-connect" | "fire-rtdb-compat" | "fire-fn" | "fire-fn-compat" | "fire-iid" | "fire-iid-compat" | "fire-fcm" | "fire-fcm-compat" | "fire-perf" | "fire-perf-compat" | "fire-rc" | "fire-rc-compat" | "fire-gcs" | "fire-gcs-compat" | "fire-fst" | "fire-fst-compat" | "fire-vertex" | "fire-js" | "fire-js-all";
|
|
25
25
|
readonly 'fire-js': "fire-js";
|
|
26
26
|
};
|
|
@@ -140,10 +140,6 @@ export interface FirebaseOptions {
|
|
|
140
140
|
* and higher, this parameter is optional.
|
|
141
141
|
*/
|
|
142
142
|
measurementId?: string;
|
|
143
|
-
/**
|
|
144
|
-
* ReCAPTCHA Enterprise site key associated with this app.
|
|
145
|
-
*/
|
|
146
|
-
recaptchaSiteKey?: string;
|
|
147
143
|
}
|
|
148
144
|
/**
|
|
149
145
|
* @public
|
package/dist/esm/index.esm.js
CHANGED
|
@@ -57,8 +57,8 @@ function isVersionServiceProvider(provider) {
|
|
|
57
57
|
return component?.type === "VERSION" /* ComponentType.VERSION */;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
const name$
|
|
61
|
-
const version$1 = "0.
|
|
60
|
+
const name$r = "@firebase/app";
|
|
61
|
+
const version$1 = "0.16.0-eap-crashlytics.e21972d2a";
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
@@ -78,19 +78,21 @@ const version$1 = "0.15.1";
|
|
|
78
78
|
*/
|
|
79
79
|
const logger = new Logger('@firebase/app');
|
|
80
80
|
|
|
81
|
-
const name$
|
|
81
|
+
const name$q = "@firebase/app-compat";
|
|
82
82
|
|
|
83
|
-
const name$
|
|
83
|
+
const name$p = "@firebase/analytics-compat";
|
|
84
84
|
|
|
85
|
-
const name$
|
|
85
|
+
const name$o = "@firebase/analytics";
|
|
86
86
|
|
|
87
|
-
const name$
|
|
87
|
+
const name$n = "@firebase/app-check-compat";
|
|
88
88
|
|
|
89
|
-
const name$
|
|
89
|
+
const name$m = "@firebase/app-check";
|
|
90
90
|
|
|
91
|
-
const name$
|
|
91
|
+
const name$l = "@firebase/auth";
|
|
92
92
|
|
|
93
|
-
const name$
|
|
93
|
+
const name$k = "@firebase/auth-compat";
|
|
94
|
+
|
|
95
|
+
const name$j = "@firebase/crashlytics";
|
|
94
96
|
|
|
95
97
|
const name$i = "@firebase/database";
|
|
96
98
|
|
|
@@ -129,7 +131,7 @@ const name$2 = "@firebase/ai";
|
|
|
129
131
|
const name$1 = "@firebase/firestore-compat";
|
|
130
132
|
|
|
131
133
|
const name = "firebase";
|
|
132
|
-
const version = "12.
|
|
134
|
+
const version = "12.17.0-eap-crashlytics.e21972d2a";
|
|
133
135
|
|
|
134
136
|
/**
|
|
135
137
|
* @license
|
|
@@ -154,14 +156,15 @@ const version = "12.16.0";
|
|
|
154
156
|
*/
|
|
155
157
|
const DEFAULT_ENTRY_NAME = '[DEFAULT]';
|
|
156
158
|
const PLATFORM_LOG_STRING = {
|
|
157
|
-
[name$
|
|
158
|
-
[name$
|
|
159
|
-
[name$
|
|
160
|
-
[name$
|
|
161
|
-
[name$
|
|
162
|
-
[name$
|
|
163
|
-
[name$
|
|
164
|
-
[name$
|
|
159
|
+
[name$r]: 'fire-core',
|
|
160
|
+
[name$q]: 'fire-core-compat',
|
|
161
|
+
[name$o]: 'fire-analytics',
|
|
162
|
+
[name$p]: 'fire-analytics-compat',
|
|
163
|
+
[name$m]: 'fire-app-check',
|
|
164
|
+
[name$n]: 'fire-app-check-compat',
|
|
165
|
+
[name$l]: 'fire-auth',
|
|
166
|
+
[name$k]: 'fire-auth-compat',
|
|
167
|
+
[name$j]: 'fire-cls',
|
|
165
168
|
[name$i]: 'fire-rtdb',
|
|
166
169
|
[name$h]: 'fire-data-connect',
|
|
167
170
|
[name$g]: 'fire-rtdb-compat',
|
|
@@ -358,7 +361,8 @@ const ERRORS = {
|
|
|
358
361
|
["no-app" /* AppError.NO_APP */]: "No Firebase App '{$appName}' has been created - " +
|
|
359
362
|
'call initializeApp() first',
|
|
360
363
|
["bad-app-name" /* AppError.BAD_APP_NAME */]: "Illegal App name: '{$appName}'",
|
|
361
|
-
["duplicate-app" /* AppError.DUPLICATE_APP */]: "Firebase App named '{$appName}' already exists with different
|
|
364
|
+
["duplicate-app" /* AppError.DUPLICATE_APP */]: "Firebase App named '{$appName}' already exists with different {$mismatchedParam}." +
|
|
365
|
+
" Existing: '{$oldValue}'. New: '{$newValue}'.",
|
|
362
366
|
["app-deleted" /* AppError.APP_DELETED */]: "Firebase App named '{$appName}' already deleted",
|
|
363
367
|
["server-app-deleted" /* AppError.SERVER_APP_DELETED */]: 'Firebase Server App has been deleted',
|
|
364
368
|
["no-options" /* AppError.NO_OPTIONS */]: 'Need to provide options, when not being deployed to hosting via source.',
|
|
@@ -522,7 +526,7 @@ class FirebaseServerAppImpl extends FirebaseAppImpl {
|
|
|
522
526
|
// will never trigger.
|
|
523
527
|
this._serverConfig.releaseOnDeref = undefined;
|
|
524
528
|
serverConfig.releaseOnDeref = undefined;
|
|
525
|
-
registerVersion(name$
|
|
529
|
+
registerVersion(name$r, version$1, 'serverapp');
|
|
526
530
|
}
|
|
527
531
|
toJSON() {
|
|
528
532
|
return undefined;
|
|
@@ -615,12 +619,24 @@ function initializeApp(_options, rawConfig = {}) {
|
|
|
615
619
|
const existingApp = _apps.get(name);
|
|
616
620
|
if (existingApp) {
|
|
617
621
|
// return the existing app if options and config deep equal the ones in the existing app.
|
|
618
|
-
if (deepEqual(options, existingApp.options)
|
|
619
|
-
|
|
620
|
-
|
|
622
|
+
if (!deepEqual(options, existingApp.options)) {
|
|
623
|
+
throw ERROR_FACTORY.create("duplicate-app" /* AppError.DUPLICATE_APP */, {
|
|
624
|
+
appName: name,
|
|
625
|
+
mismatchedParam: 'options',
|
|
626
|
+
oldValue: JSON.stringify(existingApp.options),
|
|
627
|
+
newValue: JSON.stringify(options)
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
else if (!deepEqual(config, existingApp.config)) {
|
|
631
|
+
throw ERROR_FACTORY.create("duplicate-app" /* AppError.DUPLICATE_APP */, {
|
|
632
|
+
appName: name,
|
|
633
|
+
mismatchedParam: 'config',
|
|
634
|
+
oldValue: JSON.stringify(existingApp.config),
|
|
635
|
+
newValue: JSON.stringify(config)
|
|
636
|
+
});
|
|
621
637
|
}
|
|
622
638
|
else {
|
|
623
|
-
|
|
639
|
+
return existingApp;
|
|
624
640
|
}
|
|
625
641
|
}
|
|
626
642
|
const container = new ComponentContainer(name);
|
|
@@ -1218,9 +1234,9 @@ function registerCoreComponents(variant) {
|
|
|
1218
1234
|
_registerComponent(new Component('platform-logger', container => new PlatformLoggerServiceImpl(container), "PRIVATE" /* ComponentType.PRIVATE */));
|
|
1219
1235
|
_registerComponent(new Component('heartbeat', container => new HeartbeatServiceImpl(container), "PRIVATE" /* ComponentType.PRIVATE */));
|
|
1220
1236
|
// Register `app` package.
|
|
1221
|
-
registerVersion(name$
|
|
1237
|
+
registerVersion(name$r, version$1, variant);
|
|
1222
1238
|
// BUILD_TARGET will be replaced by values like esm, cjs, etc during the compilation
|
|
1223
|
-
registerVersion(name$
|
|
1239
|
+
registerVersion(name$r, version$1, 'esm2020');
|
|
1224
1240
|
// Register platform SDK identifier (no version).
|
|
1225
1241
|
registerVersion('fire-js', '');
|
|
1226
1242
|
}
|
|
@@ -1231,6 +1247,22 @@ function registerCoreComponents(variant) {
|
|
|
1231
1247
|
* @remarks This package coordinates the communication between the different Firebase components
|
|
1232
1248
|
* @packageDocumentation
|
|
1233
1249
|
*/
|
|
1250
|
+
/**
|
|
1251
|
+
* @license
|
|
1252
|
+
* Copyright 2019 Google LLC
|
|
1253
|
+
*
|
|
1254
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1255
|
+
* you may not use this file except in compliance with the License.
|
|
1256
|
+
* You may obtain a copy of the License at
|
|
1257
|
+
*
|
|
1258
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1259
|
+
*
|
|
1260
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1261
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1262
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1263
|
+
* See the License for the specific language governing permissions and
|
|
1264
|
+
* limitations under the License.
|
|
1265
|
+
*/
|
|
1234
1266
|
registerCoreComponents('');
|
|
1235
1267
|
|
|
1236
1268
|
export { SDK_VERSION, DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _isFirebaseApp, _isFirebaseServerApp, _isFirebaseServerAppSettings, _registerComponent, _removeServiceInstance, _serverApps, deleteApp, getApp, getApps, initializeApp, initializeServerApp, onLog, registerVersion, setLogLevel };
|