@itrocks/framework 0.1.0 → 0.1.2
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 +4 -2
- 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,
|
|
@@ -116,7 +118,7 @@ function bind() {
|
|
|
116
118
|
};
|
|
117
119
|
Object.assign(containerData, this);
|
|
118
120
|
const template = new template_insight_1.Template(data, containerData);
|
|
119
|
-
template.included =
|
|
121
|
+
template.included = !!request.request.headers['xhr-info'];
|
|
120
122
|
return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
|
|
121
123
|
};
|
|
122
124
|
}
|
package/package.json
CHANGED