| 31 | } |
| 32 | }; |
| 33 | export 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 | }; |