@adonisjs/http-server 7.0.0-0 → 7.0.0-2

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.
Files changed (62) hide show
  1. package/build/{chunk-XX72ATFY.js → chunk-Z63E3STR.js} +66 -18
  2. package/build/chunk-Z63E3STR.js.map +1 -0
  3. package/build/factories/http_context.d.ts +25 -0
  4. package/build/factories/http_server.d.ts +8 -0
  5. package/build/factories/main.d.ts +6 -149
  6. package/build/factories/main.js +2 -1
  7. package/build/factories/main.js.map +1 -0
  8. package/build/factories/qs_parser_factory.d.ts +20 -0
  9. package/build/factories/request.d.ts +29 -0
  10. package/build/factories/response.d.ts +29 -0
  11. package/build/factories/router.d.ts +23 -0
  12. package/build/factories/server_factory.d.ts +29 -0
  13. package/build/index.d.ts +14 -272
  14. package/build/index.js +2 -1
  15. package/build/index.js.map +1 -0
  16. package/build/src/cookies/client.d.ts +37 -0
  17. package/build/src/cookies/drivers/encrypted.d.ts +16 -0
  18. package/build/src/cookies/drivers/plain.d.ts +15 -0
  19. package/build/src/cookies/drivers/signed.d.ts +16 -0
  20. package/build/src/cookies/parser.d.ts +37 -0
  21. package/build/src/cookies/serializer.d.ts +33 -0
  22. package/build/src/debug.d.ts +3 -0
  23. package/build/src/define_config.d.ts +9 -0
  24. package/build/src/define_middleware.d.ts +11 -0
  25. package/build/src/exception_handler.d.ts +113 -0
  26. package/build/src/exceptions.d.ts +84 -0
  27. package/build/src/helpers.d.ts +23 -0
  28. package/build/src/http_context/local_storage.d.ts +12 -0
  29. package/build/src/http_context/main.d.ts +58 -0
  30. package/build/src/qs.d.ts +11 -0
  31. package/build/src/redirect.d.ts +42 -0
  32. package/build/src/request.d.ts +565 -0
  33. package/build/src/response.d.ts +620 -0
  34. package/build/src/router/brisk.d.ts +42 -0
  35. package/build/src/router/executor.d.ts +9 -0
  36. package/build/src/router/factories/use_return_value.d.ts +6 -0
  37. package/build/src/router/group.d.ts +65 -0
  38. package/build/src/router/lookup_store/main.d.ts +47 -0
  39. package/build/src/router/lookup_store/route_finder.d.ts +25 -0
  40. package/build/src/router/lookup_store/url_builder.d.ts +52 -0
  41. package/build/src/router/main.d.ts +128 -0
  42. package/build/src/router/matchers.d.ts +27 -0
  43. package/build/src/router/parser.d.ts +5 -0
  44. package/build/src/router/resource.d.ts +66 -0
  45. package/build/src/router/route.d.ts +92 -0
  46. package/build/src/router/store.d.ts +66 -0
  47. package/build/src/server/factories/final_handler.d.ts +10 -0
  48. package/build/src/server/factories/middleware_handler.d.ts +8 -0
  49. package/build/src/server/factories/write_response.d.ts +6 -0
  50. package/build/{main-29eaaee4.d.ts → src/server/main.d.ts} +18 -13
  51. package/build/src/types/base.d.ts +19 -0
  52. package/build/src/types/main.d.ts +7 -14
  53. package/build/src/types/main.js +1 -0
  54. package/build/src/types/main.js.map +1 -0
  55. package/build/src/types/middleware.d.ts +35 -0
  56. package/build/src/types/qs.d.ts +68 -0
  57. package/build/src/types/request.d.ts +39 -0
  58. package/build/src/types/response.d.ts +45 -0
  59. package/build/src/types/route.d.ts +166 -0
  60. package/build/src/types/server.d.ts +72 -0
  61. package/package.json +52 -48
  62. package/build/main-e5b46c83.d.ts +0 -2210
@@ -0,0 +1,19 @@
1
+ export type { NextFn } from '@poppinss/middleware/types';
2
+ /**
3
+ * Accept one or more of the mentioned type
4
+ */
5
+ export type OneOrMore<T> = T | T[];
6
+ /**
7
+ * Class constructor type
8
+ */
9
+ export type Constructor<T> = new (...args: any[]) => T;
10
+ /**
11
+ * A function that lazily imports a middleware
12
+ */
13
+ export type LazyImport<DefaultExport> = () => Promise<{
14
+ default: DefaultExport;
15
+ }>;
16
+ /**
17
+ * Unwraps default export from a lazy import function
18
+ */
19
+ export type UnWrapLazyImport<Fn extends LazyImport<any>> = Awaited<ReturnType<Fn>>['default'];
@@ -1,14 +1,7 @@
1
- export { p as CastableHeader, C as Constructor, o as CookieOptions, E as ErrorHandlerAsAClass, r as GetControllerHandlers, G as GetMiddlewareArgs, e as HttpError, V as HttpRequestFinishedPayload, L as LazyImport, N as MakeSignedUrlOptions, K as MakeUrlOptions, s as MatchItRouteToken, A as MatchedRoute, M as MiddlewareAsClass, m as MiddlewareFn, O as OneOrMore, P as ParsedGlobalMiddleware, n as ParsedNamedMiddleware, Q as QSParserConfig, k as RequestConfig, J as ResourceActionNames, l as ResponseConfig, q as ResponseStream, t as RouteFn, I as RouteJSON, D as RouteMatcher, F as RouteMatchers, S as ServerConfig, W as ServerErrorHandler, c as StatusPageRange, d as StatusPageRenderer, y as StoreDomainNode, x as StoreMethodNode, u as StoreRouteHandler, v as StoreRouteMiddleware, w as StoreRouteNode, z as StoreRoutesTree, T as TestingMiddlewarePipeline, U as UnWrapLazyImport } from '../../main-e5b46c83.js';
2
- export { NextFn } from '@poppinss/middleware/types';
3
- import '@adonisjs/fold';
4
- import '@poppinss/macroable';
5
- import '@adonisjs/logger';
6
- import 'node:url';
7
- import '@adonisjs/encryption';
8
- import 'node:http';
9
- import 'qs';
10
- import 'http';
11
- import 'stream';
12
- import '@poppinss/middleware';
13
- import 'node:stream';
14
- import '@adonisjs/application';
1
+ export * from './base.js';
2
+ export * from './middleware.js';
3
+ export * from './qs.js';
4
+ export * from './request.js';
5
+ export * from './response.js';
6
+ export * from './route.js';
7
+ export * from './server.js';
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,35 @@
1
+ import type { ContainerResolver } from '@adonisjs/fold';
2
+ import type { Constructor, NextFn } from './base.js';
3
+ import type { HttpContext } from '../http_context/main.js';
4
+ /**
5
+ * Middleware represented as a class
6
+ */
7
+ export type MiddlewareAsClass = Constructor<{
8
+ handle: (ctx: HttpContext, next: NextFn, args?: any) => any;
9
+ }>;
10
+ /**
11
+ * Check if a union has undefined or null
12
+ */
13
+ type HasUndefined<T> = T extends NonNullable<T> ? true : false;
14
+ /**
15
+ * Returns the arguments accepted by the middleware's handle method
16
+ */
17
+ export type GetMiddlewareArgs<Middleware extends MiddlewareAsClass> = Parameters<InstanceType<Middleware>['handle']>[2] extends undefined ? [] : HasUndefined<Parameters<InstanceType<Middleware>['handle']>[2]> extends true ? [Parameters<InstanceType<Middleware>['handle']>[2]] : [Parameters<InstanceType<Middleware>['handle']>[2]?];
18
+ /**
19
+ * The middleware defined as a function on the router or the server
20
+ */
21
+ export type MiddlewareFn = (ctx: HttpContext, next: NextFn) => any;
22
+ /**
23
+ * Parsed global middleware
24
+ */
25
+ export type ParsedGlobalMiddleware = {
26
+ handle: (resolver: ContainerResolver<any>, ...args: [ctx: HttpContext, next: NextFn, params?: any]) => any;
27
+ };
28
+ /**
29
+ * Parsed named middleware
30
+ */
31
+ export type ParsedNamedMiddleware = ParsedGlobalMiddleware & {
32
+ name: string;
33
+ args: any;
34
+ };
35
+ export {};
@@ -0,0 +1,68 @@
1
+ export type QSParserConfig = {
2
+ parse: {
3
+ /**
4
+ * Nesting depth till the parameters should be parsed.
5
+ *
6
+ * Defaults to 5
7
+ */
8
+ depth: number;
9
+ /**
10
+ * Number of parameters to parse.
11
+ *
12
+ * Defaults to 1000
13
+ */
14
+ parameterLimit: number;
15
+ /**
16
+ * Allow sparse elements in an array.
17
+ *
18
+ * Defaults to false
19
+ */
20
+ allowSparse: boolean;
21
+ /**
22
+ * The max limimit for the array indices. After the given limit
23
+ * the array indices will be converted to an object, where the
24
+ * index is the key.
25
+ *
26
+ * Defaults to 20
27
+ */
28
+ arrayLimit: number;
29
+ /**
30
+ * Join comma seperated query string values to an array
31
+ *
32
+ * Defaults to false
33
+ */
34
+ comma: boolean;
35
+ };
36
+ stringify: {
37
+ /**
38
+ * URI encode the stringified query string
39
+ *
40
+ * Defaults to true
41
+ */
42
+ encode: boolean;
43
+ /**
44
+ * URI encode but only the values and not the keys
45
+ *
46
+ * Defaults to false
47
+ */
48
+ encodeValuesOnly: boolean;
49
+ /**
50
+ * Define the format in which arrays should be serialized.
51
+ *
52
+ * - indices: a[0]=b&a[1]=c
53
+ * - brackets: a[]=b&a[]=c
54
+ * - repeat: a=b&a=c
55
+ * - comma: a=b,c
56
+ *
57
+ * Defaults to "indices"
58
+ */
59
+ arrayFormat: 'indices' | 'brackets' | 'repeat' | 'comma';
60
+ /**
61
+ * Whether or not to skip null values when serializing. When set to
62
+ * false, the null values will be treated as an empty string.
63
+ *
64
+ * Defaults to: false
65
+ */
66
+ skipNulls: boolean;
67
+ };
68
+ };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Shape of the request config
3
+ */
4
+ export type RequestConfig = {
5
+ /**
6
+ * URL segments to ignore when extracting subdomains from a URL.
7
+ * Defaults to 2
8
+ */
9
+ subdomainOffset: number;
10
+ /**
11
+ * Enabling the flag will generated a unique request id from every
12
+ * HTTP request.
13
+ *
14
+ * The request id can be accessed using the "request.id()" method. Also,
15
+ * the value of `x-request-id` header is used as the id (if it exists).
16
+ *
17
+ * Defaults to false
18
+ */
19
+ generateRequestId: boolean;
20
+ /**
21
+ * Method spoofing allows changing the request method using the query string.
22
+ * For example: Making a POST request on URL /users/1?_method=PATCH will
23
+ * be handled by the patch route.
24
+ *
25
+ * Defaults to false
26
+ */
27
+ allowMethodSpoofing: boolean;
28
+ /**
29
+ * A custom implementation to get the request ip address
30
+ */
31
+ getIp?: (request: any) => string;
32
+ /**
33
+ * A callback function to trust proxy ip addresses. You must use
34
+ * the `proxy-addr` package to compute this value.
35
+ *
36
+ * Defaults to: "proxyAddr.compile('loopback')"
37
+ */
38
+ trustProxy: (address: string, distance: number) => boolean;
39
+ };
@@ -0,0 +1,45 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import { Readable } from 'node:stream';
3
+ /**
4
+ * Cookie options can that can be set on the response
5
+ */
6
+ export type CookieOptions = {
7
+ domain: string;
8
+ expires: Date | (() => Date);
9
+ httpOnly: boolean;
10
+ maxAge: number | string;
11
+ path: string;
12
+ sameSite: boolean | 'lax' | 'none' | 'strict';
13
+ secure: boolean;
14
+ };
15
+ /**
16
+ * Types from which response header can be casted to a
17
+ * string
18
+ */
19
+ export type CastableHeader = string | number | boolean | string[] | number[] | boolean[];
20
+ /**
21
+ * Config accepted by response the class
22
+ */
23
+ export type ResponseConfig = {
24
+ /**
25
+ * Whether or not to generate etags for responses. Etags can be
26
+ * enabled/disabled when sending response as well.
27
+ *
28
+ * Defaults to false
29
+ */
30
+ etag: boolean;
31
+ /**
32
+ * The callback name for the JSONP response.
33
+ *
34
+ * Defaults to 'callback'
35
+ */
36
+ jsonpCallbackName: string;
37
+ /**
38
+ * Options to set cookies
39
+ */
40
+ cookie: Partial<CookieOptions>;
41
+ };
42
+ /**
43
+ * Stream that can be piped to the "response.stream" method
44
+ */
45
+ export type ResponseStream = Readable;
@@ -0,0 +1,166 @@
1
+ import type Middleware from '@poppinss/middleware';
2
+ import type { ContainerResolver } from '@adonisjs/fold';
3
+ import type { Constructor, LazyImport } from './base.js';
4
+ import type { HttpContext } from '../http_context/main.js';
5
+ import type { MiddlewareFn, ParsedGlobalMiddleware } from './middleware.js';
6
+ import { ServerErrorHandler } from './server.js';
7
+ /**
8
+ * Returns a union of methods from a controller that accepts
9
+ * the context as the first argument.
10
+ */
11
+ export type GetControllerHandlers<Controller extends Constructor<any>> = {
12
+ [K in keyof InstanceType<Controller>]: InstanceType<Controller>[K] extends (ctx: HttpContext, ...args: any[]) => any ? K : never;
13
+ }[keyof InstanceType<Controller>];
14
+ /**
15
+ * Route token stored by matchit library
16
+ */
17
+ export type MatchItRouteToken = RouteMatcher & {
18
+ old: string;
19
+ type: 0 | 1 | 2 | 3;
20
+ val: string;
21
+ end: string;
22
+ };
23
+ /**
24
+ * Route handler defined as a function
25
+ */
26
+ export type RouteFn = (ctx: HttpContext) => any;
27
+ /**
28
+ * Route handler persisted with the route store
29
+ */
30
+ export type StoreRouteHandler = RouteFn | {
31
+ reference: string | [LazyImport<Constructor<any>> | Constructor<any>, any?];
32
+ handle: (resolver: ContainerResolver<any>, ...args: [ctx: HttpContext, ...injections: any[]]) => any;
33
+ };
34
+ /**
35
+ * The middleware persisted with the route store
36
+ */
37
+ export type StoreRouteMiddleware = MiddlewareFn | ({
38
+ name?: string;
39
+ args?: any[];
40
+ } & ParsedGlobalMiddleware);
41
+ /**
42
+ * Route node persisted within the routes store
43
+ */
44
+ export type StoreRouteNode = {
45
+ /**
46
+ * The execute function to execute the route middleware
47
+ * and the handler
48
+ */
49
+ execute: (route: StoreRouteNode, resolver: ContainerResolver<any>, ctx: HttpContext, errorResponder: ServerErrorHandler['handle']) => any;
50
+ /**
51
+ * A unique name for the route
52
+ */
53
+ name?: string;
54
+ /**
55
+ * Route URI pattern
56
+ */
57
+ pattern: string;
58
+ /**
59
+ * Route handler
60
+ */
61
+ handler: StoreRouteHandler;
62
+ /**
63
+ * Route middleware
64
+ */
65
+ middleware: Middleware<StoreRouteMiddleware>;
66
+ /**
67
+ * Additional metadata associated with the route
68
+ */
69
+ meta: Record<string, any>;
70
+ };
71
+ /**
72
+ * An object of routes for a given HTTP method
73
+ */
74
+ export type StoreMethodNode = {
75
+ tokens: MatchItRouteToken[][];
76
+ routeKeys: {
77
+ [pattern: string]: string;
78
+ };
79
+ routes: {
80
+ [pattern: string]: StoreRouteNode;
81
+ };
82
+ };
83
+ /**
84
+ * Each domain node container an object of methods. Each method
85
+ * object has nested routes.
86
+ */
87
+ export type StoreDomainNode = {
88
+ [method: string]: StoreMethodNode;
89
+ };
90
+ /**
91
+ * Routes tree stored within the routes store
92
+ */
93
+ export type StoreRoutesTree = {
94
+ tokens: MatchItRouteToken[][];
95
+ domains: {
96
+ [domain: string]: StoreDomainNode;
97
+ };
98
+ };
99
+ /**
100
+ * Shape of the matched route for a pattern, method and domain.
101
+ */
102
+ export type MatchedRoute = {
103
+ route: StoreRouteNode;
104
+ /**
105
+ * A unique key for the looked up route
106
+ */
107
+ routeKey: string;
108
+ /**
109
+ * Route params
110
+ */
111
+ params: Record<string, any>;
112
+ /**
113
+ * Route subdomains (if part of a subdomain)
114
+ */
115
+ subdomains: Record<string, any>;
116
+ };
117
+ /**
118
+ * Shape of a route param matcher
119
+ */
120
+ export type RouteMatcher = {
121
+ match?: RegExp;
122
+ cast?: (value: string) => any;
123
+ };
124
+ /**
125
+ * A collection of route matchers
126
+ */
127
+ export type RouteMatchers = {
128
+ [param: string]: RouteMatcher;
129
+ };
130
+ /**
131
+ * Representation of a route as JSON
132
+ */
133
+ export type RouteJSON = StoreRouteNode & {
134
+ /**
135
+ * HTTP methods, the route responds to.
136
+ */
137
+ methods: string[];
138
+ /**
139
+ * The domain for which the route is registered.
140
+ */
141
+ domain: string;
142
+ /**
143
+ * Matchers for route params.
144
+ */
145
+ matchers: RouteMatchers;
146
+ };
147
+ /**
148
+ * Resource action names
149
+ */
150
+ export type ResourceActionNames = 'create' | 'index' | 'store' | 'show' | 'edit' | 'update' | 'destroy';
151
+ /**
152
+ * Options accepted by makeUrl method
153
+ */
154
+ export type MakeUrlOptions = {
155
+ qs?: Record<string, any>;
156
+ domain?: string;
157
+ prefixUrl?: string;
158
+ disableRouteLookup?: boolean;
159
+ };
160
+ /**
161
+ * Options accepted by makeSignedUrl method
162
+ */
163
+ export type MakeSignedUrlOptions = MakeUrlOptions & {
164
+ expiresIn?: string | number;
165
+ purpose?: string;
166
+ };
@@ -0,0 +1,72 @@
1
+ import type { ErrorHandler, FinalHandler } from '@poppinss/middleware/types';
2
+ import type { Constructor } from './base.js';
3
+ import type { QSParserConfig } from './qs.js';
4
+ import type { RequestConfig } from './request.js';
5
+ import type { ResponseConfig } from './response.js';
6
+ import type { HttpContext } from '../http_context/main.js';
7
+ /**
8
+ * Normalized HTTP error used by the exception
9
+ * handler.
10
+ */
11
+ export type HttpError = {
12
+ message: string;
13
+ status: number;
14
+ code?: string;
15
+ stack?: string;
16
+ cause?: any;
17
+ messages?: any;
18
+ errors?: any;
19
+ handle?: (...args: any[]) => any;
20
+ report?: (...args: any[]) => any;
21
+ };
22
+ /**
23
+ * The pipeline for executing middleware during tests
24
+ */
25
+ export interface TestingMiddlewarePipeline {
26
+ finalHandler(handler: FinalHandler): this;
27
+ errorHandler(handler: ErrorHandler): this;
28
+ run(ctx: HttpContext): Promise<any>;
29
+ }
30
+ /**
31
+ * The expression to define a status page range
32
+ */
33
+ export type StatusPageRange = `${number}..${number}` | `${number}` | number;
34
+ /**
35
+ * The callback function to render status page for a given
36
+ * error.
37
+ */
38
+ export type StatusPageRenderer = (error: HttpError, ctx: HttpContext) => any | Promise<any>;
39
+ /**
40
+ * Data type for the "http:request_finished" event
41
+ */
42
+ export type HttpRequestFinishedPayload = {
43
+ ctx: HttpContext;
44
+ duration: [number, number];
45
+ };
46
+ /**
47
+ * Error handler to handle HTTP errors
48
+ */
49
+ export type ServerErrorHandler = {
50
+ report: (error: any, ctx: HttpContext) => any;
51
+ handle: (error: any, ctx: HttpContext) => any;
52
+ };
53
+ /**
54
+ * Error handler represented as a class
55
+ */
56
+ export type ErrorHandlerAsAClass = Constructor<ServerErrorHandler>;
57
+ /**
58
+ * Config accepted by the HTTP server
59
+ */
60
+ export type ServerConfig = RequestConfig & ResponseConfig & {
61
+ /**
62
+ * Whether or not to create an async local storage store for
63
+ * the HTTP context.
64
+ *
65
+ * Defaults to false
66
+ */
67
+ useAsyncLocalStorage: boolean;
68
+ /**
69
+ * Config for query string parser
70
+ */
71
+ qs: QSParserConfig;
72
+ };
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "7.0.0-0",
3
+ "version": "7.0.0-2",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [
8
- "build"
8
+ "build",
9
+ "!build/bin",
10
+ "!build/tests"
9
11
  ],
10
12
  "exports": {
11
13
  ".": "./build/index.js",
@@ -20,7 +22,8 @@
20
22
  "test": "cross-env NODE_DEBUG=adonisjs:http c8 npm run quick:test",
21
23
  "clean": "del-cli build",
22
24
  "typecheck": "tsc --noEmit",
23
- "compile": "npm run lint && npm run clean && tsup-node",
25
+ "precompile": "npm run lint && npm run clean",
26
+ "compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
24
27
  "build": "npm run compile",
25
28
  "prebenchmark": "npm run build",
26
29
  "benchmark": "node benchmarks/index.js",
@@ -40,45 +43,45 @@
40
43
  "author": "virk,adonisjs",
41
44
  "license": "MIT",
42
45
  "devDependencies": {
43
- "@adonisjs/application": "^8.0.0-0",
44
- "@adonisjs/encryption": "^5.1.2-3",
45
- "@adonisjs/eslint-config": "^1.1.8",
46
- "@adonisjs/events": "^9.0.0-0",
47
- "@adonisjs/fold": "^9.9.3-10",
48
- "@adonisjs/logger": "^5.4.2-6",
49
- "@adonisjs/prettier-config": "^1.1.8",
50
- "@adonisjs/tsconfig": "^1.1.8",
51
- "@commitlint/cli": "^17.8.0",
52
- "@commitlint/config-conventional": "^17.8.0",
46
+ "@adonisjs/application": "^8.0.0-2",
47
+ "@adonisjs/encryption": "^5.1.2-4",
48
+ "@adonisjs/eslint-config": "^1.1.9",
49
+ "@adonisjs/events": "^9.0.0-1",
50
+ "@adonisjs/fold": "^9.9.3-11",
51
+ "@adonisjs/logger": "^5.4.2-7",
52
+ "@adonisjs/prettier-config": "^1.1.9",
53
+ "@adonisjs/tsconfig": "^1.1.9",
54
+ "@commitlint/cli": "^18.4.3",
55
+ "@commitlint/config-conventional": "^18.4.3",
53
56
  "@fastify/middie": "^8.3.0",
54
- "@japa/assert": "^2.0.0",
57
+ "@japa/assert": "^2.0.1",
55
58
  "@japa/expect-type": "^2.0.0",
56
- "@japa/runner": "^3.0.2",
57
- "@swc/core": "1.3.82",
58
- "@types/accepts": "^1.3.5",
59
- "@types/content-disposition": "^0.5.6",
60
- "@types/cookie": "^0.5.2",
61
- "@types/destroy": "^1.0.1",
62
- "@types/encodeurl": "^1.0.0",
63
- "@types/etag": "^1.8.1",
64
- "@types/fresh": "^0.5.0",
65
- "@types/fs-extra": "^11.0.2",
59
+ "@japa/runner": "^3.1.0",
60
+ "@swc/core": "^1.3.99",
61
+ "@types/accepts": "^1.3.7",
62
+ "@types/content-disposition": "^0.5.8",
63
+ "@types/cookie": "^0.5.4",
64
+ "@types/destroy": "^1.0.3",
65
+ "@types/encodeurl": "^1.0.2",
66
+ "@types/etag": "^1.8.3",
67
+ "@types/fresh": "^0.5.2",
68
+ "@types/fs-extra": "^11.0.4",
66
69
  "@types/http-status-codes": "^1.2.0",
67
- "@types/mime-types": "^2.1.2",
68
- "@types/node": "^20.8.6",
69
- "@types/on-finished": "^2.3.2",
70
- "@types/pem": "^1.14.2",
71
- "@types/proxy-addr": "^2.0.1",
72
- "@types/qs": "^6.9.8",
73
- "@types/supertest": "^2.0.14",
74
- "@types/type-is": "^1.6.4",
75
- "@types/vary": "^1.1.1",
70
+ "@types/mime-types": "^2.1.4",
71
+ "@types/node": "^20.9.4",
72
+ "@types/on-finished": "^2.3.4",
73
+ "@types/pem": "^1.14.4",
74
+ "@types/proxy-addr": "^2.0.3",
75
+ "@types/qs": "^6.9.10",
76
+ "@types/supertest": "^2.0.16",
77
+ "@types/type-is": "^1.6.6",
78
+ "@types/vary": "^1.1.3",
76
79
  "@vinejs/vine": "^1.6.0",
77
80
  "autocannon": "^7.12.0",
78
81
  "c8": "^8.0.1",
79
82
  "cross-env": "^7.0.3",
80
83
  "del-cli": "^5.1.0",
81
- "eslint": "^8.51.0",
84
+ "eslint": "^8.54.0",
82
85
  "fastify": "^4.24.2",
83
86
  "fs-extra": "^11.1.1",
84
87
  "get-port": "^7.0.0",
@@ -87,23 +90,23 @@
87
90
  "husky": "^8.0.3",
88
91
  "np": "^8.0.4",
89
92
  "pem": "^1.14.8",
90
- "prettier": "^3.0.3",
93
+ "prettier": "^3.1.0",
91
94
  "reflect-metadata": "^0.1.13",
92
95
  "supertest": "^6.3.3",
93
96
  "ts-node": "^10.9.1",
94
- "tsup": "^7.2.0",
95
- "typescript": "^5.2.2"
97
+ "tsup": "^8.0.1",
98
+ "typescript": "5.2.2"
96
99
  },
97
100
  "dependencies": {
98
101
  "@paralleldrive/cuid2": "^2.2.2",
99
102
  "@poppinss/macroable": "^1.0.0",
100
103
  "@poppinss/matchit": "^3.1.2",
101
- "@poppinss/middleware": "^3.2.0",
102
- "@poppinss/utils": "^6.5.0",
103
- "@sindresorhus/is": "^6.0.1",
104
+ "@poppinss/middleware": "^3.2.1",
105
+ "@poppinss/utils": "^6.5.1",
106
+ "@sindresorhus/is": "^6.1.0",
104
107
  "accepts": "^1.3.8",
105
108
  "content-disposition": "^0.5.4",
106
- "cookie": "^0.5.0",
109
+ "cookie": "^0.6.0",
107
110
  "destroy": "^1.2.0",
108
111
  "encodeurl": "^1.0.2",
109
112
  "etag": "^1.8.1",
@@ -115,14 +118,14 @@
115
118
  "tmp-cache": "^1.1.0",
116
119
  "type-is": "^1.6.18",
117
120
  "vary": "^1.1.2",
118
- "youch": "^3.3.2"
121
+ "youch": "^3.3.3"
119
122
  },
120
123
  "peerDependencies": {
121
- "@adonisjs/application": "^8.0.0-0",
122
- "@adonisjs/encryption": "^5.1.2-3",
123
- "@adonisjs/events": "^9.0.0-0",
124
- "@adonisjs/fold": "^9.9.3-10",
125
- "@adonisjs/logger": "^5.4.2-6"
124
+ "@adonisjs/application": "^8.0.0-2",
125
+ "@adonisjs/encryption": "^5.1.2-4",
126
+ "@adonisjs/events": "^9.0.0-1",
127
+ "@adonisjs/fold": "^9.9.3-11",
128
+ "@adonisjs/logger": "^5.4.2-7"
126
129
  },
127
130
  "repository": {
128
131
  "type": "git",
@@ -171,7 +174,8 @@
171
174
  "outDir": "./build",
172
175
  "clean": true,
173
176
  "format": "esm",
174
- "dts": true,
177
+ "dts": false,
178
+ "sourcemap": true,
175
179
  "target": "esnext"
176
180
  }
177
181
  }