cross-spawn-cb 2.1.22 → 2.1.24
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/dist/esm/constants.d.mts +1 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/spawn.d.mts +9 -0
- package/dist/esm/spawnSync.d.mts +6 -0
- package/dist/esm/types.d.mts +12 -0
- package/dist/esm/workers/async.d.mts +2 -0
- package/dist/esm/workers/sync.d.mts +2 -0
- package/package.json +9 -8
- package/dist/types/lib/crossSpawn.d.cts +0 -2
- package/dist/types/lib/crossSpawnCompat.d.cts +0 -9
- package/dist/types/lib/spawnSyncPolyfill.d.cts +0 -2
- /package/dist/{types/constants.d.ts → cjs/constants.d.cts} +0 -0
- /package/dist/{types/index.d.ts → cjs/index.d.cts} +0 -0
- /package/dist/{types/spawn.d.ts → cjs/spawn.d.cts} +0 -0
- /package/dist/{types/spawnSync.d.ts → cjs/spawnSync.d.cts} +0 -0
- /package/dist/{types/types.d.ts → cjs/types.d.cts} +0 -0
- /package/dist/{types/workers/async.d.ts → cjs/workers/async.d.cts} +0 -0
- /package/dist/{types/workers/sync.d.ts → cjs/workers/sync.d.cts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spawnKeys: string[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import spawnSync from './spawnSync';
|
|
2
|
+
import type { SpawnCallback, SpawnOptions, SpawnResult } from './types';
|
|
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").default;
|
|
6
|
+
var sync: typeof spawnSync;
|
|
7
|
+
var crossSpawn: any;
|
|
8
|
+
}
|
|
9
|
+
export default spawn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SpawnOptions, SpawnResult } from './types';
|
|
2
|
+
declare function spawnSync(command: string, args: string[], options?: SpawnOptions): SpawnResult;
|
|
3
|
+
declare namespace spawnSync {
|
|
4
|
+
var worker: typeof import("./workers/sync").default;
|
|
5
|
+
}
|
|
6
|
+
export default spawnSync;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 type SpawnResult = child_process.SpawnSyncReturns<string | Buffer>;
|
|
9
|
+
export interface SpawnError extends Error, SpawnResult {
|
|
10
|
+
code?: string;
|
|
11
|
+
}
|
|
12
|
+
export type SpawnCallback = (err?: SpawnError, res?: SpawnResult) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cross-spawn-cb",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.24",
|
|
4
4
|
"description": "Cross spawn with a completion callback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cross-spawn",
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/esm/index.mjs",
|
|
19
|
+
"require": "./dist/cjs/index.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
20
22
|
},
|
|
21
23
|
"main": "dist/cjs/index.cjs",
|
|
22
|
-
"
|
|
23
|
-
"types": "dist/types/index.d.ts",
|
|
24
|
+
"types": "dist/cjs/index.d.cts",
|
|
24
25
|
"files": [
|
|
25
26
|
"dist",
|
|
26
27
|
"assets"
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"cross-spawn": "^7.0.6",
|
|
37
|
-
"function-exec-sync": "^1.2.
|
|
38
|
-
"on-one": "^0.1.
|
|
38
|
+
"function-exec-sync": "^1.2.21",
|
|
39
|
+
"on-one": "^0.1.5"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@types/mocha": "*",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export = spawn;
|
|
2
|
-
declare function spawn(command: any, args: any, options: any): cp.ChildProcessWithoutNullStreams;
|
|
3
|
-
declare namespace spawn {
|
|
4
|
-
export { spawn, spawnSync as sync, parse as _parse, enoent as _enoent };
|
|
5
|
-
}
|
|
6
|
-
import cp = require("child_process");
|
|
7
|
-
declare function spawnSync(command: any, args: any, options: any): any;
|
|
8
|
-
declare function parse(command: any, args: any, options: any): any;
|
|
9
|
-
declare const enoent: any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|