Function
restoreLogEnv
(snapshot: Record<(typeof LOG_ENV_KEYS)[number], string | undefined>)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | function restoreLogEnv(snapshot: Record<(typeof LOG_ENV_KEYS)[number], string | undefined>): void { |
| 57 | for (const key of LOG_ENV_KEYS) { |
| 58 | const value = snapshot[key]; |
| 59 | if (value === undefined) { |
| 60 | delete process.env[key]; |
| 61 | } else { |
| 62 | process.env[key] = value; |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | function readZipEntries(buf: Buffer): Map<string, Buffer> { |
| 68 | let eocd = -1; |
Tested by
no test coverage detected