@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.js
CHANGED
|
@@ -5216,7 +5216,11 @@ async function presignedPut(url, body, onProgress, headers) {
|
|
|
5216
5216
|
});
|
|
5217
5217
|
return;
|
|
5218
5218
|
}
|
|
5219
|
-
const putRes = await fetch(url, {
|
|
5219
|
+
const putRes = await fetch(url, {
|
|
5220
|
+
method: "PUT",
|
|
5221
|
+
body,
|
|
5222
|
+
...headers ? { headers } : {}
|
|
5223
|
+
});
|
|
5220
5224
|
if (!putRes.ok) {
|
|
5221
5225
|
const snippet = await putRes.text().catch(() => "");
|
|
5222
5226
|
throw new Error(`Presigned PUT failed: ${putRes.status} ${snippet.slice(0, 200)}`);
|