MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / uploadTimeoutMs

Function uploadTimeoutMs

packages/cli/src/utils/publishProject.ts:155–160  ·  view source on GitHub ↗
(byteLength: number)

Source from the content-addressed store, hash-verified

153}
154
155export 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
162function shouldIgnoreSegment(segment: string): boolean {
163 return segment.startsWith(".") || IGNORED_DIRS.has(segment) || IGNORED_FILES.has(segment);

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected