Comparing version 1.1.9 to 1.1.10
@@ -14,3 +14,3 @@ "use strict"; | ||
static isTemplate(property) { | ||
return typeof property === 'object' && property !== null && property.hasOwnProperty('__template'); | ||
return typeof property === 'object' && property !== null && '__template' in property; | ||
} | ||
@@ -87,3 +87,3 @@ static compile(config, context, specialProperties) { | ||
static resolvePointer(property, context) { | ||
if (!property || !property.hasOwnProperty('__pointer')) | ||
if (typeof property !== 'object' || property === null || !('__pointer' in property)) | ||
return property; | ||
@@ -90,0 +90,0 @@ const value = ObjectCompiler.objectPath(context, property.__pointer); |
{ | ||
"name": "low", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "a templating driven low-code framework for rapid systems development", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "612b24cd1922633d502dcb419f80f59eead47d74", | ||
"gitHead": "5f0ed8043b589340630ac0729cec91f23a1f8d4f", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0", |
@@ -7,3 +7,3 @@ | ||
static isTemplate(property: any): boolean { | ||
return typeof property === 'object' && property !== null && property.hasOwnProperty('__template'); | ||
return typeof property === 'object' && property !== null && '__template' in property; | ||
} | ||
@@ -85,4 +85,5 @@ | ||
static resolvePointer(property: any, context: Context) { | ||
if (!property || !property.hasOwnProperty('__pointer')) return property; | ||
if (typeof property !== 'object' || property === null || !('__pointer' in property)) return property; | ||
const value = ObjectCompiler.objectPath(context, property.__pointer); | ||
@@ -89,0 +90,0 @@ if (typeof value === 'undefined') { |
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
481707