@tauri-apps/plugin-shell
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -83,3 +83,3 @@ import { invoke, Channel } from '@tauri-apps/api/core'; | ||
onEvent.onmessage = onEventHandler; | ||
return invoke("plugin:shell|execute", { | ||
return await invoke("plugin:shell|execute", { | ||
program, | ||
@@ -175,2 +175,3 @@ args, | ||
removeAllListeners(event) { | ||
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions | ||
if (event) { | ||
@@ -281,3 +282,3 @@ // eslint-disable-next-line @typescript-eslint/no-dynamic-delete,security/detect-object-injection | ||
async write(data) { | ||
return invoke("plugin:shell|stdin_write", { | ||
await invoke("plugin:shell|stdin_write", { | ||
pid: this.pid, | ||
@@ -296,3 +297,3 @@ // correctly serialize Uint8Arrays | ||
async kill() { | ||
return invoke("plugin:shell|kill", { | ||
await invoke("plugin:shell|kill", { | ||
cmd: "killChild", | ||
@@ -384,3 +385,3 @@ pid: this.pid, | ||
async spawn() { | ||
return execute((event) => { | ||
return await execute((event) => { | ||
switch (event.event) { | ||
@@ -419,3 +420,3 @@ case "Error": | ||
async execute() { | ||
return new Promise((resolve, reject) => { | ||
return await new Promise((resolve, reject) => { | ||
this.on("error", reject); | ||
@@ -480,3 +481,3 @@ const stdout = []; | ||
async function open(path, openWith) { | ||
return invoke("plugin:shell|open", { | ||
await invoke("plugin:shell|open", { | ||
path, | ||
@@ -483,0 +484,0 @@ with: openWith, |
{ | ||
"name": "@tauri-apps/plugin-shell", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"license": "MIT or APACHE-2.0", | ||
@@ -23,3 +23,3 @@ "authors": [ | ||
"dependencies": { | ||
"@tauri-apps/api": "2.0.0-beta.4" | ||
"@tauri-apps/api": "2.0.0-beta.11" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47989
7
1242
+ Added@tauri-apps/api@2.0.0-beta.11(transitive)
- Removed@tauri-apps/api@2.0.0-beta.4(transitive)