(byteLength: number)
| 153 | } |
| 154 | |
| 155 | export function uploadTimeoutMs(byteLength: number): number { |
| 156 | return Math.max( |
| 157 | PUBLISH_UPLOAD_MIN_TIMEOUT_MS, |
| 158 | Math.ceil((byteLength / PUBLISH_UPLOAD_BYTES_PER_SECOND) * 1000), |
| 159 | ); |
| 160 | } |
| 161 | |
| 162 | function shouldIgnoreSegment(segment: string): boolean { |
| 163 | return segment.startsWith(".") || IGNORED_DIRS.has(segment) || IGNORED_FILES.has(segment); |
no outgoing calls
no test coverage detected