cross-spawn-cb 2.1.2 → 2.1.3
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.
|
@@ -6,13 +6,13 @@ var path = require('path');
|
|
|
6
6
|
if (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';
|
|
7
7
|
var cp = require('child_process');
|
|
8
8
|
if (!cp.spawnSync) {
|
|
9
|
-
var
|
|
9
|
+
var workerPath = path.join(__dirname, '..', 'spawn.cjs');
|
|
10
10
|
var functionExec = null; // break dependencies
|
|
11
11
|
cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {
|
|
12
12
|
if (!functionExec) functionExec = require('function-exec-sync');
|
|
13
13
|
return functionExec({
|
|
14
14
|
callbacks: true
|
|
15
|
-
},
|
|
15
|
+
}, workerPath, cmd, args, options || {});
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/polyfills/patch.cjs"],"sourcesContent":["require('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';\n\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/polyfills/patch.cjs"],"sourcesContent":["require('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';\n\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const workerPath = path.join(__dirname, '..', 'spawn.cjs');\n\n let functionExec = null; // break dependencies\n cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {\n if (!functionExec) functionExec = require('function-exec-sync');\n\n return functionExec({ callbacks: true }, workerPath, cmd, args, options || {});\n };\n}\n"],"names":["require","path","delimiter","process","platform","cp","spawnSync","workerPath","join","__dirname","functionExec","spawnSyncPolyfill","cmd","args","options","callbacks"],"mappings":";AAAAA,QAAQ;AACRA,QAAQ;AACRA,QAAQ;AAER,IAAMC,OAAOD,QAAQ;AACrB,IAAI,CAACC,KAAKC,SAAS,EAAED,KAAKC,SAAS,GAAGC,QAAQC,QAAQ,KAAK,UAAU,MAAM;AAE3E,IAAMC,KAAKL,QAAQ;AACnB,IAAI,CAACK,GAAGC,SAAS,EAAE;IACjB,IAAMC,aAAaN,KAAKO,IAAI,CAACC,WAAW,MAAM;IAE9C,IAAIC,eAAe,MAAM,qBAAqB;IAC9CL,GAAGC,SAAS,GAAG,SAASK,kBAAkBC,GAAG,EAAEC,IAAI,EAAEC,OAAO;QAC1D,IAAI,CAACJ,cAAcA,eAAeV,QAAQ;QAE1C,OAAOU,aAAa;YAAEK,WAAW;QAAK,GAAGR,YAAYK,KAAKC,MAAMC,WAAW,CAAC;IAC9E;AACF"}
|
|
@@ -5,12 +5,12 @@ const path = require('path');
|
|
|
5
5
|
if (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';
|
|
6
6
|
const cp = require('child_process');
|
|
7
7
|
if (!cp.spawnSync) {
|
|
8
|
-
const
|
|
8
|
+
const workerPath = path.join(__dirname, '..', 'spawn.cjs');
|
|
9
9
|
let functionExec = null; // break dependencies
|
|
10
10
|
cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {
|
|
11
11
|
if (!functionExec) functionExec = require('function-exec-sync');
|
|
12
12
|
return functionExec({
|
|
13
13
|
callbacks: true
|
|
14
|
-
},
|
|
14
|
+
}, workerPath, cmd, args, options || {});
|
|
15
15
|
};
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/polyfills/patch.cjs"],"sourcesContent":["require('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';\n\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/polyfills/patch.cjs"],"sourcesContent":["require('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter) path.delimiter = process.platform === 'win32' ? ';' : ':';\n\nconst cp = require('child_process');\nif (!cp.spawnSync) {\n const workerPath = path.join(__dirname, '..', 'spawn.cjs');\n\n let functionExec = null; // break dependencies\n cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {\n if (!functionExec) functionExec = require('function-exec-sync');\n\n return functionExec({ callbacks: true }, workerPath, cmd, args, options || {});\n };\n}\n"],"names":["require","path","delimiter","process","platform","cp","spawnSync","workerPath","join","__dirname","functionExec","spawnSyncPolyfill","cmd","args","options","callbacks"],"mappings":"AAAAA,QAAQ;AACRA,QAAQ;AACRA,QAAQ;AAER,MAAMC,OAAOD,QAAQ;AACrB,IAAI,CAACC,KAAKC,SAAS,EAAED,KAAKC,SAAS,GAAGC,QAAQC,QAAQ,KAAK,UAAU,MAAM;AAE3E,MAAMC,KAAKL,QAAQ;AACnB,IAAI,CAACK,GAAGC,SAAS,EAAE;IACjB,MAAMC,aAAaN,KAAKO,IAAI,CAACC,WAAW,MAAM;IAE9C,IAAIC,eAAe,MAAM,qBAAqB;IAC9CL,GAAGC,SAAS,GAAG,SAASK,kBAAkBC,GAAG,EAAEC,IAAI,EAAEC,OAAO;QAC1D,IAAI,CAACJ,cAAcA,eAAeV,QAAQ;QAE1C,OAAOU,aAAa;YAAEK,WAAW;QAAK,GAAGR,YAAYK,KAAKC,MAAMC,WAAW,CAAC;IAC9E;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -14,12 +14,9 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"types": "./dist/types/index.d.ts"
|
|
21
|
-
},
|
|
22
|
-
"./*": "./*"
|
|
17
|
+
"import": "./dist/esm/index.mjs",
|
|
18
|
+
"require": "./dist/cjs/index.cjs",
|
|
19
|
+
"types": "./dist/types/index.d.ts"
|
|
23
20
|
},
|
|
24
21
|
"main": "dist/cjs/index.cjs",
|
|
25
22
|
"module": "dist/esm/index.mjs",
|
|
@@ -37,10 +34,10 @@
|
|
|
37
34
|
},
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"buffer-v6-polyfill": "^1.0.5",
|
|
40
|
-
"call-once-fn": "^1.0.
|
|
41
|
-
"core-js": "^3.
|
|
37
|
+
"call-once-fn": "^1.0.7",
|
|
38
|
+
"core-js": "^3.40.0",
|
|
42
39
|
"cross-spawn": "^7.0.6",
|
|
43
|
-
"function-exec-sync": "^1.2.
|
|
40
|
+
"function-exec-sync": "^1.2.5",
|
|
44
41
|
"next-tick": "^1.1.0"
|
|
45
42
|
},
|
|
46
43
|
"devDependencies": {
|
|
@@ -48,8 +45,8 @@
|
|
|
48
45
|
"@types/mocha": "^10.0.10",
|
|
49
46
|
"@types/node": "^22.10.2",
|
|
50
47
|
"cr": "^0.1.0",
|
|
51
|
-
"is-version": "^0.2.
|
|
52
|
-
"node-install-release": "^1.9.
|
|
48
|
+
"is-version": "^0.2.7",
|
|
49
|
+
"node-install-release": "^1.9.2",
|
|
53
50
|
"node-resolve-versions": "^1.0.10",
|
|
54
51
|
"node-version-utils": "^1.2.4",
|
|
55
52
|
"pinkie-promise": "^2.0.1"
|