@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.
@@ -1882,7 +1882,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
1882
1882
  __privateGet(this, _messagePort).on("message", this.ProcessRawMessage);
1883
1883
  } else {
1884
1884
  const xxx = this;
1885
- onmessage = async function(data) {
1885
+ __privateGet(this, _messagePort).onmessage = async function(data) {
1886
1886
  const message = data.data;
1887
1887
  xxx.ProcessRawMessage(message);
1888
1888
  };
@@ -1901,13 +1901,13 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
1901
1901
  if (isNode) {
1902
1902
  __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1903
1903
  } else {
1904
- postMessage(JSON.stringify(payload));
1904
+ __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1905
1905
  }
1906
1906
  } else if (payload.messageType.localeCompare("RESPONSE") === 0) {
1907
1907
  if (isNode) {
1908
1908
  __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1909
1909
  } else {
1910
- postMessage(JSON.stringify(payload));
1910
+ __privateGet(this, _messagePort).postMessage(JSON.stringify(payload));
1911
1911
  }
1912
1912
  }
1913
1913
  });