@nodescript/core
Advanced tools
Comparing version 0.7.3 to 0.8.0
@@ -71,13 +71,14 @@ import { GraphSchema } from '../schema/index.js'; | ||
const i = this.nodes.findIndex(_ => _.id === nodeId); | ||
if (i > -1) { | ||
this.nodes.splice(i, 1); | ||
for (const key of Object.keys(this.refs)) { | ||
const res = this.nodes.find(node => node.ref === key); | ||
if (!res) { | ||
delete this.refs[key]; | ||
} | ||
if (i === -1) { | ||
return false; | ||
} | ||
this.nodes.splice(i, 1); | ||
for (const key of Object.keys(this.refs)) { | ||
const res = this.nodes.find(node => node.ref === key); | ||
if (!res) { | ||
delete this.refs[key]; | ||
} | ||
return true; | ||
} | ||
return false; | ||
this.applyInvariants(); | ||
return true; | ||
} | ||
@@ -160,2 +161,3 @@ /** | ||
} | ||
this.metadata.async = this.nodes.some(_ => _.$def.metadata.async); | ||
} | ||
@@ -162,0 +164,0 @@ } |
@@ -12,2 +12,3 @@ export const Local = { | ||
result: { type: 'any' }, | ||
hidden: true, | ||
}, | ||
@@ -14,0 +15,0 @@ compute() { } |
@@ -13,2 +13,3 @@ export const Param = { | ||
result: { type: 'any' }, | ||
hidden: true, | ||
}, | ||
@@ -15,0 +16,0 @@ compute() { } |
{ | ||
"name": "@nodescript/core", | ||
"version": "0.7.3", | ||
"version": "0.8.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
122954
2205
155
1