@bian-womp/spark-workbench 0.3.80 → 0.3.82
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 +4 -4
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/src/runtime/RemoteGraphRunner.d.ts +1 -1
- package/lib/cjs/src/runtime/RemoteGraphRunner.d.ts.map +1 -1
- package/lib/esm/index.js +4 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/src/runtime/RemoteGraphRunner.d.ts +1 -1
- package/lib/esm/src/runtime/RemoteGraphRunner.d.ts.map +1 -1
- package/package.json +4 -4
package/lib/cjs/index.cjs
CHANGED
|
@@ -1570,10 +1570,10 @@ class RemoteGraphRunner extends AbstractGraphRunner {
|
|
|
1570
1570
|
isRecord(value) {
|
|
1571
1571
|
return typeof value === "object" && value !== null;
|
|
1572
1572
|
}
|
|
1573
|
-
|
|
1573
|
+
isRegistryEvent(message) {
|
|
1574
1574
|
if (!this.isRecord(message))
|
|
1575
1575
|
return false;
|
|
1576
|
-
if (message.type !== "registry
|
|
1576
|
+
if (message.type !== "registry")
|
|
1577
1577
|
return false;
|
|
1578
1578
|
if (!this.isRecord(message.payload))
|
|
1579
1579
|
return false;
|
|
@@ -1677,7 +1677,7 @@ class RemoteGraphRunner extends AbstractGraphRunner {
|
|
|
1677
1677
|
const reason = msg.payload.reason;
|
|
1678
1678
|
console.warn(`[RemoteGraphRunner] Flow closed (runner=${this.runnerId}, reason=${typeof reason === "string" ? reason : "unknown"})`);
|
|
1679
1679
|
}
|
|
1680
|
-
else if (this.
|
|
1680
|
+
else if (this.isRegistryEvent(msg)) {
|
|
1681
1681
|
this.applyRegistryDescriptor(msg.payload.registry);
|
|
1682
1682
|
}
|
|
1683
1683
|
// Call original handler if provided
|
|
@@ -1697,7 +1697,7 @@ class RemoteGraphRunner extends AbstractGraphRunner {
|
|
|
1697
1697
|
this.client = client;
|
|
1698
1698
|
this.valueCache.clear();
|
|
1699
1699
|
this.listenersBound = false;
|
|
1700
|
-
// Wait for registry
|
|
1700
|
+
// Wait for registry runtime event pushed by backend on flow-open.
|
|
1701
1701
|
if (!this.registryFetched) {
|
|
1702
1702
|
console.info("[RemoteGraphRunner] Waiting for registry bootstrap event...");
|
|
1703
1703
|
await this.waitForRegistryBootstrap();
|