@nodescript/core
Advanced tools
Comparing version 7.3.0 to 7.3.1
@@ -383,2 +383,5 @@ import { convertAuto, isSchemaCompatible } from '../util/index.js'; | ||
isNodeCached(node) { | ||
if (this.options.forceCache) { | ||
return true; | ||
} | ||
const cache = node.getModuleSpec().cacheMode ?? 'auto'; | ||
@@ -394,3 +397,3 @@ switch (cache) { | ||
} | ||
return [...links].some(link => link.prop.isExpanded()); | ||
return node.isExpanded(); | ||
} | ||
@@ -397,0 +400,0 @@ case 'always': |
@@ -8,2 +8,3 @@ import { GraphView } from '../runtime/index.js'; | ||
emitAll: boolean; | ||
forceCache: boolean; | ||
} | ||
@@ -10,0 +11,0 @@ export interface CompilerResult { |
@@ -20,2 +20,3 @@ import { CompilerJob } from './CompilerJob.js'; | ||
emitAll: false, | ||
forceCache: false, | ||
...options | ||
@@ -22,0 +23,0 @@ }); |
@@ -17,2 +17,3 @@ import { Event } from 'nanoevent'; | ||
newScope(): GraphEvalContext; | ||
checkPendingNode(nodeUid: string): void; | ||
getLocal<T>(key: string, defaultValue?: T): T | undefined; | ||
@@ -25,3 +26,2 @@ setLocal(key: string, value: unknown): void; | ||
toArray(object: unknown): unknown[]; | ||
checkPendingNode(nodeUid: string): void; | ||
deferred(fn: () => unknown): unknown; | ||
@@ -28,0 +28,0 @@ isDeferred(value: unknown): value is Deferred; |
{ | ||
"name": "@nodescript/core", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"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
192848
3372