cross-spawn-cb 2.0.1 → 2.0.2

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", {
3
4
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
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 +1,2 @@
1
+ /// <reference types="node" />
1
2
  export { };
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/compat/cross-spawn-cb/src/types.ts"],"sourcesContent":["import type { SpawnOptions as SpawnOptionsBase, SpawnSyncReturns } from 'child_process';\n\nexport type { ChildProcess } from 'child_process';\nexport interface SpawnOptions extends SpawnOptionsBase {\n encoding?: BufferEncoding;\n env?: NodeJS.ProcessEnv;\n input?: string | Buffer;\n}\nexport type SpawnResult = 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"}
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,11 +1,11 @@
1
- import type { SpawnOptions as SpawnOptionsBase, SpawnSyncReturns } from 'child_process';
2
- export type { ChildProcess } from 'child_process';
3
- export interface SpawnOptions extends SpawnOptionsBase {
1
+ import type * as child_process from 'child_process';
2
+ export type ChildProcess = child_process.ChildProcess;
3
+ export interface SpawnOptions extends child_process.SpawnOptions {
4
4
  encoding?: BufferEncoding;
5
5
  env?: NodeJS.ProcessEnv;
6
6
  input?: string | Buffer;
7
7
  }
8
- export type SpawnResult = SpawnSyncReturns<string | Buffer>;
8
+ export type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;
9
9
  export interface SpawnError extends Error {
10
10
  status?: number;
11
11
  stderr?: string | Buffer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Cross spawn with a completion callback",
5
5
  "keywords": [
6
6
  "cross-spawn",
@@ -50,7 +50,7 @@
50
50
  "@types/node": "^22.10.2",
51
51
  "cr": "^0.1.0",
52
52
  "is-version": "^0.2.1",
53
- "node-install-release": "^1.7.5",
53
+ "node-install-release": "^1.7.6",
54
54
  "node-resolve-versions": "^1.0.5",
55
55
  "node-version-utils": "^1.2.1",
56
56
  "pinkie-promise": "^2.0.1"