@adonisjs/core 7.1.1 → 7.3.0
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/build/{ace-DBm6EcQ-.js → ace-WfzFjXRM.js} +3 -3
- package/build/{app-BCcG_oDd.js → app-XhU0L_kQ.js} +1 -1
- package/build/{chunk-Do49iUES.js → chunk-ZRW5x4aP.js} +1 -3
- package/build/commands/add.js +3 -13
- package/build/commands/build.d.ts +4 -0
- package/build/commands/build.js +4 -4
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.js +2 -3
- package/build/commands/eject.js +2 -3
- package/build/commands/env/add.js +2 -3
- package/build/commands/generate_key.js +2 -3
- package/build/commands/inspect_rcfile.js +1 -2
- package/build/commands/list/routes.js +2 -3
- package/build/commands/make/command.d.ts +4 -0
- package/build/commands/make/command.js +9 -4
- package/build/commands/make/controller.d.ts +4 -0
- package/build/commands/make/controller.js +9 -4
- package/build/commands/make/event.d.ts +4 -0
- package/build/commands/make/event.js +9 -4
- package/build/commands/make/exception.d.ts +4 -0
- package/build/commands/make/exception.js +9 -4
- package/build/commands/make/listener.d.ts +4 -0
- package/build/commands/make/listener.js +7 -3
- package/build/commands/make/middleware.d.ts +4 -0
- package/build/commands/make/middleware.js +7 -3
- package/build/commands/make/preload.d.ts +4 -0
- package/build/commands/make/preload.js +7 -3
- package/build/commands/make/provider.d.ts +4 -0
- package/build/commands/make/provider.js +7 -3
- package/build/commands/make/service.d.ts +4 -0
- package/build/commands/make/service.js +9 -4
- package/build/commands/make/test.d.ts +4 -0
- package/build/commands/make/test.js +12 -4
- package/build/commands/make/transformer.d.ts +4 -0
- package/build/commands/make/transformer.js +9 -4
- package/build/commands/make/validator.d.ts +4 -0
- package/build/commands/make/validator.js +9 -4
- package/build/commands/make/view.d.ts +4 -0
- package/build/commands/make/view.js +9 -4
- package/build/commands/repl.js +1 -2
- package/build/commands/serve.js +2 -3
- package/build/commands/test.js +2 -3
- package/build/{config-Coti2q6R.js → config-dLMqZYix.js} +1 -1
- package/build/{container-CGfEwWof.js → container-BB6VBj9q.js} +1 -1
- package/build/{core-aRg0soJX.js → core-X32M3Zo8.js} +4 -0
- package/build/{create_kernel-D38-0Zbt.js → create_kernel-CziaAklz.js} +1 -1
- package/build/create_kernel-D6ZvFwXO.js +2 -0
- package/build/{decorate-B9Uz0anB.js → decorate-yKe-VEeE.js} +1 -1
- package/build/{dumper-3R77st8F.js → dumper-V22ueBaO.js} +1 -1
- package/build/{events-DlKX1ZdL.js → events-DIYBcPfM.js} +1 -1
- package/build/factories/app.js +0 -1
- package/build/factories/bodyparser.js +0 -1
- package/build/factories/core/ace.js +1 -16
- package/build/factories/core/ignitor.js +1 -13
- package/build/factories/core/main.js +3 -25
- package/build/factories/core/test_utils.js +1 -22
- package/build/factories/encryption.js +0 -1
- package/build/factories/events.js +0 -1
- package/build/factories/hash.js +0 -1
- package/build/factories/http.js +0 -1
- package/build/factories/logger.js +0 -1
- package/build/factories/stubs.js +1 -10
- package/build/{ignitor-Kym3gR-I.js → ignitor-CEEHASdH.js} +5 -5
- package/build/index.js +3 -9
- package/build/{logger-DIdZPHCe.js → logger-Cj7AOEsL.js} +1 -1
- package/build/{main-Ck0GqLx4.js → main-BDd3QiJF.js} +1 -1
- package/build/{main-B50zECAi.js → main-CG-utHjr.js} +1 -1
- package/build/{main-zxNP7iRl.js → main-DpE5rTyk.js} +1 -1
- package/build/{main-CRnMnrH7.js → main-DzNXtXg3.js} +2 -2
- package/build/{main-bRYXIHgD.js → main-_4BIfRkS.js} +2 -2
- package/build/{main-CoZI4Ezs.js → main-nex7ClUz.js} +2 -0
- package/build/{main-D1MSq4Uu.js → main-zFY2qkGC.js} +2 -2
- package/build/make/validator/resource.stub +2 -6
- package/build/modules/ace/codemods.d.ts +6 -0
- package/build/modules/ace/codemods.js +9 -1
- package/build/modules/ace/main.d.ts +1 -1
- package/build/modules/ace/main.js +2 -3
- package/build/modules/app.js +1 -2
- package/build/modules/bodyparser/bodyparser_middleware.js +0 -1
- package/build/modules/bodyparser/main.js +1 -2
- package/build/modules/config.js +1 -2
- package/build/modules/container.js +1 -2
- package/build/modules/dumper/main.js +1 -2
- package/build/modules/dumper/plugins/edge.js +0 -1
- package/build/modules/encryption/drivers/aes_256_cbc.js +0 -1
- package/build/modules/encryption/drivers/aes_256_gcm.js +0 -1
- package/build/modules/encryption/drivers/aes_siv.js +0 -1
- package/build/modules/encryption/drivers/chacha20_poly1305.js +0 -1
- package/build/modules/encryption/drivers/legacy.js +0 -2
- package/build/modules/encryption/main.js +1 -5
- package/build/modules/env/editor.js +0 -1
- package/build/modules/env/main.js +0 -1
- package/build/modules/events.js +1 -2
- package/build/modules/hash/drivers/argon.js +0 -1
- package/build/modules/hash/drivers/bcrypt.js +0 -1
- package/build/modules/hash/drivers/scrypt.js +0 -1
- package/build/modules/hash/main.js +1 -4
- package/build/modules/hash/phc_formatter.js +0 -1
- package/build/modules/health.js +0 -1
- package/build/modules/http/helpers.js +0 -1
- package/build/modules/http/main.js +1 -2
- package/build/modules/http/url_builder_client.js +0 -1
- package/build/modules/logger.js +1 -2
- package/build/modules/repl.js +1 -2
- package/build/modules/transformers/main.js +0 -1
- package/build/providers/app_provider.js +8 -12
- package/build/providers/edge_provider.js +1 -2
- package/build/providers/hash_provider.js +1 -3
- package/build/providers/repl_provider.js +1 -2
- package/build/providers/vinejs_provider.js +1 -2
- package/build/{repl-C02Re0Yd.js → repl-DL_vrd08.js} +1 -1
- package/build/safe_timing-AjC3K21F.js +49 -0
- package/build/services/ace.js +0 -1
- package/build/services/app.js +0 -1
- package/build/services/config.js +0 -1
- package/build/services/dumper.js +0 -1
- package/build/services/emitter.js +0 -1
- package/build/services/encryption.js +0 -1
- package/build/services/hash.js +0 -1
- package/build/services/logger.js +0 -1
- package/build/services/repl.js +0 -1
- package/build/services/router.js +0 -1
- package/build/services/server.js +0 -1
- package/build/services/test_utils.js +0 -1
- package/build/services/url_builder.js +0 -1
- package/build/src/exceptions.js +0 -1
- package/build/src/helpers/assert.js +0 -1
- package/build/src/helpers/http.js +0 -1
- package/build/src/helpers/is.js +0 -1
- package/build/src/helpers/main.d.ts +5 -0
- package/build/src/helpers/main.js +2 -2
- package/build/src/helpers/safe_timing.d.ts +28 -0
- package/build/src/helpers/safe_timing.js +2 -0
- package/build/src/helpers/string.js +0 -1
- package/build/src/helpers/types.js +0 -1
- package/build/src/helpers/verification_token.js +0 -1
- package/build/src/test_utils/main.js +1 -9
- package/build/src/types.js +0 -1
- package/build/src/vine.js +0 -1
- package/build/{test_utils-DbJS_uEu.js → test_utils-CX2woeem.js} +4 -3
- package/build/toolkit/main.js +1 -2
- package/build/types/ace.js +0 -1
- package/build/types/app.js +0 -1
- package/build/types/bodyparser.js +0 -1
- package/build/types/common.js +0 -1
- package/build/types/container.js +0 -1
- package/build/types/encryption.js +0 -1
- package/build/types/events.js +0 -1
- package/build/types/hash.js +0 -1
- package/build/types/health.js +0 -1
- package/build/types/helpers.js +0 -1
- package/build/types/http.js +0 -1
- package/build/types/logger.js +0 -1
- package/build/types/repl.js +0 -1
- package/build/types/transformers.js +0 -1
- package/package.json +12 -12
- package/build/create_kernel-BV3swyCg.js +0 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
2
|
import { t as stringHelpers } from "../../string-8_8He-HH.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
6
5
|
import { extname, relative } from "node:path";
|
|
7
6
|
//#region commands/make/provider.ts
|
|
8
7
|
const ALLOWED_ENVIRONMENTS = [
|
|
@@ -64,6 +63,7 @@ var MakeProvider = class extends BaseCommand {
|
|
|
64
63
|
*/
|
|
65
64
|
if (this.register === void 0) this.register = await this.prompt.confirm("Do you want to register the provider in .adonisrc.ts file?");
|
|
66
65
|
const codemods = await this.createCodemods();
|
|
66
|
+
codemods.overwriteExisting = this.force === true;
|
|
67
67
|
const { destination } = await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
68
68
|
flags: this.parsed.flags,
|
|
69
69
|
entity: this.app.generators.createEntity(this.name)
|
|
@@ -94,5 +94,9 @@ __decorate([flags.array({
|
|
|
94
94
|
alias: "e"
|
|
95
95
|
})], MakeProvider.prototype, "environments", void 0);
|
|
96
96
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeProvider.prototype, "contentsFrom", void 0);
|
|
97
|
+
__decorate([flags.boolean({
|
|
98
|
+
description: "Forcefully overwrite existing files",
|
|
99
|
+
alias: "f"
|
|
100
|
+
})], MakeProvider.prototype, "force", void 0);
|
|
97
101
|
//#endregion
|
|
98
102
|
export { MakeProvider as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/make/service.ts
|
|
6
5
|
/**
|
|
7
6
|
* Make a new service class
|
|
@@ -31,7 +30,9 @@ var MakeService = class extends BaseCommand {
|
|
|
31
30
|
*/
|
|
32
31
|
stubPath = "make/service/main.stub";
|
|
33
32
|
async run() {
|
|
34
|
-
|
|
33
|
+
const codemods = await this.createCodemods();
|
|
34
|
+
codemods.overwriteExisting = this.force === true;
|
|
35
|
+
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
35
36
|
flags: this.parsed.flags,
|
|
36
37
|
entity: this.app.generators.createEntity(this.name)
|
|
37
38
|
}, { contentsFromFile: this.contentsFrom });
|
|
@@ -39,5 +40,9 @@ var MakeService = class extends BaseCommand {
|
|
|
39
40
|
};
|
|
40
41
|
__decorate([args.string({ description: "Name of the service" })], MakeService.prototype, "name", void 0);
|
|
41
42
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeService.prototype, "contentsFrom", void 0);
|
|
43
|
+
__decorate([flags.boolean({
|
|
44
|
+
description: "Forcefully overwrite existing files",
|
|
45
|
+
alias: "f"
|
|
46
|
+
})], MakeService.prototype, "force", void 0);
|
|
42
47
|
//#endregion
|
|
43
48
|
export { MakeService as default };
|
|
@@ -34,6 +34,10 @@ export default class MakeTest extends BaseCommand {
|
|
|
34
34
|
* it as the raw contents
|
|
35
35
|
*/
|
|
36
36
|
contentsFrom: string;
|
|
37
|
+
/**
|
|
38
|
+
* Forcefully overwrite existing files
|
|
39
|
+
*/
|
|
40
|
+
force: boolean;
|
|
37
41
|
/**
|
|
38
42
|
* The stub template file to use for generating the test file
|
|
39
43
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/make/test.ts
|
|
6
5
|
/**
|
|
7
6
|
* Command to create a new Japa test file.
|
|
@@ -91,7 +90,12 @@ var MakeTest = class extends BaseCommand {
|
|
|
91
90
|
this.exitCode = 1;
|
|
92
91
|
return;
|
|
93
92
|
}
|
|
94
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Generate entity
|
|
95
|
+
*/
|
|
96
|
+
const codemods = await this.createCodemods();
|
|
97
|
+
codemods.overwriteExisting = this.force === true;
|
|
98
|
+
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
95
99
|
flags: this.parsed.flags,
|
|
96
100
|
entity: this.app.generators.createEntity(this.name),
|
|
97
101
|
suite: { directory: await this.#getSuiteDirectory(suite.directories) }
|
|
@@ -104,5 +108,9 @@ __decorate([flags.string({
|
|
|
104
108
|
alias: "s"
|
|
105
109
|
})], MakeTest.prototype, "suite", void 0);
|
|
106
110
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeTest.prototype, "contentsFrom", void 0);
|
|
111
|
+
__decorate([flags.boolean({
|
|
112
|
+
description: "Forcefully overwrite existing files",
|
|
113
|
+
alias: "f"
|
|
114
|
+
})], MakeTest.prototype, "force", void 0);
|
|
107
115
|
//#endregion
|
|
108
116
|
export { MakeTest as default };
|
|
@@ -36,6 +36,10 @@ export default class MakeTransformer extends BaseCommand {
|
|
|
36
36
|
* it as the raw contents
|
|
37
37
|
*/
|
|
38
38
|
contentsFrom: string;
|
|
39
|
+
/**
|
|
40
|
+
* Forcefully overwrite existing files
|
|
41
|
+
*/
|
|
42
|
+
force: boolean;
|
|
39
43
|
/**
|
|
40
44
|
* The stub template file to use for generating the transformer class
|
|
41
45
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/make/transformer.ts
|
|
6
5
|
/**
|
|
7
6
|
* Command to create a new transformer class.
|
|
@@ -39,7 +38,9 @@ var MakeTransformer = class extends BaseCommand {
|
|
|
39
38
|
* Generates the transformer file with proper data serialization structure.
|
|
40
39
|
*/
|
|
41
40
|
async run() {
|
|
42
|
-
|
|
41
|
+
const codemods = await this.createCodemods();
|
|
42
|
+
codemods.overwriteExisting = this.force === true;
|
|
43
|
+
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
43
44
|
flags: this.parsed.flags,
|
|
44
45
|
entity: this.app.generators.createEntity(this.name),
|
|
45
46
|
model: this.app.generators.createEntity(this.name)
|
|
@@ -48,5 +49,9 @@ var MakeTransformer = class extends BaseCommand {
|
|
|
48
49
|
};
|
|
49
50
|
__decorate([args.string({ description: "Entity name for which to generate the transformer" })], MakeTransformer.prototype, "name", void 0);
|
|
50
51
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeTransformer.prototype, "contentsFrom", void 0);
|
|
52
|
+
__decorate([flags.boolean({
|
|
53
|
+
description: "Forcefully overwrite existing files",
|
|
54
|
+
alias: "f"
|
|
55
|
+
})], MakeTransformer.prototype, "force", void 0);
|
|
51
56
|
//#endregion
|
|
52
57
|
export { MakeTransformer as default };
|
|
@@ -40,6 +40,10 @@ export default class MakeValidator extends BaseCommand {
|
|
|
40
40
|
* it as the raw contents
|
|
41
41
|
*/
|
|
42
42
|
contentsFrom: string;
|
|
43
|
+
/**
|
|
44
|
+
* Forcefully overwrite existing files
|
|
45
|
+
*/
|
|
46
|
+
force: boolean;
|
|
43
47
|
/**
|
|
44
48
|
* The stub template file to use for generating the validator
|
|
45
49
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/make/validator.ts
|
|
6
5
|
/**
|
|
7
6
|
* Command to create a new VineJS validator file.
|
|
@@ -49,7 +48,9 @@ var MakeValidator = class extends BaseCommand {
|
|
|
49
48
|
* Generates the validator with the appropriate stub template.
|
|
50
49
|
*/
|
|
51
50
|
async run() {
|
|
52
|
-
|
|
51
|
+
const codemods = await this.createCodemods();
|
|
52
|
+
codemods.overwriteExisting = this.force === true;
|
|
53
|
+
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
53
54
|
flags: this.parsed.flags,
|
|
54
55
|
entity: this.app.generators.createEntity(this.name)
|
|
55
56
|
}, { contentsFromFile: this.contentsFrom });
|
|
@@ -58,5 +59,9 @@ var MakeValidator = class extends BaseCommand {
|
|
|
58
59
|
__decorate([args.string({ description: "Name of the validator file" })], MakeValidator.prototype, "name", void 0);
|
|
59
60
|
__decorate([flags.boolean({ description: "Create a file with pre-defined validators for create and update actions" })], MakeValidator.prototype, "resource", void 0);
|
|
60
61
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeValidator.prototype, "contentsFrom", void 0);
|
|
62
|
+
__decorate([flags.boolean({
|
|
63
|
+
description: "Forcefully overwrite existing files",
|
|
64
|
+
alias: "f"
|
|
65
|
+
})], MakeValidator.prototype, "force", void 0);
|
|
61
66
|
//#endregion
|
|
62
67
|
export { MakeValidator as default };
|
|
@@ -30,6 +30,10 @@ export default class MakeView extends BaseCommand {
|
|
|
30
30
|
* it as the raw contents
|
|
31
31
|
*/
|
|
32
32
|
contentsFrom: string;
|
|
33
|
+
/**
|
|
34
|
+
* Forcefully overwrite existing files
|
|
35
|
+
*/
|
|
36
|
+
force: boolean;
|
|
33
37
|
/**
|
|
34
38
|
* The stub template file to use for generating the Edge template
|
|
35
39
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../../main-CfTiGsiS.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/make/view.ts
|
|
6
5
|
/**
|
|
7
6
|
* Command to create a new Edge.js template file.
|
|
@@ -34,7 +33,9 @@ var MakeView = class extends BaseCommand {
|
|
|
34
33
|
* Generates the template file in the views directory.
|
|
35
34
|
*/
|
|
36
35
|
async run() {
|
|
37
|
-
|
|
36
|
+
const codemods = await this.createCodemods();
|
|
37
|
+
codemods.overwriteExisting = this.force === true;
|
|
38
|
+
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
38
39
|
flags: this.parsed.flags,
|
|
39
40
|
entity: this.app.generators.createEntity(this.name)
|
|
40
41
|
}, { contentsFromFile: this.contentsFrom });
|
|
@@ -42,5 +43,9 @@ var MakeView = class extends BaseCommand {
|
|
|
42
43
|
};
|
|
43
44
|
__decorate([args.string({ description: "Name of the template" })], MakeView.prototype, "name", void 0);
|
|
44
45
|
__decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeView.prototype, "contentsFrom", void 0);
|
|
46
|
+
__decorate([flags.boolean({
|
|
47
|
+
description: "Forcefully overwrite existing files",
|
|
48
|
+
alias: "f"
|
|
49
|
+
})], MakeView.prototype, "force", void 0);
|
|
45
50
|
//#endregion
|
|
46
51
|
export { MakeView as default };
|
package/build/commands/repl.js
CHANGED
package/build/commands/serve.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../chunk-Do49iUES.js";
|
|
2
1
|
import { t as importAssembler } from "../utils-CKwka7OL.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/serve.ts
|
|
6
5
|
/**
|
|
7
6
|
* Serve command is used to run the AdonisJS HTTP server during development. The
|
package/build/commands/test.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "../chunk-Do49iUES.js";
|
|
2
1
|
import { t as importAssembler } from "../utils-CKwka7OL.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-yKe-VEeE.js";
|
|
5
4
|
//#region commands/test.ts
|
|
6
5
|
/**
|
|
7
6
|
* Command to run application tests using the Japa test runner.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
//#region modules/config.ts
|
|
3
3
|
var config_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_config from "@adonisjs/config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
//#region modules/container.ts
|
|
3
3
|
var container_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_fold from "@adonisjs/fold";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import "./main-CfTiGsiS.js";
|
|
2
|
+
import "./container-BB6VBj9q.js";
|
|
3
|
+
import "./main-zFY2qkGC.js";
|
|
4
|
+
import "./config_provider-Do9af1ze.js";
|
|
1
5
|
import { t as stringHelpers } from "./string-8_8He-HH.js";
|
|
2
6
|
import { r as outputTransformerDataObjects } from "./utils-CKwka7OL.js";
|
|
3
7
|
import { errors } from "@adonisjs/ace";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as Kernel, n as HelpCommand, t as FsLoader } from "./main-DzNXtXg3.js";
|
|
2
2
|
//#region modules/ace/create_kernel.ts
|
|
3
3
|
/**
|
|
4
4
|
* Create and configure an Ace command kernel for AdonisJS applications.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
//#region modules/events.ts
|
|
3
3
|
var events_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_events from "@adonisjs/events";
|
package/build/factories/app.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../debug-DWofTfIX.js";
|
|
3
|
-
import "../../main-D1MSq4Uu.js";
|
|
4
|
-
import "../../app-CAuSGb2P.js";
|
|
5
|
-
import "../../app-BCcG_oDd.js";
|
|
6
|
-
import "../../config_provider-Do9af1ze.js";
|
|
7
|
-
import "../../main-CRnMnrH7.js";
|
|
8
|
-
import "../../logger-DIdZPHCe.js";
|
|
9
|
-
import "../../exceptions-B2MzIlHY.js";
|
|
10
|
-
import "../../main-Ck0GqLx4.js";
|
|
11
|
-
import "../../define_config--5euEdi8.js";
|
|
12
|
-
import "../../main-B50zECAi.js";
|
|
13
|
-
import "../../main-zxNP7iRl.js";
|
|
14
|
-
import "../../ignitor-Kym3gR-I.js";
|
|
15
|
-
import "../../create_kernel-D38-0Zbt.js";
|
|
16
|
-
import { t as AceFactory } from "../../ace-DBm6EcQ-.js";
|
|
1
|
+
import { t as AceFactory } from "../../ace-WfzFjXRM.js";
|
|
17
2
|
export { AceFactory };
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../debug-DWofTfIX.js";
|
|
3
|
-
import "../../main-D1MSq4Uu.js";
|
|
4
|
-
import "../../app-CAuSGb2P.js";
|
|
5
|
-
import "../../app-BCcG_oDd.js";
|
|
6
|
-
import "../../config_provider-Do9af1ze.js";
|
|
7
|
-
import "../../logger-DIdZPHCe.js";
|
|
8
|
-
import "../../exceptions-B2MzIlHY.js";
|
|
9
|
-
import "../../main-Ck0GqLx4.js";
|
|
10
|
-
import "../../define_config--5euEdi8.js";
|
|
11
|
-
import "../../main-B50zECAi.js";
|
|
12
|
-
import "../../main-zxNP7iRl.js";
|
|
13
|
-
import { t as IgnitorFactory } from "../../ignitor-Kym3gR-I.js";
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-CEEHASdH.js";
|
|
14
2
|
export { IgnitorFactory };
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../debug-DWofTfIX.js";
|
|
5
|
-
import "../../main-D1MSq4Uu.js";
|
|
6
|
-
import "../../app-CAuSGb2P.js";
|
|
7
|
-
import "../../app-BCcG_oDd.js";
|
|
8
|
-
import "../../config_provider-Do9af1ze.js";
|
|
9
|
-
import "../../string-8_8He-HH.js";
|
|
10
|
-
import "../../utils-CKwka7OL.js";
|
|
11
|
-
import "../../core-aRg0soJX.js";
|
|
12
|
-
import "../../main-CRnMnrH7.js";
|
|
13
|
-
import "../../logger-DIdZPHCe.js";
|
|
14
|
-
import "../../exceptions-B2MzIlHY.js";
|
|
15
|
-
import "../../main-Ck0GqLx4.js";
|
|
16
|
-
import "../../errors-BScZTzBu.js";
|
|
17
|
-
import "../../define_config--5euEdi8.js";
|
|
18
|
-
import "../../main-CoZI4Ezs.js";
|
|
19
|
-
import "../../main-B50zECAi.js";
|
|
20
|
-
import "../../main-zxNP7iRl.js";
|
|
21
|
-
import { t as IgnitorFactory } from "../../ignitor-Kym3gR-I.js";
|
|
22
|
-
import "../../create_kernel-D38-0Zbt.js";
|
|
23
|
-
import { t as AceFactory } from "../../ace-DBm6EcQ-.js";
|
|
24
|
-
import "../../main-bRYXIHgD.js";
|
|
25
|
-
import { t as TestUtilsFactory } from "../../test_utils-DbJS_uEu.js";
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-CEEHASdH.js";
|
|
2
|
+
import { t as AceFactory } from "../../ace-WfzFjXRM.js";
|
|
3
|
+
import { t as TestUtilsFactory } from "../../test_utils-CX2woeem.js";
|
|
26
4
|
export { AceFactory, IgnitorFactory, TestUtilsFactory };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../main-CfTiGsiS.js";
|
|
3
|
-
import "../../container-CGfEwWof.js";
|
|
4
|
-
import "../../debug-DWofTfIX.js";
|
|
5
|
-
import "../../main-D1MSq4Uu.js";
|
|
6
|
-
import "../../app-CAuSGb2P.js";
|
|
7
|
-
import "../../app-BCcG_oDd.js";
|
|
8
|
-
import "../../config_provider-Do9af1ze.js";
|
|
9
|
-
import "../../string-8_8He-HH.js";
|
|
10
|
-
import "../../utils-CKwka7OL.js";
|
|
11
|
-
import "../../core-aRg0soJX.js";
|
|
12
|
-
import "../../logger-DIdZPHCe.js";
|
|
13
|
-
import "../../exceptions-B2MzIlHY.js";
|
|
14
|
-
import "../../main-Ck0GqLx4.js";
|
|
15
|
-
import "../../errors-BScZTzBu.js";
|
|
16
|
-
import "../../define_config--5euEdi8.js";
|
|
17
|
-
import "../../main-CoZI4Ezs.js";
|
|
18
|
-
import "../../main-B50zECAi.js";
|
|
19
|
-
import "../../main-zxNP7iRl.js";
|
|
20
|
-
import "../../ignitor-Kym3gR-I.js";
|
|
21
|
-
import "../../main-bRYXIHgD.js";
|
|
22
|
-
import { t as TestUtilsFactory } from "../../test_utils-DbJS_uEu.js";
|
|
1
|
+
import { t as TestUtilsFactory } from "../../test_utils-CX2woeem.js";
|
|
23
2
|
export { TestUtilsFactory };
|
package/build/factories/hash.js
CHANGED
package/build/factories/http.js
CHANGED
package/build/factories/stubs.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import "../chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "../main-CfTiGsiS.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../debug-DWofTfIX.js";
|
|
5
|
-
import "../main-D1MSq4Uu.js";
|
|
6
|
-
import "../app-CAuSGb2P.js";
|
|
7
|
-
import "../app-BCcG_oDd.js";
|
|
8
|
-
import "../config_provider-Do9af1ze.js";
|
|
9
|
-
import "../string-8_8He-HH.js";
|
|
10
|
-
import "../utils-CKwka7OL.js";
|
|
11
|
-
import "../core-aRg0soJX.js";
|
|
2
|
+
import "../core-X32M3Zo8.js";
|
|
12
3
|
import { AppFactory } from "@adonisjs/application/factories";
|
|
13
4
|
//#region factories/stubs.ts
|
|
14
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as logger_exports } from "./logger-
|
|
3
|
-
import { t as main_exports } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
2
|
+
import { t as logger_exports } from "./logger-Cj7AOEsL.js";
|
|
3
|
+
import { t as main_exports } from "./main-BDd3QiJF.js";
|
|
4
4
|
import { n as drivers, t as defineConfig } from "./define_config--5euEdi8.js";
|
|
5
|
-
import { n as defineConfig$1, r as drivers$1 } from "./main-
|
|
6
|
-
import { t as main_exports$1 } from "./main-
|
|
5
|
+
import { n as defineConfig$1, r as drivers$1 } from "./main-CG-utHjr.js";
|
|
6
|
+
import { t as main_exports$1 } from "./main-DpE5rTyk.js";
|
|
7
7
|
//#region factories/core/ignitor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Factory for creating and configuring AdonisJS Ignitor instances.
|
package/build/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import "./chunk-Do49iUES.js";
|
|
2
1
|
import { t as stubsRoot } from "./main-CfTiGsiS.js";
|
|
3
|
-
import { t as container_exports } from "./container-
|
|
4
|
-
import "./
|
|
5
|
-
import { t as Ignitor } from "./main-D1MSq4Uu.js";
|
|
6
|
-
import "./app-CAuSGb2P.js";
|
|
7
|
-
import "./app-BCcG_oDd.js";
|
|
2
|
+
import { t as container_exports } from "./container-BB6VBj9q.js";
|
|
3
|
+
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
8
4
|
import { t as configProvider } from "./config_provider-Do9af1ze.js";
|
|
9
|
-
import "./
|
|
10
|
-
import "./utils-CKwka7OL.js";
|
|
11
|
-
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-aRg0soJX.js";
|
|
5
|
+
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-X32M3Zo8.js";
|
|
12
6
|
var inject = container_exports.inject;
|
|
13
7
|
export { Ignitor, configProvider, errors, indexEntities, inject, prettyPrintError, stubsRoot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
import { destination } from "@adonisjs/logger";
|
|
3
3
|
//#region modules/logger.ts
|
|
4
4
|
var logger_exports = /* @__PURE__ */ __exportAll({ syncDestination: () => syncDestination });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
3
3
|
import { t as configProvider } from "./config_provider-Do9af1ze.js";
|
|
4
4
|
import { InvalidArgumentsException } from "@poppinss/utils/exception";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
//#region modules/bodyparser/main.ts
|
|
3
3
|
var main_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_bodyparser from "@adonisjs/bodyparser";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseCommand, FsLoader, HelpCommand as HelpCommand$1, IndexGenerator as IndexGenerator$1, Kernel, ListCommand, ListLoader as ListLoader$1, Parser, args as args$1, cliHelpers, errors as errors$1, flags, tracingChannels } from "@adonisjs/ace";
|
|
1
|
+
import { BaseCommand, FsLoader, HelpCommand as HelpCommand$1, IndexGenerator as IndexGenerator$1, Kernel, ListCommand, ListLoader as ListLoader$1, Parser, args as args$1, cliHelpers, cliui, errors as errors$1, flags, tracingChannels } from "@adonisjs/ace";
|
|
2
2
|
//#region modules/ace/commands.ts
|
|
3
3
|
/**
|
|
4
4
|
* The base command class for creating custom Ace commands in AdonisJS applications.
|
|
@@ -181,4 +181,4 @@ var Kernel$1 = class extends Kernel {
|
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
//#endregion
|
|
184
|
-
export { Parser as a,
|
|
184
|
+
export { Parser as a, cliui as c, tracingChannels as d, Kernel$1 as f, ListLoader$1 as i, errors$1 as l, ListCommand$1 as m, HelpCommand$1 as n, args$1 as o, BaseCommand$1 as p, IndexGenerator$1 as r, cliHelpers as s, FsLoader as t, flags as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
2
|
-
import { t as main_exports } from "./main-
|
|
3
|
-
import { n as Encryption } from "./main-
|
|
2
|
+
import { t as main_exports } from "./main-BDd3QiJF.js";
|
|
3
|
+
import { n as Encryption } from "./main-nex7ClUz.js";
|
|
4
4
|
import { IncomingMessage, ServerResponse, createServer } from "node:http";
|
|
5
5
|
import { Socket } from "node:net";
|
|
6
6
|
import Macroable from "@poppinss/macroable";
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import "./errors-BScZTzBu.js";
|
|
2
|
+
import "./define_config--5euEdi8.js";
|
|
1
3
|
import { BaseDriver as BaseDriver$1, Encryption, EncryptionManager, Hmac as Hmac$1 } from "@boringnode/encryption";
|
|
2
4
|
export { Hmac$1 as i, Encryption as n, EncryptionManager as r, BaseDriver$1 as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
2
2
|
import { n as setApp } from "./app-CAuSGb2P.js";
|
|
3
|
-
import { t as app_exports } from "./app-
|
|
3
|
+
import { t as app_exports } from "./app-XhU0L_kQ.js";
|
|
4
4
|
import { createServer } from "node:http";
|
|
5
5
|
//#region src/ignitor/ace.ts
|
|
6
6
|
/**
|
|
@@ -55,7 +55,7 @@ var AceProcess = class {
|
|
|
55
55
|
async handle(argv) {
|
|
56
56
|
const app = this.#ignitor.createApp("console");
|
|
57
57
|
await app.init();
|
|
58
|
-
const { createAceKernel } = await import("./create_kernel-
|
|
58
|
+
const { createAceKernel } = await import("./create_kernel-D6ZvFwXO.js");
|
|
59
59
|
const commandName = argv[argv.findIndex((value) => !value.startsWith("-"))];
|
|
60
60
|
const kernel = createAceKernel(app, commandName);
|
|
61
61
|
app.container.bindValue("ace", kernel);
|
|
@@ -13,14 +13,10 @@ import vine from '@vinejs/vine'
|
|
|
13
13
|
* Validator to validate the payload when creating
|
|
14
14
|
* a new {{ validatorName }}.
|
|
15
15
|
*/
|
|
16
|
-
export const {{ createAction }} = vine.
|
|
17
|
-
vine.object({})
|
|
18
|
-
)
|
|
16
|
+
export const {{ createAction }} = vine.create({})
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Validator to validate the payload when updating
|
|
22
20
|
* an existing {{ validatorName }}.
|
|
23
21
|
*/
|
|
24
|
-
export const {{ updateAction }} = vine.
|
|
25
|
-
vine.object({})
|
|
26
|
-
)
|
|
22
|
+
export const {{ updateAction }} = vine.create({})
|