cross-spawn-cb 1.1.0 → 1.1.1
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.
|
@@ -142,7 +142,7 @@ function requireMode() {
|
|
|
142
142
|
|
|
143
143
|
var core;
|
|
144
144
|
|
|
145
|
-
if (process.platform === 'win32' || commonjsGlobal.TESTING_WINDOWS) {
|
|
145
|
+
if (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE) || commonjsGlobal.TESTING_WINDOWS) {
|
|
146
146
|
core = requireWindows();
|
|
147
147
|
} else {
|
|
148
148
|
core = requireMode();
|
|
@@ -201,7 +201,7 @@ function sync$1(path, options) {
|
|
|
201
201
|
|
|
202
202
|
var which_1 = which$1;
|
|
203
203
|
which$1.sync = whichSync;
|
|
204
|
-
var isWindows = process.platform === 'win32' || process.env.OSTYPE === 'cygwin' || process.env.OSTYPE === 'msys';
|
|
204
|
+
var isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE) || process.env.OSTYPE === 'cygwin' || process.env.OSTYPE === 'msys';
|
|
205
205
|
var path$2 = require$$0__default$1["default"];
|
|
206
206
|
var COLON = isWindows ? ';' : ':';
|
|
207
207
|
var isexe = isexe_1;
|
|
@@ -465,7 +465,7 @@ var resolveCommand = resolveCommand_1;
|
|
|
465
465
|
var escape = _escape;
|
|
466
466
|
var readShebang = readShebang_1;
|
|
467
467
|
var semver = require$$5__default["default"];
|
|
468
|
-
var isWin$1 = process.platform === 'win32';
|
|
468
|
+
var isWin$1 = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
469
469
|
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
470
470
|
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
|
|
471
471
|
|
|
@@ -580,7 +580,7 @@ function parse$1(command, args, options) {
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
var parse_1 = parse$1;
|
|
583
|
-
var isWin = process.platform === 'win32';
|
|
583
|
+
var isWin = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
584
584
|
|
|
585
585
|
function notFoundError(original, syscall) {
|
|
586
586
|
return Object.assign(new Error("".concat(syscall, " ").concat(original.command, " ENOENT")), {
|
package/dist/cjs/polyfills.js
CHANGED
|
@@ -4,7 +4,10 @@ require('core-js/actual/object/keys');
|
|
|
4
4
|
require('core-js/actual/array/find');
|
|
5
5
|
require('buffer-v6-polyfill');
|
|
6
6
|
var path = require('path');
|
|
7
|
-
if (!path.delimiter)
|
|
7
|
+
if (!path.delimiter) {
|
|
8
|
+
var isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
|
|
9
|
+
path.delimiter = isWindows ? ';' : ':';
|
|
10
|
+
}
|
|
8
11
|
var cp = require('child_process');
|
|
9
12
|
if (!cp.spawnSync) {
|
|
10
13
|
var spawnCallback = path.join(__dirname, 'spawnCallback.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["polyfills.cjs"],"sourcesContent":["require('core-js/actual/object/assign');\nrequire('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter)
|
|
1
|
+
{"version":3,"sources":["polyfills.cjs"],"sourcesContent":["require('core-js/actual/object/assign');\nrequire('core-js/actual/object/keys');\nrequire('core-js/actual/array/find');\nrequire('buffer-v6-polyfill');\n\nconst path = require('path');\nif (!path.delimiter) {\n const isWindows = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);\n path.delimiter = isWindows ? ';' : ':';\n}\n\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\n return functionExec({ callbacks: true }, spawnCallback, cmd, args, options || {});\n };\n}\n"],"names":["require","path","delimiter","isWindows","process","platform","test","env","OSTYPE","cp","spawnSync","spawnCallback","join","__dirname","functionExec","spawnSyncPolyfill","cmd","args","options","callbacks"],"mappings":";AAAAA,QAAQ;AACRA,QAAQ;AACRA,QAAQ;AACRA,QAAQ;AAER,IAAMC,OAAOD,QAAQ;AACrB,IAAI,CAACC,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,IAAMM,KAAKT,QAAQ;AACnB,IAAI,CAACS,GAAGC,SAAS,EAAE;IACjB,IAAMC,gBAAgBV,KAAKW,IAAI,CAACC,WAAW;IAE3C,IAAIC,eAAe,MAAM,qBAAqB;IAC9CL,GAAGC,SAAS,GAAG,SAASK,kBAAkBC,GAAG,EAAEC,IAAI,EAAEC,OAAO;QAC1D,IAAI,CAACJ,cAAcA,eAAed,QAAQ;QAE1C,OAAOc,aAAa;YAAEK,WAAW;QAAK,GAAGR,eAAeK,KAAKC,MAAMC,WAAW,CAAC;IACjF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"cr": "^0.1.0",
|
|
43
43
|
"depcheck": "^1.4.7",
|
|
44
44
|
"is-version": "^0.2.1",
|
|
45
|
-
"mocha-compat": "^3.
|
|
46
|
-
"node-install-release": "^1.
|
|
45
|
+
"mocha-compat": "^3.6.1",
|
|
46
|
+
"node-install-release": "^1.4.0",
|
|
47
47
|
"node-resolve-versions": "^1.0.0",
|
|
48
|
-
"node-version-utils": "^0.
|
|
49
|
-
"ts-dev-stack": "^0.
|
|
48
|
+
"node-version-utils": "^1.0.0",
|
|
49
|
+
"ts-dev-stack": "^0.17.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=0.8"
|