File tree Expand file tree Collapse file tree 6 files changed +305
-290
lines changed Expand file tree Collapse file tree 6 files changed +305
-290
lines changed Original file line number Diff line number Diff line change 87
87
"@types/tmp" : " 0.2.6" ,
88
88
"@types/trusted-types" : " 2.0.7" ,
89
89
"@types/yargs" : " 17.0.32" ,
90
- "@typescript-eslint/eslint-plugin" : " 5.62.0 " ,
91
- "@typescript-eslint/eslint-plugin-tslint" : " 5.62.0 " ,
92
- "@typescript-eslint/parser" : " 5.62.0 " ,
90
+ "@typescript-eslint/eslint-plugin" : " 7.16.1 " ,
91
+ "@typescript-eslint/eslint-plugin-tslint" : " 7.0.2 " ,
92
+ "@typescript-eslint/parser" : " 7.16.1 " ,
93
93
"api-documenter-me" : " 0.1.1" ,
94
94
"api-extractor-me" : " 0.1.2" ,
95
95
"babel-loader" : " 8.3.0" ,
101
101
"coveralls" : " 3.1.1" ,
102
102
"del" : " 6.1.1" ,
103
103
"dependency-graph" : " 0.11.0" ,
104
- "eslint" : " 7.32 .0" ,
104
+ "eslint" : " 8.56 .0" ,
105
105
"eslint-plugin-import" : " 2.26.0" ,
106
- "eslint-plugin-unused-imports" : " 2.0 .0" ,
106
+ "eslint-plugin-unused-imports" : " 3.2 .0" ,
107
107
"express" : " 4.19.2" ,
108
108
"find-free-port" : " 2.0.0" ,
109
109
"firebase-tools" : " 11.30.0" ,
Original file line number Diff line number Diff line change @@ -184,15 +184,15 @@ async function gtagOnEvent(
184
184
// This will be unpopulated if there was no 'send_to' field , or
185
185
// if not all entries in the 'send_to' field could be mapped to
186
186
// a FID. In these cases, wait on all pending initialization promises.
187
- if ( initializationPromisesToWaitFor . length === 0 ) {
188
- initializationPromisesToWaitFor = Object . values (
189
- initializationPromisesMap
190
- ) ;
191
- }
187
+ // if (initializationPromisesToWaitFor.length === 0) {
188
+ // initializationPromisesToWaitFor = Object.values(
189
+ // initializationPromisesMap
190
+ // );
191
+ // }
192
192
193
193
// Run core gtag function with args after all relevant initialization
194
194
// promises have been resolved.
195
- await Promise . all ( initializationPromisesToWaitFor ) ;
195
+ await Promise . all ( [ initializationPromisesToWaitFor , Object . values ( initializationPromisesMap ) ] ) ;
196
196
// Workaround for http://b/141370449 - third argument cannot be undefined.
197
197
gtagCore ( GtagCommand . EVENT , measurementId , gtagParams || { } ) ;
198
198
} catch ( e ) {
Original file line number Diff line number Diff line change 17
17
18
18
import * as sinon from 'sinon' ;
19
19
import firebase from '@firebase/app-compat' ;
20
+ /* eslint-disable import/no-extraneous-dependencies */
20
21
import '@firebase/auth-compat' ;
21
22
import { Provider } from '@firebase/component' ;
22
23
import '../..' ;
Original file line number Diff line number Diff line change @@ -286,6 +286,7 @@ export class AsyncQueueImpl implements AsyncQueue {
286
286
// Note that draining may generate more delayed ops, so we do that first.
287
287
return this . drain ( ) . then ( ( ) => {
288
288
// Run ops in the same order they'd run if they ran naturally.
289
+ /* eslint-disable @typescript-eslint/no-floating-promises */
289
290
this . delayedOperations . sort ( ( a , b ) => a . targetTimeMs - b . targetTimeMs ) ;
290
291
291
292
for ( const op of this . delayedOperations ) {
@@ -310,6 +311,7 @@ export class AsyncQueueImpl implements AsyncQueue {
310
311
private removeDelayedOperation ( op : DelayedOperation < unknown > ) : void {
311
312
// NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.
312
313
const index = this . delayedOperations . indexOf ( op ) ;
314
+ /* eslint-disable @typescript-eslint/no-floating-promises */
313
315
debugAssert ( index >= 0 , 'Delayed operation not found.' ) ;
314
316
this . delayedOperations . splice ( index , 1 ) ;
315
317
}
Original file line number Diff line number Diff line change 13
13
},
14
14
"license" : " Apache-2.0" ,
15
15
"dependencies" : {
16
- "eslint" : " 7.32 .0" ,
17
- "eslint-plugin-unused-imports" : " 2.0 .0" ,
16
+ "eslint" : " 8.56 .0" ,
17
+ "eslint-plugin-unused-imports" : " 3.2 .0" ,
18
18
"prettier" : " 2.8.7"
19
19
},
20
20
"repository" : {
You can’t perform that action at this time.
0 commit comments