@adonisjs/core 6.1.5-16 → 6.1.5-17

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.
@@ -0,0 +1,4 @@
1
+ import { CommandMetaData, Command } from '@adonisjs/ace/types';
2
+
3
+ export function getMetaData(): Promise<CommandMetaData[]>
4
+ export function getCommand(metaData: CommandMetaData): Promise<Command | null>
@@ -1,6 +1,10 @@
1
1
  import { type VineValidator } from '@vinejs/vine';
2
2
  import type { Infer, SchemaTypes, ValidationOptions, ErrorReporterContract, MessagesProviderContact } from '@vinejs/vine/types';
3
3
  import { type HttpContext } from '@adonisjs/http-server';
4
+ declare module '@adonisjs/http-server' {
5
+ interface Request extends RequestValidator {
6
+ }
7
+ }
4
8
  /**
5
9
  * Request validation options with custom data as well
6
10
  */
@@ -37,8 +41,4 @@ export declare class RequestValidator {
37
41
  */
38
42
  validateUsing<Schema extends SchemaTypes, MetaData extends undefined | Record<string, any>>(validator: VineValidator<Schema, MetaData>, ...[options]: [undefined] extends MetaData ? [options?: RequestValidationOptions<MetaData> | undefined] : [options: RequestValidationOptions<MetaData>]): Promise<Infer<Schema>>;
39
43
  }
40
- declare module '@adonisjs/http-server' {
41
- interface Request extends RequestValidator {
42
- }
43
- }
44
44
  export {};
@@ -6,6 +6,7 @@
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 { bridgeEdgeAdonisJS } from '../src/bindings/edge.js';
9
10
  export default class EdgeServiceProvider {
10
11
  app;
11
12
  constructor(app) {
@@ -15,7 +16,6 @@ export default class EdgeServiceProvider {
15
16
  * Bridge AdonisJS and Edge
16
17
  */
17
18
  async boot() {
18
- const { bridgeEdgeAdonisJS } = await import('../src/bindings/edge.js');
19
19
  bridgeEdgeAdonisJS(this.app, await this.app.container.make('router'));
20
20
  }
21
21
  }
@@ -1,9 +1,7 @@
1
1
  import type { ApplicationService } from '../src/types.js';
2
+ import '../src/bindings/vinejs.js';
3
+ import '../modules/http/request_validator.js';
2
4
  export default class VineJSServiceProvider {
3
5
  protected app: ApplicationService;
4
6
  constructor(app: ApplicationService);
5
- /**
6
- * Registering AdonisJS specific VineJS rules
7
- */
8
- boot(): Promise<void>;
9
7
  }
@@ -6,16 +6,11 @@
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 '../src/bindings/vinejs.js';
10
+ import '../modules/http/request_validator.js';
9
11
  export default class VineJSServiceProvider {
10
12
  app;
11
13
  constructor(app) {
12
14
  this.app = app;
13
15
  }
14
- /**
15
- * Registering AdonisJS specific VineJS rules
16
- */
17
- async boot() {
18
- await import('../modules/http/request_validator.js');
19
- await import('../src/bindings/vinejs.js');
20
- }
21
16
  }
@@ -1,6 +1,14 @@
1
1
  import { BaseLiteralType } from '@vinejs/vine';
2
2
  import type { FieldContext, FieldOptions, Validation } from '@vinejs/vine/types';
3
3
  import type { MultipartFile, FileValidationOptions } from '@adonisjs/bodyparser/types';
4
+ /**
5
+ * Notifying TypeScript
6
+ */
7
+ declare module '@vinejs/vine' {
8
+ interface Vine {
9
+ file(options?: ValidationOptions): VineMultipartFile;
10
+ }
11
+ }
4
12
  type ValidationOptions = Partial<FileValidationOptions> | ((field: FieldContext) => Partial<FileValidationOptions>);
5
13
  /**
6
14
  * Represents a multipart file uploaded via multipart/form-data HTTP
@@ -11,12 +19,4 @@ declare class VineMultipartFile extends BaseLiteralType<MultipartFile, Multipart
11
19
  constructor(validationOptions?: ValidationOptions, options?: FieldOptions, validations?: Validation<any>[]);
12
20
  clone(): this;
13
21
  }
14
- /**
15
- * Notifying TypeScript
16
- */
17
- declare module '@vinejs/vine' {
18
- interface Vine {
19
- file(options?: ValidationOptions): VineMultipartFile;
20
- }
21
- }
22
22
  export {};
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-16",
4
+ "version": "6.1.5-17",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
@@ -111,7 +111,7 @@
111
111
  "typescript": "^5.1.6"
112
112
  },
113
113
  "dependencies": {
114
- "@adonisjs/ace": "^12.3.1-9",
114
+ "@adonisjs/ace": "^12.3.1-10",
115
115
  "@adonisjs/application": "^7.1.2-11",
116
116
  "@adonisjs/bodyparser": "^9.3.2-7",
117
117
  "@adonisjs/config": "^4.2.1-3",