Comparing version 1.1.10 to 1.1.12
@@ -38,2 +38,5 @@ "use strict"; | ||
const resolvedProperty = ObjectCompiler.resolvePointer(property, context); | ||
if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) { | ||
return resolvedProperty; | ||
} | ||
if (ObjectCompiler.isTemplate(resolvedProperty)) { | ||
@@ -91,3 +94,8 @@ const renderer = context.env.getRenderer(resolvedProperty.__renderer || 'Renderer'); | ||
if (typeof value === 'undefined') { | ||
throw new Error(`Could not resolve pointer "${property.__pointer}"`); | ||
if ('__default' in property) { | ||
return property.__default; | ||
} | ||
else { | ||
throw new Error(`Could not resolve pointer "${property.__pointer}"`); | ||
} | ||
} | ||
@@ -94,0 +102,0 @@ return value; |
{ | ||
"name": "low", | ||
"version": "1.1.10", | ||
"version": "1.1.12", | ||
"description": "a templating driven low-code framework for rapid systems development", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "5f0ed8043b589340630ac0729cec91f23a1f8d4f", | ||
"gitHead": "87c5071b1087b54916135d9254afaba19f10db7e", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0", |
@@ -33,2 +33,6 @@ | ||
if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) { | ||
return resolvedProperty; | ||
} | ||
if (ObjectCompiler.isTemplate(resolvedProperty)) { | ||
@@ -78,2 +82,3 @@ const renderer = context.env.getRenderer(resolvedProperty.__renderer || 'Renderer'); | ||
} | ||
return output; | ||
@@ -88,6 +93,9 @@ } | ||
const value = ObjectCompiler.objectPath(context, property.__pointer); | ||
if (typeof value === 'undefined') { | ||
throw new Error(`Could not resolve pointer "${property.__pointer}"`); | ||
if ('__default' in property) { | ||
return property.__default; | ||
} else { | ||
throw new Error(`Could not resolve pointer "${property.__pointer}"`); | ||
} | ||
} | ||
@@ -94,0 +102,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
482490
4324