@npmcli/promise-spawn
Advanced tools
Comparing version 1.1.0 to 1.2.0
11
index.js
@@ -32,5 +32,6 @@ const {spawn} = require('child_process') | ||
const promiseSpawnUid = (cmd, args, opts, extra) => | ||
new Promise((res, rej) => { | ||
const proc = spawn(cmd, args, opts) | ||
const promiseSpawnUid = (cmd, args, opts, extra) => { | ||
let proc | ||
const p = new Promise((res, rej) => { | ||
proc = spawn(cmd, args, opts) | ||
const stdout = [] | ||
@@ -69,2 +70,6 @@ const stderr = [] | ||
p.stdin = proc.stdin | ||
return p | ||
} | ||
module.exports = promiseSpawn |
{ | ||
"name": "@npmcli/promise-spawn", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "index.js" |
@@ -48,2 +48,6 @@ # @npmcli/promise-spawn | ||
Returned promise is decorated with the `stdin` stream if the process is set | ||
to pipe from `stdin`. Writing to this stream writes to the `stdin` of the | ||
spawned process. | ||
#### Options | ||
@@ -50,0 +54,0 @@ |
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
5607
67
62