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

Function buildReadPackCacheKey

src/flowExecutionSupport.ts:33–45  ·  view source on GitHub ↗
(packPath: string, packReadingOptions: PackReadingOptions)

Source from the content-addressed store, hash-verified

31 }
32};
33export const buildReadPackCacheKey = (packPath: string, packReadingOptions: PackReadingOptions): string => {
34 const keyPayload = {
35 packPath,
36 skipParsingTables: packReadingOptions.skipParsingTables ?? false,
37 skipSorting: packReadingOptions.skipSorting ?? false,
38 readLocs: packReadingOptions.readLocs ?? false,
39 readScripts: packReadingOptions.readScripts ?? false,
40 readFlows: packReadingOptions.readFlows ?? false,
41 tablesToRead: [...(packReadingOptions.tablesToRead ?? [])].sort(),
42 filesToRead: [...(packReadingOptions.filesToRead ?? [])].sort(),
43 };
44 return JSON.stringify(keyPayload);
45};

Callers 1

readPackCachedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected