@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
package/build/services/ace.js
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let ace;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the ace kernel
|
|
13
|
-
* from the container.
|
|
14
|
-
*
|
|
15
|
-
* ace service is an instance of the "Kernel" class stored inside
|
|
16
|
-
* the "modules/ace/kernel.ts" file
|
|
17
|
-
*/
|
|
18
3
|
await app.booted(async () => {
|
|
19
|
-
|
|
4
|
+
ace = await app.container.make("ace");
|
|
20
5
|
});
|
|
21
6
|
export { ace as default };
|
package/build/services/app.js
CHANGED
|
@@ -1,21 +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
|
-
let app;
|
|
10
|
-
/**
|
|
11
|
-
* Set the application instance the app service should
|
|
12
|
-
* be using. Other services relies on the same app
|
|
13
|
-
* instance as well.
|
|
14
|
-
*
|
|
15
|
-
* app service is an instance of the "Application" exported from
|
|
16
|
-
* the "modules/app.ts" file.
|
|
17
|
-
*/
|
|
18
|
-
export function setApp(appService) {
|
|
19
|
-
app = appService;
|
|
20
|
-
}
|
|
21
|
-
export { app as default };
|
|
1
|
+
import { n as setApp, t as app } from "../app-B6oge7b3.js";
|
|
2
|
+
export { app as default, setApp };
|
package/build/services/config.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let config;
|
|
11
|
-
/**
|
|
12
|
-
* The config service uses the config instance from the app service
|
|
13
|
-
*/
|
|
14
3
|
await app.booted(() => {
|
|
15
|
-
|
|
4
|
+
config = app.config;
|
|
16
5
|
});
|
|
17
6
|
export { config as default };
|
package/build/services/dumper.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let dumper;
|
|
11
|
-
/**
|
|
12
|
-
* dumper service is an instance of the "Dumper" class stored inside
|
|
13
|
-
* the "modules/dumper/dumper.ts" file
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
dumper = await app.container.make("dumper");
|
|
17
5
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* using the HTML printer during an HTTP request or within
|
|
21
|
-
* the console otherwise.
|
|
22
|
-
*/
|
|
23
|
-
export const dd = (value) => {
|
|
24
|
-
dumper.dd(value, 2);
|
|
6
|
+
const dd = (value) => {
|
|
7
|
+
dumper.dd(value, 2);
|
|
25
8
|
};
|
|
9
|
+
export { dd };
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let emitter;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the emitter class
|
|
13
|
-
* from the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
emitter = await app.container.make("emitter");
|
|
17
5
|
});
|
|
18
6
|
export { emitter as default };
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let encryption;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the encryption class
|
|
13
|
-
* from the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
encryption = await app.container.make("encryption");
|
|
17
5
|
});
|
|
18
6
|
export { encryption as default };
|
package/build/services/hash.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let hash;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the Hash manager from the
|
|
13
|
-
* container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
hash = await app.container.make("hash");
|
|
17
5
|
});
|
|
18
6
|
export { hash as default };
|
package/build/services/logger.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let logger;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the logger class
|
|
13
|
-
* from the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
logger = await app.container.make("logger");
|
|
17
5
|
});
|
|
18
6
|
export { logger as default };
|
package/build/services/repl.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let repl;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the Repl class from
|
|
13
|
-
* the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
repl = await app.container.make("repl");
|
|
17
5
|
});
|
|
18
6
|
export { repl as default };
|
package/build/services/router.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let router;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the router class from
|
|
13
|
-
* the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
router = await app.container.make("router");
|
|
17
5
|
});
|
|
18
6
|
export { router as default };
|
package/build/services/server.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let server;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the HTTP server
|
|
13
|
-
* from the container
|
|
14
|
-
*/
|
|
15
3
|
await app.booted(async () => {
|
|
16
|
-
|
|
4
|
+
server = await app.container.make("server");
|
|
17
5
|
});
|
|
18
6
|
export { server as default };
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let testUtils;
|
|
11
|
-
/**
|
|
12
|
-
* Returns a singleton instance of the TestUtils class
|
|
13
|
-
* from the container.
|
|
14
|
-
*
|
|
15
|
-
* testUtils service is an instance of the "TestUtils" exported from
|
|
16
|
-
* the "src/test_utils/main.ts" file.
|
|
17
|
-
*/
|
|
18
3
|
await app.booted(async () => {
|
|
19
|
-
|
|
4
|
+
testUtils = await app.container.make("testUtils");
|
|
20
5
|
});
|
|
21
6
|
export { testUtils as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare let urlFor:
|
|
3
|
-
declare let signedUrlFor:
|
|
1
|
+
import type { UrlBuilderSignedUrlFor, UrlBuilderUrlFor } from '../src/types.ts';
|
|
2
|
+
declare let urlFor: UrlBuilderUrlFor;
|
|
3
|
+
declare let signedUrlFor: UrlBuilderSignedUrlFor;
|
|
4
4
|
export { urlFor, signedUrlFor };
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* @adonisjs/core
|
|
3
|
-
*
|
|
4
|
-
* (c) AdonisJS
|
|
5
|
-
*
|
|
6
|
-
* For the full copyright and license information, please view the LICENSE
|
|
7
|
-
* file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
import app from "./app.js";
|
|
1
|
+
import { t as app } from "../app-B6oge7b3.js";
|
|
10
2
|
let urlFor;
|
|
11
3
|
let signedUrlFor;
|
|
12
|
-
/**
|
|
13
|
-
* Returns a singleton instance of the router class from
|
|
14
|
-
* the container
|
|
15
|
-
*/
|
|
16
4
|
await app.booted(async () => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
const router = await app.container.make("router");
|
|
6
|
+
urlFor = router.urlBuilder.urlFor;
|
|
7
|
+
signedUrlFor = router.urlBuilder.signedUrlFor;
|
|
20
8
|
});
|
|
21
|
-
export {
|
|
9
|
+
export { signedUrlFor, urlFor };
|
|
@@ -33,5 +33,33 @@ import { type IndexEntitiesConfig } from '../types.ts';
|
|
|
33
33
|
* })
|
|
34
34
|
*/
|
|
35
35
|
export declare function indexEntities(entities?: IndexEntitiesConfig): {
|
|
36
|
-
run(_: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler,
|
|
36
|
+
run(_: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, __: import("@poppinss/hooks").default<{
|
|
37
|
+
init: [[parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, hooks: import("@poppinss/hooks").default</*elided*/ any>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator], [parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner | import("@adonisjs/assembler").Bundler, hooks: import("@poppinss/hooks").default</*elided*/ any>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator]];
|
|
38
|
+
fileChanged: [[relativePath: string, absolutePath: string, info: {
|
|
39
|
+
source: "hot-hook" | "watcher";
|
|
40
|
+
hotReloaded: boolean;
|
|
41
|
+
fullReload: boolean;
|
|
42
|
+
}, parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, info: {
|
|
43
|
+
source: "hot-hook" | "watcher";
|
|
44
|
+
hotReloaded: boolean;
|
|
45
|
+
fullReload: boolean;
|
|
46
|
+
}, parent: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
|
|
47
|
+
fileAdded: [[relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
|
|
48
|
+
fileRemoved: [[relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner], [relativePath: string, absolutePath: string, server: import("@adonisjs/assembler").DevServer | import("@adonisjs/assembler").TestRunner]];
|
|
49
|
+
devServerStarting: [[server: import("@adonisjs/assembler").DevServer], [server: import("@adonisjs/assembler").DevServer]];
|
|
50
|
+
devServerStarted: [[server: import("@adonisjs/assembler").DevServer, info: {
|
|
51
|
+
port: number;
|
|
52
|
+
host: string;
|
|
53
|
+
}, uiInstructions: import("@poppinss/cliui").Instructions], [server: import("@adonisjs/assembler").DevServer, info: {
|
|
54
|
+
port: number;
|
|
55
|
+
host: string;
|
|
56
|
+
}, uiInstructions: import("@poppinss/cliui").Instructions]];
|
|
57
|
+
buildStarting: [[server: import("@adonisjs/assembler").Bundler], [server: import("@adonisjs/assembler").Bundler]];
|
|
58
|
+
buildFinished: [[server: import("@adonisjs/assembler").Bundler, uiInstructions: import("@poppinss/cliui").Instructions], [server: import("@adonisjs/assembler").Bundler, uiInstructions: import("@poppinss/cliui").Instructions]];
|
|
59
|
+
testsStarting: [[server: import("@adonisjs/assembler").TestRunner], [server: import("@adonisjs/assembler").TestRunner]];
|
|
60
|
+
testsFinished: [[server: import("@adonisjs/assembler").TestRunner], [server: import("@adonisjs/assembler").TestRunner]];
|
|
61
|
+
routesCommitted: [[parent: import("@adonisjs/assembler").DevServer, routes: Record<string, import("@adonisjs/assembler/types").RoutesListItem[]>], [parent: import("@adonisjs/assembler").DevServer, routes: Record<string, import("@adonisjs/assembler/types").RoutesListItem[]>]];
|
|
62
|
+
routesScanning: [[parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner], [parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner]];
|
|
63
|
+
routesScanned: [[parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner], [parent: import("@adonisjs/assembler").DevServer, routesScanner: import("@adonisjs/assembler/routes_scanner").RoutesScanner]];
|
|
64
|
+
}>, indexGenerator: import("@adonisjs/assembler/index_generator").IndexGenerator): void;
|
|
37
65
|
};
|
package/build/src/debug.d.ts
CHANGED
package/build/src/exceptions.js
CHANGED
|
@@ -1,49 +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
|
-
* Core exception classes and utilities for AdonisJS. This module re-exports
|
|
11
|
-
* commonly used exception classes from @poppinss/utils for creating and
|
|
12
|
-
* handling errors in AdonisJS applications.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Creating a custom exception
|
|
16
|
-
* import { Exception } from '@adonisjs/core/exceptions'
|
|
17
|
-
*
|
|
18
|
-
* class ValidationException extends Exception {
|
|
19
|
-
* static status = 422
|
|
20
|
-
* static code = 'E_VALIDATION_FAILURE'
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Using createError to create custom error classes
|
|
25
|
-
* import { createError } from '@adonisjs/core/exceptions'
|
|
26
|
-
*
|
|
27
|
-
* const UserNotFound = createError('User not found', 'E_USER_NOT_FOUND', 404)
|
|
28
|
-
* throw new UserNotFound()
|
|
29
|
-
*/
|
|
30
|
-
export {
|
|
31
|
-
/**
|
|
32
|
-
* Base exception class for creating custom exceptions with status codes,
|
|
33
|
-
* error codes, and additional context.
|
|
34
|
-
*/
|
|
35
|
-
Exception,
|
|
36
|
-
/**
|
|
37
|
-
* Utility function to create custom error classes with predefined
|
|
38
|
-
* message, code, and status.
|
|
39
|
-
*/
|
|
40
|
-
createError,
|
|
41
|
-
/**
|
|
42
|
-
* Runtime exception class for errors that occur during application runtime.
|
|
43
|
-
*/
|
|
44
|
-
RuntimeException,
|
|
45
|
-
/**
|
|
46
|
-
* Exception class for invalid argument errors, typically used in function
|
|
47
|
-
* parameter validation.
|
|
48
|
-
*/
|
|
49
|
-
InvalidArgumentsException, } from '@poppinss/utils/exception';
|
|
1
|
+
import { i as createError, n as InvalidArgumentsException, r as RuntimeException, t as Exception } from "../exceptions-DNMesP42.js";
|
|
2
|
+
export { Exception, InvalidArgumentsException, RuntimeException, createError };
|
|
@@ -1,55 +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
|
-
* Assertion utilities for type-safe programming in AdonisJS. These functions
|
|
11
|
-
* provide runtime type assertions that help with TypeScript type narrowing
|
|
12
|
-
* and catching potential null/undefined issues early.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Type-safe null checking
|
|
16
|
-
* import { assertExists } from '@adonisjs/core/helpers'
|
|
17
|
-
*
|
|
18
|
-
* function processUser(user: User | null) {
|
|
19
|
-
* assertExists(user) // TypeScript now knows user is not null
|
|
20
|
-
* console.log(user.name) // Safe to access properties
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Exhaustiveness checking in switch statements
|
|
25
|
-
* import { assertUnreachable } from '@adonisjs/core/helpers'
|
|
26
|
-
*
|
|
27
|
-
* function handleStatus(status: 'pending' | 'completed') {
|
|
28
|
-
* switch (status) {
|
|
29
|
-
* case 'pending': return 'Processing...'
|
|
30
|
-
* case 'completed': return 'Done!'
|
|
31
|
-
* default: return assertUnreachable(status)
|
|
32
|
-
* }
|
|
33
|
-
* }
|
|
34
|
-
*/
|
|
35
|
-
export {
|
|
36
|
-
/**
|
|
37
|
-
* Assert that a value exists (is not null or undefined).
|
|
38
|
-
* Throws an error if the value is null or undefined.
|
|
39
|
-
*/
|
|
40
|
-
assertExists,
|
|
41
|
-
/**
|
|
42
|
-
* Assert that a value is not null.
|
|
43
|
-
* Throws an error if the value is null.
|
|
44
|
-
*/
|
|
45
|
-
assertNotNull,
|
|
46
|
-
/**
|
|
47
|
-
* Assert that a value is defined (is not undefined).
|
|
48
|
-
* Throws an error if the value is undefined.
|
|
49
|
-
*/
|
|
50
|
-
assertIsDefined,
|
|
51
|
-
/**
|
|
52
|
-
* Assert that code should never reach this point.
|
|
53
|
-
* Useful for exhaustiveness checking in switch statements.
|
|
54
|
-
*/
|
|
55
|
-
assertUnreachable, } from '@poppinss/utils/assert';
|
|
1
|
+
import { assertExists, assertIsDefined, assertNotNull, assertUnreachable } from "@poppinss/utils/assert";
|
|
2
|
+
export { assertExists, assertIsDefined, assertNotNull, assertUnreachable };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP helper utilities re-exported from @adonisjs/http-server. This module
|
|
3
|
+
* provides a convenient entry point for accessing all HTTP-related utilities
|
|
4
|
+
* including route helpers, middleware utilities, and request/response helpers.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // Import specific HTTP helpers
|
|
8
|
+
* import { middlewareInfo, routeInfo } from '@adonisjs/core/helpers'
|
|
9
|
+
*
|
|
10
|
+
* const middleware = middlewareInfo('cors', CorsMiddleware)
|
|
11
|
+
* const route = routeInfo('users.show', '/users/:id')
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Access all HTTP helpers
|
|
15
|
+
* import * as httpHelpers from '@adonisjs/core/helpers/http'
|
|
16
|
+
*
|
|
17
|
+
* // Use any helper from the http-server package
|
|
18
|
+
* const routeData = httpHelpers.routeInfo('api.posts', '/api/posts')
|
|
19
|
+
*/
|
|
20
|
+
export * from '@adonisjs/http-server/helpers';
|
package/build/src/helpers/is.js
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
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 is from '@sindresorhus/is';
|
|
10
|
-
/**
|
|
11
|
-
* Type checking utilities re-exported from @sindresorhus/is. Provides
|
|
12
|
-
* a comprehensive set of type-checking functions with TypeScript type guards.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // Basic type checking
|
|
16
|
-
* import { is } from '@adonisjs/core/helpers'
|
|
17
|
-
*
|
|
18
|
-
* if (is.string(value)) {
|
|
19
|
-
* // TypeScript knows value is string
|
|
20
|
-
* console.log(value.toUpperCase())
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Complex type checking
|
|
25
|
-
* import { is } from '@adonisjs/core/helpers'
|
|
26
|
-
*
|
|
27
|
-
* is.array(value) && is.nonEmptyArray(value)
|
|
28
|
-
* is.plainObject(obj) && is.hasProperty(obj, 'name')
|
|
29
|
-
* is.number(num) && is.integer(num) && is.positive(num)
|
|
30
|
-
*/
|
|
31
|
-
export default is;
|
|
1
|
+
import is from "@sindresorhus/is";
|
|
2
|
+
var is_default = is;
|
|
3
|
+
export { is_default as default };
|
|
@@ -37,12 +37,8 @@ export { default as base64 } from '@poppinss/utils/base64';
|
|
|
37
37
|
* Core utilities including function composition, secret management,
|
|
38
38
|
* safe equality comparison, and message building.
|
|
39
39
|
*/
|
|
40
|
-
export { compose, Secret, safeEqual, MessageBuilder } from '@poppinss/utils';
|
|
40
|
+
export { compose, Secret, safeEqual, MessageBuilder, defineStaticProperty } from '@poppinss/utils';
|
|
41
41
|
/**
|
|
42
42
|
* Verification token utility for creating secure tokens.
|
|
43
43
|
*/
|
|
44
44
|
export { VerificationToken } from './verification_token.ts';
|
|
45
|
-
/**
|
|
46
|
-
* HTTP server helper functions for middleware and route information.
|
|
47
|
-
*/
|
|
48
|
-
export { middlewareInfo, routeInfo } from '@adonisjs/http-server/helpers';
|
|
@@ -1,56 +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
|
-
/**
|
|
10
|
-
* Core helper utilities for AdonisJS applications. This module provides
|
|
11
|
-
* a collection of commonly used utilities including file system operations,
|
|
12
|
-
* cryptographic functions, composition utilities, and HTTP server helpers.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* // File system utilities
|
|
16
|
-
* import { fsReadAll, fsImportAll } from '@adonisjs/core/helpers'
|
|
17
|
-
*
|
|
18
|
-
* const files = await fsReadAll(url('app/controllers'))
|
|
19
|
-
* const modules = await fsImportAll(url('app/events'))
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // Cryptographic utilities
|
|
23
|
-
* import { base64, safeEqual, Secret } from '@adonisjs/core/helpers'
|
|
24
|
-
*
|
|
25
|
-
* const encoded = base64.encode('sensitive data')
|
|
26
|
-
* const isEqual = safeEqual(hash1, hash2)
|
|
27
|
-
* const secret = new Secret('my-secret-key')
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // HTTP server helpers
|
|
31
|
-
* import { middlewareInfo, routeInfo } from '@adonisjs/core/helpers'
|
|
32
|
-
*
|
|
33
|
-
* const middleware = middlewareInfo('cors', () => {})
|
|
34
|
-
* const route = routeInfo('users.show', '/users/:id')
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* File system utilities for reading and importing files recursively.
|
|
38
|
-
*/
|
|
39
|
-
export { fsReadAll, fsImportAll } from '@poppinss/utils/fs';
|
|
40
|
-
/**
|
|
41
|
-
* Base64 encoding and decoding utilities.
|
|
42
|
-
*/
|
|
43
|
-
export { default as base64 } from '@poppinss/utils/base64';
|
|
44
|
-
/**
|
|
45
|
-
* Core utilities including function composition, secret management,
|
|
46
|
-
* safe equality comparison, and message building.
|
|
47
|
-
*/
|
|
48
|
-
export { compose, Secret, safeEqual, MessageBuilder } from '@poppinss/utils';
|
|
49
|
-
/**
|
|
50
|
-
* Verification token utility for creating secure tokens.
|
|
51
|
-
*/
|
|
52
|
-
export { VerificationToken } from "./verification_token.js";
|
|
53
|
-
/**
|
|
54
|
-
* HTTP server helper functions for middleware and route information.
|
|
55
|
-
*/
|
|
56
|
-
export { middlewareInfo, routeInfo } from '@adonisjs/http-server/helpers';
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-DrdoU4RH.js";
|
|
2
|
+
import { fsImportAll, fsReadAll } from "@poppinss/utils/fs";
|
|
3
|
+
import base64 from "@poppinss/utils/base64";
|
|
4
|
+
import { MessageBuilder, Secret, compose, defineStaticProperty, safeEqual } from "@poppinss/utils";
|
|
5
|
+
export { MessageBuilder, Secret, VerificationToken, base64, compose, defineStaticProperty, fsImportAll, fsReadAll, safeEqual };
|