cross-spawn-cb 2.4.3 → 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.
@@ -1,5 +1,5 @@
1
1
  import type { ChildProcess } from 'child_process';
2
- import type { Enoent, Parsed, SpawnOptions, SpawnResult, SpawnSyncOptions } from './types.ts';
2
+ import type { Enoent, Parsed, SpawnOptions, SpawnResult, SpawnSyncOptions } from './types.js';
3
3
  declare function spawn(command: string, args: string[], options?: SpawnOptions): ChildProcess;
4
4
  declare namespace spawn {
5
5
  var sync: (command: string, args: string[], options?: SpawnSyncOptions) => SpawnResult;
@@ -1,4 +1,4 @@
1
- export { default as crossSpawn } from './crossSpawn.ts';
2
- export { default, default as spawn } from './spawn.ts';
3
- export { default as sync } from './spawnSync.ts';
4
- export type * from './types.ts';
1
+ export { default as crossSpawn } from './crossSpawn.js';
2
+ export { default, default as spawn } from './spawn.js';
3
+ export { default as sync } from './spawnSync.js';
4
+ export type * from './types.js';
@@ -1,9 +1,9 @@
1
- import spawnSync from './spawnSync.ts';
2
- import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.ts';
1
+ import spawnSync from './spawnSync.js';
2
+ import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.js';
3
3
  declare function spawn(command: string, args: string[], options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): undefined | Promise<SpawnResult>;
4
4
  declare namespace spawn {
5
- var worker: typeof import("./workers/async.ts").default;
5
+ var worker: typeof import("./workers/async.js").default;
6
6
  var sync: typeof spawnSync;
7
- var crossSpawn: typeof import("./crossSpawn.ts").default;
7
+ var crossSpawn: typeof import("./crossSpawn.js").default;
8
8
  }
9
9
  export default spawn;
@@ -1,6 +1,6 @@
1
- import type { SpawnResult, SpawnSyncOptions } from './types.ts';
1
+ import type { SpawnResult, SpawnSyncOptions } from './types.js';
2
2
  declare function spawnSync(command: string, args: string[], options?: SpawnSyncOptions): SpawnResult;
3
3
  declare namespace spawnSync {
4
- var worker: typeof import("./workers/sync.ts").default;
4
+ var worker: typeof import("./workers/sync.js").default;
5
5
  }
6
6
  export default spawnSync;
@@ -1,2 +1,2 @@
1
- import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types.ts';
1
+ import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types.js';
2
2
  export default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): void;
@@ -1,2 +1,2 @@
1
- import type { SpawnOptions, SpawnResult } from '../types.ts';
1
+ import type { SpawnOptions, SpawnResult } from '../types.js';
2
2
  export default function worker(res: SpawnResult, options?: SpawnOptions): SpawnResult;
@@ -1,5 +1,5 @@
1
1
  import type { ChildProcess } from 'child_process';
2
- import type { Enoent, Parsed, SpawnOptions, SpawnResult, SpawnSyncOptions } from './types.ts';
2
+ import type { Enoent, Parsed, SpawnOptions, SpawnResult, SpawnSyncOptions } from './types.js';
3
3
  declare function spawn(command: string, args: string[], options?: SpawnOptions): ChildProcess;
4
4
  declare namespace spawn {
5
5
  var sync: (command: string, args: string[], options?: SpawnSyncOptions) => SpawnResult;
@@ -1,4 +1,4 @@
1
- export { default as crossSpawn } from './crossSpawn.ts';
2
- export { default, default as spawn } from './spawn.ts';
3
- export { default as sync } from './spawnSync.ts';
4
- export type * from './types.ts';
1
+ export { default as crossSpawn } from './crossSpawn.js';
2
+ export { default, default as spawn } from './spawn.js';
3
+ export { default as sync } from './spawnSync.js';
4
+ export type * from './types.js';
@@ -1,9 +1,9 @@
1
- import spawnSync from './spawnSync.ts';
2
- import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.ts';
1
+ import spawnSync from './spawnSync.js';
2
+ import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.js';
3
3
  declare function spawn(command: string, args: string[], options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): undefined | Promise<SpawnResult>;
4
4
  declare namespace spawn {
5
- var worker: typeof import("./workers/async.ts").default;
5
+ var worker: typeof import("./workers/async.js").default;
6
6
  var sync: typeof spawnSync;
7
- var crossSpawn: typeof import("./crossSpawn.ts").default;
7
+ var crossSpawn: typeof import("./crossSpawn.js").default;
8
8
  }
9
9
  export default spawn;
@@ -1,6 +1,6 @@
1
- import type { SpawnResult, SpawnSyncOptions } from './types.ts';
1
+ import type { SpawnResult, SpawnSyncOptions } from './types.js';
2
2
  declare function spawnSync(command: string, args: string[], options?: SpawnSyncOptions): SpawnResult;
3
3
  declare namespace spawnSync {
4
- var worker: typeof import("./workers/sync.ts").default;
4
+ var worker: typeof import("./workers/sync.js").default;
5
5
  }
6
6
  export default spawnSync;
@@ -1,2 +1,2 @@
1
- import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types.ts';
1
+ import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types.js';
2
2
  export default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): void;
@@ -1,2 +1,2 @@
1
- import type { SpawnOptions, SpawnResult } from '../types.ts';
1
+ import type { SpawnOptions, SpawnResult } from '../types.js';
2
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.4.3",
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.cts",
24
+ "types": "dist/cjs/index.d.ts",
25
25
  "files": [
26
26
  "dist",
27
27
  "assets"
@@ -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.ts';
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;
@@ -1,4 +0,0 @@
1
- export { default as crossSpawn } from './crossSpawn.ts';
2
- export { default, default as spawn } from './spawn.ts';
3
- export { default as sync } from './spawnSync.ts';
4
- export type * from './types.ts';
@@ -1,9 +0,0 @@
1
- import spawnSync from './spawnSync.ts';
2
- import type { SpawnCallback, SpawnOptions, SpawnResult } from './types.ts';
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.ts").default;
6
- var sync: typeof spawnSync;
7
- var crossSpawn: typeof import("./crossSpawn.ts").default;
8
- }
9
- export default spawn;
@@ -1,6 +0,0 @@
1
- import type { SpawnResult, SpawnSyncOptions } from './types.ts';
2
- declare function spawnSync(command: string, args: string[], options?: SpawnSyncOptions): SpawnResult;
3
- declare namespace spawnSync {
4
- var worker: typeof import("./workers/sync.ts").default;
5
- }
6
- export default spawnSync;
@@ -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
- }
@@ -1,2 +0,0 @@
1
- import type { ChildProcess, SpawnCallback, SpawnOptions } from '../types.ts';
2
- export default function worker(cp: ChildProcess, options?: SpawnOptions | SpawnCallback, callback?: SpawnCallback): void;
@@ -1,2 +0,0 @@
1
- import type { SpawnOptions, SpawnResult } from '../types.ts';
2
- export default function worker(res: SpawnResult, options?: SpawnOptions): SpawnResult;