@expressots/core 1.7.0 → 1.8.1
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 +87 -41
- package/lib/CHANGELOG.md +123 -123
- package/lib/README.md +87 -41
- package/lib/cjs/application/app-container.js +3 -3
- package/lib/cjs/application/application.js +18 -4
- package/lib/cjs/console/console.js +3 -1
- package/lib/cjs/container-module/container-module.js +2 -0
- package/lib/cjs/decorator/scope-binding.js +2 -0
- package/lib/cjs/environment/env-validator.js +1 -0
- package/lib/cjs/error/app-error.js +26 -0
- package/lib/cjs/error/error-handler-middleware.js +16 -5
- package/lib/cjs/error/index.js +3 -1
- package/lib/cjs/error/report.js +4 -20
- package/lib/cjs/logger/general-logger.js +2 -2
- package/lib/cjs/types/application/app-container.d.ts +71 -5
- package/lib/cjs/types/application/app-container.d.ts.map +1 -1
- package/lib/cjs/types/application/application.d.ts +5 -1
- package/lib/cjs/types/application/application.d.ts.map +1 -1
- package/lib/cjs/types/common/project-config.provider.d.ts.map +1 -1
- package/lib/cjs/types/console/console.d.ts.map +1 -1
- package/lib/cjs/types/container-module/container-module.d.ts +1 -1
- package/lib/cjs/types/container-module/container-module.d.ts.map +1 -1
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/cjs/types/decorator/scope-binding.d.ts.map +1 -1
- package/lib/cjs/types/environment/env-validator.d.ts.map +1 -1
- package/lib/cjs/types/error/app-error.d.ts +30 -0
- package/lib/cjs/types/error/app-error.d.ts.map +1 -0
- package/lib/cjs/types/error/error-handler-middleware.d.ts +2 -3
- package/lib/cjs/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/cjs/types/error/index.d.ts +1 -0
- package/lib/cjs/types/error/index.d.ts.map +1 -1
- package/lib/cjs/types/error/report.d.ts +3 -9
- package/lib/cjs/types/error/report.d.ts.map +1 -1
- package/lib/cjs/types/logger/general-logger.d.ts.map +1 -1
- package/lib/esm/application/app-container.js +14 -11
- package/lib/esm/application/application.js +40 -19
- package/lib/esm/application/index.js +9 -2
- package/lib/esm/common/index.js +2 -1
- package/lib/esm/common/project-config.provider.js +2 -1
- package/lib/esm/console/console.js +18 -10
- package/lib/esm/console/index.js +5 -1
- package/lib/esm/container-module/container-module.js +23 -17
- package/lib/esm/container-module/index.js +6 -1
- package/lib/esm/controller/base-controller.js +9 -6
- package/lib/esm/controller/index.js +5 -1
- package/lib/esm/decorator/index.js +17 -1
- package/lib/esm/decorator/scope-binding.js +10 -4
- package/lib/esm/environment/env-validator.js +20 -13
- package/lib/esm/environment/index.js +5 -1
- package/lib/esm/error/app-error.js +37 -0
- package/lib/esm/error/error-handler-middleware.js +19 -6
- package/lib/esm/error/index.js +9 -2
- package/lib/esm/error/report.js +11 -23
- package/lib/esm/error/status-code.js +4 -1
- package/lib/esm/index.mjs +26 -10
- package/lib/esm/logger/general-logger.js +20 -13
- package/lib/esm/logger/index.js +7 -1
- package/lib/esm/render/handlebars.interface.js +2 -1
- package/lib/esm/render/index.js +2 -1
- package/lib/esm/render/render.type.js +2 -1
- package/lib/esm/types/application/app-container.d.ts +71 -5
- package/lib/esm/types/application/app-container.d.ts.map +1 -1
- package/lib/esm/types/application/application.d.ts +5 -1
- package/lib/esm/types/application/application.d.ts.map +1 -1
- package/lib/esm/types/common/project-config.provider.d.ts.map +1 -1
- package/lib/esm/types/console/console.d.ts.map +1 -1
- package/lib/esm/types/container-module/container-module.d.ts +1 -1
- package/lib/esm/types/container-module/container-module.d.ts.map +1 -1
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/decorator/scope-binding.d.ts.map +1 -1
- package/lib/esm/types/environment/env-validator.d.ts.map +1 -1
- package/lib/esm/types/error/app-error.d.ts +30 -0
- package/lib/esm/types/error/app-error.d.ts.map +1 -0
- package/lib/esm/types/error/error-handler-middleware.d.ts +2 -3
- package/lib/esm/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/esm/types/error/index.d.ts +1 -0
- package/lib/esm/types/error/index.d.ts.map +1 -1
- package/lib/esm/types/error/report.d.ts +3 -9
- package/lib/esm/types/error/report.d.ts.map +1 -1
- package/lib/esm/types/logger/general-logger.d.ts.map +1 -1
- package/lib/package.json +21 -13
- package/package.json +21 -13
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"node": ">=18.10.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
+
"prepare": "husky install",
|
|
53
54
|
"win-clean": "if exist lib (del /q lib\\*)",
|
|
54
55
|
"linux-clean": "rm -rf lib/*",
|
|
55
56
|
"win-cpy": "xcopy package.json lib\\ && xcopy README.md lib\\ && xcopy CHANGELOG.md lib\\ /Y",
|
|
@@ -58,35 +59,42 @@
|
|
|
58
59
|
"build:linux": "npm run linux-clean && npm run build:esm && npm run build:cjs && npm run linux-cpy",
|
|
59
60
|
"build:esm": "tsc -p tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs ",
|
|
60
61
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
61
|
-
"git": "powershell -Command \"git add .; git commit -m \"%1\"; npm run release\"",
|
|
62
62
|
"release": "release-it",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
63
|
+
"coverage": "vitest run --coverage",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:watch": "vitest",
|
|
66
|
+
"format:write": "prettier --write \"packages/**/*.ts\" --cache",
|
|
67
|
+
"lint": "eslint \"packages/**/*.ts\"",
|
|
68
|
+
"lint:fix": "eslint \"packages/**/*.ts\" --fix"
|
|
65
69
|
},
|
|
66
70
|
"dependencies": {
|
|
67
|
-
"@commitlint/cli": "^17.5.1",
|
|
68
|
-
"@commitlint/config-conventional": "^17.4.4",
|
|
69
|
-
"@release-it/conventional-changelog": "^6.0.0",
|
|
70
71
|
"chalk": "^4.1.2",
|
|
71
72
|
"dotenv": "^16.0.3",
|
|
72
73
|
"express": "^4.18.2",
|
|
73
|
-
"husky": "^8.0.3",
|
|
74
74
|
"inversify": "^6.0.1",
|
|
75
75
|
"inversify-binding-decorators": "^4.0.0",
|
|
76
76
|
"inversify-express-utils": "^6.4.3",
|
|
77
|
-
"jest": "^29.5.0",
|
|
78
77
|
"reflect-metadata": "^0.1.13",
|
|
79
|
-
"release-it": "^15.9.3",
|
|
80
78
|
"winston": "^3.8.2",
|
|
81
79
|
"winston-daily-rotate-file": "^4.7.1"
|
|
82
80
|
},
|
|
83
81
|
"devDependencies": {
|
|
82
|
+
"@commitlint/cli": "^17.7.1",
|
|
83
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
84
|
+
"@release-it/conventional-changelog": "^7.0.1",
|
|
84
85
|
"@types/express": "^4.17.17",
|
|
85
|
-
"@types/jest": "^29.5.0",
|
|
86
86
|
"@types/node": "^20.4.9",
|
|
87
|
-
"
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
88
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
89
|
+
"eslint": "^8.48.0",
|
|
90
|
+
"eslint-config-prettier": "^9.0.0",
|
|
91
|
+
"husky": "^8.0.3",
|
|
92
|
+
"prettier": "3.0.3",
|
|
93
|
+
"release-it": "^16.1.5",
|
|
88
94
|
"ts-jest": "^29.0.5",
|
|
89
|
-
"typescript": "^5.0.3"
|
|
95
|
+
"typescript": "^5.0.3",
|
|
96
|
+
"vite": "4.4.9",
|
|
97
|
+
"vitest": "0.34.3"
|
|
90
98
|
},
|
|
91
99
|
"release-it": {
|
|
92
100
|
"git": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"node": ">=18.10.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
+
"prepare": "husky install",
|
|
53
54
|
"win-clean": "if exist lib (del /q lib\\*)",
|
|
54
55
|
"linux-clean": "rm -rf lib/*",
|
|
55
56
|
"win-cpy": "xcopy package.json lib\\ && xcopy README.md lib\\ && xcopy CHANGELOG.md lib\\ /Y",
|
|
@@ -58,35 +59,42 @@
|
|
|
58
59
|
"build:linux": "npm run linux-clean && npm run build:esm && npm run build:cjs && npm run linux-cpy",
|
|
59
60
|
"build:esm": "tsc -p tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs ",
|
|
60
61
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
61
|
-
"git": "powershell -Command \"git add .; git commit -m \"%1\"; npm run release\"",
|
|
62
62
|
"release": "release-it",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
63
|
+
"coverage": "vitest run --coverage",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:watch": "vitest",
|
|
66
|
+
"format:write": "prettier --write \"packages/**/*.ts\" --cache",
|
|
67
|
+
"lint": "eslint \"packages/**/*.ts\"",
|
|
68
|
+
"lint:fix": "eslint \"packages/**/*.ts\" --fix"
|
|
65
69
|
},
|
|
66
70
|
"dependencies": {
|
|
67
|
-
"@commitlint/cli": "^17.5.1",
|
|
68
|
-
"@commitlint/config-conventional": "^17.4.4",
|
|
69
|
-
"@release-it/conventional-changelog": "^6.0.0",
|
|
70
71
|
"chalk": "^4.1.2",
|
|
71
72
|
"dotenv": "^16.0.3",
|
|
72
73
|
"express": "^4.18.2",
|
|
73
|
-
"husky": "^8.0.3",
|
|
74
74
|
"inversify": "^6.0.1",
|
|
75
75
|
"inversify-binding-decorators": "^4.0.0",
|
|
76
76
|
"inversify-express-utils": "^6.4.3",
|
|
77
|
-
"jest": "^29.5.0",
|
|
78
77
|
"reflect-metadata": "^0.1.13",
|
|
79
|
-
"release-it": "^15.9.3",
|
|
80
78
|
"winston": "^3.8.2",
|
|
81
79
|
"winston-daily-rotate-file": "^4.7.1"
|
|
82
80
|
},
|
|
83
81
|
"devDependencies": {
|
|
82
|
+
"@commitlint/cli": "^17.7.1",
|
|
83
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
84
|
+
"@release-it/conventional-changelog": "^7.0.1",
|
|
84
85
|
"@types/express": "^4.17.17",
|
|
85
|
-
"@types/jest": "^29.5.0",
|
|
86
86
|
"@types/node": "^20.4.9",
|
|
87
|
-
"
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
|
88
|
+
"@typescript-eslint/parser": "^6.6.0",
|
|
89
|
+
"eslint": "^8.48.0",
|
|
90
|
+
"eslint-config-prettier": "^9.0.0",
|
|
91
|
+
"husky": "^8.0.3",
|
|
92
|
+
"prettier": "3.0.3",
|
|
93
|
+
"release-it": "^16.1.5",
|
|
88
94
|
"ts-jest": "^29.0.5",
|
|
89
|
-
"typescript": "^5.0.3"
|
|
95
|
+
"typescript": "^5.0.3",
|
|
96
|
+
"vite": "4.4.9",
|
|
97
|
+
"vitest": "0.34.3"
|
|
90
98
|
},
|
|
91
99
|
"release-it": {
|
|
92
100
|
"git": {
|