@expressots/shared 3.0.0 → 4.0.0-preview.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.
Files changed (63) hide show
  1. package/README.md +31 -98
  2. package/lib/CHANGELOG.md +82 -65
  3. package/lib/README.md +31 -98
  4. package/lib/cjs/env/cli-options.js +2 -2
  5. package/lib/cjs/env/environment.js +10 -10
  6. package/lib/cjs/env/index.js +1 -1
  7. package/lib/cjs/index.js +4 -4
  8. package/lib/cjs/interfaces/index.js +3 -5
  9. package/lib/cjs/types/config/index.d.ts +1 -1
  10. package/lib/cjs/types/config/project-config.d.ts +5 -0
  11. package/lib/cjs/types/env/cli-options.d.ts +1 -1
  12. package/lib/cjs/types/env/env-options.d.ts +1 -1
  13. package/lib/cjs/types/env/environment.d.ts +1 -1
  14. package/lib/cjs/types/env/index.d.ts +2 -2
  15. package/lib/cjs/types/index.d.ts +4 -4
  16. package/lib/cjs/types/interfaces/application-express.interface.d.ts +9 -4
  17. package/lib/cjs/types/interfaces/console.interface.d.ts +6 -0
  18. package/lib/cjs/types/interfaces/index.d.ts +5 -5
  19. package/lib/cjs/types/interfaces/render/render.types.d.ts +1 -1
  20. package/lib/cjs/types/utils/compiler.d.ts +1 -1
  21. package/lib/cjs/types/utils/index.d.ts +1 -1
  22. package/lib/cjs/utils/index.js +2 -2
  23. package/lib/esm/config/index.js +1 -0
  24. package/lib/esm/config/project-config.js +1 -0
  25. package/lib/esm/env/cli-options.js +15 -0
  26. package/lib/esm/env/constants.js +10 -0
  27. package/lib/esm/env/env-options.js +19 -0
  28. package/lib/esm/env/environment.js +304 -0
  29. package/lib/esm/env/index.js +1 -0
  30. package/lib/esm/env/interfaces.js +1 -0
  31. package/lib/esm/index.mjs +4 -0
  32. package/lib/esm/interfaces/application-express.interface.js +1 -0
  33. package/lib/esm/interfaces/console.interface.js +1 -0
  34. package/lib/esm/interfaces/environment.interface.js +19 -0
  35. package/lib/esm/interfaces/index.js +1 -0
  36. package/lib/esm/interfaces/middleware.interface.js +1 -0
  37. package/lib/esm/interfaces/render/ejs.types.js +2 -0
  38. package/lib/esm/interfaces/render/render.types.js +20 -0
  39. package/lib/esm/package.json +3 -0
  40. package/lib/esm/types/config/index.d.ts +1 -0
  41. package/lib/esm/types/config/project-config.d.ts +43 -0
  42. package/lib/esm/types/env/cli-options.d.ts +7 -0
  43. package/lib/esm/types/env/constants.d.ts +10 -0
  44. package/lib/esm/types/env/env-options.d.ts +9 -0
  45. package/lib/esm/types/env/environment.d.ts +83 -0
  46. package/lib/esm/types/env/index.d.ts +2 -0
  47. package/lib/esm/types/env/interfaces.d.ts +71 -0
  48. package/lib/esm/types/index.d.ts +4 -0
  49. package/lib/esm/types/interfaces/application-express.interface.d.ts +58 -0
  50. package/lib/esm/types/interfaces/console.interface.d.ts +14 -0
  51. package/lib/esm/types/interfaces/environment.interface.d.ts +37 -0
  52. package/lib/esm/types/interfaces/index.d.ts +5 -0
  53. package/lib/esm/types/interfaces/middleware.interface.d.ts +7 -0
  54. package/lib/esm/types/interfaces/render/ejs.types.d.ts +169 -0
  55. package/lib/esm/types/interfaces/render/render.types.d.ts +71 -0
  56. package/lib/esm/types/utils/compiler.d.ts +17 -0
  57. package/lib/esm/types/utils/index.d.ts +1 -0
  58. package/lib/esm/types/utils/logger.d.ts +19 -0
  59. package/lib/esm/utils/compiler.js +69 -0
  60. package/lib/esm/utils/index.js +1 -0
  61. package/lib/esm/utils/logger.js +60 -0
  62. package/lib/package.json +154 -147
  63. package/package.json +154 -147
package/package.json CHANGED
@@ -1,147 +1,154 @@
1
- {
2
- "name": "@expressots/shared",
3
- "version": "3.0.0",
4
- "description": "Shared library for ExpressoTS modules 🐎",
5
- "author": "Richard Zampieri <richard.zampieri@expresso-ts.com>",
6
- "main": "./lib/cjs/index.js",
7
- "types": "./lib/cjs/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": {
11
- "types": "./lib/esm/types/index.d.ts",
12
- "default": "./lib/esm/index.mjs"
13
- },
14
- "require": {
15
- "types": "./lib/cjs/types/index.d.ts",
16
- "default": "./lib/cjs/index.js"
17
- }
18
- }
19
- },
20
- "files": [
21
- "lib/**/*"
22
- ],
23
- "license": "MIT",
24
- "homepage": "https://expresso-ts.com",
25
- "funding": {
26
- "type": "github",
27
- "url": "https://github.com/sponsors/expressots"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/expressots/shared"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/expressots/shared/issues"
35
- },
36
- "publishConfig": {
37
- "access": "public"
38
- },
39
- "keywords": [
40
- "expressots",
41
- "nodejs",
42
- "typescript",
43
- "clean-architecture",
44
- "typescript-framework",
45
- "framework",
46
- "server-side",
47
- "backend",
48
- "library"
49
- ],
50
- "scripts": {
51
- "prepare": "husky",
52
- "clean": "node scripts/rm.js lib",
53
- "copy": "node scripts/copy.js package.json README.md CHANGELOG.md lib",
54
- "build": "npm run clean && npm run build:cjs && npm run copy",
55
- "build:cjs": "tsc -p tsconfig.cjs.json",
56
- "build:esm": "tsc -p tsconfig.esm.json",
57
- "release": "release-it",
58
- "prepublish": "npm run build && npm pack",
59
- "publish": "npm publish --tag latest",
60
- "test": "jest",
61
- "test:watch": "jest --watch",
62
- "coverage": "jest --coverage",
63
- "format": "prettier --write \"src/**/*.ts\" --cache",
64
- "lint": "eslint \"src/**/*.ts\"",
65
- "lint:fix": "eslint \"src/**/*.ts\" --fix"
66
- },
67
- "dependencies": {
68
- "reflect-metadata": "0.2.2",
69
- "ts-node": "10.9.2"
70
- },
71
- "devDependencies": {
72
- "@commitlint/cli": "19.4.1",
73
- "@commitlint/config-conventional": "19.2.2",
74
- "@release-it/conventional-changelog": "8.0.1",
75
- "@types/express": "4.17.21",
76
- "@types/jest": "29.5.13",
77
- "@types/node": "20.14.10",
78
- "@typescript-eslint/eslint-plugin": "7.16.1",
79
- "@typescript-eslint/parser": "7.16.1",
80
- "chalk": "4.1.2",
81
- "eslint": "8.57.0",
82
- "eslint-config-prettier": "9.1.0",
83
- "husky": "9.1.1",
84
- "jest": "29.7.0",
85
- "prettier": "3.3.3",
86
- "release-it": "17.6.0",
87
- "ts-jest": "29.2.5",
88
- "typescript": "5.5.3"
89
- },
90
- "release-it": {
91
- "git": {
92
- "commitMessage": "chore(release): ${version}"
93
- },
94
- "github": {
95
- "release": true
96
- },
97
- "npm": {
98
- "publish": false
99
- },
100
- "plugins": {
101
- "@release-it/conventional-changelog": {
102
- "infile": "CHANGELOG.md",
103
- "preset": {
104
- "name": "conventionalcommits",
105
- "types": [
106
- {
107
- "type": "feat",
108
- "section": "Features"
109
- },
110
- {
111
- "type": "fix",
112
- "section": "Bug Fixes"
113
- },
114
- {
115
- "type": "perf",
116
- "section": "Performance Improvements"
117
- },
118
- {
119
- "type": "revert",
120
- "section": "Reverts"
121
- },
122
- {
123
- "type": "docs",
124
- "section": "Documentation"
125
- },
126
- {
127
- "type": "refactor",
128
- "section": "Code Refactoring"
129
- },
130
- {
131
- "type": "test",
132
- "section": "Tests"
133
- },
134
- {
135
- "type": "build",
136
- "section": "Build System"
137
- },
138
- {
139
- "type": "ci",
140
- "section": "Continuous Integrations"
141
- }
142
- ]
143
- }
144
- }
145
- }
146
- }
147
- }
1
+ {
2
+ "name": "@expressots/shared",
3
+ "version": "4.0.0-preview.1",
4
+ "description": "Shared library for ExpressoTS modules 🐎",
5
+ "author": "Richard Zampieri <richard.zampieri@expresso-ts.com>",
6
+ "main": "./lib/cjs/index.js",
7
+ "types": "./lib/cjs/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./lib/esm/types/index.d.ts",
12
+ "default": "./lib/esm/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./lib/cjs/types/index.d.ts",
16
+ "default": "./lib/cjs/index.js"
17
+ }
18
+ }
19
+ },
20
+ "files": [
21
+ "lib/**/*"
22
+ ],
23
+ "license": "MIT",
24
+ "homepage": "https://expresso-ts.com",
25
+ "funding": {
26
+ "type": "github",
27
+ "url": "https://github.com/sponsors/expressots"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/expressots/shared"
32
+ },
33
+ "bugs": {
34
+ "url": "https://github.com/expressots/shared/issues"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "keywords": [
40
+ "expressots",
41
+ "nodejs",
42
+ "typescript",
43
+ "clean-architecture",
44
+ "typescript-framework",
45
+ "framework",
46
+ "server-side",
47
+ "backend",
48
+ "library"
49
+ ],
50
+ "scripts": {
51
+ "prepare": "husky",
52
+ "clean": "node scripts/rm.js lib",
53
+ "copy": "node scripts/copy.js package.json README.md CHANGELOG.md lib",
54
+ "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run copy",
55
+ "build:cjs": "tsc -p tsconfig.cjs.json",
56
+ "build:esm": "node scripts/build-esm.js",
57
+ "release": "release-it",
58
+ "prepublish": "npm run build && npm pack",
59
+ "test": "jest",
60
+ "test:watch": "jest --watch",
61
+ "coverage": "jest --coverage",
62
+ "format": "prettier --write \"src/**/*.ts\" --cache",
63
+ "lint": "eslint \"src/**/*.ts\"",
64
+ "lint:fix": "eslint \"src/**/*.ts\" --fix"
65
+ },
66
+ "dependencies": {
67
+ "chalk": "4.1.2"
68
+ },
69
+ "peerDependencies": {
70
+ "ts-node": ">=10.0.0"
71
+ },
72
+ "peerDependenciesMeta": {
73
+ "ts-node": {
74
+ "optional": true
75
+ }
76
+ },
77
+ "devDependencies": {
78
+ "ts-node": "10.9.2",
79
+ "@commitlint/cli": "19.6.0",
80
+ "@commitlint/config-conventional": "19.6.0",
81
+ "@release-it/conventional-changelog": "8.0.1",
82
+ "@types/express": "4.17.21",
83
+ "@types/jest": "29.5.13",
84
+ "@types/node": "20.14.10",
85
+ "@typescript-eslint/eslint-plugin": "8.25.0",
86
+ "@typescript-eslint/parser": "8.25.0",
87
+ "eslint": "8.57.0",
88
+ "eslint-config-prettier": "10.0.2",
89
+ "husky": "9.1.1",
90
+ "jest": "29.7.0",
91
+ "prettier": "3.5.3",
92
+ "reflect-metadata": "0.2.2",
93
+ "release-it": "17.6.0",
94
+ "ts-jest": "29.2.5",
95
+ "typescript": "5.5.3"
96
+ },
97
+ "release-it": {
98
+ "git": {
99
+ "commitMessage": "chore(release): ${version}"
100
+ },
101
+ "github": {
102
+ "release": true
103
+ },
104
+ "npm": {
105
+ "publish": false
106
+ },
107
+ "plugins": {
108
+ "@release-it/conventional-changelog": {
109
+ "infile": "CHANGELOG.md",
110
+ "preset": {
111
+ "name": "conventionalcommits",
112
+ "types": [
113
+ {
114
+ "type": "feat",
115
+ "section": "Features"
116
+ },
117
+ {
118
+ "type": "fix",
119
+ "section": "Bug Fixes"
120
+ },
121
+ {
122
+ "type": "perf",
123
+ "section": "Performance Improvements"
124
+ },
125
+ {
126
+ "type": "revert",
127
+ "section": "Reverts"
128
+ },
129
+ {
130
+ "type": "docs",
131
+ "section": "Documentation"
132
+ },
133
+ {
134
+ "type": "refactor",
135
+ "section": "Code Refactoring"
136
+ },
137
+ {
138
+ "type": "test",
139
+ "section": "Tests"
140
+ },
141
+ {
142
+ "type": "build",
143
+ "section": "Build System"
144
+ },
145
+ {
146
+ "type": "ci",
147
+ "section": "Continuous Integrations"
148
+ }
149
+ ]
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }