@crabcloud/cli 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crab.js +1 -1
- package/package.json +1 -1
package/dist/crab.js
CHANGED
|
@@ -7703,7 +7703,7 @@ async function storageUploadOne(credentials, filePath) {
|
|
|
7703
7703
|
headers: authHeaders(credentials),
|
|
7704
7704
|
body: JSON.stringify({ filename, mimeType, sizeBytes: cipher.byteLength, enc: true })
|
|
7705
7705
|
});
|
|
7706
|
-
if (presign.status === 200) {
|
|
7706
|
+
if (presign.status === 200 || presign.status === 201) {
|
|
7707
7707
|
const { fileId, uploadUrl } = presign.body.data;
|
|
7708
7708
|
const put = await fetch(uploadUrl, { method: "PUT", body: cipher, headers: { "content-type": mimeType } });
|
|
7709
7709
|
if (!put.ok) {
|
package/package.json
CHANGED