@@ -5,7 +5,7 @@ import { ZeErrors, ZephyrError } from '../errors';
55import { getApplicationConfiguration } from '../edge-requests/get-application-configuration' ;
66import { makeRequest } from '../http/http-request' ;
77import { zeUploadSnapshot } from '../edge-actions' ;
8- import { type UploadAssetsOptions , uploadBuildStatsAndEnableEnvs } from './upload-base' ;
8+ import { type UploadAssetsOptions , uploadBuildStatsAndEnableEnvs } from './upload-base' ;
99import { update_hash_list } from '../edge-hash-list/distributed-hash-control' ;
1010import { white , whiteBright } from '../logging/picocolor' ;
1111import type { UploadFileProps } from '../http/upload-file' ;
@@ -15,7 +15,7 @@ const AWS_MAX_BODY_SIZE = 20971520;
1515
1616export async function awsUploadStrategy (
1717 zephyr_engine : ZephyrEngine ,
18- { snapshot, getDashData, assets : { assetsMap, missingAssets } } : UploadOptions ,
18+ { snapshot, getDashData, assets : { assetsMap, missingAssets } } : UploadOptions
1919) : Promise < string > {
2020 const snapshotSize = Buffer . byteLength ( JSON . stringify ( snapshot ) , 'utf8' ) ;
2121 if ( snapshotSize > AWS_MAX_BODY_SIZE ) {
@@ -145,12 +145,13 @@ async function zeUploadAssets(
145145 return ;
146146 }
147147
148- const [ ok , cause ] = await makeRequest ( result . url ,
148+ const [ ok , cause ] = await makeRequest (
149+ result . url ,
149150 {
150151 method : 'PUT' ,
151152 headers : {
152153 'Content-Type' : result . contentType ,
153- }
154+ } ,
154155 } ,
155156 asset . buffer
156157 ) ;
@@ -174,7 +175,7 @@ async function zeUploadAssets(
174175 async function getUploadUrl (
175176 { hash, asset } : UploadFileProps ,
176177 { EDGE_URL , jwt } : ZeApplicationConfig
177- ) : Promise < { url : string ; contentType : string ; message ?: string ; } > {
178+ ) : Promise < { url : string ; contentType : string ; message ?: string } > {
178179 const type = 'uploadUrl' ;
179180 const options : RequestInit = {
180181 method : 'POST' ,
@@ -186,7 +187,7 @@ async function zeUploadAssets(
186187 } ,
187188 } ;
188189
189- const [ ok , cause , data ] = await makeRequest < { url : string ; contentType : string ; } > (
190+ const [ ok , cause , data ] = await makeRequest < { url : string ; contentType : string } > (
190191 {
191192 path : '/upload' ,
192193 base : EDGE_URL ,
0 commit comments