(isDebug = false)
| 16 | isDebug: boolean; |
| 17 | } |
| 18 | export const createFlowExecutionContext = (isDebug = false): FlowExecutionContext => ({ |
| 19 | readPackCache: new Map<string, Promise<Pack>>(), |
| 20 | tableFilesByPackAndTable: new Map<string, PackedFile[]>(), |
| 21 | rowsByPackedFile: new WeakMap<PackedFile, AmendedSchemaField[][]>(), |
| 22 | columnIndexesByPackedFile: new WeakMap<PackedFile, Map<string, number>>(), |
| 23 | outputPackByPath: new Map<string, NewPackedFile[]>(), |
| 24 | isDebug, |
| 25 | }); |
| 26 | export const isFlowExecutionDebugEnabled = (): boolean => |
| 27 | process.env.NODE_ENV === "development" && process.env.WHMM_VERBOSE_FLOW_EXECUTION === "1"; |
| 28 | export const flowExecutionDebugLog = (context: Pick<FlowExecutionContext, "isDebug"> | undefined, ...args: any[]) => { |
no outgoing calls
no test coverage detected