()
| 280 | |
| 281 | /** Merge the accumulated chunks into one ArrayBuffer-backed buffer (which `uploadFile` expects). */ |
| 282 | const drainPending = (): Buffer<ArrayBuffer> => Buffer.concat(pendingChunks, pendingBytes) |
| 283 | |
| 284 | const ensureBackend = async (): Promise<MultipartBackend> => { |
| 285 | if (!backend) { |