@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.85 → 2.2.0-next.86

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.85+4e5a7a9",
3
+ "version": "2.2.0-next.86+9634f64",
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": "4e5a7a9d306c282f5566497be5386a022f984afb"
52
+ "gitHead": "9634f641d5a3b3d9a27eb4d7d3083c80e39a7d89"
53
53
  }
@@ -56828,7 +56828,11 @@ function configureELKLayoutModule(options) {
56828
56828
  }
56829
56829
  const elkFactory = () => new elk_bundled_1.default({
56830
56830
  algorithms: options.algorithms,
56831
- defaultLayoutOptions: options.defaultLayoutOptions
56831
+ defaultLayoutOptions: options.defaultLayoutOptions,
56832
+ // The node implementation relied on elkjs' `FakeWorker` to set the `workerFactory`.
56833
+ // However, since the required file is dynamically loaded and not available in a web-worker context,
56834
+ // it needs to be mocked manually.
56835
+ workerFactory: () => ({ postMessage: () => { } })
56832
56836
  });
56833
56837
  bind(glsp_elk_layout_engine_1.ElkFactory).toConstantValue(elkFactory);
56834
56838
  bind(glsp_elk_layout_engine_1.GlspElkLayoutEngine)