@asgard-js/core 0.3.68 → 0.3.69
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/types/sandbox-fs.d.ts +6 -0
- package/dist/types/sandbox-fs.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1853,7 +1853,12 @@ class Dn {
|
|
|
1853
1853
|
i.searchParams.set("path", e), r?.mode != null && i.searchParams.set("mode", String(r.mode)), r?.createOnly && i.searchParams.set("create_only", "true");
|
|
1854
1854
|
const o = new FormData();
|
|
1855
1855
|
o.append("file", s instanceof Blob ? s : new Blob([s]));
|
|
1856
|
-
const a = await fetch(i.toString(), {
|
|
1856
|
+
const a = await fetch(i.toString(), {
|
|
1857
|
+
method: "PUT",
|
|
1858
|
+
headers: this.apiHeaders(),
|
|
1859
|
+
body: o,
|
|
1860
|
+
signal: r?.signal
|
|
1861
|
+
});
|
|
1857
1862
|
if (!a.ok)
|
|
1858
1863
|
throw new w(a.status, a.statusText, await a.text().catch(() => {
|
|
1859
1864
|
}));
|