(value: any)
| 17 | export const revalidate = 0 |
| 18 | |
| 19 | function escapeCsv(value: any): string { |
| 20 | if (value === null || value === undefined) return '' |
| 21 | const str = typeof value === 'string' ? neutralizeCsvFormula(value) : String(value) |
| 22 | if (/[",\n]/.test(str)) { |
| 23 | return `"${str.replace(/"/g, '""')}"` |
| 24 | } |
| 25 | return str |
| 26 | } |
| 27 | |
| 28 | export const GET = withRouteHandler(async (request: NextRequest) => { |
| 29 | try { |
no test coverage detected