Comparing version
@@ -11,2 +11,3 @@ import { Context } from './environment'; | ||
static objectPath(obj: any, path: string): any; | ||
static isObject(obj: any): boolean; | ||
} |
@@ -38,3 +38,3 @@ "use strict"; | ||
const resolvedProperty = ObjectCompiler.resolvePointer(property, context); | ||
if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) { | ||
if ((ObjectCompiler.isObject(property) && '__pointer' in property && '__doNotCompile' in property) || (ObjectCompiler.isObject(resolvedProperty) && '__doNotCompile' in property)) { | ||
return resolvedProperty; | ||
@@ -111,2 +111,5 @@ } | ||
} | ||
static isObject(obj) { | ||
return typeof obj === 'object' && obj !== null && !Array.isArray(obj); | ||
} | ||
} | ||
@@ -113,0 +116,0 @@ exports.ObjectCompiler = ObjectCompiler; |
{ | ||
"name": "low", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"description": "a templating driven low-code framework for rapid systems development", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "11cd43a219c4ae54742ea91d3e47eb856a7b9845", | ||
"gitHead": "2bacc2abecf77a8f2f8cb155256a4a008854f498", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0", |
@@ -33,3 +33,3 @@ | ||
if (typeof property === 'object' && property !== null && '__pointer' in property && '__doNotCompile' in property) { | ||
if ((ObjectCompiler.isObject(property) && '__pointer' in property && '__doNotCompile' in property) || (ObjectCompiler.isObject(resolvedProperty) && '__doNotCompile' in property)) { | ||
return resolvedProperty; | ||
@@ -113,2 +113,6 @@ } | ||
} | ||
static isObject(obj: any) { | ||
return typeof obj === 'object' && obj !== null && !Array.isArray(obj); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
488107
0.12%4420
0.16%