@bian-womp/spark-remote 0.3.71 → 0.3.72

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/lib/cjs/index.cjs CHANGED
@@ -119,9 +119,7 @@ class WebSocketTransport {
119
119
  }
120
120
  }
121
121
  const wsUrl = url.toString();
122
- this.ws = window
123
- ? new window.WebSocket(wsUrl)
124
- : new ws.WebSocket(wsUrl);
122
+ this.ws = window ? new window.WebSocket(wsUrl) : new ws.WebSocket(wsUrl);
125
123
  await new Promise((resolve, reject) => {
126
124
  if (!this.ws)
127
125
  return reject(new Error("ws init failed"));
@@ -406,9 +404,7 @@ async function createServerRuntimeAdapter(id, createRegistry, send, extensions)
406
404
  return;
407
405
  const customNodeData = getCustomNodeDataFromExtData(extData);
408
406
  const existingCustomNodeData = graphRuntime.getCustomNodeData();
409
- const sanitizedExisting = Object.keys(existingCustomNodeData).length
410
- ? existingCustomNodeData
411
- : undefined;
407
+ const sanitizedExisting = Object.keys(existingCustomNodeData).length ? existingCustomNodeData : undefined;
412
408
  if (areCustomNodeDataEqual(sanitizedExisting, customNodeData)) {
413
409
  return;
414
410
  }
@@ -813,10 +809,7 @@ async function createServerRuntimeAdapter(id, createRegistry, send, extensions)
813
809
 
814
810
  const UNSET_MARKER = { __spark_unset: true };
815
811
  function isUnsetMarker(value) {
816
- return (typeof value === "object" &&
817
- value !== null &&
818
- "__spark_unset" in value &&
819
- value.__spark_unset === true);
812
+ return (typeof value === "object" && value !== null && "__spark_unset" in value && value.__spark_unset === true);
820
813
  }
821
814
  function encodeInputsForTransport(inputs) {
822
815
  const encoded = {};