(
preflight: Extract<UploadPreflightResult, { kind: 'direct-upload' }>,
)
| 103 | onProgress?: UploadProgressSink; |
| 104 | }): Promise<string | undefined> { |
| 105 | const uploadOnce = async ( |
| 106 | preflight: Extract<UploadPreflightResult, { kind: 'direct-upload' }>, |
| 107 | ): Promise<string> => { |
| 108 | await uploadDirectArtifact(options.artifact, preflight, options.onProgress); |
| 109 | return await finalizeDirectUpload({ |
| 110 | normalizedBase: options.normalizedBase, |
| 111 | token: options.token, |
| 112 | uploadId: preflight.uploadId, |
| 113 | }); |
| 114 | }; |
| 115 | |
| 116 | try { |
| 117 | return await uploadOnce(options.preflight); |
no test coverage detected