File tree Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,7 @@ export interface FirebaseNamespace {
103
103
* @param library Name of 1p or 3p library (e.g. firestore, angularfire)
104
104
* @param version Current version of that library.
105
105
*/
106
- registerVersion (
107
- library : string ,
108
- version : string
109
- ) : void
106
+ registerVersion ( library : string , version : string ) : void ;
110
107
111
108
// The current SDK version.
112
109
SDK_VERSION : string ;
Original file line number Diff line number Diff line change @@ -236,12 +236,11 @@ export function createFirebaseNamespaceCore(
236
236
: null ;
237
237
}
238
238
239
- function registerVersion (
240
- library : string ,
241
- version : string
242
- ) : void {
239
+ function registerVersion ( library : string , version : string ) : void {
243
240
if ( library . match ( / \s | \/ / ) ) {
244
- logger . warn ( `Could not register ${ library } : it contains illegal characters.` ) ;
241
+ logger . warn (
242
+ `Could not register ${ library } : it contains illegal characters.`
243
+ ) ;
245
244
return ;
246
245
}
247
246
registerComponent (
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ export class PlatformLoggerService {
34
34
if ( service && component && component . type === ComponentType . VERSION ) {
35
35
const platformString =
36
36
// eslint-disable-next-line @typescript-eslint/no-explicit-any
37
- ( PLATFORM_LOG_STRING as any ) [ service . library ] ||
38
- service . library ;
39
- return `${ platformString } /${ service . version } ` ;
37
+ ( PLATFORM_LOG_STRING as any ) [ service . library ] || service . library ;
38
+ return `${ platformString } /${ service . version } ` ;
40
39
} else {
41
40
return null ;
42
41
}
Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ declare namespace firebase {
88
88
* @param library Name of 1p or 3p library (e.g. firestore, angularfire)
89
89
* @param version Current version of that library.
90
90
*/
91
- function registerVersion (
92
- library : string ,
93
- version : string
94
- ) : void
91
+ function registerVersion ( library : string , version : string ) : void ;
95
92
96
93
/**
97
94
* @hidden
You can’t perform that action at this time.
0 commit comments