Skip to content

Commit 0bba693

Browse files
fix(fs-js): fix writeBinaryFile invalid command usage (#454)
* write_binary_file -> write_file * Missing artifact * Create fs-wiret-binary-file.md ---------
1 parent 52ef0ad commit 0bba693

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changes/fs-wiret-binary-file.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fs-js": patch
3+
---
4+
5+
Fix `writeBinaryFile` crashing with `command 'write_binary_file' not found`

plugins/fs/guest-js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ async function writeBinaryFile(
410410
file.contents = contents ?? [];
411411
}
412412

413-
return await window.__TAURI_INVOKE__("plugin:fs|write_binary_file", {
413+
return await window.__TAURI_INVOKE__("plugin:fs|write_file", {
414414
path: file.path,
415415
contents: Array.from(
416416
file.contents instanceof ArrayBuffer

plugins/fs/src/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)