cross-spawn-cb 1.5.2 → 1.5.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.
- package/assets/cross-spawn-6.0.5.js +2132 -13
- package/dist/cjs/spawn.js +1 -5
- package/dist/cjs/spawn.js.map +1 -1
- package/package.json +3 -4
- package/dist/cjs/polyfills.js +0 -29
- package/dist/cjs/polyfills.js.map +0 -1
- package/dist/types/polyfills.d.cts +0 -1
package/dist/cjs/spawn.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var major = +process.versions.node.split('.')[0];
|
|
3
|
-
|
|
4
|
-
require('./polyfills.js');
|
|
5
|
-
return require('../../assets/cross-spawn-6.0.5.js');
|
|
6
|
-
}
|
|
7
|
-
module.exports = major <= 7 ? loadPolyFills() : require('cross-spawn');
|
|
3
|
+
module.exports = major <= 7 ? require('../../assets/cross-spawn-6.0.5.js') : require('cross-spawn');
|
|
8
4
|
/* 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; }
|
package/dist/cjs/spawn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/@compat/cross-spawn-cb/src/spawn.cjs"],"sourcesContent":["const major = +process.versions.node.split('.')[0];\n\
|
|
1
|
+
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/@compat/cross-spawn-cb/src/spawn.cjs"],"sourcesContent":["const major = +process.versions.node.split('.')[0];\n\nmodule.exports = major <= 7 ? require('../../assets/cross-spawn-6.0.5.js') : require('cross-spawn');\n"],"names":["major","process","versions","node","split","module","exports","require"],"mappings":";AAAA,IAAMA,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAElDC,OAAOC,OAAO,GAAGN,SAAS,IAAIO,QAAQ,uCAAuCA,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -29,11 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"buffer-v6-polyfill": "^1.0.5",
|
|
31
31
|
"call-once-fn": "^1.0.1",
|
|
32
|
+
"core-js": "^3.39.0",
|
|
32
33
|
"cross-spawn": "^7.0.6",
|
|
33
34
|
"function-exec-sync": "^1.1.2",
|
|
34
|
-
"next-tick": "^1.1.0"
|
|
35
|
-
"object-assign": "^4.1.1",
|
|
36
|
-
"object-keys": "^1.1.1"
|
|
35
|
+
"next-tick": "^1.1.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@biomejs/biome": "^1.9.4",
|
package/dist/cjs/polyfills.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
if (!Object.assign) Object.assign = require('object-assign');
|
|
3
|
-
require('object-keys');
|
|
4
|
-
if (!Array.prototype.find) Array.prototype.find = function ArrayFind(predicate) {
|
|
5
|
-
for(var i = 0; i < this.length; i++){
|
|
6
|
-
if (predicate.call(this, this[i], i, this)) return this[i];
|
|
7
|
-
}
|
|
8
|
-
return null;
|
|
9
|
-
};
|
|
10
|
-
require('buffer-v6-polyfill');
|
|
11
|
-
var path = require('path');
|
|
12
|
-
if (!path.delimiter) {
|
|
13
|
-
var isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
14
|
-
path.delimiter = isWindows ? ';' : ':';
|
|
15
|
-
}
|
|
16
|
-
// early node is missing spawnSync
|
|
17
|
-
var cp = require('child_process');
|
|
18
|
-
if (!cp.spawnSync) {
|
|
19
|
-
var path1 = require('path');
|
|
20
|
-
var spawnCallback = path1.join(__dirname, 'spawnCallback.js');
|
|
21
|
-
var functionExec = null; // break dependencies
|
|
22
|
-
cp.spawnSync = function spawnSyncPolyfill(cmd, args, options) {
|
|
23
|
-
if (!functionExec) functionExec = require('function-exec-sync');
|
|
24
|
-
return functionExec({
|
|
25
|
-
callbacks: true
|
|
26
|
-
}, spawnCallback, cmd, args, options || {});
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/* 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/@compat/cross-spawn-cb/src/polyfills.cjs"],"sourcesContent":["if (!Object.assign) Object.assign = require('object-assign');\nrequire('object-keys');\nif (!Array.prototype.find)\n Array.prototype.find = function ArrayFind(predicate) {\n for (let i = 0; i < this.length; i++) {\n if (predicate.call(this, this[i], i, this)) return this[i];\n }\n return null;\n };\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\n\nif (!path.delimiter) {\n const isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n path.delimiter = isWindows ? ';' : ':';\n}\n\n// 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"],"names":["Object","assign","require","Array","prototype","find","ArrayFind","predicate","i","length","call","path","delimiter","isWindows","process","platform","test","env","OSTYPE","cp","spawnSync","spawnCallback","join","__dirname","functionExec","spawnSyncPolyfill","cmd","args","options","callbacks"],"mappings":";AAAA,IAAI,CAACA,OAAOC,MAAM,EAAED,OAAOC,MAAM,GAAGC,QAAQ;AAC5CA,QAAQ;AACR,IAAI,CAACC,MAAMC,SAAS,CAACC,IAAI,EACvBF,MAAMC,SAAS,CAACC,IAAI,GAAG,SAASC,UAAUC,SAAS;IACjD,IAAK,IAAIC,IAAI,GAAGA,IAAI,IAAI,CAACC,MAAM,EAAED,IAAK;QACpC,IAAID,UAAUG,IAAI,CAAC,IAAI,EAAE,IAAI,CAACF,EAAE,EAAEA,GAAG,IAAI,GAAG,OAAO,IAAI,CAACA,EAAE;IAC5D;IACA,OAAO;AACT;AACFN,QAAQ;AAER,IAAMS,OAAOT,QAAQ;AAErB,IAAI,CAACS,KAAKC,SAAS,EAAE;IACnB,IAAMC,YAAYC,QAAQC,QAAQ,KAAK,WAAW,kBAAkBC,IAAI,CAACF,QAAQG,GAAG,CAACC,MAAM;IAC3FP,KAAKC,SAAS,GAAGC,YAAY,MAAM;AACrC;AAEA,kCAAkC;AAClC,IAAMM,KAAKjB,QAAQ;AACnB,IAAI,CAACiB,GAAGC,SAAS,EAAE;IACjB,IAAMT,QAAOT,QAAQ;IACrB,IAAMmB,gBAAgBV,MAAKW,IAAI,CAACC,WAAW;IAE3C,IAAIC,eAAe,MAAM,qBAAqB;IAC9CL,GAAGC,SAAS,GAAG,SAASK,kBAAkBC,GAAG,EAAEC,IAAI,EAAEC,OAAO;QAC1D,IAAI,CAACJ,cAAcA,eAAetB,QAAQ;QAC1C,OAAOsB,aAAa;YAAEK,WAAW;QAAK,GAAGR,eAAeK,KAAKC,MAAMC,WAAW,CAAC;IACjF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|