@orion-js/typed-model 3.0.36 → 3.1.0-alpha.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.
|
@@ -6,7 +6,7 @@ const metadataStorage_1 = require("../storage/metadataStorage");
|
|
|
6
6
|
function TypedModel() {
|
|
7
7
|
return target => {
|
|
8
8
|
metadataStorage_1.MetadataStorage.addSchemaMetadata({ target });
|
|
9
|
-
// @ts-expect-error
|
|
9
|
+
// @ts-expect-error this is a trick to make it work in resolvers without having to call getModelForClass
|
|
10
10
|
target.getModel = () => (0, __1.getModelForClass)(target);
|
|
11
11
|
};
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/typed-model",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-alpha.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@orion-js/helpers": "^3.0.36",
|
|
21
|
-
"@orion-js/models": "^3.0.
|
|
22
|
-
"@orion-js/resolvers": "^3.0.
|
|
23
|
-
"@orion-js/schema": "^3.0.
|
|
21
|
+
"@orion-js/models": "^3.0.38",
|
|
22
|
+
"@orion-js/resolvers": "^3.0.37",
|
|
23
|
+
"@orion-js/schema": "^3.0.37",
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
25
|
"reflect-metadata": "0.1.13"
|
|
26
26
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "67abbfa1d2e0a3eed10e20966c656a53652b9d89"
|
|
43
43
|
}
|