@adonisjs/core 7.0.0-next.1 → 7.0.0-next.11

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 (145) hide show
  1. package/build/commands/add.js +40 -110
  2. package/build/commands/build.js +51 -107
  3. package/build/commands/configure.js +82 -177
  4. package/build/commands/eject.js +17 -60
  5. package/build/commands/env/add.js +55 -134
  6. package/build/commands/generate_key.js +22 -66
  7. package/build/commands/inspect_rcfile.js +27 -55
  8. package/build/commands/list/routes.js +246 -116
  9. package/build/commands/make/command.js +15 -57
  10. package/build/commands/make/controller.js +43 -120
  11. package/build/commands/make/event.js +16 -62
  12. package/build/commands/make/exception.js +16 -62
  13. package/build/commands/make/listener.js +36 -93
  14. package/build/commands/make/middleware.js +41 -101
  15. package/build/commands/make/preload.js +47 -113
  16. package/build/commands/make/provider.js +47 -112
  17. package/build/commands/make/service.js +16 -55
  18. package/build/commands/make/test.js +47 -132
  19. package/build/commands/make/transformer.js +17 -64
  20. package/build/commands/make/validator.js +20 -80
  21. package/build/commands/make/view.js +15 -56
  22. package/build/commands/repl.js +17 -50
  23. package/build/commands/serve.js +80 -156
  24. package/build/commands/test.js +92 -208
  25. package/build/factories/app.js +2 -9
  26. package/build/factories/bodyparser.js +2 -9
  27. package/build/factories/core/ace.js +15 -46
  28. package/build/factories/core/ignitor.js +12 -180
  29. package/build/factories/core/main.js +22 -11
  30. package/build/factories/core/test_utils.js +19 -43
  31. package/build/factories/encryption.js +2 -9
  32. package/build/factories/events.js +2 -9
  33. package/build/factories/hash.js +2 -9
  34. package/build/factories/http.js +2 -9
  35. package/build/factories/logger.js +2 -9
  36. package/build/factories/stubs.js +28 -91
  37. package/build/index.js +13 -46
  38. package/build/modules/ace/codemods.d.ts +109 -14
  39. package/build/modules/ace/codemods.js +222 -374
  40. package/build/modules/ace/main.d.ts +30 -0
  41. package/build/modules/ace/main.js +2 -11
  42. package/build/modules/app.d.ts +17 -0
  43. package/build/modules/app.js +4 -9
  44. package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
  45. package/build/modules/bodyparser/main.js +4 -9
  46. package/build/modules/config.d.ts +17 -0
  47. package/build/modules/config.js +4 -9
  48. package/build/modules/container.js +4 -9
  49. package/build/modules/dumper/dumper.d.ts +5 -0
  50. package/build/modules/dumper/main.d.ts +21 -0
  51. package/build/modules/dumper/main.js +6 -11
  52. package/build/modules/dumper/plugins/edge.js +2 -62
  53. package/build/modules/encryption.d.ts +17 -0
  54. package/build/modules/encryption.js +4 -9
  55. package/build/modules/env/editor.js +2 -9
  56. package/build/modules/env/main.d.ts +19 -0
  57. package/build/modules/env/main.js +2 -9
  58. package/build/modules/events.js +4 -9
  59. package/build/modules/hash/drivers/argon.js +2 -9
  60. package/build/modules/hash/drivers/bcrypt.d.ts +11 -0
  61. package/build/modules/hash/drivers/bcrypt.js +2 -9
  62. package/build/modules/hash/drivers/scrypt.js +2 -9
  63. package/build/modules/hash/main.d.ts +18 -0
  64. package/build/modules/hash/main.js +6 -10
  65. package/build/modules/hash/phc_formatter.js +2 -9
  66. package/build/modules/health.js +2 -9
  67. package/build/modules/http/main.js +4 -15
  68. package/build/modules/http/url_builder_client.d.ts +1 -0
  69. package/build/modules/http/url_builder_client.js +2 -0
  70. package/build/modules/logger.d.ts +30 -0
  71. package/build/modules/logger.js +4 -9
  72. package/build/modules/repl.js +4 -9
  73. package/build/modules/transformers/main.js +4 -9
  74. package/build/providers/app_provider.d.ts +9 -21
  75. package/build/providers/app_provider.js +147 -363
  76. package/build/providers/edge_provider.js +97 -104
  77. package/build/providers/hash_provider.js +29 -91
  78. package/build/providers/repl_provider.js +61 -152
  79. package/build/providers/vinejs_provider.d.ts +1 -1
  80. package/build/providers/vinejs_provider.js +20 -66
  81. package/build/services/ace.js +2 -17
  82. package/build/services/app.js +2 -21
  83. package/build/services/config.js +2 -13
  84. package/build/services/dumper.js +5 -21
  85. package/build/services/emitter.js +2 -14
  86. package/build/services/encryption.js +2 -14
  87. package/build/services/hash.js +2 -14
  88. package/build/services/logger.js +2 -14
  89. package/build/services/repl.js +2 -14
  90. package/build/services/router.js +2 -14
  91. package/build/services/server.js +2 -14
  92. package/build/services/test_utils.js +2 -17
  93. package/build/services/url_builder.js +5 -17
  94. package/build/src/exceptions.js +2 -49
  95. package/build/src/helpers/assert.js +2 -55
  96. package/build/src/helpers/http.d.ts +20 -0
  97. package/build/src/helpers/http.js +2 -0
  98. package/build/src/helpers/is.js +3 -31
  99. package/build/src/helpers/main.d.ts +1 -5
  100. package/build/src/helpers/main.js +5 -56
  101. package/build/src/helpers/string.js +2 -60
  102. package/build/src/helpers/types.js +26 -135
  103. package/build/src/helpers/verification_token.js +2 -120
  104. package/build/src/test_utils/main.js +5 -77
  105. package/build/src/types.d.ts +1 -0
  106. package/build/src/types.js +0 -8
  107. package/build/src/utils.d.ts +1 -1
  108. package/build/src/vine.js +2 -97
  109. package/build/types/ace.js +2 -9
  110. package/build/types/app.js +2 -9
  111. package/build/types/bodyparser.js +2 -9
  112. package/build/types/common.js +2 -9
  113. package/build/types/container.js +2 -9
  114. package/build/types/encryption.js +2 -9
  115. package/build/types/events.js +2 -9
  116. package/build/types/hash.js +2 -9
  117. package/build/types/health.js +2 -9
  118. package/build/types/helpers.d.ts +20 -0
  119. package/build/types/helpers.js +0 -8
  120. package/build/types/http.js +2 -9
  121. package/build/types/logger.js +2 -9
  122. package/build/types/repl.js +2 -9
  123. package/build/types/transformers.js +2 -9
  124. package/package.json +88 -30
  125. package/build/modules/ace/commands.js +0 -157
  126. package/build/modules/ace/create_kernel.js +0 -91
  127. package/build/modules/ace/kernel.js +0 -40
  128. package/build/modules/dumper/define_config.js +0 -36
  129. package/build/modules/dumper/dumper.js +0 -256
  130. package/build/modules/dumper/errors.js +0 -119
  131. package/build/modules/hash/define_config.js +0 -125
  132. package/build/modules/http/request_validator.js +0 -100
  133. package/build/src/assembler_hooks/index_entities.js +0 -106
  134. package/build/src/cli_formatters/routes_list.js +0 -381
  135. package/build/src/config_provider.js +0 -71
  136. package/build/src/debug.js +0 -25
  137. package/build/src/ignitor/ace.js +0 -102
  138. package/build/src/ignitor/http.js +0 -146
  139. package/build/src/ignitor/main.js +0 -124
  140. package/build/src/ignitor/test.js +0 -66
  141. package/build/src/test_utils/http.js +0 -82
  142. package/build/src/utils.js +0 -104
  143. package/build/stubs/main.js +0 -9
  144. package/build/toolkit/commands/index_commands.js +0 -30
  145. package/build/toolkit/main.js +0 -27
@@ -1 +1,18 @@
1
+ /**
2
+ * Application module re-exports all functionality from @adonisjs/application.
3
+ * This includes the main Application class and related types for managing
4
+ * the AdonisJS application lifecycle, container bindings, and service providers.
5
+ *
6
+ * @example
7
+ * // Import the Application class
8
+ * import { Application } from '@adonisjs/core/app'
9
+ *
10
+ * const app = new Application(new URL('../', import.meta.url))
11
+ * await app.init()
12
+ * await app.boot()
13
+ *
14
+ * @example
15
+ * // Import application types
16
+ * import type { ApplicationService, ContainerBindings } from '@adonisjs/core/app'
17
+ */
1
18
  export * from '@adonisjs/application';
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/application';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../app-BK0PN3li.js";
3
+ export * from "@adonisjs/application";
4
+ export {};
@@ -1,14 +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
- import { BodyParserMiddleware } from '@adonisjs/bodyparser/bodyparser_middleware';
10
- /**
11
- * Default export allows lazy importing middleware with
12
- * destructuring the named exports
13
- */
14
- export default BodyParserMiddleware;
1
+ import { t as bodyparser_middleware_default } from "../../bodyparser_middleware-DTW0epKM.js";
2
+ export { bodyparser_middleware_default as default };
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/bodyparser';
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import "../../main-q9TMzWUj.js";
3
+ export * from "@adonisjs/bodyparser";
4
+ export {};
@@ -1 +1,18 @@
1
+ /**
2
+ * Configuration module re-exports all functionality from @adonisjs/config.
3
+ * This includes the Config class and related types for managing application
4
+ * configuration files and environment-specific settings.
5
+ *
6
+ * @example
7
+ * // Import the Config class
8
+ * import { Config } from '@adonisjs/core/config'
9
+ *
10
+ * const config = new Config()
11
+ * config.set('database.connection', 'mysql')
12
+ * const dbConnection = config.get('database.connection')
13
+ *
14
+ * @example
15
+ * // Import configuration types
16
+ * import type { ConfigProvider } from '@adonisjs/core/config'
17
+ */
1
18
  export * from '@adonisjs/config';
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/config';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../config-B2S2xfmN.js";
3
+ export * from "@adonisjs/config";
4
+ export {};
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/fold';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../container-ClFvcykQ.js";
3
+ export * from "@adonisjs/fold";
4
+ export {};
@@ -28,6 +28,11 @@ import type { Application } from '../app.ts';
28
28
  */
29
29
  export declare class Dumper {
30
30
  #private;
31
+ /**
32
+ * Creates a new Dumper instance
33
+ *
34
+ * @param app - The AdonisJS application instance
35
+ */
31
36
  constructor(app: Application<any>);
32
37
  /**
33
38
  * Configure the HTML formatter output options
@@ -1,3 +1,24 @@
1
+ /**
2
+ * Dumper module provides debugging and inspection utilities for AdonisJS applications.
3
+ * Includes the Dumper class for formatting output, error classes, and configuration helpers.
4
+ *
5
+ * @example
6
+ * // Use the dumper service
7
+ * import { Dumper } from '@adonisjs/core/dumper'
8
+ *
9
+ * const dumper = new Dumper(app)
10
+ * const htmlOutput = dumper.dumpToHtml(user, { title: 'User Data' })
11
+ * const ansiOutput = dumper.dumpToAnsi(user, { title: 'Debug User' })
12
+ *
13
+ * @example
14
+ * // Configure dumper output
15
+ * import { defineConfig } from '@adonisjs/core/dumper'
16
+ *
17
+ * export default defineConfig({
18
+ * html: { showHidden: true, depth: 5 },
19
+ * console: { collapse: ['Date', 'DateTime'] }
20
+ * })
21
+ */
1
22
  export * as errors from './errors.ts';
2
23
  export { Dumper } from './dumper.ts';
3
24
  export { defineConfig } from './define_config.ts';
@@ -1,11 +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
- export * as errors from "./errors.js";
10
- export { Dumper } from "./dumper.js";
11
- export { defineConfig } from "./define_config.js";
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import { n as errors_exports, t as Dumper } from "../../dumper-C_sMcyFb.js";
3
+ function defineConfig(dumperConfig) {
4
+ return dumperConfig;
5
+ }
6
+ export { Dumper, defineConfig, errors_exports as errors };
@@ -1,62 +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
- import { Template } from 'edge.js';
10
- /**
11
- * Returns an edge plugin that integrates with a given
12
- * dumper instance
13
- */
14
- export function pluginEdgeDumper(dumper) {
15
- Template.macro('dumper', dumper);
16
- return (edge) => {
17
- edge.registerTag({
18
- tagName: 'dump',
19
- block: false,
20
- seekable: true,
21
- noNewLine: true,
22
- compile(parser, buffer, token) {
23
- const parsed = parser.utils.transformAst(parser.utils.generateAST(token.properties.jsArg, token.loc, token.filename), token.filename, parser);
24
- buffer.writeExpression(`template.stacks.pushOnceTo('dumper', 'dumper_globals', template.dumper.getHeadElements(state.cspNonce))`, token.filename, token.loc.start.line);
25
- buffer.outputExpression(`template.dumper.dumpToHtml(${parser.utils.stringify(parsed)}, { cspNonce: state.cspNonce, source: { location: $filename, line: $lineNumber } })`, token.filename, token.loc.start.line, true);
26
- },
27
- });
28
- edge.registerTag({
29
- tagName: 'dd',
30
- block: false,
31
- seekable: true,
32
- noNewLine: true,
33
- compile(parser, buffer, token) {
34
- const parsed = parser.utils.transformAst(parser.utils.generateAST(token.properties.jsArg, token.loc, token.filename), token.filename, parser);
35
- /**
36
- * Dump/Die statement to catch error and convert it into
37
- * an Edge error
38
- */
39
- const ddStatement = [
40
- 'try {',
41
- ` template.dumper.dd(${parser.utils.stringify(parsed)})`,
42
- '} catch (error) {',
43
- ` if (error.code === 'E_DUMP_DIE_EXCEPTION') {`,
44
- ' const edgeError = template.createError(error.message, $filename, $lineNumber)',
45
- ' error.fileName = $filename',
46
- ' error.lineNumber = $lineNumber',
47
- ' edgeError.handle = function (_, ctx) {',
48
- ' return error.handle(error, ctx)',
49
- ' }',
50
- ' edgeError.report = function () {',
51
- ' return error.report(error)',
52
- ' }',
53
- ' throw edgeError',
54
- ' }',
55
- ' throw error',
56
- '}',
57
- ].join('\n');
58
- buffer.writeStatement(ddStatement, token.filename, token.loc.start.line);
59
- },
60
- });
61
- };
62
- }
1
+ import { t as pluginEdgeDumper } from "../../../edge-LQdCc1L3.js";
2
+ export { pluginEdgeDumper };
@@ -1 +1,18 @@
1
+ /**
2
+ * Encryption module re-exports all functionality from @adonisjs/encryption.
3
+ * This includes the Encryption class and related utilities for encrypting and
4
+ * decrypting data using various algorithms and key management strategies.
5
+ *
6
+ * @example
7
+ * // Import the Encryption class
8
+ * import { Encryption } from '@adonisjs/core/encryption'
9
+ *
10
+ * const encryption = new Encryption({ secret: 'your-secret-key' })
11
+ * const encrypted = encryption.encrypt('sensitive data')
12
+ * const decrypted = encryption.decrypt(encrypted)
13
+ *
14
+ * @example
15
+ * // Import encryption types and utilities
16
+ * import type { EncryptionConfig, DriverContract } from '@adonisjs/core/encryption'
17
+ */
1
18
  export * from '@adonisjs/encryption';
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/encryption';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../encryption-D2HGu0bU.js";
3
+ export * from "@adonisjs/encryption";
4
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/env/editor';
1
+ export * from "@adonisjs/env/editor";
2
+ export {};
@@ -1 +1,20 @@
1
+ /**
2
+ * Environment module re-exports all functionality from @adonisjs/env.
3
+ * This includes the Env class, validation schemas, and utilities for managing
4
+ * environment variables with type safety and validation.
5
+ *
6
+ * @example
7
+ * // Import the Env class and validation
8
+ * import { Env } from '@adonisjs/core/env'
9
+ *
10
+ * const env = await Env.create(new URL('../', import.meta.url), {
11
+ * NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const),
12
+ * PORT: Env.schema.number(),
13
+ * HOST: Env.schema.string({ format: 'host' })
14
+ * })
15
+ *
16
+ * @example
17
+ * // Import environment types and utilities
18
+ * import type { EnvParser, EnvEditor } from '@adonisjs/core/env'
19
+ */
1
20
  export * from '@adonisjs/env';
@@ -1,9 +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
- export * from '@adonisjs/env';
1
+ export * from "@adonisjs/env";
2
+ export {};
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/events';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../events-B8hK42QT.js";
3
+ export * from "@adonisjs/events";
4
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/hash/drivers/argon';
1
+ export * from "@adonisjs/hash/drivers/argon";
2
+ export {};
@@ -1 +1,12 @@
1
+ /**
2
+ * Bcrypt hash driver re-exports from @adonisjs/hash.
3
+ * Provides bcrypt password hashing functionality with configurable rounds.
4
+ *
5
+ * @example
6
+ * import { Bcrypt } from '@adonisjs/core/hash/drivers/bcrypt'
7
+ *
8
+ * const bcrypt = new Bcrypt({ rounds: 12 })
9
+ * const hashed = await bcrypt.make('password')
10
+ * const isValid = await bcrypt.verify(hashed, 'password')
11
+ */
1
12
  export * from '@adonisjs/hash/drivers/bcrypt';
@@ -1,9 +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
- export * from '@adonisjs/hash/drivers/bcrypt';
1
+ export * from "@adonisjs/hash/drivers/bcrypt";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/hash/drivers/scrypt';
1
+ export * from "@adonisjs/hash/drivers/scrypt";
2
+ export {};
@@ -1,2 +1,20 @@
1
+ /**
2
+ * Hash module provides password hashing functionality with multiple driver support.
3
+ * Re-exports all functionality from @adonisjs/hash along with configuration utilities.
4
+ *
5
+ * @example
6
+ * // Import the Hash manager and drivers
7
+ * import { HashManager, Hash } from '@adonisjs/core/hash'
8
+ *
9
+ * const manager = new HashManager(config)
10
+ * const hasher = manager.use('scrypt')
11
+ * const hashed = await hasher.make('password')
12
+ * const verified = await hasher.verify(hashed, 'password')
13
+ *
14
+ * @example
15
+ * // Import configuration and driver types
16
+ * import { defineConfig, drivers } from '@adonisjs/core/hash'
17
+ * import type { HashConfig, ScryptConfig } from '@adonisjs/core/types/hash'
18
+ */
1
19
  export * from '@adonisjs/hash';
2
20
  export { defineConfig, drivers } from './define_config.ts';
@@ -1,10 +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
- export * from '@adonisjs/hash';
10
- export { defineConfig, drivers } from "./define_config.js";
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import "../../debug-DURPi9xn.js";
3
+ import "../../config_provider-CY-xuo2R.js";
4
+ import { n as defineConfig, r as drivers } from "../../main-BrJQ1VAM.js";
5
+ export * from "@adonisjs/hash";
6
+ export { defineConfig, drivers };
@@ -1,9 +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
- export * from '@adonisjs/hash/phc_formatter';
1
+ export * from "@adonisjs/hash/phc_formatter";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/health';
1
+ export * from "@adonisjs/health";
2
+ export {};
@@ -1,15 +1,4 @@
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
- * Bodyparser import is needed to merge types of Request
11
- * class augmented by the bodyparser package
12
- */
13
- import '@adonisjs/bodyparser';
14
- export * from '@adonisjs/http-server';
15
- export { RequestValidator } from "./request_validator.js";
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import { n as RequestValidator } from "../../main-CFmDHDls.js";
3
+ export * from "@adonisjs/http-server";
4
+ export { RequestValidator };
@@ -0,0 +1 @@
1
+ export * from '@adonisjs/http-server/client/url_builder';
@@ -0,0 +1,2 @@
1
+ export * from "@adonisjs/http-server/client/url_builder";
2
+ export {};
@@ -1 +1,31 @@
1
+ import { type LoggerConfig, type PrettyTargetOptions } from '@adonisjs/logger/types';
1
2
  export * from '@adonisjs/logger';
3
+ /**
4
+ * Creates a synchronous Pino Pretty stream for formatted log output.
5
+ *
6
+ * This function is specifically designed for testing and development environments
7
+ * where synchronous log output is preferred. By default, Pino uses asynchronous
8
+ * logging which can make it difficult to correlate logs with specific actions
9
+ * during debugging or testing.
10
+ *
11
+ * @param options - Configuration options for the pretty printer
12
+ *
13
+ * @example
14
+ * const loggerConfig = defineConfig({
15
+ * default: 'app',
16
+ * loggers: {
17
+ * app: {
18
+ * enabled: true,
19
+ * name: env.get('APP_NAME'),
20
+ * level: env.get('LOG_LEVEL'),
21
+ * desination: !app.inProduction && (await syncDestination()),
22
+ * transport: {
23
+ * targets: [targets.file({ destination: 1 })],
24
+ * },
25
+ * },
26
+ * }
27
+ * })
28
+ *
29
+ * @returns A promise that resolves to a PrettyStream instance
30
+ */
31
+ export declare function syncDestination(options?: PrettyTargetOptions): Promise<LoggerConfig['desination']>;
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/logger';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import { n as syncDestination } from "../logger-Dha-0hp1.js";
3
+ export * from "@adonisjs/logger";
4
+ export { syncDestination };
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/repl';
1
+ import "../chunk-MjwdjG2f.js";
2
+ import "../repl-CumYg2V_.js";
3
+ export * from "@adonisjs/repl";
4
+ export {};
@@ -1,9 +1,4 @@
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
- export * from '@adonisjs/http-transformers';
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import "../../main-D5xz2ZN1.js";
3
+ export * from "@adonisjs/http-transformers";
4
+ export {};
@@ -174,32 +174,20 @@ export default class AppServiceProvider {
174
174
  */
175
175
  protected registerDumper(): void;
176
176
  /**
177
- * Generates the types needed by the URL builder and writes
178
- * them to the ".adonisjs/server/routes.d.ts" file
177
+ * Generates TypeScript type definitions and JSON representation of routes
179
178
  *
180
- * This method scans registered routes and generates TypeScript
181
- * types for type-safe URL generation in development.
179
+ * Creates route type definitions for better IDE support and a JSON file
180
+ * containing all registered routes. This is used in development mode for
181
+ * tooling integration and type-safety.
182
182
  *
183
- * @param router - The router instance to generate types from
183
+ * @param router - The router instance containing registered routes
184
184
  *
185
185
  * @example
186
- * await generateRoutesTypes(router)
187
- * // Creates .adonisjs/server/routes.d.ts with route types
188
- */
189
- protected generateRoutesTypes(router: Router): Promise<void>;
190
- /**
191
- * Generates the routes JSON needed by the client integration
192
- *
193
- * Exports all registered routes as JSON for client-side
194
- * applications that need route information.
195
- *
196
- * @param router - The router instance to export routes from
197
- *
198
- * @example
199
- * await generateRoutesJSONFile(router)
200
- * // Creates .adonisjs/client/routes.json
186
+ * const router = await container.make('router')
187
+ * await this.emitRoutes(router)
188
+ * // Generates .adonisjs/server/routes.d.ts and routes.json
201
189
  */
202
- protected generateRoutesJSONFile(router: Router): Promise<void>;
190
+ protected emitRoutes(router: Router): Promise<void>;
203
191
  /**
204
192
  * Registers bindings
205
193
  *