Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tauri-apps/plugin-shell

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/plugin-shell - npm Package Compare versions

Comparing version 2.0.0-beta.2 to 2.0.0-beta.3

13

dist-js/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc