@gp2f/server 0.1.4 → 0.1.6
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/index.d.ts +2 -1
- package/index.js +11 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -12,11 +12,12 @@ export interface ActivityConfig {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export class JsGp2FServer {
|
|
15
|
-
constructor(config: { port
|
|
15
|
+
constructor(config: { port?: number; host?: string });
|
|
16
16
|
register(workflow: JsWorkflow): void;
|
|
17
17
|
start(): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
|
|
20
21
|
export class JsWorkflow {
|
|
21
22
|
constructor(id: string);
|
|
22
23
|
addActivity(
|
package/index.js
CHANGED
|
@@ -38,4 +38,14 @@ function loadNative() {
|
|
|
38
38
|
)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const nativeAddon = loadNative()
|
|
42
|
+
|
|
43
|
+
module.exports = nativeAddon
|
|
44
|
+
|
|
45
|
+
// Explicitly assign named exports so Node.js CJS-ESM bridge can statically analyze them
|
|
46
|
+
module.exports.JsGp2FServer = nativeAddon.JsGp2FServer
|
|
47
|
+
module.exports.JsWorkflow = nativeAddon.JsWorkflow
|
|
48
|
+
module.exports.NodeKind = nativeAddon.NodeKind
|
|
49
|
+
module.exports.JsServerConfig = nativeAddon.JsServerConfig
|
|
50
|
+
module.exports.JsActivityConfig = nativeAddon.JsActivityConfig
|
|
51
|
+
module.exports.JsAstNode = nativeAddon.JsAstNode
|