@bian-womp/spark-graph 0.2.60 → 0.2.61
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 +3 -0
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/src/core/types.d.ts +2 -0
- package/lib/cjs/src/core/types.d.ts.map +1 -1
- package/lib/cjs/src/runtime/GraphRuntime.d.ts.map +1 -1
- package/lib/esm/index.js +3 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/src/core/types.d.ts +2 -0
- package/lib/esm/src/core/types.d.ts.map +1 -1
- package/lib/esm/src/runtime/GraphRuntime.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/cjs/index.cjs
CHANGED
|
@@ -683,6 +683,7 @@ class GraphRuntime {
|
|
|
683
683
|
}
|
|
684
684
|
};
|
|
685
685
|
return {
|
|
686
|
+
nodeId,
|
|
686
687
|
state: node.state,
|
|
687
688
|
setState: (next) => Object.assign(node.state, next),
|
|
688
689
|
emit: emitHandler,
|
|
@@ -1077,6 +1078,7 @@ class GraphRuntime {
|
|
|
1077
1078
|
try {
|
|
1078
1079
|
if (typeof desc.resolveHandles === "function") {
|
|
1079
1080
|
const maybe = desc.resolveHandles({
|
|
1081
|
+
nodeId: n.nodeId,
|
|
1080
1082
|
environment: environment || {},
|
|
1081
1083
|
params: n.params,
|
|
1082
1084
|
inputs: undefined,
|
|
@@ -1670,6 +1672,7 @@ class GraphRuntime {
|
|
|
1670
1672
|
let r;
|
|
1671
1673
|
try {
|
|
1672
1674
|
const res = resolveHandles({
|
|
1675
|
+
nodeId,
|
|
1673
1676
|
environment: this.environment || {},
|
|
1674
1677
|
params: node.params,
|
|
1675
1678
|
inputs: node.inputs || {},
|