File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 30
30
"types-generate" : " dts-gen -m '@supabase/storage-js' -s" ,
31
31
"test" : " run-s test:clean test:infra test:suite test:clean" ,
32
32
"test:suite" : " jest --runInBand" ,
33
- "test:infra" : " cd infra && docker- compose down && docker- compose up -d --build && sleep 10" ,
34
- "test:clean" : " cd infra && docker- compose down --remove-orphans" ,
33
+ "test:infra" : " cd infra && docker compose down && docker compose up -d --build && sleep 10" ,
34
+ "test:clean" : " cd infra && docker compose down --remove-orphans" ,
35
35
"docs" : " typedoc --entryPoints src/index.ts --out docs/v2 --entryPoints src/packages/* --excludePrivate --excludeProtected" ,
36
36
"docs:json" : " typedoc --json docs/v2/spec.json --entryPoints src/index.ts --entryPoints src/packages/* --excludePrivate --excludeExternals --excludeProtected"
37
37
},
Original file line number Diff line number Diff line change @@ -92,11 +92,10 @@ export default class StorageFileApi {
92
92
if ( typeof Blob !== 'undefined' && fileBody instanceof Blob ) {
93
93
body = new FormData ( )
94
94
body . append ( 'cacheControl' , options . cacheControl as string )
95
- body . append ( '' , fileBody )
96
-
97
95
if ( metadata ) {
98
96
body . append ( 'metadata' , this . encodeMetadata ( metadata ) )
99
97
}
98
+ body . append ( '' , fileBody )
100
99
} else if ( typeof FormData !== 'undefined' && fileBody instanceof FormData ) {
101
100
body = fileBody
102
101
body . append ( 'cacheControl' , options . cacheControl as string )
You can’t perform that action at this time.
0 commit comments