@itrocks/framework 0.0.36 → 0.0.37

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/framework.js CHANGED
@@ -10,7 +10,10 @@ Object.defineProperty(exports, "ReflectClass", { enumerable: true, get: function
10
10
  var reflect_property_1 = require("./reflect-property");
11
11
  Object.defineProperty(exports, "ReflectProperty", { enumerable: true, get: function () { return reflect_property_1.ReflectProperty; } });
12
12
  (0, config_2.scanConfigFiles)().then(() => {
13
- (0, compose_1.compose)(__dirname, config_1.config.compose);
13
+ const frameworkCompose = {
14
+ '@itrocks/store:Store': '/store-representative:Store'
15
+ };
16
+ (0, compose_1.compose)(__dirname, Object.assign(frameworkCompose, config_1.config.compose));
14
17
  require('@itrocks/default-action-workflow').build();
15
18
  require('./dependencies').bind();
16
19
  require('./main').run();
@@ -0,0 +1,2 @@
1
+ import { Type } from '@itrocks/class-type';
2
+ export declare function Store(name?: string | false): (target: Type) => void;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Store = Store;
4
+ const class_view_1 = require("@itrocks/class-view");
5
+ const store_1 = require("@itrocks/store");
6
+ function Store(name = '') {
7
+ const callBack = (0, store_1.Store)(name);
8
+ return function (target) {
9
+ (0, class_view_1.representativeOf)(target);
10
+ callBack(target);
11
+ };
12
+ }
13
+ //# sourceMappingURL=store-representative.js.map
package/package.json CHANGED
@@ -16,6 +16,7 @@
16
16
  "@itrocks/business-pack": "latest",
17
17
  "@itrocks/class-file": "latest",
18
18
  "@itrocks/class-type": "latest",
19
+ "@itrocks/class-view": "latest",
19
20
  "@itrocks/collapse": "latest",
20
21
  "@itrocks/collection": "latest",
21
22
  "@itrocks/compose": "latest",
@@ -49,6 +50,7 @@
49
50
  "@itrocks/request-response": "latest",
50
51
  "@itrocks/signup": "latest",
51
52
  "@itrocks/sql-functions": "latest",
53
+ "@itrocks/store": "latest",
52
54
  "@itrocks/table": "latest",
53
55
  "@itrocks/template": "latest",
54
56
  "@itrocks/template-insight": "latest",
@@ -97,5 +99,5 @@
97
99
  "build:front": "tsc -p src/front/tsconfig.json && sed -i 's#../../##g' *.js *.d.ts"
98
100
  },
99
101
  "types": "./cjs/framework.d.ts",
100
- "version": "0.0.36"
102
+ "version": "0.0.37"
101
103
  }