cross-spawn-cb 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,12 @@ function worker(cp, options, callback) {
27
27
  var stderr = null;
28
28
  // collect output
29
29
  var res = {
30
+ pid: 0,
31
+ output: [],
30
32
  stdout: null,
31
- stderr: null
33
+ stderr: null,
34
+ status: null,
35
+ signal: null
32
36
  };
33
37
  if (options.encoding) {
34
38
  if (cp.stdout) {
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/workers/async.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport nextTick from 'next-tick';\nimport { spawnKeys } from '../constants';\n\nimport type { ChildProcess, SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from '../types';\n\nexport default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n callback = once(callback);\n let stdout: Buffer[] = null;\n let stderr: Buffer[] = null;\n\n // collect output\n const res = { stdout: null, stderr: null } as SpawnResult;\n if (options.encoding) {\n if (cp.stdout) {\n stdout = [];\n cp.stdout.on('data', stdout.push.bind(stdout));\n }\n if (cp.stderr) {\n stderr = [];\n cp.stderr.on('data', stderr.push.bind(stderr));\n }\n }\n\n // some versions of node emit both an error and close\n cp.on('error', (err: SpawnError) => err.code === 'OK' || callback(err));\n\n // done\n cp.on('close', (status, signal) => {\n nextTick(function closeNextTick() {\n // prepare result\n res.pid = cp.pid;\n res.status = status;\n res.signal = signal;\n if (stdout) {\n res.stdout = Buffer.concat(stdout);\n if (options.encoding !== 'binary') res.stdout = res.stdout.toString(options.encoding);\n }\n if (stderr) {\n res.stderr = Buffer.concat(stderr);\n if (options.encoding !== 'binary') res.stderr = res.stderr.toString(options.encoding);\n }\n res.output = [null, res.stdout, res.stderr];\n\n // patch: early node on windows could return null\n if (res.status === null) res.status = 0;\n\n // process errors\n const err = res.status !== 0 ? new Error(`Non-zero exit code: ${res.status}`) : null;\n if (err) {\n for (const key in res) {\n if (spawnKeys.indexOf(key) < 0) continue;\n err[key] = Buffer.isBuffer(res[key]) ? res[key].toString('utf8') : res[key];\n }\n }\n err ? callback(err) : callback(null, res);\n });\n });\n\n // pipe input\n if (options.input && (typeof options.input === 'string' || Buffer.isBuffer(options.input))) {\n cp.stdin.end(options.input);\n }\n}\n"],"names":["worker","cp","options","callback","once","stdout","stderr","res","encoding","on","push","bind","err","code","status","signal","nextTick","closeNextTick","pid","Buffer","concat","toString","output","Error","key","spawnKeys","indexOf","isBuffer","input","stdin","end"],"mappings":";;;;+BAMA;;;eAAwBA;;;iEANP;+DACI;yBACK;;;;;;AAIX,SAASA,OAAOC,EAAgB,EAAEC,OAAsC,EAAEC,QAAwB;IAC/G,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACAA,UAAUA,WAAW,CAAC;IACtBC,WAAWC,IAAAA,mBAAI,EAACD;IAChB,IAAIE,SAAmB;IACvB,IAAIC,SAAmB;IAEvB,iBAAiB;IACjB,IAAMC,MAAM;QAAEF,QAAQ;QAAMC,QAAQ;IAAK;IACzC,IAAIJ,QAAQM,QAAQ,EAAE;QACpB,IAAIP,GAAGI,MAAM,EAAE;YACbA,SAAS,EAAE;YACXJ,GAAGI,MAAM,CAACI,EAAE,CAAC,QAAQJ,OAAOK,IAAI,CAACC,IAAI,CAACN;QACxC;QACA,IAAIJ,GAAGK,MAAM,EAAE;YACbA,SAAS,EAAE;YACXL,GAAGK,MAAM,CAACG,EAAE,CAAC,QAAQH,OAAOI,IAAI,CAACC,IAAI,CAACL;QACxC;IACF;IAEA,qDAAqD;IACrDL,GAAGQ,EAAE,CAAC,SAAS,SAACG;eAAoBA,IAAIC,IAAI,KAAK,QAAQV,SAASS;;IAElE,OAAO;IACPX,GAAGQ,EAAE,CAAC,SAAS,SAACK,QAAQ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AAK,CAAA,GAAI;QAC1F3B,GAAG4B,KAAK,CAACC,GAAG,CAAC5B,QAAQ0B,KAAK;IAC5B;AACF"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/workers/async.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport nextTick from 'next-tick';\nimport { spawnKeys } from '../constants';\n\nimport type { ChildProcess, SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from '../types';\n\nexport default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n callback = once(callback);\n let stdout: Buffer[] = null;\n let stderr: Buffer[] = null;\n\n // collect output\n const res = { pid: 0, output: [], stdout: null, stderr: null, status: null, signal: null } as SpawnResult;\n if (options.encoding) {\n if (cp.stdout) {\n stdout = [];\n cp.stdout.on('data', stdout.push.bind(stdout));\n }\n if (cp.stderr) {\n stderr = [];\n cp.stderr.on('data', stderr.push.bind(stderr));\n }\n }\n\n // some versions of node emit both an error and close\n cp.on('error', (err: SpawnError) => err.code === 'OK' || callback(err));\n\n // done\n cp.on('close', (status, signal) => {\n nextTick(function closeNextTick() {\n // prepare result\n res.pid = cp.pid;\n res.status = status;\n res.signal = signal;\n if (stdout) {\n res.stdout = Buffer.concat(stdout);\n if (options.encoding !== 'binary') res.stdout = res.stdout.toString(options.encoding);\n }\n if (stderr) {\n res.stderr = Buffer.concat(stderr);\n if (options.encoding !== 'binary') res.stderr = res.stderr.toString(options.encoding);\n }\n res.output = [null, res.stdout, res.stderr];\n\n // patch: early node on windows could return null\n if (res.status === null) res.status = 0;\n\n // process errors\n const err = res.status !== 0 ? new Error(`Non-zero exit code: ${res.status}`) : null;\n if (err) {\n for (const key in res) {\n if (spawnKeys.indexOf(key) < 0) continue;\n err[key] = Buffer.isBuffer(res[key]) ? res[key].toString('utf8') : res[key];\n }\n }\n err ? callback(err) : callback(null, res);\n });\n });\n\n // pipe input\n if (options.input && (typeof options.input === 'string' || Buffer.isBuffer(options.input))) {\n cp.stdin.end(options.input);\n }\n}\n"],"names":["worker","cp","options","callback","once","stdout","stderr","res","pid","output","status","signal","encoding","on","push","bind","err","code","nextTick","closeNextTick","Buffer","concat","toString","Error","key","spawnKeys","indexOf","isBuffer","input","stdin","end"],"mappings":";;;;+BAMA;;;eAAwBA;;;iEANP;+DACI;yBACK;;;;;;AAIX,SAASA,OAAOC,EAAgB,EAAEC,OAAsC,EAAEC,QAAwB;IAC/G,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACAA,UAAUA,WAAW,CAAC;IACtBC,WAAWC,IAAAA,mBAAI,EAACD;IAChB,IAAIE,SAAmB;IACvB,IAAIC,SAAmB;IAEvB,iBAAiB;IACjB,IAAMC,MAAM;QAAEC,KAAK;QAAGC,QAAQ,EAAE;QAAEJ,QAAQ;QAAMC,QAAQ;QAAMI,QAAQ;QAAMC,QAAQ;IAAK;IACzF,IAAIT,QAAQU,QAAQ,EAAE;QACpB,IAAIX,GAAGI,MAAM,EAAE;YACbA,SAAS,EAAE;YACXJ,GAAGI,MAAM,CAACQ,EAAE,CAAC,QAAQR,OAAOS,IAAI,CAACC,IAAI,CAACV;QACxC;QACA,IAAIJ,GAAGK,MAAM,EAAE;YACbA,SAAS,EAAE;YACXL,GAAGK,MAAM,CAACO,EAAE,CAAC,QAAQP,OAAOQ,IAAI,CAACC,IAAI,CAACT;QACxC;IACF;IAEA,qDAAqD;IACrDL,GAAGY,EAAE,CAAC,SAAS,SAACG;eAAoBA,IAAIC,IAAI,KAAK,QAAQd,SAASa;;IAElE,OAAO;IACPf,GAAGY,EAAE,CAAC,SAAS,SAACH,QAAQC;QACtBO,IAAAA,iBAAQ,EAAC,SAASC;YAChB,iBAAiB;YACjBZ,IAAIC,GAAG,GAAGP,GAAGO,GAAG;YAChBD,IAAIG,MAAM,GAAGA;YACbH,IAAII,MAAM,GAAGA;YACb,IAA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
14
14
  const res = {
15
+ pid: 0,
16
+ output: [],
15
17
  stdout: null,
16
- stderr: null
18
+ stderr: null,
19
+ status: null,
20
+ signal: null
17
21
  };
18
22
  if (options.encoding) {
19
23
  if (cp.stdout) {
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/workers/async.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport nextTick from 'next-tick';\nimport { spawnKeys } from '../constants';\n\nimport type { ChildProcess, SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from '../types';\n\nexport default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n callback = once(callback);\n let stdout: Buffer[] = null;\n let stderr: Buffer[] = null;\n\n // collect output\n const res = { stdout: null, stderr: null } as SpawnResult;\n if (options.encoding) {\n if (cp.stdout) {\n stdout = [];\n cp.stdout.on('data', stdout.push.bind(stdout));\n }\n if (cp.stderr) {\n stderr = [];\n cp.stderr.on('data', stderr.push.bind(stderr));\n }\n }\n\n // some versions of node emit both an error and close\n cp.on('error', (err: SpawnError) => err.code === 'OK' || callback(err));\n\n // done\n cp.on('close', (status, signal) => {\n nextTick(function closeNextTick() {\n // prepare result\n res.pid = cp.pid;\n res.status = status;\n res.signal = signal;\n if (stdout) {\n res.stdout = Buffer.concat(stdout);\n if (options.encoding !== 'binary') res.stdout = res.stdout.toString(options.encoding);\n }\n if (stderr) {\n res.stderr = Buffer.concat(stderr);\n if (options.encoding !== 'binary') res.stderr = res.stderr.toString(options.encoding);\n }\n res.output = [null, res.stdout, res.stderr];\n\n // patch: early node on windows could return null\n if (res.status === null) res.status = 0;\n\n // process errors\n const err = res.status !== 0 ? new Error(`Non-zero exit code: ${res.status}`) : null;\n if (err) {\n for (const key in res) {\n if (spawnKeys.indexOf(key) < 0) continue;\n err[key] = Buffer.isBuffer(res[key]) ? res[key].toString('utf8') : res[key];\n }\n }\n err ? callback(err) : callback(null, res);\n });\n });\n\n // pipe input\n if (options.input && (typeof options.input === 'string' || Buffer.isBuffer(options.input))) {\n cp.stdin.end(options.input);\n }\n}\n"],"names":["once","nextTick","spawnKeys","worker","cp","options","callback","stdout","stderr","res","encoding","on","push","bind","err","code","status","signal","closeNextTick","pid","Buffer","concat","toString","output","Error","key","indexOf","isBuffer","input","stdin","end"],"mappings":"AAAA,OAAOA,UAAU,eAAe;AAChC,OAAOC,cAAc,YAAY;AACjC,SAASC,SAAS,QAAQ,eAAe;AAIzC,eAAe,SAASC,OAAOC,EAAgB,EAAEC,OAAsC,EAAEC,QAAwB;IAC/G,IAAI,OAAOD,YAAY,YAAY;QACjCC,WAAWD;QACXA,UAAU,CAAC;IACb;IACAA,UAAUA,WAAW,CAAC;IACtBC,WAAWN,KAAKM;IAChB,IAAIC,SAAmB;IACvB,IAAIC,SAAmB;IAEvB,iBAAiB;IACjB,MAAMC,MAAM;QAAEF,QAAQ;QAAMC,QAAQ;IAAK;IACzC,IAAIH,QAAQK,QAAQ,EAAE;QACpB,IAAIN,GAAGG,MAAM,EAAE;YACbA,SAAS,EAAE;YACXH,GAAGG,MAAM,CAACI,EAAE,CAAC,QAAQJ,OAAOK,IAAI,CAACC,IAAI,CAACN;QACxC;QACA,IAAIH,GAAGI,MAAM,EAAE;YACbA,SAAS,EAAE;YACXJ,GAAGI,MAAM,CAACG,EAAE,CAAC,QAAQH,OAAOI,IAAI,CAACC,IAAI,CAACL;QACxC;IACF;IAEA,qDAAqD;IACrDJ,GAAGO,EAAE,CAAC,SAAS,CAACG,MAAoBA,IAAIC,IAAI,KAAK,QAAQT,SAASQ;IAElE,OAAO;IACPV,GAAGO,EAAE,CAAC,SAAS,CAACK,QAAQC;QACtBhB,SAAS,SAASiB;YAChB,iBAAiB;YACjBT,IAAIU,GAAG,GAAGf,GAAGe,GAAG;YAChBV,IAAIO,MAAM,GAAGA;YACbP,IAAIQ,MAAM,GAAGA;YACb,IAAIV,QAA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call-once-fn';\nimport nextTick from 'next-tick';\nimport { spawnKeys } from '../constants';\n\nimport type { ChildProcess, SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from '../types';\n\nexport default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback) {\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n options = options || {};\n callback = once(callback);\n let stdout: Buffer[] = null;\n let stderr: Buffer[] = null;\n\n // collect output\n const res = { pid: 0, output: [], stdout: null, stderr: null, status: null, signal: null } as SpawnResult;\n if (options.encoding) {\n if (cp.stdout) {\n stdout = [];\n cp.stdout.on('data', stdout.push.bind(stdout));\n }\n if (cp.stderr) {\n stderr = [];\n cp.stderr.on('data', stderr.push.bind(stderr));\n }\n }\n\n // some versions of node emit both an error and close\n cp.on('error', (err: SpawnError) => err.code === 'OK' || callback(err));\n\n // done\n cp.on('close', (status, signal) => {\n nextTick(function closeNextTick() {\n // prepare result\n res.pid = cp.pid;\n res.status = status;\n res.signal = signal;\n if (stdout) {\n res.stdout = Buffer.concat(stdout);\n if (options.encoding !== 'binary') res.stdout = res.stdout.toString(options.encoding);\n }\n if (stderr) {\n res.stderr = Buffer.concat(stderr);\n if (options.encoding !== 'binary') res.stderr = res.stderr.toString(options.encoding);\n }\n res.output = [null, res.stdout, res.stderr];\n\n // patch: early node on windows could return null\n if (res.status === null) res.status = 0;\n\n // process errors\n const err = res.status !== 0 ? new Error(`Non-zero exit code: ${res.status}`) : null;\n if (err) {\n for (const key in res) {\n if (spawnKeys.indexOf(key) < 0) continue;\n err[key] = Buffer.isBuffer(res[key]) ? res[key].toString('utf8') : res[key];\n }\n }\n err ? callback(err) : callback(null, res);\n });\n });\n\n // pipe input\n if (options.input && (typeof options.input === 'string' || Buffer.isBuffer(options.input))) {\n cp.stdin.end(options.input);\n }\n}\n"],"names":["once","nextTick","spawnKeys","worker","cp","options","callback","stdout","stderr","res","pid","output","status","signal","encoding","on","push","bind","err","code","closeNextTick","Buffer","concat","toString","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AAQ;YACtF;YACA,IAAIN,QAAQ;gBACVC,IAAID,MAAM,GAAGa,OAAOC,MAAM,CAACd;gBAC3B,IAAIH,QAAQS,QAAQ,KAAK,UAAUL,IAAID,MAAM,GAAGC,IAAID,MAAM,CAACe,QAAQ,CAAClB,QAAQS,QAAQ;YACtF;YACAL,IAAIE,MAAM,GAAG;gBAAC;gBAAMF,IAAIF,MAAM;gBAAEE,IAAID,MAAM;aAAC;YAE3C,iDAAiD;YACjD,IAAIC,IAAIG,MAAM,KAAK,MAAMH,IAAIG,MAAM,GAAG;YAEtC,iBAAiB;YACjB,MAAMM,MAAMT,IAAIG,MAAM,KAAK,IAAI,IAAIY,MAAM,CAAC,oBAAoB,EAAEf,IAAIG,MAAM,EAAE,IAAI;YAChF,IAAIM,KAAK;gBACP,IAAK,MAAMO,OAAOhB,IAAK;oBACrB,IAAIP,UAAUwB,OAAO,CAACD,OAAO,GAAG;oBAChCP,GAAG,CAACO,IAAI,GAAGJ,OAAOM,QAAQ,CAAClB,GAAG,CAACgB,IAAI,IAAIhB,GAAG,CAACgB,IAAI,CAACF,QAAQ,CAAC,UAAUd,GAAG,CAACgB,IAAI;gBAC7E;YACF;YACAP,MAAMZ,SAASY,OAAOZ,SAAS,MAAMG;QACvC;IACF;IAEA,aAAa;IACb,IAAIJ,QAAQuB,KAAK,IAAK,CAAA,OAAOvB,QAAQuB,KAAK,KAAK,YAAYP,OAAOM,QAAQ,CAACtB,QAAQuB,KAAK,CAAA,GAAI;QAC1FxB,GAAGyB,KAAK,CAACC,GAAG,CAACzB,QAAQuB,KAAK;IAC5B;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Cross spawn with a completion callback",
5
5
  "keywords": [
6
6
  "cross-spawn",
@@ -31,6 +31,7 @@
31
31
  "scripts": {
32
32
  "build": "tsds build",
33
33
  "deploy": "tsds deploy",
34
+ "docs": "tsds docs",
34
35
  "format": "biome check --write --unsafe src/ test/",
35
36
  "test": "tsds test:node --no-timeouts",
36
37
  "test:engines": "nvu engines npm test",
@@ -41,7 +42,7 @@
41
42
  "call-once-fn": "^1.0.1",
42
43
  "core-js": "^3.39.0",
43
44
  "cross-spawn": "^7.0.6",
44
- "function-exec-sync": "^1.1.6",
45
+ "function-exec-sync": "^1.1.7",
45
46
  "next-tick": "^1.1.0"
46
47
  },
47
48
  "devDependencies": {
@@ -50,7 +51,7 @@
50
51
  "@types/node": "^22.10.2",
51
52
  "cr": "^0.1.0",
52
53
  "is-version": "^0.2.1",
53
- "node-install-release": "^1.7.6",
54
+ "node-install-release": "^1.8.1",
54
55
  "node-resolve-versions": "^1.0.5",
55
56
  "node-version-utils": "^1.2.1",
56
57
  "pinkie-promise": "^2.0.1"