@adonisjs/core 7.0.0-next.25 → 7.0.0-next.27
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.
- package/README.md +61 -0
- package/build/{ace-DrvIocZi.js → ace-BtbS16RX.js} +6 -6
- package/build/commands/add.js +8 -7
- package/build/commands/build.js +3 -3
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.js +3 -4
- package/build/commands/eject.js +3 -3
- package/build/commands/env/add.js +3 -3
- package/build/commands/generate_key.js +2 -2
- package/build/commands/inspect_rcfile.js +1 -1
- package/build/commands/list/routes.js +2 -2
- package/build/commands/make/command.d.ts +5 -0
- package/build/commands/make/command.js +4 -3
- package/build/commands/make/controller.d.ts +5 -0
- package/build/commands/make/controller.js +4 -3
- package/build/commands/make/event.d.ts +5 -0
- package/build/commands/make/event.js +4 -3
- package/build/commands/make/exception.d.ts +5 -0
- package/build/commands/make/exception.js +4 -3
- package/build/commands/make/listener.d.ts +5 -0
- package/build/commands/make/listener.js +5 -4
- package/build/commands/make/middleware.d.ts +5 -0
- package/build/commands/make/middleware.js +5 -4
- package/build/commands/make/preload.d.ts +5 -0
- package/build/commands/make/preload.js +5 -4
- package/build/commands/make/provider.d.ts +5 -0
- package/build/commands/make/provider.js +5 -4
- package/build/commands/make/service.d.ts +5 -0
- package/build/commands/make/service.js +4 -3
- package/build/commands/make/test.d.ts +5 -0
- package/build/commands/make/test.js +4 -3
- package/build/commands/make/transformer.d.ts +5 -0
- package/build/commands/make/transformer.js +4 -3
- package/build/commands/make/validator.d.ts +5 -0
- package/build/commands/make/validator.js +4 -3
- package/build/commands/make/view.d.ts +5 -0
- package/build/commands/make/view.js +4 -3
- package/build/commands/repl.js +1 -1
- package/build/commands/serve.js +3 -3
- package/build/commands/test.js +3 -3
- package/build/{config_provider-DWVFHOQX.js → config_provider-CY-xuo2R.js} +1 -3
- package/build/{core-BuPP8K6N.js → core-Ckhxy7oM.js} +2 -2
- package/build/create_kernel-BCs646Vx.js +3 -0
- package/build/{create_kernel-C5k82J0c.js → create_kernel-PIeMK2Fo.js} +1 -1
- package/build/debug-DURPi9xn.js +3 -0
- package/build/{define_config-t8DrH2OV.js → define_config-BlZ46bUg.js} +3 -2
- package/build/{edge-LQdCc1L3.js → edge-D4loPeln.js} +3 -3
- package/build/factories/core/ace.js +13 -12
- package/build/factories/core/ignitor.js +10 -9
- package/build/factories/core/main.js +19 -18
- package/build/factories/core/test_utils.js +16 -15
- package/build/factories/stubs.d.ts +1 -6
- package/build/factories/stubs.js +6 -5
- package/build/{ignitor-DAyIsDqZ.js → ignitor-D6oitHT8.js} +6 -6
- package/build/index.js +6 -5
- package/build/{main-B4VF6my1.js → main-BDp4yNr8.js} +19 -8
- package/build/{main-BpYXrgM0.js → main-BIVLvDaW.js} +2 -1
- package/build/{main-BBjkufvA.js → main-C4Amt3wT.js} +3 -3
- package/build/{main-BCUvPhoe.js → main-DRfo73b5.js} +7 -5
- package/build/modules/ace/codemods.d.ts +74 -22
- package/build/modules/ace/codemods.js +78 -4
- package/build/modules/ace/main.js +1 -1
- package/build/modules/bodyparser/bodyparser_middleware.js +1 -1
- package/build/modules/bodyparser/main.js +1 -1
- package/build/modules/config.js +1 -1
- package/build/modules/dumper/main.js +1 -1
- package/build/modules/dumper/plugins/edge.js +1 -1
- package/build/modules/encryption/main.js +5 -4
- package/build/modules/events.js +1 -1
- package/build/modules/hash/main.js +3 -2
- package/build/modules/http/main.js +1 -1
- package/build/modules/http/request_validator.d.ts +2 -1
- package/build/modules/logger.js +1 -1
- package/build/modules/repl.js +1 -1
- package/build/providers/app_provider.js +12 -11
- package/build/providers/edge_provider.js +2 -2
- package/build/providers/hash_provider.js +3 -2
- package/build/providers/repl_provider.js +1 -1
- package/build/providers/vinejs_provider.js +5 -2
- package/build/src/exceptions.js +1 -1
- package/build/src/helpers/main.js +1 -1
- package/build/src/helpers/string.js +1 -1
- package/build/src/helpers/types.js +1 -1
- package/build/src/helpers/verification_token.js +1 -1
- package/build/src/test_utils/main.js +7 -6
- package/build/src/vine.js +1 -1
- package/build/{test_utils-BUSLSCLy.js → test_utils-Ql9I7QAz.js} +3 -3
- package/build/toolkit/main.js +1 -1
- package/build/{vine-Bt4ymkM0.js → vine-D37x2ex7.js} +1 -0
- package/package.json +12 -12
- package/build/create_kernel-CSvWA2w2.js +0 -3
- /package/build/{bodyparser_middleware-DTW0epKM.js → bodyparser_middleware-BmARtnYe.js} +0 -0
- /package/build/{config-Dd2H6-_e.js → config-BEEqDrcn.js} +0 -0
- /package/build/{decorate-CJcHOoD-.js → decorate-DM0Sx1ye.js} +0 -0
- /package/build/{dumper-BTjb8j4y.js → dumper-DxJ_VRuC.js} +0 -0
- /package/build/{events-C4d0OPUI.js → events-BWRc08nG.js} +0 -0
- /package/build/{exceptions-D7t_HaaU.js → exceptions-DNMesP42.js} +0 -0
- /package/build/{logger-0KKSqgPG.js → logger-DV65GX9N.js} +0 -0
- /package/build/{main-BlJhxJJ2.js → main-BWftwyAK.js} +0 -0
- /package/build/{main-CoP2zLaT.js → main-C2r_lzz0.js} +0 -0
- /package/build/{main-DixtGykP.js → main-DOY5Q8Av.js} +0 -0
- /package/build/{repl-GSxgovJQ.js → repl-CwFmzJvr.js} +0 -0
- /package/build/{string-Cx6q_win.js → string-CJ7ewUFq.js} +0 -0
- /package/build/{utils-CtGytdtt.js → utils-DjXMIVBJ.js} +0 -0
- /package/build/{verification_token-DXsW81rl.js → verification_token-DrdoU4RH.js} +0 -0
|
@@ -3,6 +3,7 @@ import type { UIPrimitives } from '@adonisjs/ace/types';
|
|
|
3
3
|
import type { CodeTransformer } from '@adonisjs/assembler/code_transformer';
|
|
4
4
|
import type { MiddlewareNode, EnvValidationNode, BouncerPolicyNode, SupportedPackageManager } from '@adonisjs/assembler/types';
|
|
5
5
|
import type { Application } from '../app.ts';
|
|
6
|
+
import { type GeneratedStub } from '../../types/app.ts';
|
|
6
7
|
/**
|
|
7
8
|
* Codemods class for programmatically modifying AdonisJS source files.
|
|
8
9
|
* This class provides APIs to modify configuration files, register middleware,
|
|
@@ -172,6 +173,76 @@ export declare class Codemods extends EventEmitter {
|
|
|
172
173
|
* ```
|
|
173
174
|
*/
|
|
174
175
|
registerJapaPlugin(...params: Parameters<CodeTransformer['addJapaPlugin']>): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Add a new validator file to the validators directory.
|
|
178
|
+
* This method creates a new validator file with the provided definition.
|
|
179
|
+
*
|
|
180
|
+
* @param params - Parameters for adding the validator
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```ts
|
|
184
|
+
* await codemods.addValidator({
|
|
185
|
+
* validatorFileName: 'create_user',
|
|
186
|
+
* exportName: 'createUserValidator',
|
|
187
|
+
* contents: 'export const createUserValidator = vine.compile(...)'
|
|
188
|
+
* })
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
addValidator(...params: Parameters<CodeTransformer['addValidator']>): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Add a new rate limiter file to the limiters directory.
|
|
194
|
+
* This method creates a new limiter file with the provided definition.
|
|
195
|
+
*
|
|
196
|
+
* @param params - Parameters for adding the limiter
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* await codemods.addLimiter({
|
|
201
|
+
* limiterFileName: 'api_throttle',
|
|
202
|
+
* exportName: 'apiThrottleLimiter',
|
|
203
|
+
* contents: 'export const apiThrottleLimiter = limiter.define(...)'
|
|
204
|
+
* })
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
addLimiter(...params: Parameters<CodeTransformer['addLimiter']>): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
* Add mixins to a model class.
|
|
210
|
+
* This method adds mixin calls to the specified model file.
|
|
211
|
+
*
|
|
212
|
+
* @param params - Parameters for adding model mixins (modelFileName, mixins array)
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```ts
|
|
216
|
+
* await codemods.addModelMixins('user', [
|
|
217
|
+
* {
|
|
218
|
+
* name: 'SoftDeletes',
|
|
219
|
+
* importPath: '@adonisjs/lucid/mixins/soft_deletes',
|
|
220
|
+
* importType: 'named'
|
|
221
|
+
* }
|
|
222
|
+
* ])
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
addModelMixins(...params: Parameters<CodeTransformer['addModelMixins']>): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* Add a new method to an existing controller class.
|
|
228
|
+
* This method injects a new method into the specified controller file.
|
|
229
|
+
*
|
|
230
|
+
* @param params - Parameters for adding the controller method
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* await codemods.addControllerMethod({
|
|
235
|
+
* controllerFileName: 'users_controller',
|
|
236
|
+
* className: 'UsersController',
|
|
237
|
+
* name: 'destroy',
|
|
238
|
+
* contents: 'async destroy({ params, response }: HttpContext) { ... }',
|
|
239
|
+
* imports: [
|
|
240
|
+
* { isType: false, isNamed: true, name: 'HttpContext', path: '@adonisjs/core/http' }
|
|
241
|
+
* ]
|
|
242
|
+
* })
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
addControllerMethod(...params: Parameters<CodeTransformer['addControllerMethod']>): Promise<void>;
|
|
175
246
|
/**
|
|
176
247
|
* Generate a file using a stub template
|
|
177
248
|
*
|
|
@@ -192,28 +263,9 @@ export declare class Codemods extends EventEmitter {
|
|
|
192
263
|
* )
|
|
193
264
|
* ```
|
|
194
265
|
*/
|
|
195
|
-
makeUsingStub(stubsRoot: string, stubPath: string, stubState: Record<string, any
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
destination: any;
|
|
199
|
-
attributes: Record<string, any>;
|
|
200
|
-
status: "created";
|
|
201
|
-
skipReason: null;
|
|
202
|
-
} | {
|
|
203
|
-
relativeFileName: string;
|
|
204
|
-
contents: string;
|
|
205
|
-
destination: any;
|
|
206
|
-
attributes: Record<string, any>;
|
|
207
|
-
status: "force_created";
|
|
208
|
-
skipReason: null;
|
|
209
|
-
} | {
|
|
210
|
-
relativeFileName: string;
|
|
211
|
-
contents: string;
|
|
212
|
-
destination: any;
|
|
213
|
-
attributes: Record<string, any>;
|
|
214
|
-
status: "skipped";
|
|
215
|
-
skipReason: string;
|
|
216
|
-
}>;
|
|
266
|
+
makeUsingStub(stubsRoot: string, stubPath: string, stubState: Record<string, any>, options?: {
|
|
267
|
+
contentsFromFile?: string;
|
|
268
|
+
}): Promise<GeneratedStub>;
|
|
217
269
|
/**
|
|
218
270
|
* Install packages using the detected or specified package manager.
|
|
219
271
|
* Automatically detects npm, yarn, or pnpm and installs dependencies accordingly.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as debug_default } from "../../debug-DURPi9xn.js";
|
|
2
|
+
import { t as string_default } from "../../string-CJ7ewUFq.js";
|
|
2
3
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
4
|
+
import { isAbsolute } from "node:path";
|
|
5
|
+
import { readFile } from "node:fs/promises";
|
|
3
6
|
import { EventEmitter } from "node:events";
|
|
4
7
|
var Codemods = class extends EventEmitter {
|
|
5
8
|
#codeTransformer;
|
|
@@ -31,7 +34,6 @@ var Codemods = class extends EventEmitter {
|
|
|
31
34
|
case "yarn":
|
|
32
35
|
case "yarn@berry": return `${colors.yellow(`yarn add${devFlag}`)} ${packages.join(" ")}`;
|
|
33
36
|
case "pnpm": return `${colors.yellow(`pnpm add${devFlag}`)} ${packages.join(" ")}`;
|
|
34
|
-
case "npm":
|
|
35
37
|
default: return `${colors.yellow(`npm i${devFlag}`)} ${packages.join(" ")}`;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
@@ -143,11 +145,83 @@ var Codemods = class extends EventEmitter {
|
|
|
143
145
|
action.failed(error.message);
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
|
-
async
|
|
147
|
-
const
|
|
148
|
+
async addValidator(...params) {
|
|
149
|
+
const transformer = await this.#getCodeTransformer();
|
|
150
|
+
if (!transformer) {
|
|
151
|
+
this.#cliLogger.warning("Cannot create validator file. Install \"@adonisjs/assembler\" to modify source files");
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const action = this.#cliLogger.action("create validator file");
|
|
155
|
+
try {
|
|
156
|
+
await transformer.addValidator(...params);
|
|
157
|
+
action.succeeded();
|
|
158
|
+
} catch (error) {
|
|
159
|
+
this.emit("error", error);
|
|
160
|
+
action.failed(error.message);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
async addLimiter(...params) {
|
|
164
|
+
const transformer = await this.#getCodeTransformer();
|
|
165
|
+
if (!transformer) {
|
|
166
|
+
this.#cliLogger.warning("Cannot create limiter file. Install \"@adonisjs/assembler\" to modify source files");
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const action = this.#cliLogger.action("create limiter file");
|
|
170
|
+
try {
|
|
171
|
+
await transformer.addLimiter(...params);
|
|
172
|
+
action.succeeded();
|
|
173
|
+
} catch (error) {
|
|
174
|
+
this.emit("error", error);
|
|
175
|
+
action.failed(error.message);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
async addModelMixins(...params) {
|
|
179
|
+
const transformer = await this.#getCodeTransformer();
|
|
180
|
+
if (!transformer) {
|
|
181
|
+
this.#cliLogger.warning("Cannot update model file. Install \"@adonisjs/assembler\" to modify source files");
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const action = this.#cliLogger.action("update model file");
|
|
185
|
+
try {
|
|
186
|
+
await transformer.addModelMixins(...params);
|
|
187
|
+
action.succeeded();
|
|
188
|
+
} catch (error) {
|
|
189
|
+
this.emit("error", error);
|
|
190
|
+
action.failed(error.message);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
async addControllerMethod(...params) {
|
|
194
|
+
const transformer = await this.#getCodeTransformer();
|
|
195
|
+
if (!transformer) {
|
|
196
|
+
this.#cliLogger.warning("Cannot update controller file. Install \"@adonisjs/assembler\" to modify source files");
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const action = this.#cliLogger.action("update controller file");
|
|
200
|
+
try {
|
|
201
|
+
await transformer.addControllerMethod(...params);
|
|
202
|
+
action.succeeded();
|
|
203
|
+
} catch (error) {
|
|
204
|
+
this.emit("error", error);
|
|
205
|
+
action.failed(error.message);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async makeUsingStub(stubsRoot, stubPath, stubState, options) {
|
|
209
|
+
const stub = await (await this.#app.stubs.create()).build(stubPath, { source: stubsRoot });
|
|
210
|
+
if (options?.contentsFromFile) {
|
|
211
|
+
const source = isAbsolute(options.contentsFromFile) ? options.contentsFromFile : this.#app.makePath(options.contentsFromFile);
|
|
212
|
+
try {
|
|
213
|
+
debug_default("overwriting stub output with contents from file %s", source);
|
|
214
|
+
stub.replaceWith(await readFile(source, "utf-8"));
|
|
215
|
+
} catch (error) {
|
|
216
|
+
if (error.code === "ENOENT") throw new Error(`Cannot replace stub output with "${options.contentsFromFile}" file contents as the file is missing`, { cause: error });
|
|
217
|
+
throw error;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const output = await stub.generate({
|
|
148
221
|
force: this.overwriteExisting,
|
|
149
222
|
...stubState
|
|
150
223
|
});
|
|
224
|
+
debug_default("generating file %O", output);
|
|
151
225
|
const entityFileName = string_default.toUnixSlash(this.#app.relativePath(output.destination));
|
|
152
226
|
const result = {
|
|
153
227
|
...output,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Parser, c as errors, d as Kernel, f as BaseCommand, i as ListLoader, l as flags, n as HelpCommand, o as args, p as ListCommand, r as IndexGenerator, s as cliHelpers, t as FsLoader, u as tracingChannels } from "../../main-
|
|
1
|
+
import { a as Parser, c as errors, d as Kernel, f as BaseCommand, i as ListLoader, l as flags, n as HelpCommand, o as args, p as ListCommand, r as IndexGenerator, s as cliHelpers, t as FsLoader, u as tracingChannels } from "../../main-BWftwyAK.js";
|
|
2
2
|
export { BaseCommand, FsLoader, HelpCommand, IndexGenerator, Kernel, ListCommand, ListLoader, Parser, args, cliHelpers, errors, flags, tracingChannels };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bodyparser_middleware_default } from "../../bodyparser_middleware-
|
|
1
|
+
import { t as bodyparser_middleware_default } from "../../bodyparser_middleware-BmARtnYe.js";
|
|
2
2
|
export { bodyparser_middleware_default as default };
|
package/build/modules/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as pluginEdgeDumper } from "../../../edge-
|
|
1
|
+
import { t as pluginEdgeDumper } from "../../../edge-D4loPeln.js";
|
|
2
2
|
export { pluginEdgeDumper };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import "../../debug-DURPi9xn.js";
|
|
2
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
3
|
+
import "../../exceptions-DNMesP42.js";
|
|
4
|
+
import { n as drivers, t as defineConfig } from "../../define_config-BlZ46bUg.js";
|
|
5
|
+
import { i as Hmac, n as Encryption, r as EncryptionManager, t as BaseDriver } from "../../main-C2r_lzz0.js";
|
|
5
6
|
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers };
|
package/build/modules/events.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
|
-
import "../../
|
|
3
|
-
import
|
|
2
|
+
import "../../debug-DURPi9xn.js";
|
|
3
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
4
|
+
import { n as defineConfig, r as drivers } from "../../main-BIVLvDaW.js";
|
|
4
5
|
export * from "@adonisjs/hash";
|
|
5
6
|
export { defineConfig, drivers };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VineValidator } from '@vinejs/vine';
|
|
1
|
+
import type { ValidationError, VineValidator } from '@vinejs/vine';
|
|
2
2
|
import type { Infer, SchemaTypes, ErrorReporterContract, MessagesProviderContact } from '@vinejs/vine/types';
|
|
3
3
|
import type { HttpContext } from './main.ts';
|
|
4
4
|
import type { RequestValidationOptions } from '../../types/http.ts';
|
|
@@ -58,4 +58,5 @@ export declare class RequestValidator {
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
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>>;
|
|
61
|
+
tryValidateUsing<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<[ValidationError, null] | [null, Infer<Schema>]>;
|
|
61
62
|
}
|
package/build/modules/logger.js
CHANGED
package/build/modules/repl.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import
|
|
2
|
+
import "../debug-DURPi9xn.js";
|
|
3
3
|
import { t as app_exports } from "../app-DNvbxVWl.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
4
|
+
import { t as configProvider } from "../config_provider-CY-xuo2R.js";
|
|
5
|
+
import { t as config_exports } from "../config-BEEqDrcn.js";
|
|
6
|
+
import { t as events_exports } from "../events-BWRc08nG.js";
|
|
7
|
+
import { t as logger_exports } from "../logger-DV65GX9N.js";
|
|
8
|
+
import { t as Dumper } from "../dumper-DxJ_VRuC.js";
|
|
9
|
+
import { r as RuntimeException } from "../exceptions-DNMesP42.js";
|
|
10
|
+
import { t as main_exports } from "../main-BDp4yNr8.js";
|
|
11
|
+
import "../define_config-BlZ46bUg.js";
|
|
12
|
+
import { n as Encryption } from "../main-C2r_lzz0.js";
|
|
13
|
+
import { t as bodyparser_middleware_default } from "../bodyparser_middleware-BmARtnYe.js";
|
|
13
14
|
import { dirname } from "node:path";
|
|
14
15
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
15
16
|
var AppServiceProvider = class {
|
|
@@ -24,7 +25,7 @@ var AppServiceProvider = class {
|
|
|
24
25
|
}
|
|
25
26
|
registerAce() {
|
|
26
27
|
this.app.container.singleton("ace", async () => {
|
|
27
|
-
const { createAceKernel } = await import("../create_kernel-
|
|
28
|
+
const { createAceKernel } = await import("../create_kernel-BCs646Vx.js");
|
|
28
29
|
return createAceKernel(this.app);
|
|
29
30
|
});
|
|
30
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
3
|
-
import { t as pluginEdgeDumper } from "../edge-
|
|
2
|
+
import { t as main_exports } from "../main-BDp4yNr8.js";
|
|
3
|
+
import { t as pluginEdgeDumper } from "../edge-D4loPeln.js";
|
|
4
4
|
import edge from "edge.js";
|
|
5
5
|
var EdgeServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
2
|
+
import "../debug-DURPi9xn.js";
|
|
3
|
+
import { t as configProvider } from "../config_provider-CY-xuo2R.js";
|
|
4
|
+
import { t as main_exports } from "../main-BIVLvDaW.js";
|
|
4
5
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
5
6
|
var HashServiceProvider = class {
|
|
6
7
|
constructor(app) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { t as repl_exports } from "../repl-
|
|
2
|
+
import { t as repl_exports } from "../repl-CwFmzJvr.js";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { fsImportAll } from "@poppinss/utils/fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { n as RequestValidator, t as main_exports } from "../main-
|
|
3
|
-
import { t as VineMultipartFile } from "../vine-
|
|
2
|
+
import { n as RequestValidator, t as main_exports } from "../main-BDp4yNr8.js";
|
|
3
|
+
import { t as VineMultipartFile } from "../vine-D37x2ex7.js";
|
|
4
4
|
import { Vine } from "@vinejs/vine";
|
|
5
5
|
var VineJSServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
|
@@ -14,6 +14,9 @@ var VineJSServiceProvider = class {
|
|
|
14
14
|
main_exports.HttpRequest.macro("validateUsing", function(...args) {
|
|
15
15
|
return new RequestValidator(this.ctx).validateUsing(...args);
|
|
16
16
|
});
|
|
17
|
+
main_exports.HttpRequest.macro("tryValidateUsing", function(...args) {
|
|
18
|
+
return new RequestValidator(this.ctx).tryValidateUsing(...args);
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
21
|
};
|
|
19
22
|
export { VineJSServiceProvider as default };
|
package/build/src/exceptions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as createError, n as InvalidArgumentsException, r as RuntimeException, t as Exception } from "../exceptions-
|
|
1
|
+
import { i as createError, n as InvalidArgumentsException, r as RuntimeException, t as Exception } from "../exceptions-DNMesP42.js";
|
|
2
2
|
export { Exception, InvalidArgumentsException, RuntimeException, createError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-DrdoU4RH.js";
|
|
2
2
|
import { fsImportAll, fsReadAll } from "@poppinss/utils/fs";
|
|
3
3
|
import base64 from "@poppinss/utils/base64";
|
|
4
4
|
import { MessageBuilder, Secret, compose, defineStaticProperty, safeEqual } from "@poppinss/utils";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as string_default } from "../../string-
|
|
1
|
+
import { t as string_default } from "../../string-CJ7ewUFq.js";
|
|
2
2
|
export { string_default as default };
|
|
@@ -21,7 +21,7 @@ var types_default = {
|
|
|
21
21
|
isDecimal(value, options) {
|
|
22
22
|
if (typeof value === "number") value = value.toString();
|
|
23
23
|
const decimalPlaces = options && options.decimalPlaces || "1,";
|
|
24
|
-
return
|
|
24
|
+
return new RegExp(`^[-+]?([0-9]+)?(\\.[0-9]{${decimalPlaces}})$`).test(value);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
export { types_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-DrdoU4RH.js";
|
|
2
2
|
export { VerificationToken };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import
|
|
2
|
+
import "../../debug-DURPi9xn.js";
|
|
3
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
4
|
+
import "../../exceptions-DNMesP42.js";
|
|
5
|
+
import "../../main-BDp4yNr8.js";
|
|
6
|
+
import "../../define_config-BlZ46bUg.js";
|
|
7
|
+
import "../../main-C2r_lzz0.js";
|
|
8
|
+
import { t as TestUtils } from "../../main-C4Amt3wT.js";
|
|
8
9
|
export { TestUtils };
|
package/build/src/vine.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VineMultipartFile } from "../vine-
|
|
1
|
+
import { t as VineMultipartFile } from "../vine-D37x2ex7.js";
|
|
2
2
|
export { VineMultipartFile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
3
|
-
import { t as TestUtils } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-DRfo73b5.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-D6oitHT8.js";
|
|
3
|
+
import { t as TestUtils } from "./main-C4Amt3wT.js";
|
|
4
4
|
var TestUtilsFactory = class {
|
|
5
5
|
create(ignitorOrAppRoot, options) {
|
|
6
6
|
if (ignitorOrAppRoot instanceof Ignitor) return new TestUtils(ignitorOrAppRoot.createApp("test"));
|
package/build/toolkit/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { t as __decorate } from "../decorate-DM0Sx1ye.js";
|
|
3
3
|
import { BaseCommand, HelpCommand, IndexGenerator, Kernel, ListLoader, args } from "@adonisjs/ace";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
var IndexCommand = class extends BaseCommand {
|
|
@@ -4,6 +4,7 @@ function isBodyParserFile(file) {
|
|
|
4
4
|
return !!(file && typeof file === "object" && "isMultipartFile" in file);
|
|
5
5
|
}
|
|
6
6
|
const isMultipartFile = vine.createRule((file, options, field) => {
|
|
7
|
+
if (!field.isDefined) return false;
|
|
7
8
|
if (!isBodyParserFile(file)) {
|
|
8
9
|
field.report("The {{ field }} must be a file", "file", field);
|
|
9
10
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.0.0-next.
|
|
4
|
+
"version": "7.0.0-next.27",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"index:commands": "node --import=@poppinss/ts-exec toolkit/main.js index build/commands"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@adonisjs/assembler": "^8.0.0-next.
|
|
83
|
+
"@adonisjs/assembler": "^8.0.0-next.31",
|
|
84
84
|
"@adonisjs/eslint-config": "^3.0.0-next.9",
|
|
85
85
|
"@adonisjs/prettier-config": "^1.4.5",
|
|
86
86
|
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@japa/file-system": "^3.0.0",
|
|
90
90
|
"@japa/runner": "^5.3.0",
|
|
91
91
|
"@japa/snapshot": "^2.0.10",
|
|
92
|
-
"@poppinss/ts-exec": "^1.4.
|
|
92
|
+
"@poppinss/ts-exec": "^1.4.3",
|
|
93
93
|
"@release-it/conventional-changelog": "^10.0.4",
|
|
94
|
-
"@types/node": "^25.0
|
|
94
|
+
"@types/node": "^25.1.0",
|
|
95
95
|
"@types/pretty-hrtime": "^1.0.3",
|
|
96
96
|
"@types/sinon": "^21.0.0",
|
|
97
97
|
"@types/supertest": "^6.0.3",
|
|
@@ -108,21 +108,21 @@
|
|
|
108
108
|
"execa": "^9.6.1",
|
|
109
109
|
"get-port": "^7.1.0",
|
|
110
110
|
"pino-pretty": "^13.1.3",
|
|
111
|
-
"prettier": "^3.8.
|
|
112
|
-
"release-it": "^19.2.
|
|
111
|
+
"prettier": "^3.8.1",
|
|
112
|
+
"release-it": "^19.2.4",
|
|
113
113
|
"sinon": "^21.0.1",
|
|
114
114
|
"supertest": "^7.2.2",
|
|
115
115
|
"test-console": "^2.0.0",
|
|
116
116
|
"timekeeper": "^2.3.1",
|
|
117
|
-
"tsdown": "^0.
|
|
117
|
+
"tsdown": "^0.20.1",
|
|
118
118
|
"typedoc": "^0.28.16",
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
120
|
"youch": "^4.1.0-beta.13"
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@adonisjs/ace": "^14.0.1-next.4",
|
|
124
|
-
"@adonisjs/application": "^9.0.0-next.
|
|
125
|
-
"@adonisjs/bodyparser": "^11.0.0-next.
|
|
124
|
+
"@adonisjs/application": "^9.0.0-next.15",
|
|
125
|
+
"@adonisjs/bodyparser": "^11.0.0-next.7",
|
|
126
126
|
"@adonisjs/config": "^6.1.0-next.0",
|
|
127
127
|
"@adonisjs/env": "^7.0.0-next.3",
|
|
128
128
|
"@adonisjs/events": "^10.1.0-next.4",
|
|
@@ -132,18 +132,18 @@
|
|
|
132
132
|
"@adonisjs/http-server": "^8.0.0-next.18",
|
|
133
133
|
"@adonisjs/http-transformers": "^2.1.0",
|
|
134
134
|
"@adonisjs/logger": "^7.1.0-next.3",
|
|
135
|
-
"@adonisjs/repl": "^5.0.0-next.
|
|
135
|
+
"@adonisjs/repl": "^5.0.0-next.2",
|
|
136
136
|
"@boringnode/encryption": "^0.2.5",
|
|
137
137
|
"@poppinss/colors": "^4.1.6",
|
|
138
138
|
"@poppinss/dumper": "^0.7.0",
|
|
139
139
|
"@poppinss/macroable": "^1.1.0",
|
|
140
|
-
"@poppinss/utils": "^7.0.0-next.
|
|
140
|
+
"@poppinss/utils": "^7.0.0-next.7",
|
|
141
141
|
"@sindresorhus/is": "^7.2.0",
|
|
142
142
|
"@types/he": "^1.2.3",
|
|
143
143
|
"error-stack-parser-es": "^1.0.5",
|
|
144
144
|
"he": "^1.2.0",
|
|
145
145
|
"pretty-hrtime": "^1.0.3",
|
|
146
|
-
"string-width": "^8.1.
|
|
146
|
+
"string-width": "^8.1.1"
|
|
147
147
|
},
|
|
148
148
|
"peerDependencies": {
|
|
149
149
|
"@adonisjs/assembler": "^8.0.0-next.23",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|