@adonisjs/core 7.0.0-next.2 → 7.0.0-next.21
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-sWl9sgM1.js +16 -0
- package/build/app-B6oge7b3.js +5 -0
- package/build/app-DNvbxVWl.js +5 -0
- package/build/bodyparser_middleware-BmARtnYe.js +3 -0
- package/build/chunk-B88MteZI.js +26 -0
- package/build/commands/add.d.ts +4 -3
- package/build/commands/add.js +76 -110
- package/build/commands/build.js +51 -107
- package/build/commands/commands.json +1 -1
- 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 -156
- package/build/commands/test.js +92 -208
- package/build/config-Dd2H6-_e.js +5 -0
- package/build/config_provider-DWVFHOQX.js +15 -0
- package/build/container-uxa8LpGI.js +5 -0
- package/build/core-BuPP8K6N.js +140 -0
- package/build/create_kernel-Cn8zVtvt.js +3 -0
- package/build/create_kernel-Cpqqa931.js +38 -0
- package/build/decorate-CJcHOoD-.js +7 -0
- package/build/define_config-CoWy5lbf.js +62 -0
- package/build/dumper-BTjb8j4y.js +147 -0
- package/build/edge-BVYR-Vjr.js +47 -0
- package/build/events-C4d0OPUI.js +5 -0
- package/build/exceptions-DNMesP42.js +2 -0
- package/build/factories/app.js +2 -9
- package/build/factories/bodyparser.js +2 -9
- package/build/factories/core/ace.js +16 -46
- package/build/factories/core/ignitor.js +13 -180
- package/build/factories/core/main.js +24 -11
- package/build/factories/core/test_utils.js +21 -43
- package/build/factories/encryption.d.ts +1 -1
- 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 +27 -91
- package/build/ignitor-BrmVPN5N.js +71 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +12 -46
- package/build/logger-0KKSqgPG.js +13 -0
- package/build/main-BU8NWUEG.js +73 -0
- package/build/main-Bfnr5tAw.js +2 -0
- package/build/main-BlJhxJJ2.js +81 -0
- package/build/main-C4B2SPOT.js +5 -0
- package/build/main-CZZ21eXm.js +171 -0
- package/build/main-D-WhqOOn.js +51 -0
- package/build/main-DOY5Q8Av.js +5 -0
- package/build/main-kn40V-hF.js +2 -0
- package/build/main-nojlltNo.js +30 -0
- package/build/{stubs/make → make}/health/controller.stub +5 -2
- package/build/modules/ace/codemods.d.ts +109 -14
- package/build/modules/ace/codemods.js +222 -382
- package/build/modules/ace/main.d.ts +30 -0
- package/build/modules/ace/main.js +2 -11
- package/build/modules/app.d.ts +17 -0
- package/build/modules/app.js +4 -9
- package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
- package/build/modules/bodyparser/main.js +4 -9
- package/build/modules/config.d.ts +17 -0
- package/build/modules/config.js +4 -9
- package/build/modules/container.js +4 -9
- package/build/modules/dumper/dumper.d.ts +5 -0
- package/build/modules/dumper/main.d.ts +21 -0
- package/build/modules/dumper/main.js +6 -11
- package/build/modules/dumper/plugins/edge.js +2 -62
- package/build/modules/encryption/define_config.d.ts +128 -0
- package/build/modules/encryption/drivers/aes_256_cbc.d.ts +20 -0
- package/build/modules/encryption/drivers/aes_256_cbc.js +2 -0
- package/build/modules/encryption/drivers/aes_256_gcm.d.ts +21 -0
- package/build/modules/encryption/drivers/aes_256_gcm.js +2 -0
- package/build/modules/encryption/drivers/chacha20_poly1305.d.ts +21 -0
- package/build/modules/encryption/drivers/chacha20_poly1305.js +2 -0
- package/build/modules/encryption/main.d.ts +85 -0
- package/build/modules/encryption/main.js +5 -0
- package/build/modules/env/editor.js +2 -9
- package/build/modules/env/main.d.ts +19 -0
- package/build/modules/env/main.js +2 -9
- package/build/modules/events.js +4 -9
- package/build/modules/hash/drivers/argon.js +2 -9
- package/build/modules/hash/drivers/bcrypt.d.ts +11 -0
- package/build/modules/hash/drivers/bcrypt.js +2 -9
- package/build/modules/hash/drivers/scrypt.js +2 -9
- package/build/modules/hash/main.d.ts +18 -0
- package/build/modules/hash/main.js +5 -10
- 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/request_validator.d.ts +1 -3
- package/build/modules/http/url_builder_client.d.ts +1 -0
- package/build/modules/http/url_builder_client.js +2 -0
- 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.d.ts +14 -25
- package/build/providers/app_provider.js +155 -363
- package/build/providers/edge_provider.js +97 -114
- package/build/providers/hash_provider.js +28 -91
- package/build/providers/repl_provider.js +66 -152
- package/build/providers/vinejs_provider.d.ts +1 -1
- package/build/providers/vinejs_provider.js +19 -66
- package/build/repl-GSxgovJQ.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.d.ts +3 -3
- package/build/services/url_builder.js +5 -17
- package/build/src/assembler_hooks/index_entities.d.ts +29 -1
- package/build/src/debug.d.ts +1 -1
- package/build/src/exceptions.js +2 -49
- package/build/src/helpers/assert.js +2 -55
- package/build/src/helpers/http.d.ts +20 -0
- package/build/src/helpers/http.js +2 -0
- package/build/src/helpers/is.js +3 -31
- package/build/src/helpers/main.d.ts +1 -5
- package/build/src/helpers/main.js +5 -56
- package/build/src/helpers/string.js +2 -60
- package/build/src/helpers/types.js +26 -135
- package/build/src/helpers/verification_token.js +2 -120
- package/build/src/test_utils/main.js +8 -77
- package/build/src/types.d.ts +53 -99
- package/build/src/types.js +0 -8
- package/build/src/utils.d.ts +1 -1
- package/build/src/vine.js +2 -97
- package/build/string-Cx6q_win.js +28 -0
- package/build/test_utils-hkQDmNpX.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.d.ts +39 -1
- package/build/types/encryption.js +1 -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.d.ts +20 -0
- 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-CtGytdtt.js +42 -0
- package/build/verification_token-DrdoU4RH.js +46 -0
- package/build/vine-DGint2rk.js +32 -0
- package/package.json +113 -60
- 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 -256
- package/build/modules/dumper/errors.js +0 -119
- package/build/modules/encryption.d.ts +0 -1
- package/build/modules/encryption.js +0 -9
- 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 -107
- package/build/src/cli_formatters/routes_list.js +0 -381
- 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 -146
- 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 -104
- 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/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,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,5 @@
|
|
|
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/hash';
|
|
10
|
-
export { defineConfig, drivers } from "./define_config.js";
|
|
1
|
+
import "../../chunk-B88MteZI.js";
|
|
2
|
+
import "../../config_provider-DWVFHOQX.js";
|
|
3
|
+
import { n as defineConfig, r as drivers } from "../../main-D-WhqOOn.js";
|
|
4
|
+
export * from "@adonisjs/hash";
|
|
5
|
+
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-B88MteZI.js";
|
|
2
|
+
import { n as RequestValidator } from "../../main-nojlltNo.js";
|
|
3
|
+
export * from "@adonisjs/http-server";
|
|
4
|
+
export { RequestValidator };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { VineValidator } from '@vinejs/vine';
|
|
2
2
|
import type { Infer, SchemaTypes, ErrorReporterContract, MessagesProviderContact } from '@vinejs/vine/types';
|
|
3
3
|
import type { HttpContext } from './main.ts';
|
|
4
|
-
import type { FeatureFlags } from '../app.ts';
|
|
5
|
-
import type { ExperimentalFlagsList } from '../../types/app.ts';
|
|
6
4
|
import type { RequestValidationOptions } from '../../types/http.ts';
|
|
7
5
|
/**
|
|
8
6
|
* Request validator for validating HTTP request data using VineJS validators.
|
|
@@ -19,7 +17,7 @@ import type { RequestValidationOptions } from '../../types/http.ts';
|
|
|
19
17
|
*/
|
|
20
18
|
export declare class RequestValidator {
|
|
21
19
|
#private;
|
|
22
|
-
constructor(ctx: HttpContext
|
|
20
|
+
constructor(ctx: HttpContext);
|
|
23
21
|
/**
|
|
24
22
|
* The error reporter method returns the error reporter
|
|
25
23
|
* to use for reporting errors.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@adonisjs/http-server/client/url_builder';
|
|
@@ -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-B88MteZI.js";
|
|
2
|
+
import { n as syncDestination } from "../logger-0KKSqgPG.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-B88MteZI.js";
|
|
2
|
+
import "../repl-GSxgovJQ.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-B88MteZI.js";
|
|
2
|
+
import "../../main-C4B2SPOT.js";
|
|
3
|
+
export * from "@adonisjs/http-transformers";
|
|
4
|
+
export {};
|
|
@@ -116,14 +116,15 @@ export default class AppServiceProvider {
|
|
|
116
116
|
*/
|
|
117
117
|
protected registerEmitter(): void;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Registers the encryption service with the container
|
|
120
120
|
*
|
|
121
|
-
* Creates
|
|
122
|
-
* the
|
|
121
|
+
* Creates singleton bindings for both the encryption manager and
|
|
122
|
+
* the default encryption instance. Resolves configuration from
|
|
123
|
+
* config/encryption.ts file.
|
|
123
124
|
*
|
|
124
125
|
* @example
|
|
125
126
|
* const encryption = await container.make('encryption')
|
|
126
|
-
* const encrypted = encryption.encrypt('
|
|
127
|
+
* const encrypted = encryption.encrypt('secret-data')
|
|
127
128
|
*/
|
|
128
129
|
protected registerEncryption(): void;
|
|
129
130
|
/**
|
|
@@ -174,32 +175,20 @@ export default class AppServiceProvider {
|
|
|
174
175
|
*/
|
|
175
176
|
protected registerDumper(): void;
|
|
176
177
|
/**
|
|
177
|
-
* Generates
|
|
178
|
-
* them to the ".adonisjs/server/routes.d.ts" file
|
|
178
|
+
* Generates TypeScript type definitions and JSON representation of routes
|
|
179
179
|
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
180
|
+
* Creates route type definitions for better IDE support and a JSON file
|
|
181
|
+
* containing all registered routes. This is used in development mode for
|
|
182
|
+
* tooling integration and type-safety.
|
|
182
183
|
*
|
|
183
|
-
* @param router - The router instance
|
|
184
|
+
* @param router - The router instance containing registered routes
|
|
184
185
|
*
|
|
185
186
|
* @example
|
|
186
|
-
* await
|
|
187
|
-
*
|
|
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
|
|
187
|
+
* const router = await container.make('router')
|
|
188
|
+
* await this.emitRoutes(router)
|
|
189
|
+
* // Generates .adonisjs/server/routes.d.ts and routes.json
|
|
201
190
|
*/
|
|
202
|
-
protected
|
|
191
|
+
protected emitRoutes(router: Router): Promise<void>;
|
|
203
192
|
/**
|
|
204
193
|
* Registers bindings
|
|
205
194
|
*
|