MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / createFlowExecutionContext

Function createFlowExecutionContext

src/flowExecutionSupport.ts:18–25  ·  view source on GitHub ↗
(isDebug = false)

Source from the content-addressed store, hash-verified

16 isDebug: boolean;
17}
18export 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});
26export const isFlowExecutionDebugEnabled = (): boolean =>
27 process.env.NODE_ENV === "development" && process.env.WHMM_VERBOSE_FLOW_EXECUTION === "1";
28export const flowExecutionDebugLog = (context: Pick<FlowExecutionContext, "isDebug"> | undefined, ...args: any[]) => {

Callers 3

executeFlowsForPackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected