@adonisjs/http-server 7.1.0 → 7.2.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/factories/main.js
CHANGED
package/build/index.js
CHANGED
package/build/src/response.d.ts
CHANGED
|
@@ -103,6 +103,14 @@ export declare class Response extends Macroable {
|
|
|
103
103
|
* Downloads a file by streaming it to the response
|
|
104
104
|
*/
|
|
105
105
|
protected streamFileForDownload(filePath: string, generateEtag: boolean, errorCallback?: (error: NodeJS.ErrnoException) => [string, number?]): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Listen for the event the response is written
|
|
108
|
+
* to the TCP socket.
|
|
109
|
+
*
|
|
110
|
+
* Under the hood the callback is registered with
|
|
111
|
+
* the "https://github.com/jshttp/on-finished" package
|
|
112
|
+
*/
|
|
113
|
+
onFinish(callback: (err: Error | null, response: ServerResponse) => void): void;
|
|
106
114
|
/**
|
|
107
115
|
* Writes headers with the Node.js res object using the
|
|
108
116
|
* response.setHeader method
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/http-server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@types/supertest": "^6.0.2",
|
|
76
76
|
"@types/type-is": "^1.6.6",
|
|
77
77
|
"@types/vary": "^1.1.3",
|
|
78
|
-
"@vinejs/vine": "^
|
|
78
|
+
"@vinejs/vine": "^2.0.0",
|
|
79
79
|
"autocannon": "^7.14.0",
|
|
80
80
|
"c8": "^9.1.0",
|
|
81
81
|
"cross-env": "^7.0.3",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"github-label-sync": "^2.3.1",
|
|
88
88
|
"http-status-codes": "^2.3.0",
|
|
89
89
|
"husky": "^9.0.10",
|
|
90
|
-
"np": "^
|
|
90
|
+
"np": "^10.0.2",
|
|
91
91
|
"pem": "^1.14.8",
|
|
92
92
|
"prettier": "^3.2.4",
|
|
93
93
|
"reflect-metadata": "^0.2.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"content-disposition": "^0.5.4",
|
|
108
108
|
"cookie": "^0.6.0",
|
|
109
109
|
"destroy": "^1.2.0",
|
|
110
|
-
"encodeurl": "^
|
|
110
|
+
"encodeurl": "^2.0.0",
|
|
111
111
|
"etag": "^1.8.1",
|
|
112
112
|
"fresh": "^0.5.2",
|
|
113
113
|
"mime-types": "^2.1.35",
|