@adonisjs/core 6.1.5-27 → 6.1.5-29

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-29",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
@@ -86,13 +86,13 @@
86
86
  "@japa/assert": "^2.0.0",
87
87
  "@japa/expect-type": "^2.0.0",
88
88
  "@japa/file-system": "^2.0.0",
89
- "@japa/runner": "^3.0.2",
89
+ "@japa/runner": "^3.0.4",
90
90
  "@swc/core": "1.3.82",
91
91
  "@types/node": "^20.8.6",
92
92
  "@types/pretty-hrtime": "^1.0.1",
93
- "@types/sinon": "^10.0.19",
94
- "@types/supertest": "^2.0.14",
95
- "@types/test-console": "^2.0.0",
93
+ "@types/sinon": "^10.0.20",
94
+ "@types/supertest": "^2.0.15",
95
+ "@types/test-console": "^2.0.1",
96
96
  "@vinejs/vine": "^1.6.0",
97
97
  "argon2": "^0.31.1",
98
98
  "bcrypt": "^5.1.1",
@@ -107,7 +107,7 @@
107
107
  "husky": "^8.0.3",
108
108
  "np": "^8.0.4",
109
109
  "prettier": "^3.0.3",
110
- "sinon": "^16.1.0",
110
+ "sinon": "^16.1.3",
111
111
  "supertest": "^6.3.3",
112
112
  "test-console": "^2.0.0",
113
113
  "ts-node": "^10.9.1",
@@ -123,7 +123,7 @@
123
123
  "@adonisjs/events": "^9.0.0-0",
124
124
  "@adonisjs/fold": "^9.9.3-10",
125
125
  "@adonisjs/hash": "^8.3.1-7",
126
- "@adonisjs/http-server": "^7.0.0-0",
126
+ "@adonisjs/http-server": "^7.0.0-1",
127
127
  "@adonisjs/logger": "^5.4.2-6",
128
128
  "@adonisjs/repl": "^4.0.0-8",
129
129
  "@antfu/install-pkg": "^0.1.1",