@adonisjs/http-server 7.7.0 → 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,7 +6,7 @@ import {
6
6
  Router,
7
7
  Server,
8
8
  defineConfig
9
- } from "../chunk-6FSCILWX.js";
9
+ } from "../chunk-OLJ72AJE.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-6FSCILWX.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.7.0",
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",