nicot 1.3.7 → 1.4.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.
- package/README-CN.md +19 -0
- package/README.md +16 -0
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +12 -11
- package/dist/index.mjs.map +2 -2
- package/dist/src/utility/metadata.d.ts +2 -2
- package/index.ts +2 -0
- package/package.json +12 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MetadataSetter
|
|
1
|
+
import { MetadataSetter } from 'typed-reflector';
|
|
2
2
|
import { QueryCond } from '../bases';
|
|
3
3
|
import { AnyClass } from 'nesties';
|
|
4
4
|
import { QueryFullTextColumnOptions } from './query-full-text-column-options.interface';
|
|
@@ -36,7 +36,7 @@ type FieldsMap = {
|
|
|
36
36
|
[K in keyof MetadataMap as `${K}Fields`]: string;
|
|
37
37
|
};
|
|
38
38
|
export declare const Metadata: MetadataSetter<MetadataMap, FieldsMap>;
|
|
39
|
-
export declare const reflector:
|
|
39
|
+
export declare const reflector: MetadataSetter<MetadataMap, FieldsMap>;
|
|
40
40
|
export declare function getSpecificFields<K extends keyof SpecificFields>(obj: any, type: K, filter?: (meta: SpecificFields[K], obj: any) => boolean): FieldsMap[`${K}Fields`][];
|
|
41
41
|
export declare function getNotInResultFields(obj: any, keepEntityVersioningDates?: boolean): string[];
|
|
42
42
|
export {};
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nicot",
|
|
3
3
|
"description": "Nest.js interacting with class-validator + OpenAPI + TypeORM for Nest.js Restful API development.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
"transform": {
|
|
57
57
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
58
58
|
},
|
|
59
|
+
"setupFiles": [
|
|
60
|
+
"reflect-metadata"
|
|
61
|
+
],
|
|
59
62
|
"collectCoverageFrom": [
|
|
60
63
|
"**/*.(t|j)s"
|
|
61
64
|
],
|
|
@@ -66,13 +69,14 @@
|
|
|
66
69
|
"@nestjs/core": "^11.0.14",
|
|
67
70
|
"@nestjs/platform-express": "^11.0.14",
|
|
68
71
|
"@nestjs/testing": "^11.0.14",
|
|
69
|
-
"@nestjs/typeorm": "^11.0.
|
|
72
|
+
"@nestjs/typeorm": "^11.0.1",
|
|
70
73
|
"@types/jest": "^29.5.14",
|
|
71
74
|
"@types/lodash": "^4.17.20",
|
|
72
75
|
"@types/node": "^22.15.2",
|
|
73
76
|
"@types/supertest": "^2.0.12",
|
|
74
77
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
75
78
|
"@typescript-eslint/parser": "^4.33.0",
|
|
79
|
+
"class-validator": "^0.15.1",
|
|
76
80
|
"esbuild": "^0.25.12",
|
|
77
81
|
"esbuild-register": "^3.6.0",
|
|
78
82
|
"eslint": "^7.32.0",
|
|
@@ -84,6 +88,7 @@
|
|
|
84
88
|
"rxjs": "^7.8.2",
|
|
85
89
|
"supertest": "^6.2.4",
|
|
86
90
|
"ts-jest": "^29.3.2",
|
|
91
|
+
"typeorm": "^1.0.0",
|
|
87
92
|
"typescript": "^5.8.3"
|
|
88
93
|
},
|
|
89
94
|
"peerDependencies": {
|
|
@@ -92,16 +97,17 @@
|
|
|
92
97
|
"@nestjs/core": "^11.0.0 || ^9.4.0 || ^10.0.0",
|
|
93
98
|
"@nestjs/swagger": "^11.0.0 || ^7.1.8 || ^6.3.0",
|
|
94
99
|
"class-transformer": "^0.5.1",
|
|
95
|
-
"class-validator": "^0.14.0",
|
|
100
|
+
"class-validator": "^0.14.0 || ^0.15.0",
|
|
96
101
|
"rxjs": ">=7.0.0",
|
|
97
|
-
"typeorm": "^0.3.27"
|
|
102
|
+
"typeorm": "^0.3.27 || ^1.0.0"
|
|
98
103
|
},
|
|
99
104
|
"dependencies": {
|
|
100
105
|
"lodash": "^4.17.21",
|
|
101
|
-
"nesties": "^1.1.
|
|
106
|
+
"nesties": "^1.1.33",
|
|
102
107
|
"nfkit": "^1.0.13",
|
|
103
108
|
"p-queue": "6.6.2",
|
|
109
|
+
"reflect-metadata": "^0.2.2",
|
|
104
110
|
"superjson": "1.13.3",
|
|
105
|
-
"typed-reflector": "^1.
|
|
111
|
+
"typed-reflector": "^1.1.2"
|
|
106
112
|
}
|
|
107
113
|
}
|