@adonisjs/http-server 6.8.2-13 → 6.8.2-14
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/build/src/exception_handler.js +3 -1
- package/package.json +13 -13
|
@@ -176,7 +176,9 @@ export class ExceptionHandler extends Macroable {
|
|
|
176
176
|
async renderErrorAsHTML(error, ctx) {
|
|
177
177
|
if (this.isDebuggingEnabled(ctx)) {
|
|
178
178
|
const { default: Youch } = await import('youch');
|
|
179
|
-
const html = await new Youch(error, ctx.request.request).toHTML(
|
|
179
|
+
const html = await new Youch(error, ctx.request.request).toHTML({
|
|
180
|
+
cspNonce: 'nonce' in ctx.response ? ctx.response.nonce : undefined,
|
|
181
|
+
});
|
|
180
182
|
ctx.response.status(error.status).send(html);
|
|
181
183
|
return;
|
|
182
184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/http-server",
|
|
3
|
-
"version": "6.8.2-
|
|
3
|
+
"version": "6.8.2-14",
|
|
4
4
|
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@japa/assert": "^2.0.0-1",
|
|
59
59
|
"@japa/expect-type": "^2.0.0-0",
|
|
60
60
|
"@japa/runner": "^3.0.0-5",
|
|
61
|
-
"@swc/core": "^1.3.
|
|
61
|
+
"@swc/core": "^1.3.82",
|
|
62
62
|
"@types/accepts": "^1.3.5",
|
|
63
|
-
"@types/content-disposition": "^0.5.
|
|
64
|
-
"@types/cookie": "^0.5.
|
|
63
|
+
"@types/content-disposition": "^0.5.6",
|
|
64
|
+
"@types/cookie": "^0.5.2",
|
|
65
65
|
"@types/destroy": "^1.0.0",
|
|
66
66
|
"@types/encodeurl": "^1.0.0",
|
|
67
67
|
"@types/etag": "^1.8.1",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"@types/fs-extra": "^11.0.1",
|
|
70
70
|
"@types/http-status-codes": "^1.2.0",
|
|
71
71
|
"@types/mime-types": "^2.1.1",
|
|
72
|
-
"@types/node": "^20.5.
|
|
73
|
-
"@types/on-finished": "^2.3.
|
|
72
|
+
"@types/node": "^20.5.9",
|
|
73
|
+
"@types/on-finished": "^2.3.2",
|
|
74
74
|
"@types/pem": "^1.14.0",
|
|
75
75
|
"@types/proxy-addr": "^2.0.0",
|
|
76
|
-
"@types/qs": "^6.9.
|
|
76
|
+
"@types/qs": "^6.9.8",
|
|
77
77
|
"@types/supertest": "^2.0.12",
|
|
78
78
|
"@types/type-is": "^1.6.3",
|
|
79
79
|
"@types/vary": "^1.1.0",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"autocannon": "^7.12.0",
|
|
82
82
|
"c8": "^8.0.1",
|
|
83
83
|
"cross-env": "^7.0.3",
|
|
84
|
-
"del-cli": "^5.
|
|
85
|
-
"eslint": "^8.
|
|
86
|
-
"fastify": "^4.
|
|
84
|
+
"del-cli": "^5.1.0",
|
|
85
|
+
"eslint": "^8.48.0",
|
|
86
|
+
"fastify": "^4.22.2",
|
|
87
87
|
"fs-extra": "^11.1.1",
|
|
88
88
|
"get-port": "^7.0.0",
|
|
89
89
|
"github-label-sync": "^2.3.1",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"husky": "^8.0.3",
|
|
92
92
|
"np": "^8.0.4",
|
|
93
93
|
"pem": "^1.14.8",
|
|
94
|
-
"prettier": "^3.0.
|
|
94
|
+
"prettier": "^3.0.3",
|
|
95
95
|
"reflect-metadata": "^0.1.13",
|
|
96
96
|
"supertest": "^6.3.3",
|
|
97
97
|
"ts-node": "^10.9.1",
|
|
98
|
-
"typescript": "^5.
|
|
98
|
+
"typescript": "^5.2.2"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"tmp-cache": "^1.1.0",
|
|
119
119
|
"type-is": "^1.6.18",
|
|
120
120
|
"vary": "^1.1.2",
|
|
121
|
-
"youch": "^3.
|
|
121
|
+
"youch": "^3.3.1"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"@adonisjs/application": "^7.1.2-15",
|