tauri/cli/tauri.js/api-src
Zak Patterson 486bd920f8
Fix: writeBinaryFile to call the correct command (fix #1133) (#1136)
* Fix writeBinaryFile to call the correct command

Fixes #1133

writeBinaryFile was reusing writeFile, which was happily saving
base64 encoded strings to the fs. This instead uses the correct
WriteBinaryFile command, which base64 decodes.

However why are we encoding and then decoding, why can we not just
send a raw byte array to be saved as a file? This is left for a later
PR.

* Shorten changelog line per review
2021-01-06 09:30:33 +01:00
..
bundle.ts feat: Port path api to js (#1006) 2020-09-23 21:53:03 -03:00
cli.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
dialog.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
event.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
fs.ts Fix: writeBinaryFile to call the correct command (fix #1133) (#1136) 2021-01-06 09:30:33 +01:00
http.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
index.ts refactor(tauri.js) rewrite API module in TypeScript, closes #679 #435 (#703) 2020-06-27 12:20:00 -03:00
notification.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
path.ts chore(tauri.js) path as empty string instead of . 2020-09-23 23:49:24 -03:00
process.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00
tauri.ts chore(deps) Update Tauri JS CLI (#1063) 2020-12-04 22:59:56 -03:00
window.ts chore: add prettier for js formatting (#937) 2020-08-18 21:36:46 -05:00