@nodescript/core
Advanced tools
Comparing version 7.18.3 to 7.18.4
@@ -1,2 +0,1 @@ | ||
import { coerce } from 'airtight'; | ||
import { PropSpecSchema } from '../schema/PropSpec.js'; | ||
@@ -92,5 +91,3 @@ import { clone } from '../util/clone.js'; | ||
} | ||
const propSpec = this.nodeSpec.props[key] ?? PropSpecSchema.create({ | ||
value: coerce('string', paramSpec.schema.default) ?? '', | ||
}); | ||
const propSpec = this.nodeSpec.props[key] ?? PropSpecSchema.create({}); | ||
return new PropView(this, key, propSpec); | ||
@@ -97,0 +94,0 @@ } |
@@ -42,3 +42,3 @@ import { clone } from '../util/clone.js'; | ||
isUsingDefaultValue() { | ||
return this.getStaticValue() !== ''; | ||
return this.getStaticValue() === ''; | ||
} | ||
@@ -45,0 +45,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { getType, Schema } from 'airtight'; | ||
import { getDefaultValue, getType, Schema } from 'airtight'; | ||
import { parseJson } from './json.js'; | ||
@@ -8,2 +8,3 @@ export { getType }; | ||
} | ||
let val = value; | ||
if (value === '') { | ||
@@ -16,4 +17,4 @@ if (targetSchema.optional) { | ||
} | ||
val = getDefaultValue(targetSchema); | ||
} | ||
let val = value; | ||
if (targetSchema.type === 'object' || targetSchema.type === 'array') { | ||
@@ -20,0 +21,0 @@ val = parseJson(val, undefined); |
{ | ||
"name": "@nodescript/core", | ||
"version": "7.18.3", | ||
"version": "7.18.4", | ||
"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
213697
3709