@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.90 → 2.2.0-next.91
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server-bundled",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.91+cfd67f9",
|
|
4
4
|
"description": "GLSP node server for the workflow example (bundled)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"wf-glsp-server-node.js.map"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"clean": "rimraf wf-glsp-server-node.js wf-glsp-server-node.js.map",
|
|
44
|
+
"clean": "rimraf wf-glsp-server-node.js wf-glsp-server-node.js.map wf-glsp-server-webworker.js wf-glsp-server-webworker.js.map",
|
|
45
45
|
"start": "node --enable-source-maps ./wf-glsp-server-node.js --port 5007",
|
|
46
46
|
"start:websocket": "node --enable-source-maps ./wf-glsp-server-node.js -w --port 8081",
|
|
47
47
|
"watch": "tsc -w"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "cfd67f91051bb3f0e156636cef57801cdc5a5999"
|
|
53
53
|
}
|
package/wf-glsp-server-node.js
CHANGED
|
@@ -45289,7 +45289,11 @@ function configureELKLayoutModule(options) {
|
|
|
45289
45289
|
}
|
|
45290
45290
|
const elkFactory = () => new elk_bundled_1.default({
|
|
45291
45291
|
algorithms: options.algorithms,
|
|
45292
|
-
defaultLayoutOptions: options.defaultLayoutOptions
|
|
45292
|
+
defaultLayoutOptions: options.defaultLayoutOptions,
|
|
45293
|
+
// The node implementation relied on elkjs' `FakeWorker` to set the `workerFactory`.
|
|
45294
|
+
// However, since the required file is dynamically loaded and not available in a web-worker context,
|
|
45295
|
+
// it needs to be mocked manually.
|
|
45296
|
+
workerFactory: options.isWebWorker ? () => ({ postMessage: () => { } }) : undefined
|
|
45293
45297
|
});
|
|
45294
45298
|
bind(glsp_elk_layout_engine_1.ElkFactory).toConstantValue(elkFactory);
|
|
45295
45299
|
bind(glsp_elk_layout_engine_1.GlspElkLayoutEngine)
|