@arbidocs/sdk 0.4.126 → 0.4.128
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/browser.cjs +5 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +5 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5225,7 +5225,11 @@ async function presignedPut(url, body, onProgress, headers) {
|
|
|
5225
5225
|
});
|
|
5226
5226
|
return;
|
|
5227
5227
|
}
|
|
5228
|
-
const putRes = await fetch(url, {
|
|
5228
|
+
const putRes = await fetch(url, {
|
|
5229
|
+
method: "PUT",
|
|
5230
|
+
body,
|
|
5231
|
+
...headers ? { headers } : {}
|
|
5232
|
+
});
|
|
5229
5233
|
if (!putRes.ok) {
|
|
5230
5234
|
const snippet = await putRes.text().catch(() => "");
|
|
5231
5235
|
throw new Error(`Presigned PUT failed: ${putRes.status} ${snippet.slice(0, 200)}`);
|