@nodescript/core
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -213,3 +213,3 @@ import { isSchemaCompatible } from '../util/index.js'; | ||
const defSym = this.getDefSym(node.ref); | ||
this.code.block(`${resSym} = ${this.awaitSym}${defSym}.compute({`, `}, ctx);`, () => { | ||
this.code.block(`${resSym} = ${this.awaitSym}${defSym}.compute({`, `}, ctx.newScope());`, () => { | ||
this.emitNodeProps(node); | ||
@@ -267,3 +267,3 @@ }); | ||
const tempSym = `$t`; | ||
this.code.block(`const ${tempSym} = ${this.awaitSym}${defSym}.compute({`, `}, ctx);`, () => { | ||
this.code.block(`const ${tempSym} = ${this.awaitSym}${defSym}.compute({`, `}, ctx.newScope());`, () => { | ||
this.emitNodeProps(node); | ||
@@ -270,0 +270,0 @@ }); |
@@ -13,3 +13,3 @@ import { Event } from 'typesafe-event'; | ||
abstract pendingNodeIds: Set<string>; | ||
newScope(locals: Record<string, any>): BaseContext; | ||
newScope(locals?: Record<string, any>): BaseContext; | ||
toArray(value: unknown): unknown[]; | ||
@@ -16,0 +16,0 @@ getType(value: unknown): t.DataType; |
@@ -14,3 +14,3 @@ import { getType, Schema } from 'airtight'; | ||
} | ||
newScope(locals) { | ||
newScope(locals = {}) { | ||
return new ScopeEvalContext(this, locals); | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "@nodescript/core", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"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
134711