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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/build/commands/add.js +40 -110
  2. package/build/commands/build.js +51 -107
  3. package/build/commands/configure.js +82 -177
  4. package/build/commands/eject.js +17 -60
  5. package/build/commands/env/add.js +55 -134
  6. package/build/commands/generate_key.js +22 -66
  7. package/build/commands/inspect_rcfile.js +27 -55
  8. package/build/commands/list/routes.js +246 -116
  9. package/build/commands/make/command.js +15 -57
  10. package/build/commands/make/controller.js +43 -120
  11. package/build/commands/make/event.js +16 -62
  12. package/build/commands/make/exception.js +16 -62
  13. package/build/commands/make/listener.js +36 -93
  14. package/build/commands/make/middleware.js +41 -101
  15. package/build/commands/make/preload.js +47 -113
  16. package/build/commands/make/provider.js +47 -112
  17. package/build/commands/make/service.js +16 -55
  18. package/build/commands/make/test.js +47 -132
  19. package/build/commands/make/transformer.js +17 -64
  20. package/build/commands/make/validator.js +20 -80
  21. package/build/commands/make/view.js +15 -56
  22. package/build/commands/repl.js +17 -50
  23. package/build/commands/serve.js +80 -150
  24. package/build/commands/test.js +92 -202
  25. package/build/factories/app.js +2 -9
  26. package/build/factories/bodyparser.js +2 -9
  27. package/build/factories/core/ace.js +15 -46
  28. package/build/factories/core/ignitor.js +12 -180
  29. package/build/factories/core/main.js +22 -11
  30. package/build/factories/core/test_utils.js +19 -43
  31. package/build/factories/encryption.js +2 -9
  32. package/build/factories/events.js +2 -9
  33. package/build/factories/hash.js +2 -9
  34. package/build/factories/http.js +2 -9
  35. package/build/factories/logger.js +2 -9
  36. package/build/factories/stubs.js +28 -91
  37. package/build/index.js +13 -46
  38. package/build/modules/ace/codemods.js +222 -477
  39. package/build/modules/ace/main.js +2 -41
  40. package/build/modules/app.js +4 -26
  41. package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
  42. package/build/modules/bodyparser/main.js +4 -9
  43. package/build/modules/config.js +4 -26
  44. package/build/modules/container.js +4 -9
  45. package/build/modules/dumper/main.js +6 -32
  46. package/build/modules/dumper/plugins/edge.js +2 -62
  47. package/build/modules/encryption.js +4 -26
  48. package/build/modules/env/editor.js +2 -9
  49. package/build/modules/env/main.js +2 -28
  50. package/build/modules/events.js +4 -9
  51. package/build/modules/hash/drivers/argon.js +2 -9
  52. package/build/modules/hash/drivers/bcrypt.js +2 -20
  53. package/build/modules/hash/drivers/scrypt.js +2 -9
  54. package/build/modules/hash/main.js +6 -28
  55. package/build/modules/hash/phc_formatter.js +2 -9
  56. package/build/modules/health.js +2 -9
  57. package/build/modules/http/main.js +4 -15
  58. package/build/modules/http/url_builder_client.js +2 -9
  59. package/build/modules/logger.d.ts +30 -0
  60. package/build/modules/logger.js +4 -9
  61. package/build/modules/repl.js +4 -9
  62. package/build/modules/transformers/main.js +4 -9
  63. package/build/providers/app_provider.js +147 -359
  64. package/build/providers/edge_provider.js +97 -165
  65. package/build/providers/hash_provider.js +29 -91
  66. package/build/providers/repl_provider.js +61 -152
  67. package/build/providers/vinejs_provider.d.ts +1 -1
  68. package/build/providers/vinejs_provider.js +20 -66
  69. package/build/services/ace.js +2 -17
  70. package/build/services/app.js +2 -21
  71. package/build/services/config.js +2 -13
  72. package/build/services/dumper.js +5 -21
  73. package/build/services/emitter.js +2 -14
  74. package/build/services/encryption.js +2 -14
  75. package/build/services/hash.js +2 -14
  76. package/build/services/logger.js +2 -14
  77. package/build/services/repl.js +2 -14
  78. package/build/services/router.js +2 -14
  79. package/build/services/server.js +2 -14
  80. package/build/services/test_utils.js +2 -17
  81. package/build/services/url_builder.js +5 -17
  82. package/build/src/exceptions.js +2 -49
  83. package/build/src/helpers/assert.js +2 -55
  84. package/build/src/helpers/http.js +2 -28
  85. package/build/src/helpers/is.js +3 -31
  86. package/build/src/helpers/main.js +5 -52
  87. package/build/src/helpers/string.js +2 -78
  88. package/build/src/helpers/types.js +26 -135
  89. package/build/src/helpers/verification_token.js +2 -120
  90. package/build/src/test_utils/main.js +5 -77
  91. package/build/src/types.js +0 -8
  92. package/build/src/vine.js +2 -105
  93. package/build/types/ace.js +2 -9
  94. package/build/types/app.js +2 -9
  95. package/build/types/bodyparser.js +2 -9
  96. package/build/types/common.js +2 -9
  97. package/build/types/container.js +2 -9
  98. package/build/types/encryption.js +2 -9
  99. package/build/types/events.js +2 -9
  100. package/build/types/hash.js +2 -9
  101. package/build/types/health.js +2 -9
  102. package/build/types/helpers.js +0 -8
  103. package/build/types/http.js +2 -9
  104. package/build/types/logger.js +2 -9
  105. package/build/types/repl.js +2 -9
  106. package/build/types/transformers.js +2 -9
  107. package/package.json +76 -19
  108. package/build/modules/ace/commands.js +0 -157
  109. package/build/modules/ace/create_kernel.js +0 -91
  110. package/build/modules/ace/kernel.js +0 -40
  111. package/build/modules/dumper/define_config.js +0 -36
  112. package/build/modules/dumper/dumper.js +0 -266
  113. package/build/modules/dumper/errors.js +0 -119
  114. package/build/modules/hash/define_config.js +0 -125
  115. package/build/modules/http/request_validator.js +0 -100
  116. package/build/src/assembler_hooks/index_entities.js +0 -112
  117. package/build/src/cli_formatters/routes_list.js +0 -397
  118. package/build/src/config_provider.js +0 -71
  119. package/build/src/debug.js +0 -25
  120. package/build/src/ignitor/ace.js +0 -102
  121. package/build/src/ignitor/http.js +0 -159
  122. package/build/src/ignitor/main.js +0 -124
  123. package/build/src/ignitor/test.js +0 -66
  124. package/build/src/test_utils/http.js +0 -82
  125. package/build/src/utils.js +0 -114
  126. package/build/stubs/main.js +0 -9
  127. package/build/toolkit/commands/index_commands.js +0 -30
  128. package/build/toolkit/main.js +0 -27
@@ -1,66 +1,20 @@
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 { Vine } from '@vinejs/vine';
10
- import { Request, RequestValidator } from "../modules/http/main.js";
11
- import { VineMultipartFile } from "../src/vine.js";
12
- /**
13
- * The VineJS service provider integrates VineJS validation
14
- * library with AdonisJS application environment
15
- *
16
- * This provider sets up:
17
- * - File validation rule for multipart file uploads
18
- * - Request validation macro for easy validation in HTTP contexts
19
- * - Extension of VineJS with AdonisJS-specific validation features
20
- *
21
- * @example
22
- * const provider = new VineJSServiceProvider(app)
23
- * provider.boot()
24
- * // Now Request has validateUsing method
25
- */
26
- export default class VineJSServiceProvider {
27
- app;
28
- /**
29
- * VineJS service provider constructor
30
- *
31
- * Sets the usingVineJS flag to true to indicate VineJS is being used.
32
- *
33
- * @param app - The application service instance
34
- */
35
- constructor(app) {
36
- this.app = app;
37
- this.app.usingVineJS = true;
38
- }
39
- /**
40
- * Boot the VineJS service provider
41
- *
42
- * Extends VineJS with file validation macro and adds validateUsing
43
- * method to the Request class for easy validation in HTTP contexts.
44
- *
45
- * @example
46
- * provider.boot()
47
- * // Now vine.file() and request.validateUsing() are available
48
- */
49
- boot() {
50
- const experimentalFlags = this.app.experimentalFlags;
51
- /**
52
- * The file method is used to validate a field to be a valid
53
- * multipart file.
54
- */
55
- Vine.macro('file', function (options) {
56
- return new VineMultipartFile(options);
57
- });
58
- /**
59
- * The validate method can be used to validate the request
60
- * data for the current request using VineJS validators
61
- */
62
- Request.macro('validateUsing', function (...args) {
63
- return new RequestValidator(this.ctx, experimentalFlags).validateUsing(...args);
64
- });
65
- }
66
- }
1
+ import "../chunk-MjwdjG2f.js";
2
+ import { n as RequestValidator, t as main_exports } from "../main-CFmDHDls.js";
3
+ import { t as VineMultipartFile } from "../vine-Bt4ymkM0.js";
4
+ import { Vine } from "@vinejs/vine";
5
+ var VineJSServiceProvider = class {
6
+ constructor(app) {
7
+ this.app = app;
8
+ this.app.usingVineJS = true;
9
+ }
10
+ boot() {
11
+ const experimentalFlags = this.app.experimentalFlags;
12
+ Vine.macro("file", function(options) {
13
+ return new VineMultipartFile(options);
14
+ });
15
+ main_exports.HttpRequest.macro("validateUsing", function(...args) {
16
+ return new RequestValidator(this.ctx, experimentalFlags).validateUsing(...args);
17
+ });
18
+ }
19
+ };
20
+ export { VineJSServiceProvider 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 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
- ace = await app.container.make('ace');
4
+ ace = await app.container.make("ace");
20
5
  });
21
6
  export { ace as default };
@@ -1,21 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- 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 };
@@ -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
- config = app.config;
4
+ config = app.config;
16
5
  });
17
6
  export { config as default };
@@ -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
- dumper = await app.container.make('dumper');
4
+ dumper = await app.container.make("dumper");
17
5
  });
18
- /**
19
- * Dump a value and die. The dumped value will be displayed
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
- emitter = await app.container.make('emitter');
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
- encryption = await app.container.make('encryption');
4
+ encryption = await app.container.make("encryption");
17
5
  });
18
6
  export { encryption 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 hash;
11
- /**
12
- * Returns a singleton instance of the Hash manager from the
13
- * container
14
- */
15
3
  await app.booted(async () => {
16
- hash = await app.container.make('hash');
4
+ hash = await app.container.make("hash");
17
5
  });
18
6
  export { hash 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 logger;
11
- /**
12
- * Returns a singleton instance of the logger class
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- logger = await app.container.make('logger');
4
+ logger = await app.container.make("logger");
17
5
  });
18
6
  export { logger 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 repl;
11
- /**
12
- * Returns a singleton instance of the Repl class from
13
- * the container
14
- */
15
3
  await app.booted(async () => {
16
- repl = await app.container.make('repl');
4
+ repl = await app.container.make("repl");
17
5
  });
18
6
  export { repl 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 router;
11
- /**
12
- * Returns a singleton instance of the router class from
13
- * the container
14
- */
15
3
  await app.booted(async () => {
16
- router = await app.container.make('router');
4
+ router = await app.container.make("router");
17
5
  });
18
6
  export { router 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 server;
11
- /**
12
- * Returns a singleton instance of the HTTP server
13
- * from the container
14
- */
15
3
  await app.booted(async () => {
16
- server = await app.container.make('server');
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
- testUtils = await app.container.make('testUtils');
4
+ testUtils = await app.container.make("testUtils");
20
5
  });
21
6
  export { testUtils as default };
@@ -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
- const router = await app.container.make('router');
18
- urlFor = router.urlBuilder.urlFor;
19
- signedUrlFor = router.urlBuilder.signedUrlFor;
5
+ const router = await app.container.make("router");
6
+ urlFor = router.urlBuilder.urlFor;
7
+ signedUrlFor = router.urlBuilder.signedUrlFor;
20
8
  });
21
- export { urlFor, signedUrlFor };
9
+ export { signedUrlFor, urlFor };
@@ -1,49 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
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 { Exception, InvalidArgumentsException, RuntimeException, createError } from "@poppinss/utils/exception";
2
+ export { Exception, InvalidArgumentsException, RuntimeException, createError };
@@ -1,55 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
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 };
@@ -1,28 +1,2 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
10
- * HTTP helper utilities re-exported from @adonisjs/http-server. This module
11
- * provides a convenient entry point for accessing all HTTP-related utilities
12
- * including route helpers, middleware utilities, and request/response helpers.
13
- *
14
- * @example
15
- * // Import specific HTTP helpers
16
- * import { middlewareInfo, routeInfo } from '@adonisjs/core/helpers'
17
- *
18
- * const middleware = middlewareInfo('cors', CorsMiddleware)
19
- * const route = routeInfo('users.show', '/users/:id')
20
- *
21
- * @example
22
- * // Access all HTTP helpers
23
- * import * as httpHelpers from '@adonisjs/core/helpers/http'
24
- *
25
- * // Use any helper from the http-server package
26
- * const routeData = httpHelpers.routeInfo('api.posts', '/api/posts')
27
- */
28
- export * from '@adonisjs/http-server/helpers';
1
+ export * from "@adonisjs/http-server/helpers";
2
+ export {};
@@ -1,31 +1,3 @@
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 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 };
@@ -1,52 +1,5 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) AdonisJS
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
9
- /**
10
- * 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, defineStaticProperty } from '@poppinss/utils';
49
- /**
50
- * Verification token utility for creating secure tokens.
51
- */
52
- export { VerificationToken } from "./verification_token.js";
1
+ import { t as VerificationToken } from "../../verification_token-DXsW81rl.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 };