@itrocks/framework 0.0.48 → 0.1.0
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/cjs/reflect-class.d.ts +3 -0
- package/cjs/reflect-class.js +3 -0
- package/package.json +1 -1
package/cjs/dependencies.js
CHANGED
|
@@ -110,12 +110,14 @@ function bind() {
|
|
|
110
110
|
action: request.action,
|
|
111
111
|
menu,
|
|
112
112
|
request,
|
|
113
|
-
|
|
113
|
+
scripts: config_1.config.container.scripts,
|
|
114
|
+
session: request.request.session,
|
|
115
|
+
styleSheets: config_1.config.container.styleSheets,
|
|
114
116
|
};
|
|
115
117
|
Object.assign(containerData, this);
|
|
116
118
|
const template = new template_insight_1.Template(data, containerData);
|
|
117
119
|
template.included = (request.request.headers['sec-fetch-dest'] === 'empty');
|
|
118
|
-
return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container)), statusCode, headers);
|
|
120
|
+
return this.htmlResponse(await template.parseFile(templateFile, (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
|
|
119
121
|
};
|
|
120
122
|
}
|
|
121
123
|
//# sourceMappingURL=dependencies.js.map
|
package/cjs/reflect-class.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { KeyOf } from '@itrocks/class-type';
|
|
1
2
|
import { PropertyTypes } from '@itrocks/property-type';
|
|
2
3
|
import { ReflectClass as RC } from '@itrocks/reflect';
|
|
4
|
+
import { ReflectProperty } from './reflect-property';
|
|
3
5
|
export declare class ReflectClass<T extends object = object> extends RC<T> {
|
|
4
6
|
inheritedPropertyTypes(propertyTypes: PropertyTypes): void;
|
|
5
7
|
get parent(): any;
|
|
@@ -7,5 +9,6 @@ export declare class ReflectClass<T extends object = object> extends RC<T> {
|
|
|
7
9
|
[s: string]: import("@itrocks/reflect").ReflectProperty<T>;
|
|
8
10
|
[Symbol.iterator](): Iterator<import("@itrocks/reflect").ReflectProperty<T>, any, any>;
|
|
9
11
|
};
|
|
12
|
+
property(name: KeyOf<T>): ReflectProperty<T>;
|
|
10
13
|
get uses(): import("@itrocks/class-type").Type[];
|
|
11
14
|
}
|
package/cjs/reflect-class.js
CHANGED
|
@@ -24,6 +24,9 @@ class ReflectClass extends reflect_1.ReflectClass {
|
|
|
24
24
|
}
|
|
25
25
|
return properties;
|
|
26
26
|
}
|
|
27
|
+
property(name) {
|
|
28
|
+
return new reflect_property_1.ReflectProperty(this, name);
|
|
29
|
+
}
|
|
27
30
|
get uses() {
|
|
28
31
|
const value = (0, uses_1.usesOf)(this.type);
|
|
29
32
|
Object.defineProperty(this, 'uses', { configurable: true, enumerable: false, value, writable: true });
|
package/package.json
CHANGED