@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.
@@ -6,7 +6,7 @@ import {
6
6
  Router,
7
7
  Server,
8
8
  defineConfig
9
- } from "../chunk-CLGQYYS7.js";
9
+ } from "../chunk-MUS67JY5.js";
10
10
 
11
11
  // factories/http_context.ts
12
12
  import { Container } from "@adonisjs/fold";
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  defineConfig,
19
19
  exceptions_exports,
20
20
  parseRange
21
- } from "./chunk-CLGQYYS7.js";
21
+ } from "./chunk-MUS67JY5.js";
22
22
 
23
23
  // src/exception_handler.ts
24
24
  import is from "@sindresorhus/is";
@@ -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.1.0",
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": "^1.7.1",
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": "^9.2.0",
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": "^1.0.2",
110
+ "encodeurl": "^2.0.0",
111
111
  "etag": "^1.8.1",
112
112
  "fresh": "^0.5.2",
113
113
  "mime-types": "^2.1.35",