@nsshunt/stsutils 1.16.71 → 1.16.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/dist/stsutils.mjs CHANGED
@@ -1879,7 +1879,7 @@ class WebWorkerMessageHandler extends TinyEmitter {
1879
1879
  __privateGet(this, _messagePort).on("message", this.ProcessRawMessage);
1880
1880
  } else {
1881
1881
  const xxx = this;
1882
- onmessage = async function(data) {
1882
+ __privateGet(this, _messagePort).onmessage = async function(data) {
1883
1883
  const message = data.data;
1884
1884
  xxx.ProcessRawMessage(message);
1885
1885
  };
@@ -1898,13 +1898,13 @@ class WebWorkerMessageHandler extends TinyEmitter {
1898
1898
  if (isNode) {
1899
1899
  __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1900
1900
  } else {
1901
- postMessage(JSON.stringify(payload));
1901
+ __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1902
1902
  }
1903
1903
  } else if (payload.messageType.localeCompare("RESPONSE") === 0) {
1904
1904
  if (isNode) {
1905
1905
  __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1906
1906
  } else {
1907
- postMessage(JSON.stringify(payload));
1907
+ __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1908
1908
  }
1909
1909
  }
1910
1910
  });