@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/browser.cjs
CHANGED
|
@@ -4671,7 +4671,11 @@ async function presignedPut(url, body, onProgress, headers) {
|
|
|
4671
4671
|
});
|
|
4672
4672
|
return;
|
|
4673
4673
|
}
|
|
4674
|
-
const putRes = await fetch(url, {
|
|
4674
|
+
const putRes = await fetch(url, {
|
|
4675
|
+
method: "PUT",
|
|
4676
|
+
body,
|
|
4677
|
+
...headers ? { headers } : {}
|
|
4678
|
+
});
|
|
4675
4679
|
if (!putRes.ok) {
|
|
4676
4680
|
const snippet = await putRes.text().catch(() => "");
|
|
4677
4681
|
throw new Error(`Presigned PUT failed: ${putRes.status} ${snippet.slice(0, 200)}`);
|