spawn-term 1.1.3 → 1.1.4
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/cjs/{components → src/components}/App.d.ts +1 -1
- package/dist/{esm → cjs/src}/components/ChildProcess.d.ts +1 -1
- package/dist/cjs/{components → src/components}/Spinner.d.ts +1 -1
- package/dist/cjs/{createApp.d.ts → src/createApp.d.ts} +1 -1
- package/dist/cjs/src/index-cjs.d.ts +6 -0
- package/dist/cjs/src/index-esm.d.ts +6 -0
- package/dist/cjs/{spawnTerminal.d.ts → src/spawnTerminal.d.ts} +1 -1
- package/dist/cjs/{state → src/state}/Store.d.ts +1 -1
- package/dist/{esm → cjs/src}/worker.d.ts +1 -1
- package/dist/esm/{components → src/components}/App.d.ts +1 -1
- package/dist/{cjs → esm/src}/components/ChildProcess.d.ts +1 -1
- package/dist/esm/{components → src/components}/Spinner.d.ts +1 -1
- package/dist/esm/{createApp.d.ts → src/createApp.d.ts} +1 -1
- package/dist/esm/src/index-cjs.d.ts +6 -0
- package/dist/esm/src/index-esm.d.ts +6 -0
- package/dist/esm/{spawnTerminal.d.ts → src/spawnTerminal.d.ts} +1 -1
- package/dist/esm/{state → src/state}/Store.d.ts +1 -1
- package/dist/{cjs → esm/src}/worker.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/App.d.cts +0 -5
- package/dist/cjs/components/ChildProcess.d.cts +0 -6
- package/dist/cjs/components/Spinner.d.cts +0 -5
- package/dist/cjs/createApp.d.cts +0 -7
- package/dist/cjs/index-cjs.d.cts +0 -6
- package/dist/cjs/index-cjs.d.ts +0 -6
- package/dist/cjs/index-esm.d.cts +0 -6
- package/dist/cjs/index-esm.d.ts +0 -6
- package/dist/cjs/lib/addLines.d.cts +0 -3
- package/dist/cjs/lib/ansiRegex.d.cts +0 -3
- package/dist/cjs/lib/concatWritable.d.cts +0 -2
- package/dist/cjs/lib/figures.d.cts +0 -10
- package/dist/cjs/lib/formatArguments.d.cts +0 -2
- package/dist/cjs/spawnTerminal.d.cts +0 -2
- package/dist/cjs/state/Store.d.cts +0 -11
- package/dist/cjs/types.d.cts +0 -24
- package/dist/cjs/worker.d.cts +0 -2
- package/dist/esm/index-cjs.d.ts +0 -6
- package/dist/esm/index-esm.d.ts +0 -6
- /package/dist/cjs/{lib → src/lib}/addLines.d.ts +0 -0
- /package/dist/cjs/{lib → src/lib}/ansiRegex.d.ts +0 -0
- /package/dist/cjs/{lib → src/lib}/concatWritable.d.ts +0 -0
- /package/dist/cjs/{lib → src/lib}/figures.d.ts +0 -0
- /package/dist/cjs/{lib → src/lib}/formatArguments.d.ts +0 -0
- /package/dist/cjs/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/esm/{lib → src/lib}/addLines.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/ansiRegex.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/concatWritable.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/figures.d.ts +0 -0
- /package/dist/esm/{lib → src/lib}/formatArguments.d.ts +0 -0
- /package/dist/esm/{types.d.ts → src/types.d.ts} +0 -0
|
@@ -2,4 +2,4 @@ export type SpinnerProps = {
|
|
|
2
2
|
interval: number;
|
|
3
3
|
frames: string[];
|
|
4
4
|
};
|
|
5
|
-
export default function Spinner({ interval, frames }: SpinnerProps): import("react").JSX.Element;
|
|
5
|
+
export default function Spinner({ interval, frames }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as figures } from './lib/figures.js';
|
|
2
|
+
export { default as formatArguments } from './lib/formatArguments.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
import type { default as spawnTerminal } from './spawnTerminal.js';
|
|
5
|
+
declare const _default: typeof spawnTerminal;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as figures } from './lib/figures.js';
|
|
2
|
+
export { default as formatArguments } from './lib/formatArguments.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
import { default as spawnTerminal } from './spawnTerminal.js';
|
|
5
|
+
declare const _default: typeof spawnTerminal;
|
|
6
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SpawnOptions, SpawnResult, TerminalCallback, TerminalOptions } from './types.
|
|
1
|
+
import type { SpawnOptions, SpawnResult, TerminalCallback, TerminalOptions } from './types.js';
|
|
2
2
|
export default function spawnTerminal(command: string, args: string[], spawnOptions: SpawnOptions, options?: TerminalOptions | TerminalCallback, callback?: TerminalCallback): undefined | Promise<SpawnResult>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SpawnOptions, TerminalCallback, TerminalOptions } from './types.
|
|
1
|
+
import type { SpawnOptions, TerminalCallback, TerminalOptions } from './types.js';
|
|
2
2
|
export default function spawnTerminal(command: string, args: string[], spawnOptions: SpawnOptions, options: TerminalOptions, callback: TerminalCallback): undefined;
|
|
@@ -2,4 +2,4 @@ export type SpinnerProps = {
|
|
|
2
2
|
interval: number;
|
|
3
3
|
frames: string[];
|
|
4
4
|
};
|
|
5
|
-
export default function Spinner({ interval, frames }: SpinnerProps): import("react").JSX.Element;
|
|
5
|
+
export default function Spinner({ interval, frames }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as figures } from './lib/figures.js';
|
|
2
|
+
export { default as formatArguments } from './lib/formatArguments.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
import type { default as spawnTerminal } from './spawnTerminal.js';
|
|
5
|
+
declare const _default: typeof spawnTerminal;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as figures } from './lib/figures.js';
|
|
2
|
+
export { default as formatArguments } from './lib/formatArguments.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
import { default as spawnTerminal } from './spawnTerminal.js';
|
|
5
|
+
declare const _default: typeof spawnTerminal;
|
|
6
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SpawnOptions, SpawnResult, TerminalCallback, TerminalOptions } from './types.
|
|
1
|
+
import type { SpawnOptions, SpawnResult, TerminalCallback, TerminalOptions } from './types.js';
|
|
2
2
|
export default function spawnTerminal(command: string, args: string[], spawnOptions: SpawnOptions, options?: TerminalOptions | TerminalCallback, callback?: TerminalCallback): undefined | Promise<SpawnResult>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SpawnOptions, TerminalCallback, TerminalOptions } from './types.
|
|
1
|
+
import type { SpawnOptions, TerminalCallback, TerminalOptions } from './types.js';
|
|
2
2
|
export default function spawnTerminal(command: string, args: string[], spawnOptions: SpawnOptions, options: TerminalOptions, callback: TerminalCallback): undefined;
|
package/package.json
CHANGED
package/dist/cjs/createApp.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as Store } from './state/Store.ts';
|
|
2
|
-
export type RetainCallback = (app: Store) => undefined;
|
|
3
|
-
export type ReleaseCallback = () => undefined;
|
|
4
|
-
export default function createApp(): {
|
|
5
|
-
retain(fn: RetainCallback): undefined;
|
|
6
|
-
release(cb: ReleaseCallback): undefined;
|
|
7
|
-
};
|
package/dist/cjs/index-cjs.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import type { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
package/dist/cjs/index-cjs.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import type { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
package/dist/cjs/index-esm.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
package/dist/cjs/index-esm.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { SpawnOptions, SpawnResult, TerminalCallback, TerminalOptions } from './types.ts';
|
|
2
|
-
export default function spawnTerminal(command: string, args: string[], spawnOptions: SpawnOptions, options?: TerminalOptions | TerminalCallback, callback?: TerminalCallback): undefined | Promise<SpawnResult>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ChildProcess } from '../types.ts';
|
|
2
|
-
export type RenderFunction = () => void;
|
|
3
|
-
export type StoreData = ChildProcess[];
|
|
4
|
-
export default class Store {
|
|
5
|
-
processes: ChildProcess[];
|
|
6
|
-
onRender: RenderFunction;
|
|
7
|
-
constructor(onRender: RenderFunction);
|
|
8
|
-
data(): StoreData;
|
|
9
|
-
addProcess(process: ChildProcess): void;
|
|
10
|
-
updateProcess(process: ChildProcess): void;
|
|
11
|
-
}
|
package/dist/cjs/types.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type { SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from 'cross-spawn-cb';
|
|
2
|
-
import type { SpawnError, SpawnResult } from 'cross-spawn-cb';
|
|
3
|
-
export type TerminalOptions = {
|
|
4
|
-
group?: string;
|
|
5
|
-
expanded?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type TerminalCallback = (error?: SpawnError, result?: SpawnResult) => undefined;
|
|
8
|
-
export declare const LineType: {
|
|
9
|
-
readonly stdout: 1;
|
|
10
|
-
readonly stderr: 2;
|
|
11
|
-
};
|
|
12
|
-
export type Line = {
|
|
13
|
-
type: (typeof LineType)[keyof typeof LineType];
|
|
14
|
-
text: string;
|
|
15
|
-
};
|
|
16
|
-
export type State = 'running' | 'error' | 'success';
|
|
17
|
-
export type ChildProcess = {
|
|
18
|
-
id: string;
|
|
19
|
-
group?: string;
|
|
20
|
-
title: string;
|
|
21
|
-
state: State;
|
|
22
|
-
lines: Line[];
|
|
23
|
-
expanded?: boolean;
|
|
24
|
-
};
|
package/dist/cjs/worker.d.cts
DELETED
package/dist/esm/index-cjs.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import type { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
package/dist/esm/index-esm.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as figures } from './lib/figures.ts';
|
|
2
|
-
export { default as formatArguments } from './lib/formatArguments.ts';
|
|
3
|
-
export * from './types.ts';
|
|
4
|
-
import { default as spawnTerminal } from './spawnTerminal.ts';
|
|
5
|
-
declare const _default: typeof spawnTerminal;
|
|
6
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|