File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ export class Pushy {
353
353
if ( Pushy . progressHandlers [ hash ] ) {
354
354
return ;
355
355
}
356
+ const patchStartTime = Date . now ( ) ;
356
357
if ( onDownloadProgress ) {
357
358
// @ts -expect-error harmony not in existing platforms
358
359
if ( Platform . OS === 'harmony' ) {
@@ -458,9 +459,18 @@ export class Pushy {
458
459
}
459
460
return ;
460
461
} else {
462
+ const duration = Date . now ( ) - patchStartTime ;
463
+ const data : Record < string , any > = {
464
+ newVersion : hash ,
465
+ diff : succeeded ,
466
+ duration,
467
+ } ;
468
+ if ( errorMessages . length > 0 ) {
469
+ data . error = errorMessages . join ( ';' ) ;
470
+ }
461
471
this . report ( {
462
472
type : 'downloadSuccess' ,
463
- data : { newVersion : hash , diff : succeeded } ,
473
+ data,
464
474
} ) ;
465
475
}
466
476
log ( `downloaded ${ succeeded } hash:` , hash ) ;
You can’t perform that action at this time.
0 commit comments