@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.
Files changed (157) hide show
  1. package/build/{ace-DBm6EcQ-.js → ace-WfzFjXRM.js} +3 -3
  2. package/build/{app-BCcG_oDd.js → app-XhU0L_kQ.js} +1 -1
  3. package/build/{chunk-Do49iUES.js → chunk-ZRW5x4aP.js} +1 -3
  4. package/build/commands/add.js +3 -13
  5. package/build/commands/build.d.ts +4 -0
  6. package/build/commands/build.js +4 -4
  7. package/build/commands/commands.json +1 -1
  8. package/build/commands/configure.js +2 -3
  9. package/build/commands/eject.js +2 -3
  10. package/build/commands/env/add.js +2 -3
  11. package/build/commands/generate_key.js +2 -3
  12. package/build/commands/inspect_rcfile.js +1 -2
  13. package/build/commands/list/routes.js +2 -3
  14. package/build/commands/make/command.d.ts +4 -0
  15. package/build/commands/make/command.js +9 -4
  16. package/build/commands/make/controller.d.ts +4 -0
  17. package/build/commands/make/controller.js +9 -4
  18. package/build/commands/make/event.d.ts +4 -0
  19. package/build/commands/make/event.js +9 -4
  20. package/build/commands/make/exception.d.ts +4 -0
  21. package/build/commands/make/exception.js +9 -4
  22. package/build/commands/make/listener.d.ts +4 -0
  23. package/build/commands/make/listener.js +7 -3
  24. package/build/commands/make/middleware.d.ts +4 -0
  25. package/build/commands/make/middleware.js +7 -3
  26. package/build/commands/make/preload.d.ts +4 -0
  27. package/build/commands/make/preload.js +7 -3
  28. package/build/commands/make/provider.d.ts +4 -0
  29. package/build/commands/make/provider.js +7 -3
  30. package/build/commands/make/service.d.ts +4 -0
  31. package/build/commands/make/service.js +9 -4
  32. package/build/commands/make/test.d.ts +4 -0
  33. package/build/commands/make/test.js +12 -4
  34. package/build/commands/make/transformer.d.ts +4 -0
  35. package/build/commands/make/transformer.js +9 -4
  36. package/build/commands/make/validator.d.ts +4 -0
  37. package/build/commands/make/validator.js +9 -4
  38. package/build/commands/make/view.d.ts +4 -0
  39. package/build/commands/make/view.js +9 -4
  40. package/build/commands/repl.js +1 -2
  41. package/build/commands/serve.js +2 -3
  42. package/build/commands/test.js +2 -3
  43. package/build/{config-Coti2q6R.js → config-dLMqZYix.js} +1 -1
  44. package/build/{container-CGfEwWof.js → container-BB6VBj9q.js} +1 -1
  45. package/build/{core-aRg0soJX.js → core-X32M3Zo8.js} +4 -0
  46. package/build/{create_kernel-D38-0Zbt.js → create_kernel-CziaAklz.js} +1 -1
  47. package/build/create_kernel-D6ZvFwXO.js +2 -0
  48. package/build/{decorate-B9Uz0anB.js → decorate-yKe-VEeE.js} +1 -1
  49. package/build/{dumper-3R77st8F.js → dumper-V22ueBaO.js} +1 -1
  50. package/build/{events-DlKX1ZdL.js → events-DIYBcPfM.js} +1 -1
  51. package/build/factories/app.js +0 -1
  52. package/build/factories/bodyparser.js +0 -1
  53. package/build/factories/core/ace.js +1 -16
  54. package/build/factories/core/ignitor.js +1 -13
  55. package/build/factories/core/main.js +3 -25
  56. package/build/factories/core/test_utils.js +1 -22
  57. package/build/factories/encryption.js +0 -1
  58. package/build/factories/events.js +0 -1
  59. package/build/factories/hash.js +0 -1
  60. package/build/factories/http.js +0 -1
  61. package/build/factories/logger.js +0 -1
  62. package/build/factories/stubs.js +1 -10
  63. package/build/{ignitor-Kym3gR-I.js → ignitor-CEEHASdH.js} +5 -5
  64. package/build/index.js +3 -9
  65. package/build/{logger-DIdZPHCe.js → logger-Cj7AOEsL.js} +1 -1
  66. package/build/{main-Ck0GqLx4.js → main-BDd3QiJF.js} +1 -1
  67. package/build/{main-B50zECAi.js → main-CG-utHjr.js} +1 -1
  68. package/build/{main-zxNP7iRl.js → main-DpE5rTyk.js} +1 -1
  69. package/build/{main-CRnMnrH7.js → main-DzNXtXg3.js} +2 -2
  70. package/build/{main-bRYXIHgD.js → main-_4BIfRkS.js} +2 -2
  71. package/build/{main-CoZI4Ezs.js → main-nex7ClUz.js} +2 -0
  72. package/build/{main-D1MSq4Uu.js → main-zFY2qkGC.js} +2 -2
  73. package/build/make/validator/resource.stub +2 -6
  74. package/build/modules/ace/codemods.d.ts +6 -0
  75. package/build/modules/ace/codemods.js +9 -1
  76. package/build/modules/ace/main.d.ts +1 -1
  77. package/build/modules/ace/main.js +2 -3
  78. package/build/modules/app.js +1 -2
  79. package/build/modules/bodyparser/bodyparser_middleware.js +0 -1
  80. package/build/modules/bodyparser/main.js +1 -2
  81. package/build/modules/config.js +1 -2
  82. package/build/modules/container.js +1 -2
  83. package/build/modules/dumper/main.js +1 -2
  84. package/build/modules/dumper/plugins/edge.js +0 -1
  85. package/build/modules/encryption/drivers/aes_256_cbc.js +0 -1
  86. package/build/modules/encryption/drivers/aes_256_gcm.js +0 -1
  87. package/build/modules/encryption/drivers/aes_siv.js +0 -1
  88. package/build/modules/encryption/drivers/chacha20_poly1305.js +0 -1
  89. package/build/modules/encryption/drivers/legacy.js +0 -2
  90. package/build/modules/encryption/main.js +1 -5
  91. package/build/modules/env/editor.js +0 -1
  92. package/build/modules/env/main.js +0 -1
  93. package/build/modules/events.js +1 -2
  94. package/build/modules/hash/drivers/argon.js +0 -1
  95. package/build/modules/hash/drivers/bcrypt.js +0 -1
  96. package/build/modules/hash/drivers/scrypt.js +0 -1
  97. package/build/modules/hash/main.js +1 -4
  98. package/build/modules/hash/phc_formatter.js +0 -1
  99. package/build/modules/health.js +0 -1
  100. package/build/modules/http/helpers.js +0 -1
  101. package/build/modules/http/main.js +1 -2
  102. package/build/modules/http/url_builder_client.js +0 -1
  103. package/build/modules/logger.js +1 -2
  104. package/build/modules/repl.js +1 -2
  105. package/build/modules/transformers/main.js +0 -1
  106. package/build/providers/app_provider.js +8 -12
  107. package/build/providers/edge_provider.js +1 -2
  108. package/build/providers/hash_provider.js +1 -3
  109. package/build/providers/repl_provider.js +1 -2
  110. package/build/providers/vinejs_provider.js +1 -2
  111. package/build/{repl-C02Re0Yd.js → repl-DL_vrd08.js} +1 -1
  112. package/build/safe_timing-AjC3K21F.js +49 -0
  113. package/build/services/ace.js +0 -1
  114. package/build/services/app.js +0 -1
  115. package/build/services/config.js +0 -1
  116. package/build/services/dumper.js +0 -1
  117. package/build/services/emitter.js +0 -1
  118. package/build/services/encryption.js +0 -1
  119. package/build/services/hash.js +0 -1
  120. package/build/services/logger.js +0 -1
  121. package/build/services/repl.js +0 -1
  122. package/build/services/router.js +0 -1
  123. package/build/services/server.js +0 -1
  124. package/build/services/test_utils.js +0 -1
  125. package/build/services/url_builder.js +0 -1
  126. package/build/src/exceptions.js +0 -1
  127. package/build/src/helpers/assert.js +0 -1
  128. package/build/src/helpers/http.js +0 -1
  129. package/build/src/helpers/is.js +0 -1
  130. package/build/src/helpers/main.d.ts +5 -0
  131. package/build/src/helpers/main.js +2 -2
  132. package/build/src/helpers/safe_timing.d.ts +28 -0
  133. package/build/src/helpers/safe_timing.js +2 -0
  134. package/build/src/helpers/string.js +0 -1
  135. package/build/src/helpers/types.js +0 -1
  136. package/build/src/helpers/verification_token.js +0 -1
  137. package/build/src/test_utils/main.js +1 -9
  138. package/build/src/types.js +0 -1
  139. package/build/src/vine.js +0 -1
  140. package/build/{test_utils-DbJS_uEu.js → test_utils-CX2woeem.js} +4 -3
  141. package/build/toolkit/main.js +1 -2
  142. package/build/types/ace.js +0 -1
  143. package/build/types/app.js +0 -1
  144. package/build/types/bodyparser.js +0 -1
  145. package/build/types/common.js +0 -1
  146. package/build/types/container.js +0 -1
  147. package/build/types/encryption.js +0 -1
  148. package/build/types/events.js +0 -1
  149. package/build/types/hash.js +0 -1
  150. package/build/types/health.js +0 -1
  151. package/build/types/helpers.js +0 -1
  152. package/build/types/http.js +0 -1
  153. package/build/types/logger.js +0 -1
  154. package/build/types/repl.js +0 -1
  155. package/build/types/transformers.js +0 -1
  156. package/package.json +12 -12
  157. 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 { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
5
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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 };
@@ -32,6 +32,10 @@ export default class MakeService extends BaseCommand {
32
32
  * it as the raw contents
33
33
  */
34
34
  contentsFrom: string;
35
+ /**
36
+ * Forcefully overwrite existing files
37
+ */
38
+ force: boolean;
35
39
  /**
36
40
  * The stub to use for generating the service class
37
41
  */
@@ -1,7 +1,6 @@
1
- import "../../chunk-Do49iUES.js";
2
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
3
- import { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
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 { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
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 { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
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 { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
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 { f as BaseCommand, l as flags, o as args } from "../../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../../decorate-B9Uz0anB.js";
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
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
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 };
@@ -1,5 +1,4 @@
1
- import "../chunk-Do49iUES.js";
2
- import { f as BaseCommand } from "../main-CRnMnrH7.js";
1
+ import { p as BaseCommand } from "../main-DzNXtXg3.js";
3
2
  //#region commands/repl.ts
4
3
  /**
5
4
  * Command to start an interactive REPL (Read-Eval-Print Loop) session for AdonisJS.
@@ -1,7 +1,6 @@
1
- import "../chunk-Do49iUES.js";
2
1
  import { t as importAssembler } from "../utils-CKwka7OL.js";
3
- import { f as BaseCommand, l as flags } from "../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../decorate-B9Uz0anB.js";
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
@@ -1,7 +1,6 @@
1
- import "../chunk-Do49iUES.js";
2
1
  import { t as importAssembler } from "../utils-CKwka7OL.js";
3
- import { f as BaseCommand, l as flags, o as args } from "../main-CRnMnrH7.js";
4
- import { t as __decorate } from "../decorate-B9Uz0anB.js";
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-Do49iUES.js";
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-Do49iUES.js";
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 { d as Kernel, n as HelpCommand, t as FsLoader } from "./main-CRnMnrH7.js";
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.
@@ -0,0 +1,2 @@
1
+ import { t as createAceKernel } from "./create_kernel-CziaAklz.js";
2
+ export { createAceKernel };
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
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 { t as __exportAll } from "./chunk-Do49iUES.js";
1
+ import { t as __exportAll } from "./chunk-ZRW5x4aP.js";
2
2
  import { inspect } from "node:util";
3
3
  import { Exception } from "@poppinss/utils/exception";
4
4
  import useColors from "@poppinss/colors";
@@ -1,4 +1,4 @@
1
- import { n as __reExport, t as __exportAll } from "./chunk-Do49iUES.js";
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";
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/application/factories";
3
2
  export {};
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/bodyparser/factories";
3
2
  export {};
@@ -1,17 +1,2 @@
1
- import "../../chunk-Do49iUES.js";
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 "../../chunk-Do49iUES.js";
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 "../../chunk-Do49iUES.js";
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 "../../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 "../../chunk-Do49iUES.js";
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 };
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@boringnode/encryption/factories";
3
2
  export {};
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/events/factories";
3
2
  export {};
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/hash/factories";
3
2
  export {};
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/http-server/factories";
3
2
  export {};
@@ -1,3 +1,2 @@
1
- import "../chunk-Do49iUES.js";
2
1
  export * from "@adonisjs/logger/factories";
3
2
  export {};
@@ -1,14 +1,5 @@
1
- import "../chunk-Do49iUES.js";
2
1
  import { t as stubsRoot } from "../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";
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-D1MSq4Uu.js";
2
- import { t as logger_exports } from "./logger-DIdZPHCe.js";
3
- import { t as main_exports } from "./main-Ck0GqLx4.js";
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-B50zECAi.js";
6
- import { t as main_exports$1 } from "./main-zxNP7iRl.js";
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-CGfEwWof.js";
4
- import "./debug-DWofTfIX.js";
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 "./string-8_8He-HH.js";
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-Do49iUES.js";
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-Do49iUES.js";
1
+ import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
2
2
  import "@adonisjs/bodyparser";
3
3
  //#region modules/http/request_validator.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as __reExport, t as __exportAll } from "./chunk-Do49iUES.js";
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-Do49iUES.js";
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, errors$1 as c, Kernel$1 as d, BaseCommand$1 as f, ListLoader$1 as i, flags as l, HelpCommand$1 as n, args$1 as o, ListCommand$1 as p, IndexGenerator$1 as r, cliHelpers as s, FsLoader as t, tracingChannels as u };
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-Ck0GqLx4.js";
3
- import { n as Encryption } from "./main-CoZI4Ezs.js";
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-BCcG_oDd.js";
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-BV3swyCg.js");
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.compile(
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.compile(
25
- vine.object({})
26
- )
22
+ export const {{ updateAction }} = vine.create({})