oox 0.3.0-beta9 → 0.3.2
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/LICENSE +21 -21
- package/README.md +29 -32
- package/app.js +131 -143
- package/bin/argv.js +63 -70
- package/bin/cli.js +57 -43
- package/bin/configurer.js +60 -62
- package/bin/loader.mjs +392 -279
- package/bin/proxy-import.js +12 -0
- package/bin/proxy-require.js +88 -0
- package/bin/register.js +46 -55
- package/bin/starter.js +63 -66
- package/index.js +155 -168
- package/index.mjs +4 -4
- package/logger.js +25 -40
- package/modules/http/index.js +286 -192
- package/modules/http/router.js +205 -0
- package/modules/http/utils.js +75 -73
- package/modules/index.js +86 -88
- package/modules/module.js +11 -16
- package/modules/socketio/client.js +97 -101
- package/modules/socketio/index.js +171 -168
- package/modules/socketio/server.js +188 -136
- package/modules/socketio/socket.js +1 -4
- package/package.json +14 -12
- package/types/app.d.ts +50 -51
- package/types/bin/argv.d.ts +8 -8
- package/types/bin/cli.d.ts +6 -2
- package/types/bin/configurer.d.ts +3 -1
- package/types/bin/proxy-import.d.ts +4 -0
- package/types/bin/proxy-require.d.ts +5 -0
- package/types/bin/register.d.ts +1 -1
- package/types/bin/starter.d.ts +5 -1
- package/types/index.d.ts +78 -76
- package/types/logger.d.ts +5 -4
- package/types/modules/http/index.d.ts +65 -47
- package/types/modules/http/router.d.ts +49 -0
- package/types/modules/http/utils.d.ts +14 -17
- package/types/modules/index.d.ts +24 -24
- package/types/modules/module.d.ts +11 -13
- package/types/modules/socketio/client.d.ts +23 -23
- package/types/modules/socketio/index.d.ts +37 -37
- package/types/modules/socketio/server.d.ts +44 -35
- package/types/modules/socketio/socket.d.ts +11 -11
- package/types/utils.d.ts +6 -6
- package/utils.js +57 -63
- package/bin/proxyer.js +0 -61
- package/types/bin/proxyer.d.ts +0 -1
|
@@ -1,136 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
1
|
+
import * as http from 'node:http';
|
|
2
|
+
import * as https from 'node:https';
|
|
3
|
+
import { Server } from 'socket.io';
|
|
4
|
+
import * as oox from '../../index.js';
|
|
5
|
+
import { Module, ModuleConfig } from '../../index.js';
|
|
6
|
+
import { sockets } from './socket.js';
|
|
7
|
+
export class SocketIOConfig extends ModuleConfig {
|
|
8
|
+
// listen port
|
|
9
|
+
port = 0;
|
|
10
|
+
// service path
|
|
11
|
+
path = '/socket.io';
|
|
12
|
+
// browser cross origin
|
|
13
|
+
origin = '';
|
|
14
|
+
// https options
|
|
15
|
+
ssl = {
|
|
16
|
+
// enable https
|
|
17
|
+
enabled: false,
|
|
18
|
+
// ssl certificate path
|
|
19
|
+
cert: '',
|
|
20
|
+
// ssl private key path
|
|
21
|
+
key: '',
|
|
22
|
+
// ssl ca path
|
|
23
|
+
ca: ''
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export default class SocketIOServer extends Module {
|
|
27
|
+
name = 'socketio';
|
|
28
|
+
config = new SocketIOConfig;
|
|
29
|
+
/**
|
|
30
|
+
* means this.server created by myself<SocketIOServer>
|
|
31
|
+
*/
|
|
32
|
+
#isSelfServer = false;
|
|
33
|
+
server = null;
|
|
34
|
+
socketServer = null;
|
|
35
|
+
static isWebSocketUrl(url) {
|
|
36
|
+
return /^wss?:\/\/.+$/.test(url);
|
|
37
|
+
}
|
|
38
|
+
static genWebSocketUrl(url) {
|
|
39
|
+
// :6000
|
|
40
|
+
if (url.startsWith(':'))
|
|
41
|
+
url = oox.config.host + url;
|
|
42
|
+
// 127.0.0.1:6000
|
|
43
|
+
if (!/^\w+?:\/.+$/.test(url))
|
|
44
|
+
url = 'ws://' + url;
|
|
45
|
+
const urlObject = new URL(url);
|
|
46
|
+
if (urlObject.protocol !== 'wss:') {
|
|
47
|
+
if (urlObject.port === '443')
|
|
48
|
+
urlObject.protocol = 'wss:';
|
|
49
|
+
else
|
|
50
|
+
urlObject.protocol = 'ws:';
|
|
51
|
+
}
|
|
52
|
+
return urlObject.toString();
|
|
53
|
+
}
|
|
54
|
+
getUrl() {
|
|
55
|
+
const { host } = oox.config;
|
|
56
|
+
const { port, path } = this.config;
|
|
57
|
+
const protocol = this.config.ssl.enabled ? 'wss:' : 'ws:';
|
|
58
|
+
return `${protocol}//${host}:${port}${path}`;
|
|
59
|
+
}
|
|
60
|
+
setConfig(config) {
|
|
61
|
+
Object.assign(this.config, config);
|
|
62
|
+
if (!config.hasOwnProperty('port')) {
|
|
63
|
+
this.config.port = oox.config.port;
|
|
64
|
+
}
|
|
65
|
+
if (!config.hasOwnProperty('origin')) {
|
|
66
|
+
this.config.origin = oox.config.origin;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
getConfig() {
|
|
70
|
+
return this.config;
|
|
71
|
+
}
|
|
72
|
+
async serve() {
|
|
73
|
+
await this.stop();
|
|
74
|
+
const { port, ssl } = this.config;
|
|
75
|
+
const isSelfServer = this.#isSelfServer = this.server ? true : false;
|
|
76
|
+
let server;
|
|
77
|
+
if (isSelfServer) {
|
|
78
|
+
server = this.server;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
if (ssl.enabled) {
|
|
82
|
+
const fs = await import('node:fs');
|
|
83
|
+
const options = {
|
|
84
|
+
key: ssl.key ? fs.readFileSync(ssl.key) : null,
|
|
85
|
+
cert: ssl.cert ? fs.readFileSync(ssl.cert) : null,
|
|
86
|
+
ca: ssl.ca ? fs.readFileSync(ssl.ca) : null
|
|
87
|
+
};
|
|
88
|
+
if (!options.key || !options.cert) {
|
|
89
|
+
throw new Error('HTTPS enabled but missing key or cert');
|
|
90
|
+
}
|
|
91
|
+
server = https.createServer(options, (_request, response) => response.end('No HTTP Gateway'));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
server = http.createServer((_request, response) => response.end('No HTTP Gateway'));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
this.server = server;
|
|
98
|
+
if (!server.listening)
|
|
99
|
+
server.listen(port);
|
|
100
|
+
const address = server.address();
|
|
101
|
+
if (!address || 'object' !== typeof address)
|
|
102
|
+
throw new Error('Cannot read socket.io server port');
|
|
103
|
+
this.config.port = address.port;
|
|
104
|
+
this.createSocketIOServer();
|
|
105
|
+
}
|
|
106
|
+
async stop() {
|
|
107
|
+
if (this.socketServer)
|
|
108
|
+
await new Promise((resolve, reject) => this.socketServer.close(error => error ? reject(error) : resolve()));
|
|
109
|
+
if (this.#isSelfServer)
|
|
110
|
+
await new Promise((resolve, reject) => this.server.listening && this.server.close(error => error ? reject(error) : resolve()));
|
|
111
|
+
}
|
|
112
|
+
genSocketIOServerOptions() {
|
|
113
|
+
const options = {
|
|
114
|
+
/**
|
|
115
|
+
* name of the path to capture
|
|
116
|
+
* @default "/socket.io"
|
|
117
|
+
*/
|
|
118
|
+
path: this.config.path,
|
|
119
|
+
/**
|
|
120
|
+
* how many ms before a client without namespace is closed
|
|
121
|
+
* @default 45000
|
|
122
|
+
*/
|
|
123
|
+
connectTimeout: 5000,
|
|
124
|
+
/**
|
|
125
|
+
* how many ms without a pong packet to consider the connection closed
|
|
126
|
+
* @default 5000
|
|
127
|
+
*/
|
|
128
|
+
pingTimeout: 2000,
|
|
129
|
+
/**
|
|
130
|
+
* how many ms before sending a new ping packet
|
|
131
|
+
* @default 25000
|
|
132
|
+
*/
|
|
133
|
+
pingInterval: 10000,
|
|
134
|
+
/**
|
|
135
|
+
* how many bytes or characters a message can be, before closing the session (to avoid DoS).
|
|
136
|
+
* @default 1e5 (100 KB)
|
|
137
|
+
*/
|
|
138
|
+
maxHttpBufferSize: 1e5
|
|
139
|
+
};
|
|
140
|
+
const { origin } = this.config;
|
|
141
|
+
if (origin)
|
|
142
|
+
options.cors = { origin };
|
|
143
|
+
return options;
|
|
144
|
+
}
|
|
145
|
+
createSocketIOServer() {
|
|
146
|
+
const socketServer = this.socketServer = new Server(this.server, this.genSocketIOServerOptions());
|
|
147
|
+
socketServer.on('connection', async (socket) => {
|
|
148
|
+
try {
|
|
149
|
+
this.serverOnSocketConnection(socket);
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
socket.send(error.message).disconnect(true);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 服务端Socket连接事件
|
|
158
|
+
*/
|
|
159
|
+
serverOnSocketConnection(socket) {
|
|
160
|
+
const headers = socket.handshake.headers;
|
|
161
|
+
const callerId = String(headers['x-caller-id'] || '') || socket.id;
|
|
162
|
+
// 已经存在相同的连接
|
|
163
|
+
if (sockets.has(callerId))
|
|
164
|
+
throw new Error('Connection Exists');
|
|
165
|
+
// client ip or caller service ip
|
|
166
|
+
const ip = String(headers['x-real-ip'] || headers['x-ip'] || socket.handshake.address);
|
|
167
|
+
// service name
|
|
168
|
+
const caller = String(headers['x-caller'] || 'anonymous');
|
|
169
|
+
socket.data = { connected: true, host: ip, name: caller, id: callerId };
|
|
170
|
+
// 保存 callerId 与 socket 对应关系
|
|
171
|
+
sockets.set(callerId, socket);
|
|
172
|
+
socket.on('disconnect', reason => this.serverOnSocketDisconnect(socket, reason));
|
|
173
|
+
socket.emit('oox_connected', { name: oox.config.name });
|
|
174
|
+
this.serverOnConnection(socket);
|
|
175
|
+
}
|
|
176
|
+
serverOnConnection(socket) { }
|
|
177
|
+
/**
|
|
178
|
+
* 服务端Socket断开事件
|
|
179
|
+
* @param {Socket} socket
|
|
180
|
+
* @param {Error} reason
|
|
181
|
+
*/
|
|
182
|
+
serverOnSocketDisconnect(socket, reason) {
|
|
183
|
+
socket.data.connected = false;
|
|
184
|
+
sockets.delete(socket.data.id);
|
|
185
|
+
this.serverOnDisconnect(socket, reason);
|
|
186
|
+
}
|
|
187
|
+
serverOnDisconnect(socket, reason) { }
|
|
188
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oox",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "OOX Service Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"http",
|
|
7
7
|
"websocket",
|
|
@@ -12,28 +12,30 @@
|
|
|
12
12
|
"distributed",
|
|
13
13
|
"tracing"
|
|
14
14
|
],
|
|
15
|
-
"type": "
|
|
16
|
-
"main": "index.js",
|
|
17
|
-
"types": "types/index.d.ts",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./index.js",
|
|
17
|
+
"types": "./types/index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
20
|
"import": "./index.mjs",
|
|
21
|
-
"require": "./index.js"
|
|
21
|
+
"require": "./index.js",
|
|
22
|
+
"types": "./types/index.d.ts"
|
|
22
23
|
},
|
|
23
|
-
"./loader": "./bin/loader.mjs"
|
|
24
|
+
"./loader": "./bin/loader.mjs",
|
|
25
|
+
"./cli": "./bin/cli.js"
|
|
24
26
|
},
|
|
25
27
|
"bin": {
|
|
26
|
-
"oox": "bin/cli.js"
|
|
28
|
+
"oox": "./bin/cli.js"
|
|
27
29
|
},
|
|
28
30
|
"author": "lipingruan",
|
|
29
31
|
"homepage": "https://github.com/lipingruan/oox",
|
|
30
32
|
"license": "MIT",
|
|
31
33
|
"dependencies": {
|
|
32
|
-
"chalk": "^
|
|
33
|
-
"socket.io": "^4.
|
|
34
|
-
"socket.io-client": "^4.
|
|
34
|
+
"chalk": "^5.6.2",
|
|
35
|
+
"socket.io": "^4.8.3",
|
|
36
|
+
"socket.io-client": "^4.8.3"
|
|
35
37
|
},
|
|
36
38
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
39
|
+
"node": ">=18.0.0"
|
|
38
40
|
}
|
|
39
41
|
}
|
package/types/app.d.ts
CHANGED
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare
|
|
25
|
-
export declare
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function on(event: '
|
|
29
|
-
export declare function on(event: '
|
|
30
|
-
export declare function on(event: '
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function once(event: '
|
|
35
|
-
export declare function once(event: '
|
|
36
|
-
export declare function
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
39
|
-
export declare function
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export declare function
|
|
51
|
-
export declare function execute(action: string, params: Array<any>, context: Context): Promise<any>;
|
|
1
|
+
import { EventEmitter } from 'node:events';
|
|
2
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
|
+
export * as logger from './logger.js';
|
|
4
|
+
export interface ReturnsBody {
|
|
5
|
+
traceId: string;
|
|
6
|
+
success: boolean;
|
|
7
|
+
body?: any;
|
|
8
|
+
error?: {
|
|
9
|
+
message: string;
|
|
10
|
+
stack: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare class Context {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
traceId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const asyncStore: AsyncLocalStorage<Context>;
|
|
18
|
+
export declare const eventHub: EventEmitter<[never]>;
|
|
19
|
+
/**
|
|
20
|
+
* the kvMethods is all actions refs [has bind this]
|
|
21
|
+
*/
|
|
22
|
+
export declare const kvMethods: Map<string, Function>;
|
|
23
|
+
export declare const sourceKVMethods: Map<string, Function>;
|
|
24
|
+
export declare function setMethods(methods: any): void;
|
|
25
|
+
export declare function getMethods(): any;
|
|
26
|
+
export declare function on(event: 'app:configured' | 'app:served' | 'app:stopped', listener: () => void): void;
|
|
27
|
+
export declare function on(event: 'call:start', listener: (timestamp: number, action: string, params: any[], context: Context) => void): void;
|
|
28
|
+
export declare function on(event: 'call:success', listener: (timestamp: number, action: string, params: any[], context: Context, result: ReturnsBody) => void): void;
|
|
29
|
+
export declare function on(event: 'call:fail', listener: (timestamp: number, action: string, params: any[], context: Context, error: Error) => void): void;
|
|
30
|
+
export declare function on(event: 'log', listener: (timestamp: number, context: Context | null, level: string, msgs: any[]) => void): void;
|
|
31
|
+
export declare function once(event: 'app:configured' | 'app:served' | 'app:stopped', listener: (...args: any[]) => void): void;
|
|
32
|
+
export declare function once(event: 'call:start', listener: (timestamp: number, action: string, params: any[], context: Context) => void): void;
|
|
33
|
+
export declare function once(event: 'call:success', listener: (timestamp: number, action: string, params: any[], context: Context, result: ReturnsBody) => void): void;
|
|
34
|
+
export declare function once(event: 'call:fail', listener: (timestamp: number, action: string, params: any[], context: Context, error: Error) => void): void;
|
|
35
|
+
export declare function once(event: 'log', listener: (timestamp: number, context: Context | null, level: string, msgs: any[]) => void): void;
|
|
36
|
+
export declare function off(event: 'app:configured' | 'app:served' | 'app:stopped' | 'call:start' | 'call:success' | 'call:fail' | 'log', listener: (...args: any[]) => void): void;
|
|
37
|
+
export declare function emit(event: 'app:configured' | 'app:served' | 'app:stopped'): boolean;
|
|
38
|
+
export declare function emit(event: 'call:start', timestamp: number, action: string, params: any[], context: Context): boolean;
|
|
39
|
+
export declare function emit(event: 'call:success', timestamp: number, action: string, params: any[], context: Context, result: ReturnsBody): boolean;
|
|
40
|
+
export declare function emit(event: 'call:fail', timestamp: number, action: string, params: any[], context: Context, error: Error): boolean;
|
|
41
|
+
export declare function emit(event: 'log', timestamp: number, context: Context | null, level: string, content: any): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Call an Function on RPC server
|
|
44
|
+
* @param action
|
|
45
|
+
* @param params
|
|
46
|
+
* @param context
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
export declare function call(action: string, params: any[], context: Context): Promise<ReturnsBody>;
|
|
50
|
+
export declare function execute(action: string, params: Array<any>, context: Context): Promise<any>;
|
package/types/bin/argv.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare function getAllEnvArgs(): {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
};
|
|
4
|
-
export declare function getEnvArgs(names: string[]): {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export declare function getEnvArg(name: string): any;
|
|
8
|
-
export declare function parseEnvArg(value: string): any;
|
|
1
|
+
export declare function getAllEnvArgs(): {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
};
|
|
4
|
+
export declare function getEnvArgs(names: string[]): {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export declare function getEnvArg(name: string): any;
|
|
8
|
+
export declare function parseEnvArg(value: string): any;
|
package/types/bin/cli.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
import { configure, startup } from './starter.js';
|
|
3
|
+
import { inGroupConvertRequireToRPC } from './proxy-require.js';
|
|
4
|
+
import { registModuleLoader } from './proxy-import.js';
|
|
5
|
+
export declare const version: string;
|
|
6
|
+
export { configure, startup, inGroupConvertRequireToRPC, registModuleLoader, };
|
package/types/bin/register.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function registry(urls: string | string[]): Promise<void>;
|
|
1
|
+
export declare function registry(urls: string | string[]): Promise<void>;
|
package/types/bin/starter.d.ts
CHANGED