@adonisjs/core 7.0.0-next.10 → 7.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ace-DDzvaSs_.js +16 -0
- package/build/app-B6oge7b3.js +5 -0
- package/build/app-BK0PN3li.js +5 -0
- package/build/bodyparser_middleware-DTW0epKM.js +3 -0
- package/build/chunk-MjwdjG2f.js +32 -0
- package/build/commands/add.js +40 -110
- package/build/commands/build.js +51 -107
- package/build/commands/configure.js +82 -177
- package/build/commands/eject.js +17 -60
- package/build/commands/env/add.js +55 -134
- package/build/commands/generate_key.js +22 -66
- package/build/commands/inspect_rcfile.js +27 -55
- package/build/commands/list/routes.js +246 -116
- package/build/commands/make/command.js +15 -57
- package/build/commands/make/controller.js +43 -120
- package/build/commands/make/event.js +16 -62
- package/build/commands/make/exception.js +16 -62
- package/build/commands/make/listener.js +36 -93
- package/build/commands/make/middleware.js +41 -101
- package/build/commands/make/preload.js +47 -113
- package/build/commands/make/provider.js +47 -112
- package/build/commands/make/service.js +16 -55
- package/build/commands/make/test.js +47 -132
- package/build/commands/make/transformer.js +17 -64
- package/build/commands/make/validator.js +20 -80
- package/build/commands/make/view.js +15 -56
- package/build/commands/repl.js +17 -50
- package/build/commands/serve.js +80 -150
- package/build/commands/test.js +92 -202
- package/build/config-B2S2xfmN.js +5 -0
- package/build/config_provider-CY-xuo2R.js +13 -0
- package/build/container-ClFvcykQ.js +5 -0
- package/build/core-CNNCwlhc.js +95 -0
- package/build/create_kernel-B7zWS8Zz.js +38 -0
- package/build/create_kernel-CsTq0pWc.js +3 -0
- package/build/debug-DURPi9xn.js +3 -0
- package/build/decorate-DM0Sx1ye.js +7 -0
- package/build/dumper-C_sMcyFb.js +147 -0
- package/build/edge-LQdCc1L3.js +47 -0
- package/build/encryption-D2HGu0bU.js +5 -0
- package/build/events-B8hK42QT.js +5 -0
- package/build/factories/app.js +2 -9
- package/build/factories/bodyparser.js +2 -9
- package/build/factories/core/ace.js +15 -46
- package/build/factories/core/ignitor.js +12 -180
- package/build/factories/core/main.js +22 -11
- package/build/factories/core/test_utils.js +19 -43
- package/build/factories/encryption.js +2 -9
- package/build/factories/events.js +2 -9
- package/build/factories/hash.js +2 -9
- package/build/factories/http.js +2 -9
- package/build/factories/logger.js +2 -9
- package/build/factories/stubs.js +28 -91
- package/build/ignitor-Dil-rtCo.js +63 -0
- package/build/index.js +13 -46
- package/build/logger-Dha-0hp1.js +13 -0
- package/build/main-2-nm3TiB.js +72 -0
- package/build/main-BTUXw6He.js +171 -0
- package/build/main-BWftwyAK.js +81 -0
- package/build/main-BrJQ1VAM.js +52 -0
- package/build/main-CFmDHDls.js +35 -0
- package/build/main-D5xz2ZN1.js +5 -0
- package/build/main-kn40V-hF.js +2 -0
- package/build/main-q9TMzWUj.js +5 -0
- package/build/modules/ace/codemods.js +222 -477
- package/build/modules/ace/main.js +2 -41
- package/build/modules/app.js +4 -26
- package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
- package/build/modules/bodyparser/main.js +4 -9
- package/build/modules/config.js +4 -26
- package/build/modules/container.js +4 -9
- package/build/modules/dumper/main.js +6 -32
- package/build/modules/dumper/plugins/edge.js +2 -62
- package/build/modules/encryption.js +4 -26
- package/build/modules/env/editor.js +2 -9
- package/build/modules/env/main.js +2 -28
- package/build/modules/events.js +4 -9
- package/build/modules/hash/drivers/argon.js +2 -9
- package/build/modules/hash/drivers/bcrypt.js +2 -20
- package/build/modules/hash/drivers/scrypt.js +2 -9
- package/build/modules/hash/main.js +6 -28
- package/build/modules/hash/phc_formatter.js +2 -9
- package/build/modules/health.js +2 -9
- package/build/modules/http/main.js +4 -15
- package/build/modules/http/url_builder_client.js +2 -9
- package/build/modules/logger.d.ts +30 -0
- package/build/modules/logger.js +4 -9
- package/build/modules/repl.js +4 -9
- package/build/modules/transformers/main.js +4 -9
- package/build/providers/app_provider.js +147 -359
- package/build/providers/edge_provider.js +97 -165
- package/build/providers/hash_provider.js +29 -91
- package/build/providers/repl_provider.js +61 -152
- package/build/providers/vinejs_provider.d.ts +1 -1
- package/build/providers/vinejs_provider.js +20 -66
- package/build/repl-CumYg2V_.js +5 -0
- package/build/services/ace.js +2 -17
- package/build/services/app.js +2 -21
- package/build/services/config.js +2 -13
- package/build/services/dumper.js +5 -21
- package/build/services/emitter.js +2 -14
- package/build/services/encryption.js +2 -14
- package/build/services/hash.js +2 -14
- package/build/services/logger.js +2 -14
- package/build/services/repl.js +2 -14
- package/build/services/router.js +2 -14
- package/build/services/server.js +2 -14
- package/build/services/test_utils.js +2 -17
- package/build/services/url_builder.js +5 -17
- package/build/src/exceptions.js +2 -49
- package/build/src/helpers/assert.js +2 -55
- package/build/src/helpers/http.js +2 -28
- package/build/src/helpers/is.js +3 -31
- package/build/src/helpers/main.js +5 -52
- package/build/src/helpers/string.js +2 -78
- package/build/src/helpers/types.js +26 -135
- package/build/src/helpers/verification_token.js +2 -120
- package/build/src/test_utils/main.js +5 -77
- package/build/src/types.js +0 -8
- package/build/src/vine.js +2 -105
- package/build/string-CJ7ewUFq.js +28 -0
- package/build/test_utils-c_TEaEHW.js +10 -0
- package/build/toolkit/main.js +19 -21
- package/build/types/ace.js +2 -9
- package/build/types/app.js +2 -9
- package/build/types/bodyparser.js +2 -9
- package/build/types/common.js +2 -9
- package/build/types/container.js +2 -9
- package/build/types/encryption.js +2 -9
- package/build/types/events.js +2 -9
- package/build/types/hash.js +2 -9
- package/build/types/health.js +2 -9
- package/build/types/helpers.js +0 -8
- package/build/types/http.js +2 -9
- package/build/types/logger.js +2 -9
- package/build/types/repl.js +2 -9
- package/build/types/transformers.js +2 -9
- package/build/utils-CNQ4tlGM.js +41 -0
- package/build/verification_token-DXsW81rl.js +46 -0
- package/build/vine-Bt4ymkM0.js +32 -0
- package/package.json +81 -31
- package/build/modules/ace/commands.js +0 -157
- package/build/modules/ace/create_kernel.js +0 -91
- package/build/modules/ace/kernel.js +0 -40
- package/build/modules/dumper/define_config.js +0 -36
- package/build/modules/dumper/dumper.js +0 -266
- package/build/modules/dumper/errors.js +0 -119
- package/build/modules/hash/define_config.js +0 -125
- package/build/modules/http/request_validator.js +0 -100
- package/build/src/assembler_hooks/index_entities.js +0 -112
- package/build/src/cli_formatters/routes_list.js +0 -397
- package/build/src/config_provider.js +0 -71
- package/build/src/debug.js +0 -25
- package/build/src/ignitor/ace.js +0 -102
- package/build/src/ignitor/http.js +0 -159
- package/build/src/ignitor/main.js +0 -124
- package/build/src/ignitor/test.js +0 -66
- package/build/src/test_utils/http.js +0 -82
- package/build/src/utils.js +0 -114
- package/build/stubs/main.js +0 -9
- package/build/toolkit/commands/index_commands.js +0 -30
- /package/build/{stubs/make → make}/command/main.stub +0 -0
- /package/build/{stubs/make → make}/controller/actions.stub +0 -0
- /package/build/{stubs/make → make}/controller/api.stub +0 -0
- /package/build/{stubs/make → make}/controller/main.stub +0 -0
- /package/build/{stubs/make → make}/controller/resource.stub +0 -0
- /package/build/{stubs/make → make}/event/main.stub +0 -0
- /package/build/{stubs/make → make}/exception/main.stub +0 -0
- /package/build/{stubs/make → make}/health/controller.stub +0 -0
- /package/build/{stubs/make → make}/health/main.stub +0 -0
- /package/build/{stubs/make → make}/listener/for_event.stub +0 -0
- /package/build/{stubs/make → make}/listener/main.stub +0 -0
- /package/build/{stubs/make → make}/middleware/main.stub +0 -0
- /package/build/{stubs/make → make}/preload/main.stub +0 -0
- /package/build/{stubs/make → make}/provider/main.stub +0 -0
- /package/build/{stubs/make → make}/service/main.stub +0 -0
- /package/build/{stubs/make → make}/test/main.stub +0 -0
- /package/build/{stubs/make → make}/transformer/main.stub +0 -0
- /package/build/{stubs/make → make}/validator/main.stub +0 -0
- /package/build/{stubs/make → make}/validator/resource.stub +0 -0
- /package/build/{stubs/make → make}/view/main.stub +0 -0
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
* Ace command line interface module for AdonisJS applications.
|
|
11
|
-
* Provides the kernel, base commands, and utilities for building CLI applications.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // Create and use the Ace kernel
|
|
15
|
-
* import { Kernel, BaseCommand } from '@adonisjs/core/ace'
|
|
16
|
-
*
|
|
17
|
-
* const kernel = new Kernel(app)
|
|
18
|
-
* await kernel.handle(['make:controller', 'UserController'])
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* // Create a custom command
|
|
22
|
-
* import { BaseCommand, args, flags } from '@adonisjs/core/ace'
|
|
23
|
-
*
|
|
24
|
-
* export default class MakeUser extends BaseCommand {
|
|
25
|
-
* static commandName = 'make:user'
|
|
26
|
-
* static description = 'Create a new user'
|
|
27
|
-
*
|
|
28
|
-
* @args.string({ description: 'Name of the user' })
|
|
29
|
-
* declare name: string
|
|
30
|
-
*
|
|
31
|
-
* @flags.boolean({ description: 'Create admin user' })
|
|
32
|
-
* declare admin: boolean
|
|
33
|
-
*
|
|
34
|
-
* async run() {
|
|
35
|
-
* this.logger.info(`Creating user: ${this.name}`)
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
*/
|
|
39
|
-
export { Kernel } from "./kernel.js";
|
|
40
|
-
export { BaseCommand, ListCommand } from "./commands.js";
|
|
41
|
-
export { args, flags, errors, Parser, FsLoader, ListLoader, cliHelpers, HelpCommand, IndexGenerator, tracingChannels, } from '@adonisjs/ace';
|
|
1
|
+
import { a as Parser, c as errors, d as Kernel, f as BaseCommand, i as ListLoader, l as flags, n as HelpCommand, o as args, p as ListCommand, r as IndexGenerator, s as cliHelpers, t as FsLoader, u as tracingChannels } from "../../main-BWftwyAK.js";
|
|
2
|
+
export { BaseCommand, FsLoader, HelpCommand, IndexGenerator, Kernel, ListCommand, ListLoader, Parser, args, cliHelpers, errors, flags, tracingChannels };
|
package/build/modules/app.js
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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
|
-
* Application module re-exports all functionality from @adonisjs/application.
|
|
11
|
-
* This includes the main Application class and related types for managing
|
|
12
|
-
* the AdonisJS application lifecycle, container bindings, and service providers.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Import the Application class
|
|
16
|
-
* import { Application } from '@adonisjs/core/app'
|
|
17
|
-
*
|
|
18
|
-
* const app = new Application(new URL('../', import.meta.url))
|
|
19
|
-
* await app.init()
|
|
20
|
-
* await app.boot()
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Import application types
|
|
24
|
-
* import type { ApplicationService, ContainerBindings } from '@adonisjs/core/app'
|
|
25
|
-
*/
|
|
26
|
-
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
|
-
|
|
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
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 {};
|
package/build/modules/config.js
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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
|
-
* Configuration module re-exports all functionality from @adonisjs/config.
|
|
11
|
-
* This includes the Config class and related types for managing application
|
|
12
|
-
* configuration files and environment-specific settings.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Import the Config class
|
|
16
|
-
* import { Config } from '@adonisjs/core/config'
|
|
17
|
-
*
|
|
18
|
-
* const config = new Config()
|
|
19
|
-
* config.set('database.connection', 'mysql')
|
|
20
|
-
* const dbConnection = config.get('database.connection')
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Import configuration types
|
|
24
|
-
* import type { ConfigProvider } from '@adonisjs/core/config'
|
|
25
|
-
*/
|
|
26
|
-
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
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 {};
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Dumper module provides debugging and inspection utilities for AdonisJS applications.
|
|
11
|
-
* Includes the Dumper class for formatting output, error classes, and configuration helpers.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // Use the dumper service
|
|
15
|
-
* import { Dumper } from '@adonisjs/core/dumper'
|
|
16
|
-
*
|
|
17
|
-
* const dumper = new Dumper(app)
|
|
18
|
-
* const htmlOutput = dumper.dumpToHtml(user, { title: 'User Data' })
|
|
19
|
-
* const ansiOutput = dumper.dumpToAnsi(user, { title: 'Debug User' })
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // Configure dumper output
|
|
23
|
-
* import { defineConfig } from '@adonisjs/core/dumper'
|
|
24
|
-
*
|
|
25
|
-
* export default defineConfig({
|
|
26
|
-
* html: { showHidden: true, depth: 5 },
|
|
27
|
-
* console: { collapse: ['Date', 'DateTime'] }
|
|
28
|
-
* })
|
|
29
|
-
*/
|
|
30
|
-
export * as errors from "./errors.js";
|
|
31
|
-
export { Dumper } from "./dumper.js";
|
|
32
|
-
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
|
-
|
|
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,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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
|
-
* Encryption module re-exports all functionality from @adonisjs/encryption.
|
|
11
|
-
* This includes the Encryption class and related utilities for encrypting and
|
|
12
|
-
* decrypting data using various algorithms and key management strategies.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Import the Encryption class
|
|
16
|
-
* import { Encryption } from '@adonisjs/core/encryption'
|
|
17
|
-
*
|
|
18
|
-
* const encryption = new Encryption({ secret: 'your-secret-key' })
|
|
19
|
-
* const encrypted = encryption.encrypt('sensitive data')
|
|
20
|
-
* const decrypted = encryption.decrypt(encrypted)
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Import encryption types and utilities
|
|
24
|
-
* import type { EncryptionConfig, DriverContract } from '@adonisjs/core/encryption'
|
|
25
|
-
*/
|
|
26
|
-
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
|
-
|
|
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,28 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
* Environment module re-exports all functionality from @adonisjs/env.
|
|
11
|
-
* This includes the Env class, validation schemas, and utilities for managing
|
|
12
|
-
* environment variables with type safety and validation.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Import the Env class and validation
|
|
16
|
-
* import { Env } from '@adonisjs/core/env'
|
|
17
|
-
*
|
|
18
|
-
* const env = await Env.create(new URL('../', import.meta.url), {
|
|
19
|
-
* NODE_ENV: Env.schema.enum(['development', 'production', 'test'] as const),
|
|
20
|
-
* PORT: Env.schema.number(),
|
|
21
|
-
* HOST: Env.schema.string({ format: 'host' })
|
|
22
|
-
* })
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* // Import environment types and utilities
|
|
26
|
-
* import type { EnvParser, EnvEditor } from '@adonisjs/core/env'
|
|
27
|
-
*/
|
|
28
|
-
export * from '@adonisjs/env';
|
|
1
|
+
export * from "@adonisjs/env";
|
|
2
|
+
export {};
|
package/build/modules/events.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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
|
-
|
|
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,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
* Bcrypt hash driver re-exports from @adonisjs/hash.
|
|
11
|
-
* Provides bcrypt password hashing functionality with configurable rounds.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* import { Bcrypt } from '@adonisjs/core/hash/drivers/bcrypt'
|
|
15
|
-
*
|
|
16
|
-
* const bcrypt = new Bcrypt({ rounds: 12 })
|
|
17
|
-
* const hashed = await bcrypt.make('password')
|
|
18
|
-
* const isValid = await bcrypt.verify(hashed, 'password')
|
|
19
|
-
*/
|
|
20
|
-
export * from '@adonisjs/hash/drivers/bcrypt';
|
|
1
|
+
export * from "@adonisjs/hash/drivers/bcrypt";
|
|
2
|
+
export {};
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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,28 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Hash module provides password hashing functionality with multiple driver support.
|
|
11
|
-
* Re-exports all functionality from @adonisjs/hash along with configuration utilities.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // Import the Hash manager and drivers
|
|
15
|
-
* import { HashManager, Hash } from '@adonisjs/core/hash'
|
|
16
|
-
*
|
|
17
|
-
* const manager = new HashManager(config)
|
|
18
|
-
* const hasher = manager.use('scrypt')
|
|
19
|
-
* const hashed = await hasher.make('password')
|
|
20
|
-
* const verified = await hasher.verify(hashed, 'password')
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Import configuration and driver types
|
|
24
|
-
* import { defineConfig, drivers } from '@adonisjs/core/hash'
|
|
25
|
-
* import type { HashConfig, ScryptConfig } from '@adonisjs/core/types/hash'
|
|
26
|
-
*/
|
|
27
|
-
export * from '@adonisjs/hash';
|
|
28
|
-
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
|
-
|
|
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 {};
|
package/build/modules/health.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 };
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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-server/client/url_builder';
|
|
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']>;
|
package/build/modules/logger.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 };
|
package/build/modules/repl.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
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 {};
|