cross-spawn-cb 2.1.0 → 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.
package/README.md CHANGED
@@ -7,7 +7,6 @@ var assert = require('assert');
7
7
  var spawn = require('cross-spawn-cb');
8
8
 
9
9
  spawn('node', ['--version'], { stdio: 'inherit' }, function (err, res) {
10
- assert.ok(!err, err ? err.message : '');
11
10
  done();
12
11
  });
13
12
  ```
@@ -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 spawn = path.join(__dirname, '..', 'spawn.cjs');
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
- }, spawn, cmd, args, options || {});
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 spawn = 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 }, spawn, cmd, args, options || {});\n };\n}\n"],"names":["require","path","delimiter","process","platform","cp","spawnSync","spawn","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,QAAQN,KAAKO,IAAI,CAACC,WAAW,MAAM;IAEzC,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,OAAOK,KAAKC,MAAMC,WAAW,CAAC;IACzE;AACF"}
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"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  "use strict";
3
2
  Object.defineProperty(exports, "__esModule", {
4
3
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/types.ts"],"sourcesContent":["/// <reference types=\"node\" />\n\nimport type * as child_process from 'child_process';\n\nexport type ChildProcess = child_process.ChildProcess;\nexport interface SpawnOptions extends child_process.SpawnOptions {\n encoding?: BufferEncoding;\n env?: NodeJS.ProcessEnv;\n input?: string | Buffer;\n}\nexport type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;\n\nexport interface SpawnError extends Error {\n status?: number;\n stderr?: string | Buffer;\n code?: string;\n}\nexport type SpawnCallback = (err?: SpawnError, res?: SpawnResult) => void;\n"],"names":[],"mappings":"AAAA,8BAA8B"}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -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 spawn = path.join(__dirname, '..', 'spawn.cjs');
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
- }, spawn, cmd, args, options || {});
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 spawn = 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 }, spawn, cmd, args, options || {});\n };\n}\n"],"names":["require","path","delimiter","process","platform","cp","spawnSync","spawn","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,QAAQN,KAAKO,IAAI,CAACC,WAAW,MAAM;IAEzC,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,OAAOK,KAAKC,MAAMC,WAAW,CAAC;IACzE;AACF"}
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"}
@@ -1,2 +1 @@
1
- /// <reference types="node" />
2
1
  export { };
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/types.ts"],"sourcesContent":["/// <reference types=\"node\" />\n\nimport type * as child_process from 'child_process';\n\nexport type ChildProcess = child_process.ChildProcess;\nexport interface SpawnOptions extends child_process.SpawnOptions {\n encoding?: BufferEncoding;\n env?: NodeJS.ProcessEnv;\n input?: string | Buffer;\n}\nexport type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;\n\nexport interface SpawnError extends Error {\n status?: number;\n stderr?: string | Buffer;\n code?: string;\n}\nexport type SpawnCallback = (err?: SpawnError, res?: SpawnResult) => void;\n"],"names":[],"mappings":"AAAA,8BAA8B;AAiB9B,WAA0E"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/types.ts"],"sourcesContent":["import type * as child_process from 'child_process';\n\nexport type ChildProcess = child_process.ChildProcess;\nexport interface SpawnOptions extends child_process.SpawnOptions {\n encoding?: BufferEncoding;\n env?: NodeJS.ProcessEnv;\n input?: string | Buffer;\n}\nexport type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;\n\nexport interface SpawnError extends Error {\n status?: number;\n stderr?: string | Buffer;\n code?: string;\n}\nexport type SpawnCallback = (err?: SpawnError, res?: SpawnResult) => void;\n"],"names":[],"mappings":"AAeA,WAA0E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "2.1.0",
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
- "import": "./dist/esm/index.mjs",
19
- "require": "./dist/cjs/index.cjs",
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.6",
41
- "core-js": "^3.39.0",
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.1.12",
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.5",
52
- "node-install-release": "^1.9.0",
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"