@clairejs/server 3.19.2 → 3.19.3

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/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.19.2:
3
+ #### 3.19.3:
4
4
 
5
+ - update claire orm and fix
5
6
  - fix isEndpoint
6
7
  - fix ModelRepository getMany
7
8
  - adapt interface with new claire orm
@@ -1,5 +1,5 @@
1
- import { DataType, getModelById, getServiceProvider, RangeQueryDto, uniqueReducer, leanData, getSystemLocale, Errors, omitData, } from "@clairejs/core";
2
- import { getDirectFields, } from "@clairejs/orm";
1
+ import { DataType, getModelById, getServiceProvider, RangeQueryDto, uniqueReducer, leanData, getSystemLocale, Errors, omitData, MODEL_FIELD_SEPARATOR, } from "@clairejs/core";
2
+ import { getDirectFields } from "@clairejs/orm";
3
3
  import { AbstractFileUploadHandler } from "../file-upload/AbstractFileUploadHandler";
4
4
  import { AbstractRepository } from "./AbstractRepository";
5
5
  import { LocaleTranslation } from "../../system/locale/LocaleTranslation";
@@ -41,7 +41,7 @@ export class ModelRepository extends AbstractRepository {
41
41
  getRequestQueryConditionFromQuery(queries, modelMetadata) {
42
42
  const result = [];
43
43
  for (const fieldMetadata of getDirectFields(modelMetadata)) {
44
- const fieldName = `${modelMetadata.id}.${fieldMetadata.name}`;
44
+ const fieldName = `${modelMetadata.id}${MODEL_FIELD_SEPARATOR}${fieldMetadata.name}`;
45
45
  const queryValue = queries[fieldMetadata.name];
46
46
  if (queryValue === undefined) {
47
47
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.19.2",
3
+ "version": "3.19.3",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -15,6 +15,7 @@
15
15
  "author": "immort",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
+ "@clairejs/client": "^3.4.1",
18
19
  "aws-sdk": "^2.841.0",
19
20
  "axios": "^0.21.4",
20
21
  "cookie-parser": "^1.4.6",
@@ -33,8 +34,8 @@
33
34
  "ws": "^7.5.5"
34
35
  },
35
36
  "peerDependencies": {
36
- "@clairejs/core": "^3.7.9",
37
- "@clairejs/orm": "^3.15.2"
37
+ "@clairejs/core": "^3.8.2",
38
+ "@clairejs/orm": "^3.15.8"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@types/cookie-parser": "^1.4.3",