@reactor-team/js-sdk 2.2.0 → 2.2.1

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/dist/index.mjs CHANGED
@@ -1058,7 +1058,9 @@ var Reactor = class {
1058
1058
  setupMachineClientHandlers() {
1059
1059
  if (!this.machineClient) return;
1060
1060
  this.machineClient.on("application", (message) => {
1061
- this.emit("newMessage", message);
1061
+ if ((message == null ? void 0 : message.type) === "application" && (message == null ? void 0 : message.data) !== void 0) {
1062
+ this.emit("newMessage", message.data);
1063
+ }
1062
1064
  });
1063
1065
  this.machineClient.on("statusChanged", (status) => {
1064
1066
  switch (status) {