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

ssh2-exec

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssh2-exec - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

dist/chunk-ITGTTYQH.cjs

11

dist/index.js

@@ -1,10 +0,1 @@

import {
exec,
local,
remote
} from "./chunk-DIWGUPED.js";
export {
exec,
local,
remote
};
import{a,b,c}from"./chunk-WQ2VQ4KN.js";export{c as exec,a as local,b as remote};

@@ -1,30 +0,1 @@

import {
exec
} from "./chunk-DIWGUPED.js";
// src/promises.ts
function exec2(arg1, arg2, arg3) {
const options = arg2 ? {
ssh: arg1,
command: arg2,
...arg3
} : arg1;
return new Promise(function(resolve, reject) {
exec(options, function(err, stdout, stderr, code) {
if (err) {
err.stdout = stdout;
err.stderr = stderr;
reject(err);
} else {
resolve({
stdout,
stderr,
code
});
}
});
});
}
export {
exec2 as exec
};
import{c as i}from"./chunk-WQ2VQ4KN.js";function E(o,n,c){let x=n?{ssh:o,command:n,...c}:o;return new Promise(function(l,p){i(x,function(e,s,t,m){e?(e.stdout=s,e.stderr=t,p(e)):l({stdout:s,stderr:t,code:m})})})}export{E as exec};
{
"name": "ssh2-exec",
"version": "0.8.1",
"version": "0.8.2",
"description": "Transparent usage between `child_process.exec` and `ssh2.prototype.exec`",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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