File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ import { readFileSync } from 'fs';
1414import * as path from 'path' ;
1515import { MAX_DEVREV_FILENAME_EXTENSION_LENGTH , MAX_DEVREV_FILENAME_LENGTH } from './constants' ;
1616
17+ export function isEventType ( {
18+ event,
19+ eventType,
20+ } : {
21+ event : AirdropEvent ;
22+ eventType : EventType ;
23+ } ) : boolean {
24+ return event . payload . event_type === eventType ;
25+ }
26+
1727export function getTimeoutErrorEventType ( eventType : EventType ) : {
1828 eventType : ExtractorEventType | LoaderEventType ;
1929} {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export * from './common/install-initial-domain-mapping';
1111export { WorkerAdapter } from './workers/worker-adapter' ;
1212export { processTask } from './workers/process-task' ;
1313export { spawn } from './workers/spawn' ;
14+ export { isEventType } from './common/helpers' ;
1415
1516export * from './types/workers' ;
1617
You can’t perform that action at this time.
0 commit comments