@bian-womp/spark-graph 0.2.37 → 0.2.39

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
@@ -1865,9 +1865,10 @@ class GraphBuilder {
1865
1865
  const innerDesc = innerNode
1866
1866
  ? this.registry.nodes.get(innerNode.typeId)
1867
1867
  : undefined;
1868
- const typeId = innerDesc ? innerDesc.inputs[map.handle] : undefined;
1869
- inputTypes[outerIn] =
1870
- typeof typeId === "string" ? typeId : typeId?.typeId ?? "untyped";
1868
+ const typeId = innerDesc
1869
+ ? getInputTypeId(innerDesc.inputs, map.handle)
1870
+ : undefined;
1871
+ inputTypes[outerIn] = typeId ?? "untyped";
1871
1872
  }
1872
1873
  for (const [outerOut, map] of Object.entries(exposure.outputs)) {
1873
1874
  const innerNode = def.nodes.find((n) => n.nodeId === map.nodeId);
@@ -1925,32 +1926,6 @@ class PushEngine extends AbstractEngine {
1925
1926
  }
1926
1927
  }
1927
1928
 
1928
- class LocalRunner {
1929
- constructor(registry) {
1930
- this.registry = registry;
1931
- this.builder = new GraphBuilder(registry);
1932
- }
1933
- async build(def, opts) {
1934
- const rt = this.builder.build(def, opts);
1935
- this.engine = new PushEngine(rt);
1936
- }
1937
- async update(def) {
1938
- // If engine exists and is a PushEngine backed by GraphRuntime, use runtime.update
1939
- // Otherwise rebuild.
1940
- const eng = this.engine;
1941
- if (eng && eng.graphRuntime) {
1942
- eng.graphRuntime.update(def, this.registry);
1943
- return;
1944
- }
1945
- await this.build(def);
1946
- }
1947
- getEngine() {
1948
- if (!this.engine)
1949
- throw new Error("Engine not built. Call build(def) first.");
1950
- return this.engine;
1951
- }
1952
- }
1953
-
1954
1929
  class BatchedEngine extends AbstractEngine {
1955
1930
  constructor(graphRuntime, opts = {}) {
1956
1931
  super(graphRuntime);
@@ -3514,7 +3489,6 @@ exports.ComputeCategory = ComputeCategory;
3514
3489
  exports.GraphBuilder = GraphBuilder;
3515
3490
  exports.GraphRuntime = GraphRuntime;
3516
3491
  exports.HybridEngine = HybridEngine;
3517
- exports.LocalRunner = LocalRunner;
3518
3492
  exports.PullEngine = PullEngine;
3519
3493
  exports.PushEngine = PushEngine;
3520
3494
  exports.Registry = Registry;