@adonisjs/http-server 8.1.1 → 8.1.3

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.
@@ -1,3 +1,4 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
1
2
  import type { Constructor } from '@poppinss/utils/types';
2
3
  import type { ErrorHandler, FinalHandler } from '@poppinss/middleware/types';
3
4
  import type { QSParserConfig } from './qs.ts';
@@ -115,4 +116,13 @@ export type ServerConfig = RequestConfig & ResponseConfig & {
115
116
  * @default 0 (as per Node.js defaults)
116
117
  */
117
118
  timeout?: number;
119
+ /**
120
+ * A callback invoked when the request URI contains malformed
121
+ * percent-encoded sequences (e.g. `%C0%80`). The callback
122
+ * receives the raw Node.js request and response objects and
123
+ * is responsible for sending a response.
124
+ *
125
+ * Defaults to a plain-text `400 Bad Request` response.
126
+ */
127
+ onBadUrl: (req: IncomingMessage, res: ServerResponse) => void;
118
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@adonisjs/application": "^9.0.0",
47
47
  "@adonisjs/eslint-config": "^3.0.0",
48
- "@adonisjs/events": "^10.1.0",
48
+ "@adonisjs/events": "^10.2.0",
49
49
  "@adonisjs/fold": "^11.0.0",
50
50
  "@adonisjs/logger": "^7.1.1",
51
51
  "@adonisjs/prettier-config": "^1.4.5",
@@ -67,32 +67,32 @@
67
67
  "@types/fresh": "^0.5.3",
68
68
  "@types/fs-extra": "^11.0.4",
69
69
  "@types/mime-types": "^3.0.1",
70
- "@types/node": "^25.5.0",
70
+ "@types/node": "^25.5.2",
71
71
  "@types/on-finished": "^2.3.5",
72
72
  "@types/pem": "^1.14.4",
73
73
  "@types/proxy-addr": "^2.0.3",
74
74
  "@types/supertest": "^7.2.0",
75
75
  "@types/type-is": "^1.6.7",
76
76
  "@types/vary": "^1.1.3",
77
- "@vinejs/vine": "^4.3.0",
77
+ "@vinejs/vine": "^4.3.1",
78
78
  "accepts": "^1.3.8",
79
79
  "autocannon": "^8.0.0",
80
80
  "c8": "^11.0.0",
81
81
  "cross-env": "^10.1.0",
82
- "eslint": "^10.0.3",
83
- "fastify": "^5.8.2",
82
+ "eslint": "^10.2.0",
83
+ "fastify": "^5.8.4",
84
84
  "fs-extra": "^11.3.4",
85
- "get-port": "^7.1.0",
85
+ "get-port": "^7.2.0",
86
86
  "http-status-codes": "^2.3.0",
87
87
  "pem": "^1.14.8",
88
88
  "prettier": "^3.8.1",
89
89
  "reflect-metadata": "^0.2.2",
90
90
  "release-it": "^19.2.4",
91
91
  "supertest": "^7.2.2",
92
- "tsdown": "0.20.3",
93
- "typedoc": "^0.28.17",
94
- "typescript": "^5.9.3",
95
- "youch": "^4.1.0"
92
+ "tsdown": "0.21.7",
93
+ "typedoc": "^0.28.18",
94
+ "typescript": "^6.0.2",
95
+ "youch": "^4.1.1"
96
96
  },
97
97
  "dependencies": {
98
98
  "@poppinss/macroable": "^1.1.2",
@@ -101,8 +101,8 @@
101
101
  "@poppinss/qs": "^6.15.0",
102
102
  "@poppinss/utils": "^7.0.1",
103
103
  "@sindresorhus/is": "^7.2.0",
104
- "content-disposition": "^1.0.1",
105
- "cookie-es": "^2.0.0",
104
+ "content-disposition": "^1.1.0",
105
+ "cookie-es": "^3.1.1",
106
106
  "destroy": "^1.2.0",
107
107
  "encodeurl": "^2.0.0",
108
108
  "etag": "^1.8.1",