@itrocks/framework 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/dependencies.js +5 -3
- package/package.json +1 -1
package/cjs/dependencies.js
CHANGED
|
@@ -73,7 +73,9 @@ function bind() {
|
|
|
73
73
|
return value;
|
|
74
74
|
},
|
|
75
75
|
applySaveTransformer: async function (object, property, data) {
|
|
76
|
-
const value = Reflect.getMetadata(lazy_loading_2.PROTECT_GET, object, property)
|
|
76
|
+
const value = Reflect.getMetadata(lazy_loading_2.PROTECT_GET, object, property)
|
|
77
|
+
? (Object.hasOwn(object, property) ? object[property] : undefined)
|
|
78
|
+
: await object[property];
|
|
77
79
|
return (0, transformer_1.applyTransformer)(value, object, property, transformer_3.SQL, transformer_3.SAVE, data);
|
|
78
80
|
},
|
|
79
81
|
columnOf: rename_1.toColumn,
|
|
@@ -115,9 +117,9 @@ function bind() {
|
|
|
115
117
|
styleSheets: config_1.config.container.styleSheets,
|
|
116
118
|
};
|
|
117
119
|
Object.assign(containerData, this);
|
|
120
|
+
const contained = !request.request.headers['xhr-info'];
|
|
118
121
|
const template = new template_insight_1.Template(data, containerData);
|
|
119
|
-
template.
|
|
120
|
-
return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
|
|
122
|
+
return this.htmlResponse(await template.parseFile(templateFile, contained && (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
|
|
121
123
|
};
|
|
122
124
|
}
|
|
123
125
|
//# sourceMappingURL=dependencies.js.map
|
package/package.json
CHANGED