@@ -85,14 +85,14 @@ describe('client', () => {
8585 ) ;
8686 expect ( fetchMock ) . toHaveBeenNthCalledWith (
8787 2 ,
88- 'https://blob.vercel-storage.com/foo.txt' ,
88+ 'https://blob.vercel-storage.com/?pathname= foo.txt' ,
8989 {
9090 body : 'Test file data' ,
9191 headers : {
9292 authorization : 'Bearer vercel_blob_client_fake_123' ,
9393 'x-api-blob-request-attempt' : '0' ,
9494 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
95- 'x-api-version' : '8 ' ,
95+ 'x-api-version' : '9 ' ,
9696 } ,
9797 method : 'PUT' ,
9898 } ,
@@ -201,13 +201,13 @@ describe('client', () => {
201201
202202 expect ( fetchMock ) . toHaveBeenNthCalledWith (
203203 1 ,
204- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
204+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
205205 {
206206 headers : {
207207 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
208208 'x-api-blob-request-attempt' : '0' ,
209209 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
210- 'x-api-version' : '8 ' ,
210+ 'x-api-version' : '9 ' ,
211211 'x-mpu-action' : 'create' ,
212212 } ,
213213 method : 'POST' ,
@@ -217,14 +217,14 @@ describe('client', () => {
217217 const internalAbortSignal = new AbortController ( ) . signal ;
218218 expect ( fetchMock ) . toHaveBeenNthCalledWith (
219219 2 ,
220- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
220+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
221221 {
222222 body : 'data1' ,
223223 headers : {
224224 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
225225 'x-api-blob-request-attempt' : '0' ,
226226 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
227- 'x-api-version' : '8 ' ,
227+ 'x-api-version' : '9 ' ,
228228 'x-mpu-action' : 'upload' ,
229229 'x-mpu-key' : 'key' ,
230230 'x-mpu-upload-id' : 'uploadId' ,
@@ -236,14 +236,14 @@ describe('client', () => {
236236 ) ;
237237 expect ( fetchMock ) . toHaveBeenNthCalledWith (
238238 3 ,
239- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
239+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
240240 {
241241 body : 'data2' ,
242242 headers : {
243243 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
244244 'x-api-blob-request-attempt' : '0' ,
245245 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
246- 'x-api-version' : '8 ' ,
246+ 'x-api-version' : '9 ' ,
247247 'x-mpu-action' : 'upload' ,
248248 'x-mpu-key' : 'key' ,
249249 'x-mpu-upload-id' : 'uploadId' ,
@@ -255,7 +255,7 @@ describe('client', () => {
255255 ) ;
256256 expect ( fetchMock ) . toHaveBeenNthCalledWith (
257257 4 ,
258- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
258+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
259259 {
260260 body : JSON . stringify ( [
261261 { etag : 'etag1' , partNumber : 1 } ,
@@ -266,7 +266,7 @@ describe('client', () => {
266266 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
267267 'x-api-blob-request-attempt' : '0' ,
268268 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
269- 'x-api-version' : '8 ' ,
269+ 'x-api-version' : '9 ' ,
270270 'x-mpu-action' : 'complete' ,
271271 'x-mpu-key' : 'key' ,
272272 'x-mpu-upload-id' : 'uploadId' ,
@@ -343,13 +343,13 @@ describe('client', () => {
343343
344344 expect ( fetchMock ) . toHaveBeenNthCalledWith (
345345 1 ,
346- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
346+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
347347 {
348348 headers : {
349349 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
350350 'x-api-blob-request-attempt' : '0' ,
351351 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
352- 'x-api-version' : '8 ' ,
352+ 'x-api-version' : '9 ' ,
353353 'x-mpu-action' : 'create' ,
354354 } ,
355355 method : 'POST' ,
@@ -359,14 +359,14 @@ describe('client', () => {
359359 const internalAbortSignal = new AbortController ( ) . signal ;
360360 expect ( fetchMock ) . toHaveBeenNthCalledWith (
361361 2 ,
362- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
362+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
363363 {
364364 body : 'data1' ,
365365 headers : {
366366 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
367367 'x-api-blob-request-attempt' : '0' ,
368368 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
369- 'x-api-version' : '8 ' ,
369+ 'x-api-version' : '9 ' ,
370370 'x-mpu-action' : 'upload' ,
371371 'x-mpu-key' : 'key' ,
372372 'x-mpu-upload-id' : 'uploadId' ,
@@ -378,14 +378,14 @@ describe('client', () => {
378378 ) ;
379379 expect ( fetchMock ) . toHaveBeenNthCalledWith (
380380 3 ,
381- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
381+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
382382 {
383383 body : 'data2' ,
384384 headers : {
385385 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
386386 'x-api-blob-request-attempt' : '0' ,
387387 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
388- 'x-api-version' : '8 ' ,
388+ 'x-api-version' : '9 ' ,
389389 'x-mpu-action' : 'upload' ,
390390 'x-mpu-key' : 'key' ,
391391 'x-mpu-upload-id' : 'uploadId' ,
@@ -397,7 +397,7 @@ describe('client', () => {
397397 ) ;
398398 expect ( fetchMock ) . toHaveBeenNthCalledWith (
399399 4 ,
400- 'https://blob.vercel-storage.com/mpu/ foo.txt' ,
400+ 'https://blob.vercel-storage.com/mpu?pathname= foo.txt' ,
401401 {
402402 body : JSON . stringify ( [
403403 { etag : 'etag1' , partNumber : 1 } ,
@@ -408,7 +408,7 @@ describe('client', () => {
408408 authorization : 'Bearer vercel_blob_client_fake_token_for_test' ,
409409 'x-api-blob-request-attempt' : '0' ,
410410 'x-api-blob-request-id' : `fake:${ Date . now ( ) } :${ requestId } ` ,
411- 'x-api-version' : '8 ' ,
411+ 'x-api-version' : '9 ' ,
412412 'x-mpu-action' : 'complete' ,
413413 'x-mpu-key' : 'key' ,
414414 'x-mpu-upload-id' : 'uploadId' ,
0 commit comments