@adonisjs/core 7.0.0-next.9 → 7.0.1

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 (210) hide show
  1. package/README.md +62 -1
  2. package/build/chunk-iKc69rpz.js +26 -0
  3. package/build/commands/add.d.ts +4 -3
  4. package/build/commands/add.js +73 -110
  5. package/build/commands/build.js +51 -107
  6. package/build/commands/commands.json +1 -1
  7. package/build/commands/configure.js +81 -177
  8. package/build/commands/eject.js +17 -60
  9. package/build/commands/env/add.js +55 -134
  10. package/build/commands/generate_key.js +22 -66
  11. package/build/commands/inspect_rcfile.js +27 -55
  12. package/build/commands/list/routes.js +246 -116
  13. package/build/commands/make/command.d.ts +5 -0
  14. package/build/commands/make/command.js +16 -57
  15. package/build/commands/make/controller.d.ts +5 -0
  16. package/build/commands/make/controller.js +44 -120
  17. package/build/commands/make/event.d.ts +5 -0
  18. package/build/commands/make/event.js +17 -62
  19. package/build/commands/make/exception.d.ts +5 -0
  20. package/build/commands/make/exception.js +17 -62
  21. package/build/commands/make/listener.d.ts +5 -0
  22. package/build/commands/make/listener.js +37 -93
  23. package/build/commands/make/middleware.d.ts +5 -0
  24. package/build/commands/make/middleware.js +42 -101
  25. package/build/commands/make/preload.d.ts +5 -0
  26. package/build/commands/make/preload.js +48 -113
  27. package/build/commands/make/provider.d.ts +5 -0
  28. package/build/commands/make/provider.js +48 -112
  29. package/build/commands/make/service.d.ts +5 -0
  30. package/build/commands/make/service.js +17 -55
  31. package/build/commands/make/test.d.ts +5 -0
  32. package/build/commands/make/test.js +48 -132
  33. package/build/commands/make/transformer.d.ts +5 -0
  34. package/build/commands/make/transformer.js +18 -64
  35. package/build/commands/make/validator.d.ts +5 -0
  36. package/build/commands/make/validator.js +21 -80
  37. package/build/commands/make/view.d.ts +5 -0
  38. package/build/commands/make/view.js +16 -56
  39. package/build/commands/repl.js +17 -50
  40. package/build/commands/serve.js +80 -150
  41. package/build/commands/test.js +92 -202
  42. package/build/config_provider-FIAUgvae.js +13 -0
  43. package/build/core-IpCOCkUL.js +146 -0
  44. package/build/create_kernel-B7ILNhuP.js +38 -0
  45. package/build/create_kernel-BD0Iqi8e.js +3 -0
  46. package/build/debug-CGQmxzGt.js +3 -0
  47. package/build/decorate-DmrZA614.js +7 -0
  48. package/build/define_config-0oHaj43l.js +86 -0
  49. package/build/dumper-BBgqFX5a.js +147 -0
  50. package/build/errors-CrCO-k44.js +8 -0
  51. package/build/factories/app.js +2 -9
  52. package/build/factories/bodyparser.js +2 -9
  53. package/build/factories/core/ace.js +22 -45
  54. package/build/factories/core/ignitor.js +74 -180
  55. package/build/factories/core/main.js +18 -11
  56. package/build/factories/core/test_utils.js +19 -42
  57. package/build/factories/encryption.d.ts +1 -1
  58. package/build/factories/encryption.js +2 -9
  59. package/build/factories/events.js +2 -9
  60. package/build/factories/hash.js +2 -9
  61. package/build/factories/http.js +2 -9
  62. package/build/factories/logger.js +2 -9
  63. package/build/factories/stubs.d.ts +1 -6
  64. package/build/factories/stubs.js +24 -91
  65. package/build/index.d.ts +1 -1
  66. package/build/index.js +10 -46
  67. package/build/main--nXd7T-C.js +73 -0
  68. package/build/main-Cxz0TyIw.js +173 -0
  69. package/build/main-DN2qEEg5.js +41 -0
  70. package/build/main-DkNgvceD.js +52 -0
  71. package/build/main-MBAMnmJb.js +81 -0
  72. package/build/main-kn40V-hF.js +2 -0
  73. package/build/{stubs/make → make}/health/controller.stub +5 -2
  74. package/build/modules/ace/codemods.d.ts +75 -23
  75. package/build/modules/ace/codemods.js +291 -476
  76. package/build/modules/ace/main.js +2 -41
  77. package/build/modules/app.js +6 -26
  78. package/build/modules/bodyparser/bodyparser_middleware.js +3 -14
  79. package/build/modules/bodyparser/main.js +6 -9
  80. package/build/modules/config.js +6 -26
  81. package/build/modules/container.js +6 -9
  82. package/build/modules/dumper/main.js +6 -32
  83. package/build/modules/dumper/plugins/edge.js +46 -61
  84. package/build/modules/encryption/define_config.d.ts +161 -0
  85. package/build/modules/encryption/drivers/aes_256_cbc.d.ts +20 -0
  86. package/build/modules/encryption/drivers/aes_256_cbc.js +2 -0
  87. package/build/modules/encryption/drivers/aes_256_gcm.d.ts +21 -0
  88. package/build/modules/encryption/drivers/aes_256_gcm.js +2 -0
  89. package/build/modules/encryption/drivers/aes_siv.d.ts +19 -0
  90. package/build/modules/encryption/drivers/aes_siv.js +2 -0
  91. package/build/modules/encryption/drivers/chacha20_poly1305.d.ts +21 -0
  92. package/build/modules/encryption/drivers/chacha20_poly1305.js +2 -0
  93. package/build/modules/encryption/drivers/legacy.d.ts +84 -0
  94. package/build/modules/encryption/drivers/legacy.js +57 -0
  95. package/build/modules/encryption/errors.d.ts +16 -0
  96. package/build/modules/encryption/main.d.ts +89 -0
  97. package/build/modules/encryption/main.js +6 -0
  98. package/build/modules/env/editor.js +2 -9
  99. package/build/modules/env/main.js +2 -28
  100. package/build/modules/events.js +6 -9
  101. package/build/modules/hash/drivers/argon.js +2 -9
  102. package/build/modules/hash/drivers/bcrypt.js +2 -20
  103. package/build/modules/hash/drivers/scrypt.js +2 -9
  104. package/build/modules/hash/main.js +6 -28
  105. package/build/modules/hash/phc_formatter.js +2 -9
  106. package/build/modules/health.js +2 -9
  107. package/build/modules/http/helpers.d.ts +1 -0
  108. package/build/modules/http/helpers.js +2 -0
  109. package/build/modules/http/main.js +4 -15
  110. package/build/modules/http/request_validator.d.ts +3 -4
  111. package/build/modules/http/url_builder_client.js +2 -9
  112. package/build/modules/logger.d.ts +30 -0
  113. package/build/modules/logger.js +14 -9
  114. package/build/modules/repl.js +6 -9
  115. package/build/modules/transformers/main.js +2 -9
  116. package/build/providers/app_provider.d.ts +5 -13
  117. package/build/providers/app_provider.js +153 -359
  118. package/build/providers/edge_provider.js +98 -164
  119. package/build/providers/hash_provider.js +29 -91
  120. package/build/providers/repl_provider.js +66 -152
  121. package/build/providers/vinejs_provider.d.ts +1 -1
  122. package/build/providers/vinejs_provider.js +21 -65
  123. package/build/services/ace.js +1 -16
  124. package/build/services/app.js +3 -19
  125. package/build/services/config.js +1 -12
  126. package/build/services/dumper.js +4 -20
  127. package/build/services/emitter.js +1 -13
  128. package/build/services/encryption.js +1 -13
  129. package/build/services/hash.js +1 -13
  130. package/build/services/logger.js +1 -13
  131. package/build/services/repl.js +1 -13
  132. package/build/services/router.js +1 -13
  133. package/build/services/server.js +1 -13
  134. package/build/services/test_utils.js +1 -16
  135. package/build/services/url_builder.d.ts +3 -3
  136. package/build/services/url_builder.js +4 -16
  137. package/build/src/assembler_hooks/index_entities.d.ts +34 -1
  138. package/build/src/debug.d.ts +1 -1
  139. package/build/src/exceptions.js +2 -49
  140. package/build/src/helpers/assert.js +2 -55
  141. package/build/src/helpers/http.js +2 -28
  142. package/build/src/helpers/is.js +3 -31
  143. package/build/src/helpers/main.js +5 -52
  144. package/build/src/helpers/string.js +26 -76
  145. package/build/src/helpers/types.js +25 -134
  146. package/build/src/helpers/verification_token.js +46 -120
  147. package/build/src/test_utils/main.js +8 -77
  148. package/build/src/types.d.ts +53 -99
  149. package/build/src/types.js +0 -8
  150. package/build/src/utils.d.ts +1 -1
  151. package/build/src/vine.js +29 -101
  152. package/build/toolkit/main.js +19 -21
  153. package/build/types/ace.js +2 -9
  154. package/build/types/app.js +2 -9
  155. package/build/types/bodyparser.js +2 -9
  156. package/build/types/common.js +2 -9
  157. package/build/types/container.js +2 -9
  158. package/build/types/encryption.d.ts +53 -1
  159. package/build/types/encryption.js +1 -9
  160. package/build/types/events.js +2 -9
  161. package/build/types/hash.js +2 -9
  162. package/build/types/health.js +2 -9
  163. package/build/types/helpers.js +0 -8
  164. package/build/types/http.js +2 -9
  165. package/build/types/logger.js +2 -9
  166. package/build/types/repl.js +2 -9
  167. package/build/types/transformers.js +2 -9
  168. package/build/utils-rRkbAPnP.js +42 -0
  169. package/package.json +117 -62
  170. package/build/modules/ace/commands.js +0 -157
  171. package/build/modules/ace/create_kernel.js +0 -91
  172. package/build/modules/ace/kernel.js +0 -40
  173. package/build/modules/dumper/define_config.js +0 -36
  174. package/build/modules/dumper/dumper.js +0 -266
  175. package/build/modules/dumper/errors.js +0 -119
  176. package/build/modules/encryption.d.ts +0 -18
  177. package/build/modules/encryption.js +0 -26
  178. package/build/modules/hash/define_config.js +0 -125
  179. package/build/modules/http/request_validator.js +0 -100
  180. package/build/src/assembler_hooks/index_entities.js +0 -112
  181. package/build/src/cli_formatters/routes_list.js +0 -397
  182. package/build/src/config_provider.js +0 -71
  183. package/build/src/debug.js +0 -25
  184. package/build/src/ignitor/ace.js +0 -102
  185. package/build/src/ignitor/http.js +0 -159
  186. package/build/src/ignitor/main.js +0 -124
  187. package/build/src/ignitor/test.js +0 -66
  188. package/build/src/test_utils/http.js +0 -82
  189. package/build/src/utils.js +0 -114
  190. package/build/stubs/main.js +0 -9
  191. package/build/toolkit/commands/index_commands.js +0 -30
  192. /package/build/{stubs/make → make}/command/main.stub +0 -0
  193. /package/build/{stubs/make → make}/controller/actions.stub +0 -0
  194. /package/build/{stubs/make → make}/controller/api.stub +0 -0
  195. /package/build/{stubs/make → make}/controller/main.stub +0 -0
  196. /package/build/{stubs/make → make}/controller/resource.stub +0 -0
  197. /package/build/{stubs/make → make}/event/main.stub +0 -0
  198. /package/build/{stubs/make → make}/exception/main.stub +0 -0
  199. /package/build/{stubs/make → make}/health/main.stub +0 -0
  200. /package/build/{stubs/make → make}/listener/for_event.stub +0 -0
  201. /package/build/{stubs/make → make}/listener/main.stub +0 -0
  202. /package/build/{stubs/make → make}/middleware/main.stub +0 -0
  203. /package/build/{stubs/make → make}/preload/main.stub +0 -0
  204. /package/build/{stubs/make → make}/provider/main.stub +0 -0
  205. /package/build/{stubs/make → make}/service/main.stub +0 -0
  206. /package/build/{stubs/make → make}/test/main.stub +0 -0
  207. /package/build/{stubs/make → make}/transformer/main.stub +0 -0
  208. /package/build/{stubs/make → make}/validator/main.stub +0 -0
  209. /package/build/{stubs/make → make}/validator/resource.stub +0 -0
  210. /package/build/{stubs/make → make}/view/main.stub +0 -0
@@ -1,66 +1,22 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- import { Vine } from '@vinejs/vine';
10
- import { Request, RequestValidator } from "../modules/http/main.js";
1
+ import "../chunk-iKc69rpz.js";
2
+ import { n as RequestValidator, t as main_exports } from "../main-DN2qEEg5.js";
11
3
  import { VineMultipartFile } from "../src/vine.js";
12
- /**
13
- * The VineJS service provider integrates VineJS validation
14
- * library with AdonisJS application environment
15
- *
16
- * This provider sets up:
17
- * - File validation rule for multipart file uploads
18
- * - Request validation macro for easy validation in HTTP contexts
19
- * - Extension of VineJS with AdonisJS-specific validation features
20
- *
21
- * @example
22
- * const provider = new VineJSServiceProvider(app)
23
- * provider.boot()
24
- * // Now Request has validateUsing method
25
- */
26
- export default class VineJSServiceProvider {
27
- app;
28
- /**
29
- * VineJS service provider constructor
30
- *
31
- * Sets the usingVineJS flag to true to indicate VineJS is being used.
32
- *
33
- * @param app - The application service instance
34
- */
35
- constructor(app) {
36
- this.app = app;
37
- this.app.usingVineJS = true;
38
- }
39
- /**
40
- * Boot the VineJS service provider
41
- *
42
- * Extends VineJS with file validation macro and adds validateUsing
43
- * method to the Request class for easy validation in HTTP contexts.
44
- *
45
- * @example
46
- * provider.boot()
47
- * // Now vine.file() and request.validateUsing() are available
48
- */
49
- boot() {
50
- const experimentalFlags = this.app.experimentalFlags;
51
- /**
52
- * The file method is used to validate a field to be a valid
53
- * multipart file.
54
- */
55
- Vine.macro('file', function (options) {
56
- return new VineMultipartFile(options);
57
- });
58
- /**
59
- * The validate method can be used to validate the request
60
- * data for the current request using VineJS validators
61
- */
62
- Request.macro('validateUsing', function (...args) {
63
- return new RequestValidator(this.ctx, experimentalFlags).validateUsing(...args);
64
- });
65
- }
66
- }
4
+ import { Vine } from "@vinejs/vine";
5
+ var VineJSServiceProvider = class {
6
+ constructor(app) {
7
+ this.app = app;
8
+ this.app.usingVineJS = true;
9
+ }
10
+ boot() {
11
+ Vine.macro("file", function(options) {
12
+ return new VineMultipartFile(options);
13
+ });
14
+ main_exports.HttpRequest.macro("validateUsing", function(...args) {
15
+ return new RequestValidator(this.ctx).validateUsing(...args);
16
+ });
17
+ main_exports.HttpRequest.macro("tryValidateUsing", function(...args) {
18
+ return new RequestValidator(this.ctx).tryValidateUsing(...args);
19
+ });
20
+ }
21
+ };
22
+ export { VineJSServiceProvider as default };
@@ -1,21 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let ace;
11
- /**
12
- * Returns a singleton instance of the ace kernel
13
- * from the container.
14
- *
15
- * ace service is an instance of the "Kernel" class stored inside
16
- * the "modules/ace/kernel.ts" file
17
- */
18
3
  await app.booted(async () => {
19
- ace = await app.container.make('ace');
4
+ ace = await app.container.make("ace");
20
5
  });
21
6
  export { ace as default };
@@ -1,21 +1,5 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  let app;
10
- /**
11
- * Set the application instance the app service should
12
- * be using. Other services relies on the same app
13
- * instance as well.
14
- *
15
- * app service is an instance of the "Application" exported from
16
- * the "modules/app.ts" file.
17
- */
18
- export function setApp(appService) {
19
- app = appService;
2
+ function setApp(appService) {
3
+ app = appService;
20
4
  }
21
- export { app as default };
5
+ export { app as default, setApp };
@@ -1,17 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let config;
11
- /**
12
- * The config service uses the config instance from the app service
13
- */
14
3
  await app.booted(() => {
15
- config = app.config;
4
+ config = app.config;
16
5
  });
17
6
  export { config as default };
@@ -1,25 +1,9 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let dumper;
11
- /**
12
- * dumper service is an instance of the "Dumper" class stored inside
13
- * the "modules/dumper/dumper.ts" file
14
- */
15
3
  await app.booted(async () => {
16
- dumper = await app.container.make('dumper');
4
+ dumper = await app.container.make("dumper");
17
5
  });
18
- /**
19
- * Dump a value and die. The dumped value will be displayed
20
- * using the HTML printer during an HTTP request or within
21
- * the console otherwise.
22
- */
23
- export const dd = (value) => {
24
- dumper.dd(value, 2);
6
+ const dd = (value) => {
7
+ dumper.dd(value, 2);
25
8
  };
9
+ export { dd };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let emitter;
11
- /**
12
- * Returns a singleton instance of the emitter class
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- emitter = await app.container.make('emitter');
4
+ emitter = await app.container.make("emitter");
17
5
  });
18
6
  export { emitter as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let encryption;
11
- /**
12
- * Returns a singleton instance of the encryption class
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- encryption = await app.container.make('encryption');
4
+ encryption = await app.container.make("encryption");
17
5
  });
18
6
  export { encryption as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let hash;
11
- /**
12
- * Returns a singleton instance of the Hash manager from the
13
- * container
14
- */
15
3
  await app.booted(async () => {
16
- hash = await app.container.make('hash');
4
+ hash = await app.container.make("hash");
17
5
  });
18
6
  export { hash as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let logger;
11
- /**
12
- * Returns a singleton instance of the logger class
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- logger = await app.container.make('logger');
4
+ logger = await app.container.make("logger");
17
5
  });
18
6
  export { logger as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let repl;
11
- /**
12
- * Returns a singleton instance of the Repl class from
13
- * the container
14
- */
15
3
  await app.booted(async () => {
16
- repl = await app.container.make('repl');
4
+ repl = await app.container.make("repl");
17
5
  });
18
6
  export { repl as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let router;
11
- /**
12
- * Returns a singleton instance of the router class from
13
- * the container
14
- */
15
3
  await app.booted(async () => {
16
- router = await app.container.make('router');
4
+ router = await app.container.make("router");
17
5
  });
18
6
  export { router as default };
@@ -1,18 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let server;
11
- /**
12
- * Returns a singleton instance of the HTTP server
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- server = await app.container.make('server');
4
+ server = await app.container.make("server");
17
5
  });
18
6
  export { server as default };
@@ -1,21 +1,6 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let testUtils;
11
- /**
12
- * Returns a singleton instance of the TestUtils class
13
- * from the container.
14
- *
15
- * testUtils service is an instance of the "TestUtils" exported from
16
- * the "src/test_utils/main.ts" file.
17
- */
18
3
  await app.booted(async () => {
19
- testUtils = await app.container.make('testUtils');
4
+ testUtils = await app.container.make("testUtils");
20
5
  });
21
6
  export { testUtils as default };
@@ -1,4 +1,4 @@
1
- import type { SignedUrlBuilderService, UrlBuilderService } from '../src/types.ts';
2
- declare let urlFor: UrlBuilderService;
3
- declare let signedUrlFor: SignedUrlBuilderService;
1
+ import type { UrlBuilderSignedUrlFor, UrlBuilderUrlFor } from '../src/types.ts';
2
+ declare let urlFor: UrlBuilderUrlFor;
3
+ declare let signedUrlFor: UrlBuilderSignedUrlFor;
4
4
  export { urlFor, signedUrlFor };
@@ -1,21 +1,9 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
1
  import app from "./app.js";
10
2
  let urlFor;
11
3
  let signedUrlFor;
12
- /**
13
- * Returns a singleton instance of the router class from
14
- * the container
15
- */
16
4
  await app.booted(async () => {
17
- const router = await app.container.make('router');
18
- urlFor = router.urlBuilder.urlFor;
19
- signedUrlFor = router.urlBuilder.signedUrlFor;
5
+ const router = await app.container.make("router");
6
+ urlFor = router.urlBuilder.urlFor;
7
+ signedUrlFor = router.urlBuilder.signedUrlFor;
20
8
  });
21
- export { urlFor, signedUrlFor };
9
+ export { signedUrlFor, urlFor };
@@ -18,6 +18,11 @@ import { type IndexEntitiesConfig } from '../types.ts';
18
18
  * source: 'app/custom-events',
19
19
  * importAlias: '#custom-events'
20
20
  * },
21
+ * transformers: {
22
+ * enabled: true,
23
+ * withSharedProps: true,
24
+ * inertiaMiddlewareImportPath: '#middleware/inertia_middleware'
25
+ * },
21
26
  * controllers: {
22
27
  * enabled: false
23
28
  * }
@@ -33,5 +38,33 @@ import { type IndexEntitiesConfig } from '../types.ts';
33
38
  * })
34
39
  */
35
40
  export declare function indexEntities(entities?: IndexEntitiesConfig): {
36
- run(_: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator): void;
41
+ run(_: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, __: import("@poppinss/hooks").default<{
42
+ init: [[parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, hooks: import("@poppinss/hooks").default</*elided*/ any>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator], [parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, hooks: import("@poppinss/hooks").default</*elided*/ any>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator]];
43
+ fileChanged: [[relativePath: string, absolutePath: string, info: {
44
+ source: "hot-hook" | "watcher";
45
+ hotReloaded: boolean;
46
+ fullReload: boolean;
47
+ }, parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, info: {
48
+ source: "hot-hook" | "watcher";
49
+ hotReloaded: boolean;
50
+ fullReload: boolean;
51
+ }, parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
52
+ fileAdded: [[relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
53
+ fileRemoved: [[relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
54
+ devServerStarting: [[server: import("@adonisjs/assembler").DevServer], [server: import("@adonisjs/assembler").DevServer]];
55
+ devServerStarted: [[server: import("@adonisjs/assembler").DevServer, info: {
56
+ port: number;
57
+ host: string;
58
+ }, uiInstructions: import("@poppinss/cliui").Instructions], [server: import("@adonisjs/assembler").DevServer, info: {
59
+ port: number;
60
+ host: string;
61
+ }, uiInstructions: import("@poppinss/cliui").Instructions]];
62
+ buildStarting: [[server: import("@adonisjs/assembler").Bundler], [server: import("@adonisjs/assembler").Bundler]];
63
+ buildFinished: [[server: import("@adonisjs/assembler").Bundler, uiInstructions: import("@poppinss/cliui").Instructions], [server: import("@adonisjs/assembler").Bundler, uiInstructions: import("@poppinss/cliui").Instructions]];
64
+ testsStarting: [[server: import("@adonisjs/assembler").TestRunner], [server: import("@adonisjs/assembler").TestRunner]];
65
+ testsFinished: [[server: import("@adonisjs/assembler").TestRunner], [server: import("@adonisjs/assembler").TestRunner]];
66
+ routesCommitted: [[parent: import("@adonisjs/assembler").DevServer, routes: Record<string, import("@adonisjs/assembler/types").RoutesListItem[]>], [parent: import("@adonisjs/assembler").DevServer, routes: Record<string, import("@adonisjs/assembler/types").RoutesListItem[]>]];
67
+ routesScanning: [[parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner], [parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner]];
68
+ routesScanned: [[parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner], [parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner]];
69
+ }>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator): void;
37
70
  };
@@ -13,5 +13,5 @@
13
13
  * debug('Application started')
14
14
  * debug('Processing request: %s', req.url)
15
15
  */
16
- declare const _default: import("util").DebugLogger;
16
+ declare const _default: import("node:util").DebugLogger;
17
17
  export default _default;
@@ -1,49 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
10
- * Core exception classes and utilities for AdonisJS. This module re-exports
11
- * commonly used exception classes from @poppinss/utils for creating and
12
- * handling errors in AdonisJS applications.
13
- *
14
- * @example
15
- * // Creating a custom exception
16
- * import { Exception } from '@adonisjs/core/exceptions'
17
- *
18
- * class ValidationException extends Exception {
19
- * static status = 422
20
- * static code = 'E_VALIDATION_FAILURE'
21
- * }
22
- *
23
- * @example
24
- * // Using createError to create custom error classes
25
- * import { createError } from '@adonisjs/core/exceptions'
26
- *
27
- * const UserNotFound = createError('User not found', 'E_USER_NOT_FOUND', 404)
28
- * throw new UserNotFound()
29
- */
30
- export {
31
- /**
32
- * Base exception class for creating custom exceptions with status codes,
33
- * error codes, and additional context.
34
- */
35
- Exception,
36
- /**
37
- * Utility function to create custom error classes with predefined
38
- * message, code, and status.
39
- */
40
- createError,
41
- /**
42
- * Runtime exception class for errors that occur during application runtime.
43
- */
44
- RuntimeException,
45
- /**
46
- * Exception class for invalid argument errors, typically used in function
47
- * parameter validation.
48
- */
49
- InvalidArgumentsException, } from '@poppinss/utils/exception';
1
+ import { Exception, InvalidArgumentsException, RuntimeException, createError } from "@poppinss/utils/exception";
2
+ export { Exception, InvalidArgumentsException, RuntimeException, createError };
@@ -1,55 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
10
- * Assertion utilities for type-safe programming in AdonisJS. These functions
11
- * provide runtime type assertions that help with TypeScript type narrowing
12
- * and catching potential null/undefined issues early.
13
- *
14
- * @example
15
- * // Type-safe null checking
16
- * import { assertExists } from '@adonisjs/core/helpers'
17
- *
18
- * function processUser(user: User | null) {
19
- * assertExists(user) // TypeScript now knows user is not null
20
- * console.log(user.name) // Safe to access properties
21
- * }
22
- *
23
- * @example
24
- * // Exhaustiveness checking in switch statements
25
- * import { assertUnreachable } from '@adonisjs/core/helpers'
26
- *
27
- * function handleStatus(status: 'pending' | 'completed') {
28
- * switch (status) {
29
- * case 'pending': return 'Processing...'
30
- * case 'completed': return 'Done!'
31
- * default: return assertUnreachable(status)
32
- * }
33
- * }
34
- */
35
- export {
36
- /**
37
- * Assert that a value exists (is not null or undefined).
38
- * Throws an error if the value is null or undefined.
39
- */
40
- assertExists,
41
- /**
42
- * Assert that a value is not null.
43
- * Throws an error if the value is null.
44
- */
45
- assertNotNull,
46
- /**
47
- * Assert that a value is defined (is not undefined).
48
- * Throws an error if the value is undefined.
49
- */
50
- assertIsDefined,
51
- /**
52
- * Assert that code should never reach this point.
53
- * Useful for exhaustiveness checking in switch statements.
54
- */
55
- assertUnreachable, } from '@poppinss/utils/assert';
1
+ import { assertExists, assertIsDefined, assertNotNull, assertUnreachable } from "@poppinss/utils/assert";
2
+ export { assertExists, assertIsDefined, assertNotNull, assertUnreachable };
@@ -1,28 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
10
- * HTTP helper utilities re-exported from @adonisjs/http-server. This module
11
- * provides a convenient entry point for accessing all HTTP-related utilities
12
- * including route helpers, middleware utilities, and request/response helpers.
13
- *
14
- * @example
15
- * // Import specific HTTP helpers
16
- * import { middlewareInfo, routeInfo } from '@adonisjs/core/helpers'
17
- *
18
- * const middleware = middlewareInfo('cors', CorsMiddleware)
19
- * const route = routeInfo('users.show', '/users/:id')
20
- *
21
- * @example
22
- * // Access all HTTP helpers
23
- * import * as httpHelpers from '@adonisjs/core/helpers/http'
24
- *
25
- * // Use any helper from the http-server package
26
- * const routeData = httpHelpers.routeInfo('api.posts', '/api/posts')
27
- */
28
- export * from '@adonisjs/http-server/helpers';
1
+ export * from "@adonisjs/http-server/helpers";
2
+ export {};
@@ -1,31 +1,3 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- import is from '@sindresorhus/is';
10
- /**
11
- * Type checking utilities re-exported from @sindresorhus/is. Provides
12
- * a comprehensive set of type-checking functions with TypeScript type guards.
13
- *
14
- * @example
15
- * // Basic type checking
16
- * import { is } from '@adonisjs/core/helpers'
17
- *
18
- * if (is.string(value)) {
19
- * // TypeScript knows value is string
20
- * console.log(value.toUpperCase())
21
- * }
22
- *
23
- * @example
24
- * // Complex type checking
25
- * import { is } from '@adonisjs/core/helpers'
26
- *
27
- * is.array(value) && is.nonEmptyArray(value)
28
- * is.plainObject(obj) && is.hasProperty(obj, 'name')
29
- * is.number(num) && is.integer(num) && is.positive(num)
30
- */
31
- export default is;
1
+ import is from "@sindresorhus/is";
2
+ var is_default = is;
3
+ export { is_default as default };