(key: string, data: any)
| 76 | |
| 77 | // Helper to write JSON to S3 file |
| 78 | export async function writeJsonToS3(key: string, data: any): Promise<void> { |
| 79 | const jsonData = JSON.stringify(data, null, 2); |
| 80 | await uploadToS3(key, new TextEncoder().encode(jsonData), { |
| 81 | contentType: 'application/json' |
| 82 | }); |
| 83 | } |
| 84 | |
| 85 | function createFileUploadStream( |
| 86 | sourcePath: string, |
no test coverage detected