Comparing version 0.8.1 to 0.8.2
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17394
57
3