@adonisjs/http-server 7.2.5 → 7.3.0
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/{chunk-GCLM3D4C.js → chunk-2UUPHZPW.js} +16 -3
- package/build/chunk-2UUPHZPW.js.map +1 -0
- package/build/factories/main.js +1 -1
- package/build/index.js +1 -1
- package/build/src/exceptions.d.ts +1 -1
- package/build/src/response.d.ts +7 -1
- package/package.json +16 -18
- package/build/chunk-GCLM3D4C.js.map +0 -1
package/build/factories/main.js
CHANGED
package/build/index.js
CHANGED
package/build/src/response.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export declare class Response extends Macroable {
|
|
|
154
154
|
"content-range"?: string | undefined;
|
|
155
155
|
"content-security-policy"?: string | undefined;
|
|
156
156
|
"content-security-policy-report-only"?: string | undefined;
|
|
157
|
+
"content-type"?: string | undefined;
|
|
157
158
|
cookie?: string | string[] | undefined;
|
|
158
159
|
dav?: string | string[] | undefined;
|
|
159
160
|
dnt?: string | undefined;
|
|
@@ -174,7 +175,7 @@ export declare class Response extends Macroable {
|
|
|
174
175
|
location?: string | undefined;
|
|
175
176
|
"max-forwards"?: string | undefined;
|
|
176
177
|
origin?: string | undefined;
|
|
177
|
-
|
|
178
|
+
pragma?: string | string[] | undefined;
|
|
178
179
|
"proxy-authenticate"?: string | string[] | undefined;
|
|
179
180
|
"proxy-authorization"?: string | undefined;
|
|
180
181
|
"public-key-pins"?: string | undefined;
|
|
@@ -276,6 +277,11 @@ export declare class Response extends Macroable {
|
|
|
276
277
|
* Use this function, when you want to compute etag manually for some other resons.
|
|
277
278
|
*/
|
|
278
279
|
setEtag(body: any, weak?: boolean): this;
|
|
280
|
+
/**
|
|
281
|
+
* Set X-Request-Id header by copying the header value from the request if it exists.
|
|
282
|
+
*
|
|
283
|
+
*/
|
|
284
|
+
setRequestId(): this;
|
|
279
285
|
/**
|
|
280
286
|
* Returns a boolean telling if the new response etag evaluates same
|
|
281
287
|
* as the request header `if-none-match`. In case of `true`, the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/http-server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -46,51 +46,49 @@
|
|
|
46
46
|
"@adonisjs/encryption": "^6.0.2",
|
|
47
47
|
"@adonisjs/eslint-config": "^2.0.0-beta.7",
|
|
48
48
|
"@adonisjs/events": "^9.0.2",
|
|
49
|
-
"@adonisjs/fold": "^10.1.
|
|
50
|
-
"@adonisjs/logger": "^6.0.
|
|
49
|
+
"@adonisjs/fold": "^10.1.3",
|
|
50
|
+
"@adonisjs/logger": "^6.0.5",
|
|
51
51
|
"@adonisjs/prettier-config": "^1.4.0",
|
|
52
52
|
"@adonisjs/tsconfig": "^1.4.0",
|
|
53
53
|
"@fastify/middie": "^9.0.2",
|
|
54
54
|
"@japa/assert": "^3.0.0",
|
|
55
55
|
"@japa/expect-type": "^2.0.2",
|
|
56
56
|
"@japa/runner": "^3.1.4",
|
|
57
|
-
"@release-it/conventional-changelog": "^
|
|
58
|
-
"@swc/core": "^1.
|
|
57
|
+
"@release-it/conventional-changelog": "^9.0.3",
|
|
58
|
+
"@swc/core": "^1.9.3",
|
|
59
59
|
"@types/accepts": "^1.3.7",
|
|
60
60
|
"@types/content-disposition": "^0.5.8",
|
|
61
|
-
"@types/cookie": "^0.6.0",
|
|
62
61
|
"@types/destroy": "^1.0.3",
|
|
63
62
|
"@types/encodeurl": "^1.0.2",
|
|
64
63
|
"@types/etag": "^1.8.3",
|
|
65
64
|
"@types/fresh": "^0.5.2",
|
|
66
65
|
"@types/fs-extra": "^11.0.4",
|
|
67
|
-
"@types/http-status-codes": "^1.2.0",
|
|
68
66
|
"@types/mime-types": "^2.1.4",
|
|
69
|
-
"@types/node": "^22.
|
|
67
|
+
"@types/node": "^22.10.1",
|
|
70
68
|
"@types/on-finished": "^2.3.4",
|
|
71
69
|
"@types/pem": "^1.14.4",
|
|
72
70
|
"@types/proxy-addr": "^2.0.3",
|
|
73
|
-
"@types/qs": "^6.9.
|
|
71
|
+
"@types/qs": "^6.9.17",
|
|
74
72
|
"@types/supertest": "^6.0.2",
|
|
75
73
|
"@types/type-is": "^1.6.6",
|
|
76
74
|
"@types/vary": "^1.1.3",
|
|
77
75
|
"@vinejs/vine": "^2.1.0",
|
|
78
|
-
"autocannon": "^
|
|
76
|
+
"autocannon": "^8.0.0",
|
|
79
77
|
"c8": "^10.1.2",
|
|
80
78
|
"cross-env": "^7.0.3",
|
|
81
|
-
"eslint": "^9.
|
|
82
|
-
"fastify": "^5.
|
|
79
|
+
"eslint": "^9.15.0",
|
|
80
|
+
"fastify": "^5.1.0",
|
|
83
81
|
"fs-extra": "^11.2.0",
|
|
84
82
|
"get-port": "^7.1.0",
|
|
85
83
|
"http-status-codes": "^2.3.0",
|
|
86
84
|
"pem": "^1.14.8",
|
|
87
|
-
"prettier": "^3.
|
|
85
|
+
"prettier": "^3.4.1",
|
|
88
86
|
"reflect-metadata": "^0.2.2",
|
|
89
|
-
"release-it": "^17.
|
|
87
|
+
"release-it": "^17.10.0",
|
|
90
88
|
"supertest": "^7.0.0",
|
|
91
89
|
"ts-node-maintained": "^10.9.4",
|
|
92
|
-
"tsup": "^8.3.
|
|
93
|
-
"typescript": "^5.
|
|
90
|
+
"tsup": "^8.3.5",
|
|
91
|
+
"typescript": "^5.7.2"
|
|
94
92
|
},
|
|
95
93
|
"dependencies": {
|
|
96
94
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
@@ -101,7 +99,7 @@
|
|
|
101
99
|
"@sindresorhus/is": "^7.0.1",
|
|
102
100
|
"accepts": "^1.3.8",
|
|
103
101
|
"content-disposition": "^0.5.4",
|
|
104
|
-
"cookie": "^1.0.
|
|
102
|
+
"cookie": "^1.0.2",
|
|
105
103
|
"destroy": "^1.2.0",
|
|
106
104
|
"encodeurl": "^2.0.0",
|
|
107
105
|
"etag": "^1.8.1",
|
|
@@ -109,7 +107,7 @@
|
|
|
109
107
|
"mime-types": "^2.1.35",
|
|
110
108
|
"on-finished": "^2.4.1",
|
|
111
109
|
"proxy-addr": "^2.0.7",
|
|
112
|
-
"qs": "^6.13.
|
|
110
|
+
"qs": "^6.13.1",
|
|
113
111
|
"tmp-cache": "^1.1.0",
|
|
114
112
|
"type-is": "^1.6.18",
|
|
115
113
|
"vary": "^1.1.2",
|