@tauri-apps/plugin-shell
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.1
@@ -143,3 +143,3 @@ /** | ||
*/ | ||
write(data: IOPayload): Promise<void>; | ||
write(data: IOPayload | number[]): Promise<void>; | ||
/** | ||
@@ -146,0 +146,0 @@ * Kills the child process. |
@@ -22,3 +22,3 @@ import { invoke, Channel } from '@tauri-apps/api/core'; | ||
* | ||
* The plugin configuration object has a `scope` field that defines an array of CLIs that can be used. | ||
* The plugin permissions object has a `scope` field that defines an array of CLIs that can be used. | ||
* Each CLI is a configuration object `{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`. | ||
@@ -40,8 +40,9 @@ * | ||
* | ||
* Configuration: | ||
* Capability: | ||
* ```json | ||
* { | ||
* "plugins": { | ||
* "shell": { | ||
* "scope": [ | ||
* "permissions": [ | ||
* { | ||
* "identifier": "shell:allow-execute", | ||
* "allow": [ | ||
* { | ||
@@ -54,3 +55,3 @@ * "name": "run-git-commit", | ||
* } | ||
* } | ||
* ] | ||
* } | ||
@@ -257,4 +258,3 @@ * ``` | ||
pid: this.pid, | ||
// correctly serialize Uint8Arrays | ||
buffer: typeof data === "string" ? data : Array.from(data), | ||
buffer: data, | ||
}); | ||
@@ -261,0 +261,0 @@ } |
{ | ||
"name": "@tauri-apps/plugin-shell", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"license": "MIT or APACHE-2.0", | ||
@@ -27,4 +27,4 @@ "authors": [ | ||
"dependencies": { | ||
"@tauri-apps/api": "^2.0.0-rc.0" | ||
"@tauri-apps/api": "^2.0.0-rc.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
45283
Updated@tauri-apps/api@^2.0.0-rc.4