@elsikora/nestjs-crud-automator 1.4.7 → 1.4.8
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.
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elsikora/nestjs-crud-automator",
|
|
3
|
+
"version": "1.4.8",
|
|
4
|
+
"description": "A library for automating the creation of CRUD operations in NestJS.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"NestJS",
|
|
7
|
+
"CRUD",
|
|
8
|
+
"TypeORM",
|
|
9
|
+
"REST API",
|
|
10
|
+
"Swagger",
|
|
11
|
+
"Decorator"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/ElsiKora/NestJS-Crud-Automator"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "ElsiKora",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"require": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "npm run prebuild && tsc -p tsconfig.build.json && node scripts/modify-package.js",
|
|
32
|
+
"format": "prettier --check .",
|
|
33
|
+
"format:fix": "prettier --write .",
|
|
34
|
+
"lint": "eslint ./src && prettier --check .",
|
|
35
|
+
"lint:fix": "eslint ./src --fix && prettier --write .",
|
|
36
|
+
"patch": "changeset",
|
|
37
|
+
"prebuild": "rm -rf dist/*",
|
|
38
|
+
"release": "npm install && npm run build && changeset publish"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@changesets/cli": "^2.27.9",
|
|
42
|
+
"@elsikora/eslint-config": "^3.1.4",
|
|
43
|
+
"@elsikora/eslint-plugin-nestjs-typed": "^2.0.4",
|
|
44
|
+
"@eslint-react/eslint-plugin": "^1.15.2",
|
|
45
|
+
"@eslint/compat": "^1.2.2",
|
|
46
|
+
"@eslint/js": "^9.14.0",
|
|
47
|
+
"@nestjs/passport": "^10.0.3",
|
|
48
|
+
"@stylistic/eslint-plugin": "^2.10.1",
|
|
49
|
+
"@types/eslint__js": "^8.42.3",
|
|
50
|
+
"@types/lodash": "^4.17.13",
|
|
51
|
+
"@types/node": "^22.8.2",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^8.13.0",
|
|
53
|
+
"@typescript-eslint/parser": "^8.13.0",
|
|
54
|
+
"eslint-config-prettier": "^9.1.0",
|
|
55
|
+
"eslint-plugin-check-file": "^2.8.0",
|
|
56
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
57
|
+
"eslint-plugin-n": "^17.12.0",
|
|
58
|
+
"eslint-plugin-ng-module-sort": "^1.3.1",
|
|
59
|
+
"eslint-plugin-package-json": "^0.15.5",
|
|
60
|
+
"eslint-plugin-perfectionist": "^3.9.1",
|
|
61
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
62
|
+
"eslint-plugin-regexp": "^2.6.0",
|
|
63
|
+
"eslint-plugin-sonarjs": "^2.0.4",
|
|
64
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
65
|
+
"eslint-plugin-typeorm-typescript": "^0.4.0",
|
|
66
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
67
|
+
"eslint-plugin-yml": "^1.15.0",
|
|
68
|
+
"prettier": "^3.3.3",
|
|
69
|
+
"typescript": "^5.6.3",
|
|
70
|
+
"typescript-eslint": "^8.13.0"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"@nestjs/common": ">=10.4.6",
|
|
74
|
+
"@nestjs/core": ">=10.4.6",
|
|
75
|
+
"@nestjs/platform-fastify": ">=10.4.6",
|
|
76
|
+
"@nestjs/swagger": ">=8.0.0",
|
|
77
|
+
"@nestjs/throttler": ">=6.2.1",
|
|
78
|
+
"class-transformer": ">=0.5.1",
|
|
79
|
+
"class-validator": ">=0.14.1",
|
|
80
|
+
"fastify": ">=5.0.0",
|
|
81
|
+
"lodash": ">=4.17.21",
|
|
82
|
+
"typeorm": ">=0.3.20"
|
|
83
|
+
},
|
|
84
|
+
"publishConfig": {
|
|
85
|
+
"access": "public"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -17,6 +17,7 @@ const object_decorator_1 = require("../../decorator/api/property/object.decorato
|
|
|
17
17
|
const string_decorator_1 = require("../../decorator/api/property/string.decorator");
|
|
18
18
|
const uuid_decorator_1 = require("../../decorator/api/property/uuid.decorator");
|
|
19
19
|
const enum_1 = require("../../enum");
|
|
20
|
+
const capitalize_string_utility_1 = require("../capitalize-string.utility");
|
|
20
21
|
function DtoGenerateException(httpStatus) {
|
|
21
22
|
const errorName = common_1.HttpStatus[httpStatus];
|
|
22
23
|
class GeneratedErrorDTO {
|
|
@@ -85,7 +86,7 @@ function DtoGenerateException(httpStatus) {
|
|
|
85
86
|
}),
|
|
86
87
|
__metadata("design:type", Number)
|
|
87
88
|
], GeneratedErrorDTO.prototype, "timestamp", void 0);
|
|
88
|
-
Object.defineProperty(GeneratedErrorDTO, "name", { value: `Exception${errorName}DTO` });
|
|
89
|
+
Object.defineProperty(GeneratedErrorDTO, "name", { value: `Exception${(0, capitalize_string_utility_1.CapitalizeString)(errorName)}DTO` });
|
|
89
90
|
return GeneratedErrorDTO;
|
|
90
91
|
}
|
|
91
92
|
//# sourceMappingURL=generate-exception.utility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-exception.utility.js","sourceRoot":"","sources":["../../../src/utility/dto/generate-exception.utility.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"generate-exception.utility.js","sourceRoot":"","sources":["../../../src/utility/dto/generate-exception.utility.ts"],"names":[],"mappings":";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;YAC/B,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,2BAAoB,CAAC,MAAM;SACjC,CAAC;;sDACgC;IAUlC;QARC,IAAA,oCAAiB,EAAC;YAClB,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YACzB,IAAI,EAAE,mBAAU;YAChB,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE,IAAI;SACd,CAAC;;yDACkC;IAapC;QAXC,IAAA,oCAAiB,EAAC;YAClB,WAAW,EAAE,WAAW;YACxB,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YACzB,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;YACnB,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,wBAAa,CAAC,iBAAiB;YACxC,OAAO,EAAE,wBAAa,CAAC,iBAAiB;YACxC,UAAU,EAAE,0BAAe,CAAC,GAAG;YAC/B,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,2BAAoB,CAAC,OAAO;SAClC,CAAC;;wDACiB;IAGpB,MAAM,CAAC,cAAc,CAAC,iBAAiB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,YAAY,IAAA,4CAAgB,EAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;IAE1G,OAAO,iBAAiB,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsikora/nestjs-crud-automator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "A library for automating the creation of CRUD operations in NestJS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NestJS",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "npm run prebuild && tsc -p tsconfig.build.json",
|
|
31
|
+
"build": "npm run prebuild && tsc -p tsconfig.build.json && node scripts/modify-package.js",
|
|
32
32
|
"format": "prettier --check .",
|
|
33
33
|
"format:fix": "prettier --write .",
|
|
34
34
|
"lint": "eslint ./src && prettier --check .",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"lodash": ">=4.17.21",
|
|
82
82
|
"typeorm": ">=0.3.20"
|
|
83
83
|
},
|
|
84
|
-
"type": "module",
|
|
85
84
|
"publishConfig": {
|
|
86
85
|
"access": "public"
|
|
87
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"type": "module"
|
|
88
88
|
}
|