@eclipse-glsp-examples/workflow-server-bundled 2.1.0-next.71 → 2.1.0-next.73

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.1.0-next.71+7cb92ef",
3
+ "version": "2.1.0-next.73+1c47d6b",
4
4
  "description": "GLSP node server for the workflow example (bundled)",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "7cb92ef4d3e09fb2d8c8554992ea5d249cc6db8b"
52
+ "gitHead": "1c47d6b567f041e3a82791ee54aae0c2bb41d74f"
53
53
  }
@@ -45720,7 +45720,7 @@ class AbstractRecordingCommand {
45720
45720
  const afterState = await this.getJsonObject();
45721
45721
  this.undoPatch = jsonPatch.compare(afterState, beforeState);
45722
45722
  this.redoPatch = jsonPatch.compare(beforeState, afterState);
45723
- (_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, afterState);
45723
+ await ((_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, afterState));
45724
45724
  }
45725
45725
  applyPatch(object, patch) {
45726
45726
  return jsonPatch.applyPatch(object, patch, false, true);
@@ -45738,14 +45738,14 @@ class AbstractRecordingCommand {
45738
45738
  var _a;
45739
45739
  if (this.undoPatch) {
45740
45740
  const result = this.applyPatch(await this.getJsonObject(), this.undoPatch);
45741
- (_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, result.newDocument);
45741
+ await ((_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, result.newDocument));
45742
45742
  }
45743
45743
  }
45744
45744
  async redo() {
45745
45745
  var _a;
45746
45746
  if (this.redoPatch) {
45747
45747
  const result = this.applyPatch(await this.getJsonObject(), this.redoPatch);
45748
- (_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, result.newDocument);
45748
+ await ((_a = this.postChange) === null || _a === void 0 ? void 0 : _a.call(this, result.newDocument));
45749
45749
  }
45750
45750
  }
45751
45751
  canUndo() {
@@ -50734,7 +50734,7 @@ class JsonRecordingCommand extends recording_command_1.AbstractRecordingCommand
50734
50734
  return this.modelState.sourceModel;
50735
50735
  }
50736
50736
  postChange(newModel) {
50737
- this.modelState.updateSourceModel(newModel);
50737
+ return this.modelState.updateSourceModel(newModel);
50738
50738
  }
50739
50739
  }
50740
50740
  exports.JsonRecordingCommand = JsonRecordingCommand;