File tree Expand file tree Collapse file tree 8 files changed +12
-8
lines changed Expand file tree Collapse file tree 8 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class FirebaseAppImpl implements FirebaseApp {
68
68
}
69
69
70
70
delete ( ) : Promise < void > {
71
- return new Promise ( resolve => {
71
+ return new Promise < void > ( resolve => {
72
72
this . app . checkDestroyed ( ) ;
73
73
resolve ( ) ;
74
74
} ) . then ( ( ) => {
Original file line number Diff line number Diff line change 41
41
"@rollup/plugin-json" : " 4.1.0" ,
42
42
"rollup-plugin-replace" : " 2.2.0" ,
43
43
"rollup-plugin-typescript2" : " 0.29.0" ,
44
- "typescript" : " 4.0.5 "
44
+ "typescript" : " 4.1.3 "
45
45
},
46
46
"repository" : {
47
47
"directory" : " packages-exp/app-exp" ,
Original file line number Diff line number Diff line change @@ -285,7 +285,8 @@ export function onLog(
285
285
) : void {
286
286
if ( logCallback !== null && typeof logCallback !== 'function' ) {
287
287
throw ERROR_FACTORY . create ( AppError . INVALID_LOG_ARGUMENT , {
288
- appName : name
288
+ // appName isn't used in INVALID_LOG_ARGUMENT error but ErrorFactory requires it
289
+ appName : ''
289
290
} ) ;
290
291
}
291
292
setUserLogHandler ( logCallback , options ) ;
Original file line number Diff line number Diff line change 39
39
"@rollup/plugin-json" : " 4.1.0" ,
40
40
"rollup-plugin-replace" : " 2.2.0" ,
41
41
"rollup-plugin-typescript2" : " 0.29.0" ,
42
- "typescript" : " 4.0.5 "
42
+ "typescript" : " 4.1.3 "
43
43
},
44
44
"repository" : {
45
45
"directory" : " packages/app" ,
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export class FirebaseAppImpl implements FirebaseApp {
86
86
}
87
87
88
88
delete ( ) : Promise < void > {
89
- return new Promise ( resolve => {
89
+ return new Promise < void > ( resolve => {
90
90
this . checkDestroyed_ ( ) ;
91
91
resolve ( ) ;
92
92
} )
Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ export function createFirebaseNamespaceCore(
288
288
function onLog ( logCallback : LogCallback | null , options ?: LogOptions ) : void {
289
289
if ( logCallback !== null && typeof logCallback !== 'function' ) {
290
290
throw ERROR_FACTORY . create ( AppError . INVALID_LOG_ARGUMENT , {
291
- appName : name
291
+ // appName isn't used in INVALID_LOG_ARGUMENT error but ErrorFactory requires it
292
+ appName : ''
292
293
} ) ;
293
294
}
294
295
setUserLogHandler ( logCallback , options ) ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export class FirebaseAppLiteImpl implements FirebaseApp {
90
90
}
91
91
92
92
delete ( ) : Promise < void > {
93
- return new Promise ( resolve => {
93
+ return new Promise < void > ( resolve => {
94
94
this . checkDestroyed_ ( ) ;
95
95
resolve ( ) ;
96
96
} )
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ export function createFirebaseNamespaceLite(): FirebaseNamespace {
48
48
component . name !== 'performance' &&
49
49
component . name !== 'installations'
50
50
) {
51
- throw Error ( `${ name } cannot register with the standalone perf instance` ) ;
51
+ throw Error (
52
+ `${ component . name } cannot register with the standalone perf instance`
53
+ ) ;
52
54
}
53
55
54
56
return registerComponent ( component ) ;
You can’t perform that action at this time.
0 commit comments