@itrocks/framework 0.0.47 → 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.
@@ -110,12 +110,14 @@ function bind() {
110
110
  action: request.action,
111
111
  menu,
112
112
  request,
113
- session: request.request.session
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/main.js CHANGED
@@ -57,6 +57,7 @@ async function run() {
57
57
  execute: request => execute(new action_request_2.Request(request)),
58
58
  favicon: '/node_modules/@itrocks/framework/favicon.ico',
59
59
  frontScripts: template_1.frontScripts,
60
+ host: config_1.config.host ?? '127.0.0.1',
60
61
  port: 3000,
61
62
  scriptCalls: ['loadCss', 'loadScript'],
62
63
  secret: config_1.config.secret,
@@ -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
  }
@@ -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
@@ -91,5 +91,5 @@
91
91
  "build:front": "tsc -p src/front/tsconfig.json && sed -i 's#../../##g' *.js *.d.ts"
92
92
  },
93
93
  "types": "./cjs/framework.d.ts",
94
- "version": "0.0.47"
94
+ "version": "0.1.0"
95
95
  }