@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.
- package/build/define_config-drp-Wzwx.js +5525 -0
- package/build/factories/main.js +168 -7
- package/build/helpers-CLk8RLHd.js +1484 -0
- package/build/{helpers-C_2HouOe.js → helpers-Dqw8abku.js} +56 -0
- package/build/index.js +177 -4
- package/build/src/client/url_builder.js +13 -2
- package/build/src/helpers.d.ts +15 -0
- package/build/src/helpers.js +3 -76
- package/build/src/redirect.d.ts +42 -5
- package/build/src/request.d.ts +12 -0
- package/build/src/server/main.d.ts +1 -1
- package/build/src/types/response.d.ts +19 -0
- package/build/src/types/server.d.ts +10 -0
- package/package.json +13 -13
- package/build/define_config-CfKSwwjk.js +0 -2438
- package/build/types-AUwURgIL.js +0 -1
- package/build/utils-BjSHKI3s.js +0 -618
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
83
|
-
"fastify": "^5.8.
|
|
82
|
+
"eslint": "^10.2.0",
|
|
83
|
+
"fastify": "^5.8.4",
|
|
84
84
|
"fs-extra": "^11.3.4",
|
|
85
|
-
"get-port": "^7.
|
|
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.
|
|
93
|
-
"typedoc": "^0.28.
|
|
94
|
-
"typescript": "^
|
|
95
|
-
"youch": "^4.1.
|
|
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
|
|
105
|
-
"cookie-es": "^
|
|
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",
|