cross-spawn-cb 2.4.4 → 2.4.5
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/package.json +2 -2
- package/dist/cjs/constants.d.cts +0 -1
- package/dist/cjs/crossSpawn.d.cts +0 -9
- package/dist/cjs/index.d.cts +0 -4
- package/dist/cjs/spawn.d.cts +0 -9
- package/dist/cjs/spawnSync.d.cts +0 -6
- package/dist/cjs/types.d.cts +0 -34
- package/dist/cjs/workers/async.d.cts +0 -2
- package/dist/cjs/workers/sync.d.cts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"main": "dist/cjs/index.js",
|
|
24
|
-
"types": "dist/cjs/index.d.
|
|
24
|
+
"types": "dist/cjs/index.d.ts",
|
|
25
25
|
"files": [
|
|
26
26
|
"dist",
|
|
27
27
|
"assets"
|
package/dist/cjs/constants.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const spawnKeys: string[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ChildProcess } from 'child_process';
|
|
2
|
-
import type { Enoent, Parsed, SpawnOptions, SpawnResult, SpawnSyncOptions } from './types.js';
|
|
3
|
-
declare function spawn(command: string, args: string[], options?: SpawnOptions): ChildProcess;
|
|
4
|
-
declare namespace spawn {
|
|
5
|
-
var sync: (command: string, args: string[], options?: SpawnSyncOptions) => SpawnResult;
|
|
6
|
-
var _parse: (command: string, args: string[], options?: SpawnOptions | SpawnSyncOptions) => Parsed;
|
|
7
|
-
var _enoent: Enoent;
|
|
8
|
-
}
|
|
9
|
-
export default spawn;
|
package/dist/cjs/index.d.cts
DELETED
package/dist/cjs/spawn.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import spawnSync from './spawnSync.js';
|
|
2
|
-
import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.js';
|
|
3
|
-
declare function spawn(command: string, args: string[], options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): undefined | Promise<SpawnResult>;
|
|
4
|
-
declare namespace spawn {
|
|
5
|
-
var worker: typeof import("./workers/async.js").default;
|
|
6
|
-
var sync: typeof spawnSync;
|
|
7
|
-
var crossSpawn: typeof import("./crossSpawn.js").default;
|
|
8
|
-
}
|
|
9
|
-
export default spawn;
|
package/dist/cjs/spawnSync.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SpawnResult, SpawnSyncOptions } from './types.js';
|
|
2
|
-
declare function spawnSync(command: string, args: string[], options?: SpawnSyncOptions): SpawnResult;
|
|
3
|
-
declare namespace spawnSync {
|
|
4
|
-
var worker: typeof import("./workers/sync.js").default;
|
|
5
|
-
}
|
|
6
|
-
export default spawnSync;
|
package/dist/cjs/types.d.cts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
encoding?: BufferEncoding;
|
|
5
|
-
env?: NodeJS.ProcessEnv;
|
|
6
|
-
input?: string | Buffer;
|
|
7
|
-
}
|
|
8
|
-
export interface SpawnSyncOptions extends child_process.SpawnSyncOptions {
|
|
9
|
-
encoding?: BufferEncoding;
|
|
10
|
-
env?: NodeJS.ProcessEnv;
|
|
11
|
-
input?: string | Buffer;
|
|
12
|
-
}
|
|
13
|
-
export type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;
|
|
14
|
-
export interface Parsed {
|
|
15
|
-
command: string;
|
|
16
|
-
args: string[];
|
|
17
|
-
options: SpawnOptions | SpawnSyncOptions;
|
|
18
|
-
}
|
|
19
|
-
export interface NotFoundError extends Error {
|
|
20
|
-
code?: string;
|
|
21
|
-
errno?: string;
|
|
22
|
-
syscall?: string;
|
|
23
|
-
path?: string;
|
|
24
|
-
spawnargs?: string[];
|
|
25
|
-
}
|
|
26
|
-
export interface SpawnError extends NotFoundError, SpawnResult {
|
|
27
|
-
}
|
|
28
|
-
export type SpawnCallback = (err?: SpawnError, res?: SpawnResult) => void;
|
|
29
|
-
export interface Enoent {
|
|
30
|
-
hookChildProcess: (cp: ChildProcess, parsed: Parsed) => undefined;
|
|
31
|
-
verifyENOENT: (status: number, parsed: Parsed) => NotFoundError | null;
|
|
32
|
-
verifyENOENTSync: (status: number, parsed: Parsed) => NotFoundError | null;
|
|
33
|
-
notFoundError: (cp: ChildProcess, parsed: Parsed) => NotFoundError;
|
|
34
|
-
}
|