@arcanejs/toolkit 1.1.0 → 1.1.1
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/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -32,13 +32,13 @@ declare class Server {
|
|
|
32
32
|
private readonly staticFiles;
|
|
33
33
|
private readonly entrypointFilename;
|
|
34
34
|
private title;
|
|
35
|
-
constructor(options:
|
|
35
|
+
constructor(options: ToolkitOptions, onNewConnection: (connection: Connection) => void, onClosedConnection: (connection: Connection) => void, onMessage: (connection: Connection, message: ClientMessage) => void, log?: Logger | undefined);
|
|
36
36
|
handleHttpRequest: (req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>;
|
|
37
37
|
private sendStaticFile;
|
|
38
38
|
handleWsConnection: <S extends WebSocket>(ws: S) => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
interface
|
|
41
|
+
interface ToolkitOptions {
|
|
42
42
|
/**
|
|
43
43
|
* What window title should the toolkit be initialized with?
|
|
44
44
|
*/
|
|
@@ -107,7 +107,7 @@ declare class Toolkit implements Parent {
|
|
|
107
107
|
private readonly componentIDMap;
|
|
108
108
|
private readonly connections;
|
|
109
109
|
private rootGroup;
|
|
110
|
-
constructor(options?: Partial<
|
|
110
|
+
constructor(options?: Partial<ToolkitOptions>);
|
|
111
111
|
start: (opts: InitializationOptions) => void;
|
|
112
112
|
setRoot: (group: Group) => void;
|
|
113
113
|
log(): _arcanejs_protocol_logging.Logger | null;
|
|
@@ -118,4 +118,4 @@ declare class Toolkit implements Parent {
|
|
|
118
118
|
private onMessage;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export { AnyComponent, Group, Toolkit };
|
|
121
|
+
export { AnyComponent, Group, Toolkit, type ToolkitOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -32,13 +32,13 @@ declare class Server {
|
|
|
32
32
|
private readonly staticFiles;
|
|
33
33
|
private readonly entrypointFilename;
|
|
34
34
|
private title;
|
|
35
|
-
constructor(options:
|
|
35
|
+
constructor(options: ToolkitOptions, onNewConnection: (connection: Connection) => void, onClosedConnection: (connection: Connection) => void, onMessage: (connection: Connection, message: ClientMessage) => void, log?: Logger | undefined);
|
|
36
36
|
handleHttpRequest: (req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>;
|
|
37
37
|
private sendStaticFile;
|
|
38
38
|
handleWsConnection: <S extends WebSocket>(ws: S) => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
interface
|
|
41
|
+
interface ToolkitOptions {
|
|
42
42
|
/**
|
|
43
43
|
* What window title should the toolkit be initialized with?
|
|
44
44
|
*/
|
|
@@ -107,7 +107,7 @@ declare class Toolkit implements Parent {
|
|
|
107
107
|
private readonly componentIDMap;
|
|
108
108
|
private readonly connections;
|
|
109
109
|
private rootGroup;
|
|
110
|
-
constructor(options?: Partial<
|
|
110
|
+
constructor(options?: Partial<ToolkitOptions>);
|
|
111
111
|
start: (opts: InitializationOptions) => void;
|
|
112
112
|
setRoot: (group: Group) => void;
|
|
113
113
|
log(): _arcanejs_protocol_logging.Logger | null;
|
|
@@ -118,4 +118,4 @@ declare class Toolkit implements Parent {
|
|
|
118
118
|
private onMessage;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export { AnyComponent, Group, Toolkit };
|
|
121
|
+
export { AnyComponent, Group, Toolkit, type ToolkitOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanejs/toolkit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build web-accessible control interfaces for your long-running Node.js processes",
|
|
6
6
|
"keywords": [
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"tsup": "^8.1.0",
|
|
116
116
|
"typescript": "^5.3.3",
|
|
117
117
|
"@arcanejs/eslint-config": "^0.0.0",
|
|
118
|
-
"@arcanejs/
|
|
119
|
-
"@arcanejs/
|
|
118
|
+
"@arcanejs/toolkit-frontend": "^0.3.1",
|
|
119
|
+
"@arcanejs/typescript-config": "^0.0.0"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"escape-html": "^1.0.3",
|