( progress: UploadStreamProgressOptions | undefined, startOffset: number, totalBytes: number, )
| 198 | } |
| 199 | |
| 200 | function emitUploadAttemptStarted( |
| 201 | progress: UploadStreamProgressOptions | undefined, |
| 202 | startOffset: number, |
| 203 | totalBytes: number, |
| 204 | ): void { |
| 205 | progress?.onProgress?.({ |
| 206 | type: startOffset > 0 ? 'resume' : 'start', |
| 207 | stage: progress.stage, |
| 208 | fileName: progress.fileName, |
| 209 | transferredBytes: startOffset, |
| 210 | totalBytes, |
| 211 | }); |
| 212 | } |
| 213 | |
| 214 | function buildUploadRequestHeaders( |
| 215 | headers: Record<string, string>, |
no outgoing calls
no test coverage detected