mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
chore(api): tauri can serialize array buffers from rc.7 (#1694)
* chore(api): tauri can serialize array buffers from rc.7 * fmt * fix audit * update lockfile
This commit is contained in:
@@ -319,11 +319,10 @@ class Child {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async write(data: IOPayload): Promise<void> {
|
||||
async write(data: IOPayload | number[]): Promise<void> {
|
||||
await invoke("plugin:shell|stdin_write", {
|
||||
pid: this.pid,
|
||||
// correctly serialize Uint8Arrays
|
||||
buffer: typeof data === "string" ? data : Array.from(data),
|
||||
buffer: data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user