cross-spawn-cb 2.1.23 → 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.
@@ -0,0 +1 @@
1
+ export declare const spawnKeys: string[];
@@ -0,0 +1,4 @@
1
+ export type * from './types';
2
+ export { default } from './spawn';
3
+ export { default as sync } from './spawnSync';
4
+ export { default as crossSpawn } from './lib/crossSpawn.cjs';
@@ -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;
@@ -0,0 +1,2 @@
1
+ import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types';
2
+ export default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): void;
@@ -0,0 +1,2 @@
1
+ import type { SpawnOptions, SpawnResult } from '../types';
2
+ export default function worker(res: SpawnResult, options?: SpawnOptions): SpawnResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cross-spawn-cb",
3
- "version": "2.1.23",
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
- "import": "./dist/esm/index.mjs",
18
- "require": "./dist/cjs/index.cjs",
19
- "types": "./dist/types/index.d.ts"
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
- "module": "dist/esm/index.mjs",
23
- "types": "dist/types/index.d.ts",
24
+ "types": "dist/cjs/index.d.cts",
24
25
  "files": [
25
26
  "dist",
26
27
  "assets"
@@ -35,7 +36,7 @@
35
36
  "dependencies": {
36
37
  "cross-spawn": "^7.0.6",
37
38
  "function-exec-sync": "^1.2.21",
38
- "on-one": "^0.1.4"
39
+ "on-one": "^0.1.5"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@types/mocha": "*",
@@ -1,2 +0,0 @@
1
- declare const _exports: any;
2
- export = _exports;
@@ -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;
@@ -1,2 +0,0 @@
1
- declare function _exports(cmd: any, args: any, options: any): any;
2
- export = _exports;
File without changes
File without changes
File without changes