@tauri-apps/plugin-fs 2.0.1 → 2.0.2
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-js/index.cjs +1 -1
- package/dist-js/index.js +1 -1
- package/package.json +1 -1
package/dist-js/index.cjs
CHANGED
|
@@ -641,7 +641,7 @@ async function writeTextFile(path, data, options) {
|
|
|
641
641
|
const encoder = new TextEncoder();
|
|
642
642
|
await core.invoke('plugin:fs|write_text_file', encoder.encode(data), {
|
|
643
643
|
headers: {
|
|
644
|
-
path: path instanceof URL ? path.toString() : path,
|
|
644
|
+
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
|
|
645
645
|
options: JSON.stringify(options)
|
|
646
646
|
}
|
|
647
647
|
});
|
package/dist-js/index.js
CHANGED
|
@@ -639,7 +639,7 @@ async function writeTextFile(path, data, options) {
|
|
|
639
639
|
const encoder = new TextEncoder();
|
|
640
640
|
await invoke('plugin:fs|write_text_file', encoder.encode(data), {
|
|
641
641
|
headers: {
|
|
642
|
-
path: path instanceof URL ? path.toString() : path,
|
|
642
|
+
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
|
|
643
643
|
options: JSON.stringify(options)
|
|
644
644
|
}
|
|
645
645
|
});
|