@adonisjs/http-server 7.6.1 → 7.8.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,16 +6,16 @@ import {
6
6
  Router,
7
7
  Server,
8
8
  defineConfig
9
- } from "../chunk-7AGINHO3.js";
9
+ } from "../chunk-OLJ72AJE.js";
10
10
 
11
11
  // factories/http_context.ts
12
12
  import { Container } from "@adonisjs/fold";
13
13
  import { LoggerFactory } from "@adonisjs/logger/factories";
14
14
 
15
15
  // factories/request.ts
16
- import { Socket } from "node:net";
16
+ import { Socket } from "net";
17
17
  import proxyAddr from "proxy-addr";
18
- import { IncomingMessage, ServerResponse } from "node:http";
18
+ import { IncomingMessage, ServerResponse } from "http";
19
19
  import { EncryptionFactory } from "@adonisjs/encryption/factories";
20
20
 
21
21
  // factories/qs_parser_factory.ts
@@ -115,8 +115,8 @@ var RequestFactory = class {
115
115
  };
116
116
 
117
117
  // factories/response.ts
118
- import { Socket as Socket2 } from "node:net";
119
- import { IncomingMessage as IncomingMessage2, ServerResponse as ServerResponse2 } from "node:http";
118
+ import { Socket as Socket2 } from "net";
119
+ import { IncomingMessage as IncomingMessage2, ServerResponse as ServerResponse2 } from "http";
120
120
  import { EncryptionFactory as EncryptionFactory3 } from "@adonisjs/encryption/factories";
121
121
 
122
122
  // factories/router.ts
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  defineConfig,
19
19
  exceptions_exports,
20
20
  parseRange
21
- } from "./chunk-7AGINHO3.js";
21
+ } from "./chunk-OLJ72AJE.js";
22
22
 
23
23
  // src/exception_handler.ts
24
24
  import is from "@sindresorhus/is";
@@ -13,7 +13,7 @@ export declare const E_HTTP_EXCEPTION: {
13
13
  code?: string;
14
14
  status: number;
15
15
  toString(): string;
16
- readonly [Symbol.toStringTag]: string;
16
+ get [Symbol.toStringTag](): string;
17
17
  message: string;
18
18
  stack?: string;
19
19
  cause?: unknown;
@@ -29,7 +29,7 @@ export declare const E_HTTP_EXCEPTION: {
29
29
  code?: string;
30
30
  status: number;
31
31
  toString(): string;
32
- readonly [Symbol.toStringTag]: string;
32
+ get [Symbol.toStringTag](): string;
33
33
  message: string;
34
34
  stack?: string;
35
35
  cause?: unknown;
@@ -37,6 +37,7 @@ export declare const E_HTTP_EXCEPTION: {
37
37
  help?: string;
38
38
  status?: number;
39
39
  message?: string;
40
+ isError(error: unknown): error is Error;
40
41
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
41
42
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
42
43
  stackTraceLimit: number;
@@ -53,7 +54,7 @@ export declare const E_HTTP_REQUEST_ABORTED: {
53
54
  code?: string;
54
55
  status: number;
55
56
  toString(): string;
56
- readonly [Symbol.toStringTag]: string;
57
+ get [Symbol.toStringTag](): string;
57
58
  message: string;
58
59
  stack?: string;
59
60
  cause?: unknown;
@@ -69,7 +70,7 @@ export declare const E_HTTP_REQUEST_ABORTED: {
69
70
  code?: string;
70
71
  status: number;
71
72
  toString(): string;
72
- readonly [Symbol.toStringTag]: string;
73
+ get [Symbol.toStringTag](): string;
73
74
  message: string;
74
75
  stack?: string;
75
76
  cause?: unknown;
@@ -77,6 +78,7 @@ export declare const E_HTTP_REQUEST_ABORTED: {
77
78
  help?: string;
78
79
  status?: number;
79
80
  message?: string;
81
+ isError(error: unknown): error is Error;
80
82
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
81
83
  prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
82
84
  stackTraceLimit: number;
@@ -3,7 +3,7 @@ import type { Encryption } from '@adonisjs/encryption';
3
3
  import type { Server as HttpsServer } from 'node:https';
4
4
  import type { Application } from '@adonisjs/application';
5
5
  import type { EmitterLike } from '@adonisjs/events/types';
6
- import { ContainerResolver } from '@adonisjs/fold';
6
+ import { type ContainerResolver } from '@adonisjs/fold';
7
7
  import type { ServerResponse, IncomingMessage, Server as HttpServer } from 'node:http';
8
8
  import type { LazyImport } from '../types/base.js';
9
9
  import type { MiddlewareAsClass } from '../types/middleware.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "7.6.1",
3
+ "version": "7.8.0",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -44,12 +44,12 @@
44
44
  "@adonisjs/application": "^8.4.1",
45
45
  "@adonisjs/assembler": "^7.8.2",
46
46
  "@adonisjs/encryption": "^6.0.2",
47
- "@adonisjs/eslint-config": "^2.0.0",
47
+ "@adonisjs/eslint-config": "^2.1.0",
48
48
  "@adonisjs/events": "^9.0.2",
49
- "@adonisjs/fold": "^10.1.3",
49
+ "@adonisjs/fold": "^10.2.0",
50
50
  "@adonisjs/logger": "^6.0.6",
51
- "@adonisjs/prettier-config": "^1.4.4",
52
- "@adonisjs/tsconfig": "^1.4.0",
51
+ "@adonisjs/prettier-config": "^1.4.5",
52
+ "@adonisjs/tsconfig": "^1.4.1",
53
53
  "@fastify/middie": "^9.0.3",
54
54
  "@japa/assert": "^4.0.1",
55
55
  "@japa/expect-type": "^2.0.3",
@@ -57,18 +57,18 @@
57
57
  "@release-it/conventional-changelog": "^10.0.1",
58
58
  "@swc/core": "1.10.7",
59
59
  "@types/accepts": "^1.3.7",
60
- "@types/content-disposition": "^0.5.8",
60
+ "@types/content-disposition": "^0.5.9",
61
61
  "@types/destroy": "^1.0.3",
62
- "@types/encodeurl": "^1.0.2",
63
- "@types/etag": "^1.8.3",
64
- "@types/fresh": "^0.5.2",
62
+ "@types/encodeurl": "^1.0.3",
63
+ "@types/etag": "^1.8.4",
64
+ "@types/fresh": "^0.5.3",
65
65
  "@types/fs-extra": "^11.0.4",
66
- "@types/mime-types": "^2.1.4",
67
- "@types/node": "^22.15.18",
68
- "@types/on-finished": "^2.3.4",
66
+ "@types/mime-types": "^3.0.1",
67
+ "@types/node": "^24.0.3",
68
+ "@types/on-finished": "^2.3.5",
69
69
  "@types/pem": "^1.14.4",
70
70
  "@types/proxy-addr": "^2.0.3",
71
- "@types/qs": "^6.9.18",
71
+ "@types/qs": "^6.14.0",
72
72
  "@types/supertest": "^6.0.3",
73
73
  "@types/type-is": "^1.6.7",
74
74
  "@types/vary": "^1.1.3",
@@ -76,18 +76,18 @@
76
76
  "autocannon": "^8.0.0",
77
77
  "c8": "^10.1.3",
78
78
  "cross-env": "^7.0.3",
79
- "eslint": "^9.26.0",
80
- "fastify": "^5.3.3",
79
+ "eslint": "^9.29.0",
80
+ "fastify": "^5.4.0",
81
81
  "fs-extra": "^11.3.0",
82
82
  "get-port": "^7.1.0",
83
83
  "http-status-codes": "^2.3.0",
84
84
  "pem": "^1.14.8",
85
85
  "prettier": "^3.5.3",
86
86
  "reflect-metadata": "^0.2.2",
87
- "release-it": "^19.0.2",
87
+ "release-it": "^19.0.3",
88
88
  "supertest": "^7.1.1",
89
89
  "ts-node-maintained": "^10.9.5",
90
- "tsup": "^8.4.0",
90
+ "tsup": "^8.5.0",
91
91
  "typescript": "^5.8.3"
92
92
  },
93
93
  "dependencies": {
@@ -95,8 +95,8 @@
95
95
  "@poppinss/macroable": "^1.0.4",
96
96
  "@poppinss/matchit": "^3.1.2",
97
97
  "@poppinss/middleware": "^3.2.5",
98
- "@poppinss/utils": "^6.9.3",
99
- "@sindresorhus/is": "^7.0.1",
98
+ "@poppinss/utils": "^6.10.0",
99
+ "@sindresorhus/is": "^7.0.2",
100
100
  "accepts": "^1.3.8",
101
101
  "content-disposition": "^0.5.4",
102
102
  "cookie": "^1.0.2",