@adonisjs/core 6.1.5-27 → 6.1.5-28

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,5 +6,6 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
+ /// <reference types="@adonisjs/bodyparser/bodyparser_middleware" />
9
10
  export * from '@adonisjs/http-server';
10
11
  export { RequestValidator } from './request_validator.js';
@@ -1,8 +1,7 @@
1
- import '@adonisjs/http-server';
2
1
  import { type Edge } from 'edge.js';
3
2
  import type { ApplicationService } from '../src/types.js';
4
3
  import { type Route } from '../modules/http/main.js';
5
- declare module '@adonisjs/http-server' {
4
+ declare module '@adonisjs/core/http' {
6
5
  interface HttpContext {
7
6
  /**
8
7
  * Reference to the edge renderer to render templates
@@ -6,7 +6,6 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
- import '@adonisjs/http-server';
10
9
  import edge from 'edge.js';
11
10
  import { BriskRoute, HttpContext } from '../modules/http/main.js';
12
11
  /**
@@ -1,4 +1,3 @@
1
- import '@adonisjs/http-server';
2
1
  import { BaseLiteralType } from '@vinejs/vine';
3
2
  import type { Validation, FieldContext, FieldOptions } from '@vinejs/vine/types';
4
3
  import type { MultipartFile, FileValidationOptions } from '@adonisjs/bodyparser/types';
@@ -18,7 +17,7 @@ declare module '@vinejs/vine' {
18
17
  /**
19
18
  * Extend HTTP request class
20
19
  */
21
- declare module '@adonisjs/http-server' {
20
+ declare module '@adonisjs/core/http' {
22
21
  interface Request extends RequestValidator {
23
22
  }
24
23
  }
@@ -6,7 +6,6 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
- import '@adonisjs/http-server';
10
9
  import vine, { BaseLiteralType, Vine } from '@vinejs/vine';
11
10
  import { Request, RequestValidator } from '../modules/http/main.js';
12
11
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "6.1.5-27",
4
+ "version": "6.1.5-28",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },