Comparing version 1.1.19 to 1.1.20
@@ -13,2 +13,3 @@ "use strict"; | ||
const module_1 = require("../module"); | ||
const object_compiler_1 = require("../object-compiler"); | ||
class Renderer extends module_1.Module { | ||
@@ -28,3 +29,4 @@ render(config, context) { | ||
const template = yield this.getTemplate(config, context); | ||
const rendered = yield this.core(template, context, config.__metadata || {}); | ||
const metadata = yield object_compiler_1.ObjectCompiler.compile(config.__metadata || {}, context); | ||
const rendered = yield this.core(template, context, metadata); | ||
const parsed = yield this.parseRendered(rendered, config); | ||
@@ -31,0 +33,0 @@ if (cacheManager && cacheKey) { |
{ | ||
"name": "low", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "a templating driven low-code framework for rapid systems development", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "a110d72271b4642477edcb27e5d2c7bb9f39303e", | ||
"gitHead": "ed5c95baf12886be1a044b9a8dc29bd2ce27a2c6", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "@types/jest": "^24.9.0", |
@@ -5,2 +5,3 @@ import { Module } from '../module'; | ||
import { CacheConfig, CacheManager, CacheKey } from '../cache-managers/cache-manager'; | ||
import { ObjectCompiler } from '../object-compiler'; | ||
@@ -22,3 +23,4 @@ export class Renderer<C, S, T> extends Module<C, S> { | ||
const template = await this.getTemplate(config, context); | ||
const rendered = await this.core(template, context, config.__metadata || {}); | ||
const metadata = await ObjectCompiler.compile(config.__metadata || {}, context); | ||
const rendered = await this.core(template, context, metadata); | ||
const parsed = await this.parseRendered(rendered, config); | ||
@@ -25,0 +27,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
483542
4339