@trojs/openapi-server 1.0.0 → 1.0.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/package.json +3 -3
- package/src/server.js +2 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trojs/openapi-server",
|
|
3
3
|
"description": "OpenAPI Server",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pieter Wigboldus",
|
|
7
7
|
"url": "https://trojs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"eslint-plugin-promise": "^6.0.1",
|
|
45
45
|
"eslint-plugin-sonarjs": "^0.25.1",
|
|
46
46
|
"jscpd": "^3.2.1",
|
|
47
|
-
"supertest": "^
|
|
47
|
+
"supertest": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"express"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@sentry/node": "^
|
|
62
|
+
"@sentry/node": "^8.0.0",
|
|
63
63
|
"ajv-formats": "^3.0.0",
|
|
64
64
|
"body-parser": "^1.20.2",
|
|
65
65
|
"compression": "^1.7.4",
|
package/src/server.js
CHANGED
|
@@ -69,15 +69,12 @@ export const setupServer = async ({ apis, origin = '*', staticFolder, sentry, po
|
|
|
69
69
|
Sentry.init({
|
|
70
70
|
dsn: sentry.dsn,
|
|
71
71
|
integrations: [
|
|
72
|
-
|
|
73
|
-
new Sentry.Integrations.Express({ app })
|
|
72
|
+
Sentry.anrIntegration({ captureStackTrace: true })
|
|
74
73
|
],
|
|
75
74
|
tracesSampleRate: sentry.tracesSampleRate || 1.0,
|
|
76
75
|
profilesSampleRate: sentry.profilesSampleRate || 1.0,
|
|
77
76
|
release: sentry.release
|
|
78
77
|
})
|
|
79
|
-
|
|
80
|
-
app.use(Sentry.Handlers.requestHandler())
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
app.use(cors(corsOptions))
|
|
@@ -102,7 +99,7 @@ export const setupServer = async ({ apis, origin = '*', staticFolder, sentry, po
|
|
|
102
99
|
})
|
|
103
100
|
|
|
104
101
|
if (sentry) {
|
|
105
|
-
|
|
102
|
+
Sentry.setupExpressErrorHandler(app)
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
return { app }
|