@openapi-typescript-infra/service 4.12.1 → 4.13.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/.eslintrc.js +1 -1
- package/.prettierrc.js +1 -1
- package/.trunk/trunk.yaml +9 -9
- package/build/express-app/app.js +1 -2
- package/build/express-app/app.js.map +1 -1
- package/build/express-app/index.d.ts +1 -0
- package/build/express-app/index.js +1 -0
- package/build/express-app/index.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/src/express-app/app.ts +9 -7
- package/src/express-app/index.ts +1 -0
- package/tsconfig.json +4 -2
- package/vitest.config.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-typescript-infra/service",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.1",
|
|
4
4
|
"description": "An opinionated framework for building configuration driven services - web, api, or ob. Uses OpenAPI, pino logging, express, confit, Typescript and vitest.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -83,46 +83,46 @@
|
|
|
83
83
|
"@sesamecare-oss/opentelemetry-node-metrics": "^1.0.1",
|
|
84
84
|
"ajv": "^8.12.0",
|
|
85
85
|
"cookie-parser": "^1.4.6",
|
|
86
|
-
"dotenv": "^16.
|
|
86
|
+
"dotenv": "^16.4.1",
|
|
87
87
|
"express": "next",
|
|
88
88
|
"express-openapi-validator": "^5.1.2",
|
|
89
89
|
"glob": "^8.1.0",
|
|
90
90
|
"lodash": "^4.17.21",
|
|
91
91
|
"minimist": "^1.2.8",
|
|
92
92
|
"opentelemetry-instrumentation-fetch-node": "^1.1.2",
|
|
93
|
-
"pino": "^8.
|
|
93
|
+
"pino": "^8.17.2",
|
|
94
94
|
"read-pkg-up": "^7.0.1",
|
|
95
95
|
"request-ip": "^3.3.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@commitlint/cli": "^18.
|
|
99
|
-
"@commitlint/config-conventional": "^18.
|
|
100
|
-
"@openapi-typescript-infra/coconfig": "^4.
|
|
98
|
+
"@commitlint/cli": "^18.6.0",
|
|
99
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
100
|
+
"@openapi-typescript-infra/coconfig": "^4.3.0",
|
|
101
101
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
102
102
|
"@semantic-release/exec": "^6.0.3",
|
|
103
|
-
"@semantic-release/github": "^9.2.
|
|
103
|
+
"@semantic-release/github": "^9.2.6",
|
|
104
104
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
105
105
|
"@types/cookie-parser": "^1.4.6",
|
|
106
106
|
"@types/express": "^4.17.21",
|
|
107
107
|
"@types/glob": "^8.1.0",
|
|
108
108
|
"@types/lodash": "^4.14.202",
|
|
109
109
|
"@types/minimist": "^1.2.5",
|
|
110
|
-
"@types/node": "^20.
|
|
110
|
+
"@types/node": "^20.11.6",
|
|
111
111
|
"@types/request-ip": "^0.0.41",
|
|
112
112
|
"@types/supertest": "^2.0.16",
|
|
113
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
114
|
-
"@typescript-eslint/parser": "^6.
|
|
115
|
-
"coconfig": "^1.
|
|
116
|
-
"eslint": "^8.
|
|
113
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
114
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
115
|
+
"coconfig": "^1.4.1",
|
|
116
|
+
"eslint": "^8.56.0",
|
|
117
117
|
"eslint-config-prettier": "^9.1.0",
|
|
118
|
-
"eslint-plugin-import": "^2.29.
|
|
119
|
-
"pino-pretty": "^10.
|
|
118
|
+
"eslint-plugin-import": "^2.29.1",
|
|
119
|
+
"pino-pretty": "^10.3.1",
|
|
120
120
|
"pinst": "^3.0.0",
|
|
121
|
-
"supertest": "^6.3.
|
|
122
|
-
"ts-node": "^10.9.
|
|
121
|
+
"supertest": "^6.3.4",
|
|
122
|
+
"ts-node": "^10.9.2",
|
|
123
123
|
"tsconfig-paths": "^4.2.0",
|
|
124
124
|
"typescript": "^5.3.3",
|
|
125
|
-
"vitest": "^1.
|
|
125
|
+
"vitest": "^1.2.1"
|
|
126
126
|
},
|
|
127
127
|
"resolutions": {
|
|
128
128
|
"qs": "^6.11.0"
|
package/src/express-app/app.ts
CHANGED
|
@@ -53,15 +53,17 @@ export async function startApp<
|
|
|
53
53
|
minLength: process.env.LOG_BUFFER ? Number(process.env.LOG_BUFFER) : undefined,
|
|
54
54
|
});
|
|
55
55
|
const logger = shouldPrettyPrint
|
|
56
|
-
? pino(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
? pino(
|
|
57
|
+
{
|
|
58
|
+
transport: {
|
|
59
|
+
target: 'pino-pretty',
|
|
60
|
+
options: {
|
|
61
|
+
colorize: true,
|
|
62
|
+
},
|
|
62
63
|
},
|
|
63
64
|
},
|
|
64
|
-
|
|
65
|
+
destination,
|
|
66
|
+
)
|
|
65
67
|
: pino(
|
|
66
68
|
{
|
|
67
69
|
formatters: {
|
package/src/express-app/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"__tests__/**/*",
|
|
6
6
|
"__mocks__/**/*",
|
|
7
7
|
"coconfig.ts",
|
|
8
|
-
"vitest.config.ts"
|
|
8
|
+
"vitest.config.ts",
|
|
9
|
+
"tsup.config.ts"
|
|
9
10
|
],
|
|
10
11
|
"exclude": [
|
|
11
12
|
"node_modules",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"@/*": [
|
|
38
39
|
"./*"
|
|
39
40
|
]
|
|
40
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"skipLibCheck": true
|
|
41
43
|
}
|
|
42
44
|
}
|
package/vitest.config.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Instead, edit the coconfig.js or coconfig.ts file in your project root.
|
|
4
4
|
*
|
|
5
5
|
* See https://github.com/gas-buddy/coconfig for more information.
|
|
6
|
-
* @version coconfig@1.
|
|
6
|
+
* @version coconfig@1.4.1
|
|
7
7
|
*/
|
|
8
8
|
import cjs from '@openapi-typescript-infra/coconfig';
|
|
9
9
|
import * as esmToCjs from '@openapi-typescript-infra/coconfig';
|