(env = process.env)
| 120 | } |
| 121 | |
| 122 | function resolveMaxJsonlLineBytes(env = process.env) { |
| 123 | const raw = Number(env.EVOMAP_MAILBOX_MAX_LINE_BYTES); |
| 124 | if (Number.isFinite(raw) && raw > 0) return Math.floor(raw); |
| 125 | return DEFAULT_MAX_JSONL_LINE_BYTES; |
| 126 | } |
| 127 | |
| 128 | function forEachJsonLine(filePath, onRow, opts = {}) { |
| 129 | const stats = { parsed: 0, corrupt: 0, overlong: 0 }; |
no outgoing calls
no test coverage detected