cross-spawn-cb 1.2.0 → 1.3.0
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.
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -30,6 +30,7 @@ function _interop_require_default(obj) {
|
|
|
30
30
|
}
|
|
31
31
|
var cp = require('child_process');
|
|
32
32
|
if (!cp.spawnSync) {
|
|
33
|
+
var path = require('path');
|
|
33
34
|
var _$spawnCallback = path.join(__dirname, 'spawnCallback.js');
|
|
34
35
|
var functionExec = null; // break dependencies
|
|
35
36
|
cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.mjs"],"sourcesContent":["// early node is missing spawnSync\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const spawnCallback = path.join(__dirname, 'spawnCallback.js');\n\n let functionExec = null; // break dependencies\n cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {\n if (!functionExec) functionExec = require('function-exec-sync');\n return functionExec({ callbacks: true }, spawnCallback, cmd, args, options || {});\n };\n}\n\nimport spawnCallback from './spawnCallback';\nexport default spawnCallback;\nexport { default as spawn } from './spawn';\nexport { default as sync } from './spawnCallbackSync';\n"],"names":["spawn","sync","cp","require","spawnSync","
|
|
1
|
+
{"version":3,"sources":["index.mjs"],"sourcesContent":["// early node is missing spawnSync\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const path = require('path');\n const spawnCallback = path.join(__dirname, 'spawnCallback.js');\n\n let functionExec = null; // break dependencies\n cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {\n if (!functionExec) functionExec = require('function-exec-sync');\n return functionExec({ callbacks: true }, spawnCallback, cmd, args, options || {});\n };\n}\n\nimport spawnCallback from './spawnCallback';\nexport default spawnCallback;\nexport { default as spawn } from './spawn';\nexport { default as sync } from './spawnCallbackSync';\n"],"names":["spawn","sync","cp","require","spawnSync","path","spawnCallback","join","__dirname","functionExec","spawnSyncPolyfill","cmd","args","options","callbacks"],"mappings":"AAAA,kCAAkC;;;;;;;;;;;;IAclC,OAA6B;eAA7B;;IACoBA,KAAK;eAALA,cAAK;;IACLC,IAAI;eAAJA,0BAAI;;;oEAHE;4DAEO;wEACD;;;;;;AAfhC,IAAMC,KAAKC,QAAQ;AACnB,IAAI,CAACD,GAAGE,SAAS,EAAE;IACjB,IAAMC,OAAOF,QAAQ;IACrB,IAAMG,kBAAgBD,KAAKE,IAAI,CAACC,WAAW;IAE3C,IAAIC,eAAe,MAAM,qBAAqB;IAC9CP,GAAGE,SAAS,GAAG,SAASM,kBAAkBC,GAAG,EAAEC,IAAI,EAAEC,OAAO;QAC1D,IAAI,CAACJ,cAAcA,eAAeN,QAAQ;QAC1C,OAAOM,aAAa;YAAEK,WAAW;QAAK,GAAGR,iBAAeK,KAAKC,MAAMC,WAAW,CAAC;IACjF;AACF;IAGA,WAAeP,sBAAa"}
|