@orion-js/typed-model 3.0.38 → 3.1.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Orionjs Team
3
+ Copyright (c) 2022 Orionjs Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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.38",
3
+ "version": "3.1.6",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -17,10 +17,10 @@
17
17
  "test": "jest --config jest.config.js"
18
18
  },
19
19
  "dependencies": {
20
- "@orion-js/helpers": "^3.0.36",
21
- "@orion-js/models": "^3.0.38",
22
- "@orion-js/resolvers": "^3.0.37",
23
- "@orion-js/schema": "^3.0.37",
20
+ "@orion-js/helpers": "^3.1.6",
21
+ "@orion-js/models": "^3.1.6",
22
+ "@orion-js/resolvers": "^3.1.6",
23
+ "@orion-js/schema": "^3.1.6",
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": "00903f1488b72e13b7d5031a916eb897d0d80e0c"
42
+ "gitHead": "cb180a6a89ee2042f9d3dc80725f3aa05705a963"
43
43
  }