File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,7 @@ export interface StringLike {
66
66
}
67
67
68
68
export interface ErrorData {
69
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
70
- [ key : string ] : any ;
69
+ [ key : string ] : unknown ;
71
70
}
72
71
73
72
export interface FirebaseError extends Error , ErrorData {
@@ -149,7 +148,7 @@ export class ErrorFactory<
149
148
function replaceTemplate ( template : string , data : ErrorData ) : string {
150
149
return template . replace ( PATTERN , ( _ , key ) => {
151
150
const value = data [ key ] ;
152
- return value != null ? value . toString ( ) : `<${ key } ?>` ;
151
+ return value != null ? String ( value ) : `<${ key } ?>` ;
153
152
} ) ;
154
153
}
155
154
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const fs = require('mz/fs');
32
32
async function updateField ( pkg , fieldName ) {
33
33
const field = pkg [ fieldName ] ;
34
34
for ( const depName in field ) {
35
- if ( ! depName . includes ( '@firebase' ) ) continue ;
35
+ if ( ! depName . includes ( '@firebase' ) && depName !== 'firebase' ) continue ;
36
36
const depJson = await mapPkgNameToPkgJson ( depName ) ;
37
37
if ( ! depJson . version ) continue ;
38
38
field [ depName ] = depJson . version ;
You can’t perform that action at this time.
0 commit comments