@adonisjs/core 6.1.5-3 → 6.1.5-31
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/commands/build.d.ts +8 -1
- package/build/commands/build.js +49 -26
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.d.ts +36 -4
- package/build/commands/configure.js +114 -27
- package/build/commands/eject.d.ts +4 -1
- package/build/commands/eject.js +17 -10
- package/build/commands/generate_key.d.ts +4 -1
- package/build/commands/generate_key.js +16 -10
- package/build/commands/inspect_rcfile.d.ts +3 -1
- package/build/commands/inspect_rcfile.js +29 -3
- package/build/commands/list/routes.d.ts +23 -1
- package/build/commands/list/routes.js +30 -15
- package/build/commands/main.d.ts +4 -0
- package/build/commands/make/command.d.ts +7 -2
- package/build/commands/make/command.js +21 -9
- package/build/commands/make/controller.d.ts +10 -2
- package/build/commands/make/controller.js +36 -16
- package/build/commands/make/event.d.ts +7 -2
- package/build/commands/make/event.js +21 -10
- package/build/commands/make/exception.d.ts +14 -0
- package/build/commands/make/exception.js +37 -0
- package/build/commands/make/listener.d.ts +8 -2
- package/build/commands/make/listener.js +29 -14
- package/build/commands/make/middleware.d.ts +8 -2
- package/build/commands/make/middleware.js +22 -10
- package/build/commands/make/preload.d.ts +22 -0
- package/build/commands/make/preload.js +99 -0
- package/build/commands/make/provider.d.ts +7 -2
- package/build/commands/make/provider.js +28 -11
- package/build/commands/make/service.d.ts +7 -2
- package/build/commands/make/service.js +21 -10
- package/build/commands/make/test.d.ts +10 -2
- package/build/commands/make/test.js +48 -13
- package/build/commands/make/validator.d.ts +14 -0
- package/build/commands/make/validator.js +37 -0
- package/build/commands/make/view.d.ts +14 -0
- package/build/commands/make/view.js +37 -0
- package/build/commands/repl.d.ts +14 -0
- package/build/commands/repl.js +30 -0
- package/build/commands/serve.d.ts +10 -1
- package/build/commands/serve.js +63 -32
- package/build/commands/test.d.ts +13 -2
- package/build/commands/test.js +108 -61
- package/build/factories/app.d.ts +0 -1
- package/build/factories/app.js +8 -0
- package/build/factories/bodyparser.d.ts +0 -1
- package/build/factories/bodyparser.js +8 -0
- package/build/factories/core/ace.d.ts +3 -1
- package/build/factories/core/ace.js +11 -0
- package/build/factories/core/ignitor.d.ts +19 -1
- package/build/factories/core/ignitor.js +37 -5
- package/build/factories/core/main.d.ts +0 -2
- package/build/factories/core/main.js +8 -1
- package/build/factories/core/test_utils.d.ts +3 -1
- package/build/factories/core/test_utils.js +11 -0
- package/build/factories/encryption.d.ts +0 -1
- package/build/factories/encryption.js +8 -0
- package/build/factories/events.d.ts +0 -1
- package/build/factories/events.js +8 -0
- package/build/factories/hash.d.ts +0 -1
- package/build/factories/hash.js +8 -0
- package/build/factories/http.d.ts +0 -1
- package/build/factories/http.js +8 -0
- package/build/factories/logger.d.ts +0 -1
- package/build/factories/logger.js +8 -0
- package/build/factories/stubs.d.ts +12 -3
- package/build/factories/stubs.js +23 -1
- package/build/index.d.ts +15 -141
- package/build/index.js +18 -1
- package/build/modules/ace/codemods.d.ts +59 -0
- package/build/modules/ace/codemods.js +133 -0
- package/build/modules/ace/commands.d.ts +48 -1
- package/build/modules/ace/commands.js +56 -4
- package/build/modules/ace/create_kernel.d.ts +9 -1
- package/build/modules/ace/create_kernel.js +32 -1
- package/build/modules/ace/kernel.d.ts +4 -1
- package/build/modules/ace/kernel.js +12 -0
- package/build/modules/ace/main.d.ts +0 -1
- package/build/modules/ace/main.js +8 -0
- package/build/modules/ace/shell.d.ts +8 -1
- package/build/modules/ace/shell.js +21 -0
- package/build/modules/app.d.ts +0 -1
- package/build/modules/app.js +8 -0
- package/build/modules/bodyparser/bodyparser_middleware.d.ts +4 -1
- package/build/modules/bodyparser/bodyparser_middleware.js +12 -0
- package/build/modules/bodyparser/main.d.ts +0 -1
- package/build/modules/bodyparser/main.js +8 -0
- package/build/modules/config.d.ts +0 -1
- package/build/modules/config.js +8 -0
- package/build/modules/container.d.ts +0 -1
- package/build/modules/container.js +8 -0
- package/build/modules/encryption.d.ts +0 -1
- package/build/modules/encryption.js +8 -0
- package/build/modules/env/editor.d.ts +1 -0
- package/{modules/config.ts → build/modules/env/editor.js} +1 -2
- package/{modules/env.ts → build/modules/env/main.js} +1 -2
- package/build/modules/events.d.ts +0 -1
- package/build/modules/events.js +8 -0
- package/build/modules/hash/define_config.d.ts +31 -12
- package/build/modules/hash/define_config.js +68 -10
- package/build/modules/hash/drivers/argon.d.ts +1 -0
- package/{factories/hash.ts → build/modules/hash/drivers/argon.js} +1 -2
- package/build/modules/hash/drivers/bcrypt.d.ts +1 -0
- package/{factories/events.ts → build/modules/hash/drivers/bcrypt.js} +1 -2
- package/build/modules/hash/drivers/scrypt.d.ts +1 -0
- package/{legacy/validator.ts → build/modules/hash/drivers/scrypt.js} +1 -2
- package/build/modules/hash/main.d.ts +1 -3
- package/build/modules/hash/main.js +9 -2
- package/build/modules/hash/phc_formatter.d.ts +1 -0
- package/{factories/logger.ts → build/modules/hash/phc_formatter.js} +1 -2
- package/build/modules/http/main.d.ts +7 -0
- package/build/modules/http/main.js +15 -0
- package/build/modules/http/request_validator.d.ts +34 -0
- package/build/modules/http/request_validator.js +66 -0
- package/build/modules/logger.d.ts +0 -1
- package/build/modules/logger.js +8 -0
- package/build/modules/repl.d.ts +1 -0
- package/{modules/container.ts → build/modules/repl.js} +1 -2
- package/build/providers/app_provider.d.ts +44 -2
- package/build/providers/app_provider.js +78 -5
- package/build/providers/edge_provider.d.ts +31 -0
- package/build/providers/edge_provider.js +69 -0
- package/build/providers/hash_provider.d.ts +13 -2
- package/build/providers/hash_provider.js +32 -8
- package/build/providers/repl_provider.d.ts +13 -0
- package/build/providers/repl_provider.js +98 -0
- package/build/providers/vinejs_provider.d.ts +33 -0
- package/build/providers/vinejs_provider.js +84 -0
- package/build/services/ace.d.ts +0 -1
- package/build/services/ace.js +15 -0
- package/build/services/app.d.ts +8 -1
- package/build/services/app.js +16 -0
- package/build/services/config.d.ts +0 -1
- package/build/services/config.js +11 -0
- package/build/services/emitter.d.ts +0 -1
- package/build/services/emitter.js +12 -0
- package/build/services/encryption.d.ts +0 -1
- package/build/services/encryption.js +12 -0
- package/build/services/hash.d.ts +0 -1
- package/build/services/hash.js +12 -0
- package/build/services/logger.d.ts +0 -1
- package/build/services/logger.js +12 -0
- package/build/services/repl.d.ts +3 -0
- package/build/services/repl.js +18 -0
- package/build/services/router.d.ts +0 -1
- package/build/services/router.js +12 -0
- package/build/services/server.d.ts +0 -1
- package/build/services/server.js +12 -0
- package/build/services/test_utils.d.ts +0 -1
- package/build/services/test_utils.js +15 -0
- package/build/src/cli_formatters/routes_list.d.ts +24 -2
- package/build/src/cli_formatters/routes_list.js +118 -0
- package/build/src/config_provider.d.ts +9 -0
- package/build/src/config_provider.js +26 -0
- package/build/src/debug.d.ts +0 -1
- package/build/src/debug.js +8 -0
- package/build/src/exceptions.d.ts +1 -0
- package/{factories/bodyparser.ts → build/src/exceptions.js} +1 -2
- package/build/src/helpers/is.d.ts +0 -1
- package/build/src/helpers/is.js +8 -0
- package/build/src/helpers/main.d.ts +1 -2
- package/build/src/helpers/main.js +9 -1
- package/build/src/helpers/parse_binding_reference.d.ts +40 -1
- package/build/src/helpers/parse_binding_reference.js +60 -0
- package/build/src/helpers/string.d.ts +24 -1
- package/build/src/helpers/string.js +11 -0
- package/build/src/helpers/types.d.ts +114 -17
- package/build/src/helpers/types.js +13 -0
- package/build/src/ignitor/ace.d.ts +12 -1
- package/build/src/ignitor/ace.js +50 -1
- package/build/src/ignitor/http.d.ts +7 -1
- package/build/src/ignitor/http.js +67 -0
- package/build/src/ignitor/main.d.ts +28 -1
- package/build/src/ignitor/main.js +56 -0
- package/build/src/ignitor/test.d.ts +10 -1
- package/build/src/ignitor/test.js +25 -0
- package/build/src/internal_helpers.d.ts +12 -6
- package/build/src/internal_helpers.js +35 -7
- package/build/src/test_utils/http.d.ts +8 -1
- package/build/src/test_utils/http.js +19 -0
- package/build/src/test_utils/main.d.ts +20 -3
- package/build/src/test_utils/main.js +27 -1
- package/build/src/types.d.ts +69 -11
- package/build/src/types.js +8 -0
- package/build/stubs/{index.d.ts → main.d.ts} +0 -1
- package/{factories/app.ts → build/stubs/main.js} +2 -2
- package/build/stubs/make/command/main.stub +6 -4
- package/build/stubs/make/controller/api.stub +6 -4
- package/build/stubs/make/controller/main.stub +6 -4
- package/build/stubs/make/controller/resource.stub +6 -4
- package/build/stubs/make/event/main.stub +5 -3
- package/build/stubs/make/exception/main.stub +12 -0
- package/build/stubs/make/listener/for_event.stub +6 -4
- package/build/stubs/make/listener/main.stub +5 -3
- package/build/stubs/make/middleware/main.stub +7 -5
- package/build/stubs/make/preload_file/main.stub +5 -3
- package/build/stubs/make/provider/main.stub +6 -4
- package/build/stubs/make/service/main.stub +5 -3
- package/build/stubs/make/test/main.stub +5 -3
- package/build/stubs/make/validator/main.stub +7 -0
- package/build/stubs/make/view/main.stub +6 -0
- package/build/toolkit/commands/index_commands.d.ts +4 -1
- package/build/toolkit/commands/index_commands.js +14 -7
- package/build/toolkit/main.d.ts +0 -1
- package/build/toolkit/main.js +11 -0
- package/build/types/ace.d.ts +0 -1
- package/build/types/ace.js +8 -0
- package/build/types/app.d.ts +0 -1
- package/build/types/app.js +8 -0
- package/build/types/bodyparser.d.ts +0 -1
- package/build/types/bodyparser.js +8 -0
- package/build/types/container.d.ts +0 -1
- package/build/types/container.js +8 -0
- package/build/types/encryption.d.ts +0 -1
- package/build/types/encryption.js +8 -0
- package/build/types/events.d.ts +0 -1
- package/build/types/events.js +8 -0
- package/build/types/hash.d.ts +0 -1
- package/build/types/hash.js +8 -0
- package/build/types/http.d.ts +7 -1
- package/build/types/http.js +8 -0
- package/build/types/logger.d.ts +0 -1
- package/build/types/logger.js +8 -0
- package/build/types/repl.d.ts +1 -0
- package/{modules/bodyparser/main.ts → build/types/repl.js} +1 -2
- package/package.json +93 -137
- package/build/commands/build.d.ts.map +0 -1
- package/build/commands/configure.d.ts.map +0 -1
- package/build/commands/eject.d.ts.map +0 -1
- package/build/commands/generate_key.d.ts.map +0 -1
- package/build/commands/inspect_rcfile.d.ts.map +0 -1
- package/build/commands/list/routes.d.ts.map +0 -1
- package/build/commands/make/_base.d.ts +0 -28
- package/build/commands/make/_base.d.ts.map +0 -1
- package/build/commands/make/_base.js +0 -28
- package/build/commands/make/command.d.ts.map +0 -1
- package/build/commands/make/controller.d.ts.map +0 -1
- package/build/commands/make/event.d.ts.map +0 -1
- package/build/commands/make/listener.d.ts.map +0 -1
- package/build/commands/make/middleware.d.ts.map +0 -1
- package/build/commands/make/prldfile.d.ts +0 -9
- package/build/commands/make/prldfile.d.ts.map +0 -1
- package/build/commands/make/prldfile.js +0 -28
- package/build/commands/make/provider.d.ts.map +0 -1
- package/build/commands/make/service.d.ts.map +0 -1
- package/build/commands/make/test.d.ts.map +0 -1
- package/build/commands/serve.d.ts.map +0 -1
- package/build/commands/test.d.ts.map +0 -1
- package/build/factories/app.d.ts.map +0 -1
- package/build/factories/bodyparser.d.ts.map +0 -1
- package/build/factories/core/ace.d.ts.map +0 -1
- package/build/factories/core/ignitor.d.ts.map +0 -1
- package/build/factories/core/main.d.ts.map +0 -1
- package/build/factories/core/test_utils.d.ts.map +0 -1
- package/build/factories/encryption.d.ts.map +0 -1
- package/build/factories/events.d.ts.map +0 -1
- package/build/factories/hash.d.ts.map +0 -1
- package/build/factories/http.d.ts.map +0 -1
- package/build/factories/logger.d.ts.map +0 -1
- package/build/factories/stubs.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/legacy/validator.d.ts +0 -2
- package/build/legacy/validator.d.ts.map +0 -1
- package/build/legacy/validator.js +0 -1
- package/build/modules/ace/commands.d.ts.map +0 -1
- package/build/modules/ace/create_kernel.d.ts.map +0 -1
- package/build/modules/ace/kernel.d.ts.map +0 -1
- package/build/modules/ace/main.d.ts.map +0 -1
- package/build/modules/ace/shell.d.ts.map +0 -1
- package/build/modules/app.d.ts.map +0 -1
- package/build/modules/bodyparser/bodyparser_middleware.d.ts.map +0 -1
- package/build/modules/bodyparser/main.d.ts.map +0 -1
- package/build/modules/config.d.ts.map +0 -1
- package/build/modules/container.d.ts.map +0 -1
- package/build/modules/encryption.d.ts.map +0 -1
- package/build/modules/env.d.ts +0 -2
- package/build/modules/env.d.ts.map +0 -1
- package/build/modules/events.d.ts.map +0 -1
- package/build/modules/hash/define_config.d.ts.map +0 -1
- package/build/modules/hash/drivers_collection.d.ts +0 -9
- package/build/modules/hash/drivers_collection.d.ts.map +0 -1
- package/build/modules/hash/drivers_collection.js +0 -16
- package/build/modules/hash/main.d.ts.map +0 -1
- package/build/modules/http.d.ts +0 -2
- package/build/modules/http.d.ts.map +0 -1
- package/build/modules/http.js +0 -1
- package/build/modules/logger.d.ts.map +0 -1
- package/build/providers/app_provider.d.ts.map +0 -1
- package/build/providers/hash_provider.d.ts.map +0 -1
- package/build/providers/http_provider.d.ts +0 -10
- package/build/providers/http_provider.d.ts.map +0 -1
- package/build/providers/http_provider.js +0 -36
- package/build/services/ace.d.ts.map +0 -1
- package/build/services/app.d.ts.map +0 -1
- package/build/services/config.d.ts.map +0 -1
- package/build/services/emitter.d.ts.map +0 -1
- package/build/services/encryption.d.ts.map +0 -1
- package/build/services/hash.d.ts.map +0 -1
- package/build/services/logger.d.ts.map +0 -1
- package/build/services/router.d.ts.map +0 -1
- package/build/services/server.d.ts.map +0 -1
- package/build/services/test_utils.d.ts.map +0 -1
- package/build/src/cli_formatters/routes_list.d.ts.map +0 -1
- package/build/src/debug.d.ts.map +0 -1
- package/build/src/helpers/is.d.ts.map +0 -1
- package/build/src/helpers/main.d.ts.map +0 -1
- package/build/src/helpers/parse_binding_reference.d.ts.map +0 -1
- package/build/src/helpers/string.d.ts.map +0 -1
- package/build/src/helpers/types.d.ts.map +0 -1
- package/build/src/ignitor/ace.d.ts.map +0 -1
- package/build/src/ignitor/http.d.ts.map +0 -1
- package/build/src/ignitor/main.d.ts.map +0 -1
- package/build/src/ignitor/test.d.ts.map +0 -1
- package/build/src/internal_helpers.d.ts.map +0 -1
- package/build/src/test_utils/http.d.ts.map +0 -1
- package/build/src/test_utils/main.d.ts.map +0 -1
- package/build/src/types.d.ts.map +0 -1
- package/build/stubs/index.d.ts.map +0 -1
- package/build/stubs/index.js +0 -2
- package/build/toolkit/commands/index_commands.d.ts.map +0 -1
- package/build/toolkit/main.d.ts.map +0 -1
- package/build/types/ace.d.ts.map +0 -1
- package/build/types/app.d.ts.map +0 -1
- package/build/types/bodyparser.d.ts.map +0 -1
- package/build/types/container.d.ts.map +0 -1
- package/build/types/encryption.d.ts.map +0 -1
- package/build/types/events.d.ts.map +0 -1
- package/build/types/hash.d.ts.map +0 -1
- package/build/types/http.d.ts.map +0 -1
- package/build/types/logger.d.ts.map +0 -1
- package/commands/build.ts +0 -122
- package/commands/configure.ts +0 -179
- package/commands/eject.ts +0 -39
- package/commands/generate_key.ts +0 -53
- package/commands/inspect_rcfile.ts +0 -23
- package/commands/list/routes.ts +0 -121
- package/commands/make/_base.ts +0 -55
- package/commands/make/command.ts +0 -33
- package/commands/make/controller.ts +0 -77
- package/commands/make/event.ts +0 -33
- package/commands/make/listener.ts +0 -63
- package/commands/make/middleware.ts +0 -34
- package/commands/make/prldfile.ts +0 -40
- package/commands/make/provider.ts +0 -40
- package/commands/make/service.ts +0 -33
- package/commands/make/test.ts +0 -115
- package/commands/serve.ts +0 -146
- package/commands/test.ts +0 -189
- package/factories/core/ace.ts +0 -38
- package/factories/core/ignitor.ts +0 -132
- package/factories/core/main.ts +0 -13
- package/factories/core/test_utils.ts +0 -34
- package/factories/encryption.ts +0 -10
- package/factories/http.ts +0 -10
- package/factories/stubs.ts +0 -53
- package/index.ts +0 -39
- package/modules/ace/commands.ts +0 -152
- package/modules/ace/create_kernel.ts +0 -73
- package/modules/ace/kernel.ts +0 -28
- package/modules/ace/main.ts +0 -22
- package/modules/ace/shell.ts +0 -49
- package/modules/app.ts +0 -10
- package/modules/bodyparser/bodyparser_middleware.ts +0 -16
- package/modules/encryption.ts +0 -10
- package/modules/events.ts +0 -10
- package/modules/hash/define_config.ts +0 -64
- package/modules/hash/drivers_collection.ts +0 -61
- package/modules/hash/main.ts +0 -12
- package/modules/http.ts +0 -10
- package/modules/logger.ts +0 -10
- package/providers/app_provider.ts +0 -125
- package/providers/hash_provider.ts +0 -58
- package/providers/http_provider.ts +0 -66
- package/services/ace.ts +0 -26
- package/services/app.ts +0 -26
- package/services/config.ts +0 -22
- package/services/emitter.ts +0 -23
- package/services/encryption.ts +0 -23
- package/services/hash.ts +0 -23
- package/services/logger.ts +0 -23
- package/services/router.ts +0 -23
- package/services/server.ts +0 -23
- package/services/test_utils.ts +0 -26
- package/src/cli_formatters/routes_list.ts +0 -480
- package/src/debug.ts +0 -12
- package/src/helpers/is.ts +0 -11
- package/src/helpers/main.ts +0 -13
- package/src/helpers/parse_binding_reference.ts +0 -93
- package/src/helpers/string.ts +0 -89
- package/src/helpers/types.ts +0 -46
- package/src/ignitor/ace.ts +0 -90
- package/src/ignitor/http.ts +0 -167
- package/src/ignitor/main.ts +0 -118
- package/src/ignitor/test.ts +0 -51
- package/src/internal_helpers.ts +0 -59
- package/src/test_utils/http.ts +0 -79
- package/src/test_utils/main.ts +0 -69
- package/src/types.ts +0 -136
- package/types/ace.ts +0 -15
- package/types/app.ts +0 -10
- package/types/bodyparser.ts +0 -10
- package/types/container.ts +0 -10
- package/types/encryption.ts +0 -10
- package/types/events.ts +0 -10
- package/types/hash.ts +0 -10
- package/types/http.ts +0 -10
- package/types/logger.ts +0 -10
- /package/build/modules/{env.js → env/main.d.ts} +0 -0
package/build/toolkit/main.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
* @adonisjs/core
|
|
4
|
+
*
|
|
5
|
+
* (c) AdonisJS
|
|
6
|
+
*
|
|
7
|
+
* For the full copyright and license information, please view the LICENSE
|
|
8
|
+
* file that was distributed with this source code.
|
|
9
|
+
*/
|
|
2
10
|
import IndexCommand from './commands/index_commands.js';
|
|
3
11
|
import { Kernel, ListLoader, HelpCommand } from '@adonisjs/ace';
|
|
4
12
|
const kernel = Kernel.create();
|
|
@@ -7,6 +15,9 @@ kernel.defineFlag('help', {
|
|
|
7
15
|
type: 'boolean',
|
|
8
16
|
description: HelpCommand.description,
|
|
9
17
|
});
|
|
18
|
+
/**
|
|
19
|
+
* Flag listener to display the help
|
|
20
|
+
*/
|
|
10
21
|
kernel.on('help', async (command, $kernel, parsed) => {
|
|
11
22
|
parsed.args.unshift(command.commandName);
|
|
12
23
|
const help = new HelpCommand($kernel, parsed, kernel.ui, kernel.prompt);
|
package/build/types/ace.d.ts
CHANGED
package/build/types/ace.js
CHANGED
package/build/types/app.d.ts
CHANGED
package/build/types/app.js
CHANGED
package/build/types/container.js
CHANGED
package/build/types/events.d.ts
CHANGED
package/build/types/events.js
CHANGED
package/build/types/hash.d.ts
CHANGED
package/build/types/hash.js
CHANGED
package/build/types/http.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export * from '@adonisjs/http-server/types';
|
|
2
|
-
|
|
2
|
+
import type { ValidationOptions } from '@vinejs/vine/types';
|
|
3
|
+
/**
|
|
4
|
+
* Validation options accepted by the "request.validateUsing" method
|
|
5
|
+
*/
|
|
6
|
+
export type RequestValidationOptions<MetaData extends undefined | Record<string, any>> = ValidationOptions<MetaData> & {
|
|
7
|
+
data?: any;
|
|
8
|
+
};
|
package/build/types/http.js
CHANGED
package/build/types/logger.d.ts
CHANGED
package/build/types/logger.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@adonisjs/repl/types';
|
package/package.json
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
|
-
"version": "6.1.5-3",
|
|
4
3
|
"description": "Core of AdonisJS",
|
|
4
|
+
"version": "6.1.5-31",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18.16.0"
|
|
7
|
+
},
|
|
5
8
|
"main": "build/index.js",
|
|
6
9
|
"type": "module",
|
|
7
10
|
"files": [
|
|
8
|
-
"modules",
|
|
9
|
-
"commands",
|
|
10
|
-
"legacy",
|
|
11
|
-
"providers",
|
|
12
|
-
"services",
|
|
13
|
-
"factories",
|
|
14
|
-
"types",
|
|
15
|
-
"src",
|
|
16
|
-
"index.ts",
|
|
17
11
|
"build/modules",
|
|
18
12
|
"build/commands",
|
|
19
|
-
"build/legacy",
|
|
20
13
|
"build/providers",
|
|
21
14
|
"build/services",
|
|
22
15
|
"build/factories",
|
|
@@ -25,7 +18,6 @@
|
|
|
25
18
|
"build/src",
|
|
26
19
|
"build/stubs",
|
|
27
20
|
"build/index.d.ts",
|
|
28
|
-
"build/index.d.ts.map",
|
|
29
21
|
"build/index.js"
|
|
30
22
|
],
|
|
31
23
|
"bin": {
|
|
@@ -36,55 +28,34 @@
|
|
|
36
28
|
"./commands": "./build/commands/main.js",
|
|
37
29
|
"./commands/*": "./build/commands/*.js",
|
|
38
30
|
"./factories": "./build/factories/core/main.js",
|
|
39
|
-
"./factories
|
|
40
|
-
"./factories/bodyparser": "./build/factories/bodyparser.js",
|
|
41
|
-
"./factories/encryption": "./build/factories/encryption.js",
|
|
42
|
-
"./factories/events": "./build/factories/events.js",
|
|
43
|
-
"./factories/hash": "./build/factories/hash.js",
|
|
44
|
-
"./factories/http": "./build/factories/http.js",
|
|
45
|
-
"./factories/logger": "./build/factories/logger.js",
|
|
31
|
+
"./factories/*": "./build/factories/*.js",
|
|
46
32
|
"./types": "./build/src/types.js",
|
|
47
|
-
"./types
|
|
48
|
-
"./
|
|
49
|
-
"./
|
|
50
|
-
"./types/container": "./build/types/container.js",
|
|
51
|
-
"./types/encryption": "./build/types/encryption.js",
|
|
52
|
-
"./types/events": "./build/types/events.js",
|
|
53
|
-
"./types/hash": "./build/types/hash.js",
|
|
54
|
-
"./types/http": "./build/types/http.js",
|
|
55
|
-
"./types/logger": "./build/types/logger.js",
|
|
56
|
-
"./services/ace": "./build/services/ace.js",
|
|
57
|
-
"./services/app": "./build/services/app.js",
|
|
58
|
-
"./services/config": "./build/services/config.js",
|
|
59
|
-
"./services/emitter": "./build/services/emitter.js",
|
|
60
|
-
"./services/encryption": "./build/services/encryption.js",
|
|
61
|
-
"./services/hash": "./build/services/hash.js",
|
|
62
|
-
"./services/logger": "./build/services/logger.js",
|
|
63
|
-
"./services/router": "./build/services/router.js",
|
|
64
|
-
"./services/server": "./build/services/server.js",
|
|
65
|
-
"./services/test_utils": "./build/services/test_utils.js",
|
|
66
|
-
"./providers/app_provider": "./build/providers/app_provider.js",
|
|
67
|
-
"./providers/hash_provider": "./build/providers/hash_provider.js",
|
|
68
|
-
"./providers/http_provider": "./build/providers/http_provider.js",
|
|
69
|
-
"./legacy/validator": "./build/legacy/validator.js",
|
|
33
|
+
"./types/*": "./build/types/*.js",
|
|
34
|
+
"./services/*": "./build/services/*.js",
|
|
35
|
+
"./providers/*": "./build/providers/*.js",
|
|
70
36
|
"./helpers": "./build/src/helpers/main.js",
|
|
71
|
-
"./helpers
|
|
72
|
-
"./helpers/types": "./build/src/helpers/types.js",
|
|
73
|
-
"./helpers/string": "./build/src/helpers/string.js",
|
|
74
|
-
"./ace/shell": "./build/modules/ace/shell.js",
|
|
37
|
+
"./helpers/*": "./build/src/helpers/*.js",
|
|
75
38
|
"./ace": "./build/modules/ace/main.js",
|
|
39
|
+
"./ace/shell": "./build/modules/ace/shell.js",
|
|
76
40
|
"./bodyparser": "./build/modules/bodyparser/main.js",
|
|
77
41
|
"./bodyparser_middleware": "./build/modules/bodyparser/bodyparser_middleware.js",
|
|
78
42
|
"./hash": "./build/modules/hash/main.js",
|
|
43
|
+
"./hash/phc_formatter": "./build/modules/hash/phc_formatter.js",
|
|
44
|
+
"./hash/drivers/argon": "./build/modules/hash/drivers/argon.js",
|
|
45
|
+
"./hash/drivers/bcrypt": "./build/modules/hash/drivers/bcrypt.js",
|
|
46
|
+
"./hash/drivers/scrypt": "./build/modules/hash/drivers/scrypt.js",
|
|
79
47
|
"./app": "./build/modules/app.js",
|
|
80
48
|
"./config": "./build/modules/config.js",
|
|
81
49
|
"./container": "./build/modules/container.js",
|
|
82
50
|
"./encryption": "./build/modules/encryption.js",
|
|
83
|
-
"./env": "./build/modules/env.js",
|
|
51
|
+
"./env": "./build/modules/env/main.js",
|
|
52
|
+
"./env/editor": "./build/modules/env/editor.js",
|
|
84
53
|
"./events": "./build/modules/events.js",
|
|
85
|
-
"./http": "./build/modules/http.js",
|
|
54
|
+
"./http": "./build/modules/http/main.js",
|
|
86
55
|
"./logger": "./build/modules/logger.js",
|
|
87
|
-
"./
|
|
56
|
+
"./repl": "./build/modules/repl.js",
|
|
57
|
+
"./package.json": "./package.json",
|
|
58
|
+
"./exceptions": "./build/src/exceptions.js"
|
|
88
59
|
},
|
|
89
60
|
"scripts": {
|
|
90
61
|
"pretest": "npm run lint",
|
|
@@ -99,83 +70,82 @@
|
|
|
99
70
|
"version": "npm run build",
|
|
100
71
|
"prepublishOnly": "npm run build",
|
|
101
72
|
"lint": "eslint . --ext=.ts",
|
|
73
|
+
"typecheck": "tsc --noEmit",
|
|
102
74
|
"format": "prettier --write .",
|
|
103
75
|
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/core",
|
|
104
|
-
"quick:test": "node --loader=ts-node/esm --experimental-import-meta-resolve bin/test.ts",
|
|
76
|
+
"quick:test": "node --loader=ts-node/esm --enable-source-maps --experimental-import-meta-resolve bin/test.ts --force-exit",
|
|
105
77
|
"index:commands": "node --loader=ts-node/esm toolkit/main.js index build/commands"
|
|
106
78
|
},
|
|
107
|
-
"keywords": [
|
|
108
|
-
"adonisjs",
|
|
109
|
-
"framework",
|
|
110
|
-
"mvc"
|
|
111
|
-
],
|
|
112
|
-
"author": "virk,adonisjs",
|
|
113
|
-
"license": "MIT",
|
|
114
79
|
"devDependencies": {
|
|
115
|
-
"@adonisjs/assembler": "^6.1.3-
|
|
116
|
-
"@
|
|
117
|
-
"@
|
|
118
|
-
"@
|
|
119
|
-
"@
|
|
120
|
-
"@
|
|
121
|
-
"@japa/
|
|
122
|
-
"@japa/
|
|
123
|
-
"@japa/
|
|
124
|
-
"@
|
|
125
|
-
"@
|
|
80
|
+
"@adonisjs/assembler": "^6.1.3-25",
|
|
81
|
+
"@adonisjs/eslint-config": "^1.1.8",
|
|
82
|
+
"@adonisjs/prettier-config": "^1.1.8",
|
|
83
|
+
"@adonisjs/tsconfig": "^1.1.8",
|
|
84
|
+
"@commitlint/cli": "^18.0.0",
|
|
85
|
+
"@commitlint/config-conventional": "^18.0.0",
|
|
86
|
+
"@japa/assert": "^2.0.0",
|
|
87
|
+
"@japa/expect-type": "^2.0.0",
|
|
88
|
+
"@japa/file-system": "^2.0.0",
|
|
89
|
+
"@japa/runner": "^3.0.4",
|
|
90
|
+
"@swc/core": "1.3.82",
|
|
91
|
+
"@types/node": "^20.8.8",
|
|
126
92
|
"@types/pretty-hrtime": "^1.0.1",
|
|
127
|
-
"@types/sinon": "^10.0.
|
|
128
|
-
"@types/supertest": "^2.0.
|
|
129
|
-
"@types/test-console": "^2.0.
|
|
130
|
-
"
|
|
93
|
+
"@types/sinon": "^10.0.20",
|
|
94
|
+
"@types/supertest": "^2.0.15",
|
|
95
|
+
"@types/test-console": "^2.0.1",
|
|
96
|
+
"@vinejs/vine": "^1.6.0",
|
|
97
|
+
"argon2": "^0.31.1",
|
|
98
|
+
"bcrypt": "^5.1.1",
|
|
99
|
+
"c8": "^8.0.1",
|
|
131
100
|
"copyfiles": "^2.4.1",
|
|
132
101
|
"cross-env": "^7.0.3",
|
|
133
|
-
"del-cli": "^5.
|
|
134
|
-
"
|
|
135
|
-
"eslint
|
|
136
|
-
"
|
|
137
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
138
|
-
"get-port": "^6.1.2",
|
|
102
|
+
"del-cli": "^5.1.0",
|
|
103
|
+
"edge.js": "^6.0.0-10",
|
|
104
|
+
"eslint": "^8.52.0",
|
|
105
|
+
"get-port": "^7.0.0",
|
|
139
106
|
"github-label-sync": "^2.3.1",
|
|
140
107
|
"husky": "^8.0.3",
|
|
141
|
-
"np": "^
|
|
142
|
-
"prettier": "^
|
|
143
|
-
"sinon": "^
|
|
108
|
+
"np": "^8.0.4",
|
|
109
|
+
"prettier": "^3.0.3",
|
|
110
|
+
"sinon": "^17.0.0",
|
|
144
111
|
"supertest": "^6.3.3",
|
|
145
112
|
"test-console": "^2.0.0",
|
|
146
113
|
"ts-node": "^10.9.1",
|
|
147
|
-
"typescript": "^5.
|
|
114
|
+
"typescript": "^5.2.2"
|
|
148
115
|
},
|
|
149
116
|
"dependencies": {
|
|
150
|
-
"@adonisjs/ace": "^12.3.
|
|
151
|
-
"@adonisjs/application": "^
|
|
152
|
-
"@adonisjs/bodyparser": "^
|
|
153
|
-
"@adonisjs/config": "^4.2.1-
|
|
154
|
-
"@adonisjs/encryption": "^5.1.2-
|
|
155
|
-
"@adonisjs/env": "^4.2.0-
|
|
156
|
-
"@adonisjs/events": "^
|
|
157
|
-
"@adonisjs/fold": "^9.9.3-
|
|
158
|
-
"@adonisjs/hash": "^8.3.1-
|
|
159
|
-
"@adonisjs/http-server": "^
|
|
160
|
-
"@adonisjs/logger": "^5.4.2-
|
|
161
|
-
"@adonisjs/
|
|
162
|
-
"@
|
|
163
|
-
"@
|
|
164
|
-
"@poppinss/
|
|
165
|
-
"@
|
|
166
|
-
"@
|
|
167
|
-
"
|
|
117
|
+
"@adonisjs/ace": "^12.3.2-0",
|
|
118
|
+
"@adonisjs/application": "^8.0.0-0",
|
|
119
|
+
"@adonisjs/bodyparser": "^10.0.0-1",
|
|
120
|
+
"@adonisjs/config": "^4.2.1-5",
|
|
121
|
+
"@adonisjs/encryption": "^5.1.2-3",
|
|
122
|
+
"@adonisjs/env": "^4.2.0-6",
|
|
123
|
+
"@adonisjs/events": "^9.0.0-0",
|
|
124
|
+
"@adonisjs/fold": "^9.9.3-10",
|
|
125
|
+
"@adonisjs/hash": "^8.3.1-7",
|
|
126
|
+
"@adonisjs/http-server": "^7.0.0-1",
|
|
127
|
+
"@adonisjs/logger": "^5.4.2-6",
|
|
128
|
+
"@adonisjs/repl": "^4.0.0-8",
|
|
129
|
+
"@antfu/install-pkg": "^0.1.1",
|
|
130
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
131
|
+
"@poppinss/macroable": "^1.0.0-7",
|
|
132
|
+
"@poppinss/utils": "^6.5.0-3",
|
|
133
|
+
"@sindresorhus/is": "^6.0.1",
|
|
134
|
+
"@types/he": "^1.2.1",
|
|
135
|
+
"execa": "^8.0.1",
|
|
168
136
|
"he": "^1.2.0",
|
|
169
|
-
"parse-imports": "^1.1.
|
|
137
|
+
"parse-imports": "^1.1.2",
|
|
170
138
|
"pretty-hrtime": "^1.0.3",
|
|
171
|
-
"string-width": "^
|
|
172
|
-
"youch": "^3.2
|
|
173
|
-
"youch-terminal": "^2.2.
|
|
139
|
+
"string-width": "^6.1.0",
|
|
140
|
+
"youch": "^3.3.2",
|
|
141
|
+
"youch-terminal": "^2.2.3"
|
|
174
142
|
},
|
|
175
143
|
"peerDependencies": {
|
|
176
|
-
"@adonisjs/assembler": "^6.1.3-
|
|
177
|
-
"
|
|
178
|
-
"
|
|
144
|
+
"@adonisjs/assembler": "^6.1.3-25",
|
|
145
|
+
"@vinejs/vine": "^1.6.0",
|
|
146
|
+
"argon2": "^0.31.1",
|
|
147
|
+
"bcrypt": "^5.1.1",
|
|
148
|
+
"edge.js": "^6.0.0-10"
|
|
179
149
|
},
|
|
180
150
|
"peerDependenciesMeta": {
|
|
181
151
|
"argon2": {
|
|
@@ -186,8 +156,17 @@
|
|
|
186
156
|
},
|
|
187
157
|
"@adonisjs/assembler": {
|
|
188
158
|
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"@vinejs/vine": {
|
|
161
|
+
"optional": true
|
|
162
|
+
},
|
|
163
|
+
"edge.js": {
|
|
164
|
+
"optional": true
|
|
189
165
|
}
|
|
190
166
|
},
|
|
167
|
+
"author": "virk,adonisjs",
|
|
168
|
+
"license": "MIT",
|
|
169
|
+
"homepage": "https://github.com/adonisjs/core#readme",
|
|
191
170
|
"repository": {
|
|
192
171
|
"type": "git",
|
|
193
172
|
"url": "git+https://github.com/adonisjs/core.git"
|
|
@@ -195,38 +174,15 @@
|
|
|
195
174
|
"bugs": {
|
|
196
175
|
"url": "https://github.com/adonisjs/core/issues"
|
|
197
176
|
},
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
"prettier"
|
|
203
|
-
],
|
|
204
|
-
"plugins": [
|
|
205
|
-
"prettier"
|
|
206
|
-
],
|
|
207
|
-
"rules": {
|
|
208
|
-
"prettier/prettier": [
|
|
209
|
-
"error",
|
|
210
|
-
{
|
|
211
|
-
"endOfLine": "auto"
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"eslintIgnore": [
|
|
217
|
-
"build",
|
|
218
|
-
"backup"
|
|
177
|
+
"keywords": [
|
|
178
|
+
"adonisjs",
|
|
179
|
+
"framework",
|
|
180
|
+
"mvc"
|
|
219
181
|
],
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"semi": false,
|
|
223
|
-
"singleQuote": true,
|
|
224
|
-
"useTabs": false,
|
|
225
|
-
"quoteProps": "consistent",
|
|
226
|
-
"bracketSpacing": true,
|
|
227
|
-
"arrowParens": "always",
|
|
228
|
-
"printWidth": 100
|
|
182
|
+
"eslintConfig": {
|
|
183
|
+
"extends": "@adonisjs/eslint-config/package"
|
|
229
184
|
},
|
|
185
|
+
"prettier": "@adonisjs/prettier-config",
|
|
230
186
|
"commitlint": {
|
|
231
187
|
"extends": [
|
|
232
188
|
"@commitlint/config-conventional"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../commands/build.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAQ3D,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SACmF;IAErG,MAAM,CAAC,IAAI,WAWV;IAGO,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,cAAc,CAAC,EAAE,OAAO,CAAA;IAKxB,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;IAOxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CA6CV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../commands/configure.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAQ,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAK1D,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;;IAChD,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,WAAW,SAA0C;IAGpD,IAAI,EAAE,MAAM,CAAA;IAMZ,SAAS,EAAE,MAAM,CAAA;IAqCnB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAqB5D,kBAAkB,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAmBlF,YAAY,CAChB,QAAQ,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAUtF,qBAAqB,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,EAAE;IA+BtE,GAAG;CA+BV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eject.d.ts","sourceRoot":"","sources":["../../commands/eject.ts"],"names":[],"mappings":"AAUA,OAAO,EAAQ,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAMjE,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SAAqD;IAG/D,QAAQ,EAAE,MAAM,CAAA;IAMhB,GAAG,EAAE,MAAM,CAAA;IAEb,GAAG;CASV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate_key.d.ts","sourceRoot":"","sources":["../../commands/generate_key.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAM3D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAA6C;IAKvD,IAAI,EAAE,OAAO,CAAA;IAKb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAqBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspect_rcfile.d.ts","sourceRoot":"","sources":["../../commands/inspect_rcfile.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAKpD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,MAAM,CAAC,WAAW,SAAmB;IACrC,MAAM,CAAC,WAAW,SAAgD;IAE5D,GAAG;CAGV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../commands/list/routes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAQ,WAAW,EAAS,MAAM,2BAA2B,CAAA;AAMpE,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IACjD,MAAM,CAAC,WAAW,SAAgB;IAClC,MAAM,CAAC,WAAW,SAC4E;IAM9F,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;IAWO,KAAK,EAAE,MAAM,CAAA;IASb,UAAU,EAAE,MAAM,EAAE,CAAA;IASpB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAM1B,IAAI,EAAE,OAAO,CAAA;IAMb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAkDV"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from '../../modules/ace/main.js';
|
|
2
|
-
import type { CommandOptions } from '../../types/ace.js';
|
|
3
|
-
export default abstract class extends BaseCommand {
|
|
4
|
-
static options: CommandOptions;
|
|
5
|
-
protected generate(stubPath: string, stubState: Record<string, any>): Promise<{
|
|
6
|
-
relativeFileName: string;
|
|
7
|
-
contents: any;
|
|
8
|
-
destination: any;
|
|
9
|
-
attributes: any;
|
|
10
|
-
status: "skipped";
|
|
11
|
-
skipReason: string;
|
|
12
|
-
} | {
|
|
13
|
-
relativeFileName: string;
|
|
14
|
-
contents: any;
|
|
15
|
-
destination: any;
|
|
16
|
-
attributes: any;
|
|
17
|
-
status: "created";
|
|
18
|
-
skipReason: null;
|
|
19
|
-
} | {
|
|
20
|
-
relativeFileName: string;
|
|
21
|
-
contents: any;
|
|
22
|
-
destination: any;
|
|
23
|
-
attributes: any;
|
|
24
|
-
status: "force_created";
|
|
25
|
-
skipReason: null;
|
|
26
|
-
}>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=_base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_base.d.ts","sourceRoot":"","sources":["../../../commands/make/_base.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAKxD,MAAM,CAAC,OAAO,CAAC,QAAQ,MAAO,SAAQ,WAAW;IAI/C,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;cAKe,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;CA0B1E"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { slash } from '@poppinss/utils';
|
|
2
|
-
import { stubsRoot } from '../../stubs/index.js';
|
|
3
|
-
import { BaseCommand } from '../../modules/ace/main.js';
|
|
4
|
-
class default_1 extends BaseCommand {
|
|
5
|
-
static options = {
|
|
6
|
-
allowUnknownFlags: true,
|
|
7
|
-
};
|
|
8
|
-
async generate(stubPath, stubState) {
|
|
9
|
-
const stub = await this.app.stubs.build(stubPath, { source: stubsRoot });
|
|
10
|
-
const output = await stub.generate(Object.assign({
|
|
11
|
-
flags: this.parsed.flags,
|
|
12
|
-
}, stubState));
|
|
13
|
-
const entityFileName = slash(this.app.relativePath(output.destination));
|
|
14
|
-
if (output.status === 'skipped') {
|
|
15
|
-
this.logger.action(`create ${entityFileName}`).skipped(output.skipReason);
|
|
16
|
-
return {
|
|
17
|
-
...output,
|
|
18
|
-
relativeFileName: entityFileName,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
this.logger.action(`create ${entityFileName}`).succeeded();
|
|
22
|
-
return {
|
|
23
|
-
...output,
|
|
24
|
-
relativeFileName: entityFileName,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export default default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../commands/make/command.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAAmC;IAG7C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAE/C,GAAG;CAKV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../commands/make/controller.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAuC;IAGjD,IAAI,EAAE,MAAM,CAAA;IAMZ,QAAQ,EAAE,OAAO,CAAA;IAMjB,QAAQ,EAAE,OAAO,CAAA;IAMjB,GAAG,EAAE,OAAO,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAKlD,OAAO;IAuBP,GAAG;CAKV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../commands/make/event.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,MAAM,CAAC,WAAW,SAAe;IACjC,MAAM,CAAC,WAAW,SAA6B;IAGvC,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAyB;IAE7C,GAAG;CAKV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listener.d.ts","sourceRoot":"","sources":["../../../commands/make/listener.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACnD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAsC;IAGhD,IAAI,EAAE,MAAM,CAAA;IAMZ,KAAK,EAAE,MAAM,CAAA;IAKrB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA4B;IAEtD,OAAO;IAMD,GAAG;CAsBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../commands/make/middleware.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAkC;IAG5C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAElD,GAAG;CAKV"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import BaseCommand from './_base.js';
|
|
2
|
-
export default class MakePreloadFile extends BaseCommand {
|
|
3
|
-
static commandName: string;
|
|
4
|
-
static description: string;
|
|
5
|
-
name: string;
|
|
6
|
-
protected stubPath: string;
|
|
7
|
-
run(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=prldfile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prldfile.d.ts","sourceRoot":"","sources":["../../../commands/make/prldfile.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAyD;IAGnE,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAgC;IAEpD,GAAG;CAYV"}
|