(totalBytes: number)
| 85 | } |
| 86 | |
| 87 | function uploadProgressStepBytes(totalBytes: number): number { |
| 88 | return Math.max( |
| 89 | DEFAULT_UPLOAD_PROGRESS_STEP_BYTES, |
| 90 | Math.ceil(totalBytes * DEFAULT_UPLOAD_PROGRESS_STEP_RATIO), |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | function formatStage(stage: UploadProgressStage): string { |
| 95 | return stage === 'direct' ? 'direct' : 'legacy'; |
no outgoing calls
no test coverage detected