@adonisjs/core 7.0.0-next.1 → 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 (145) 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 -156
  24. package/build/commands/test.js +92 -208
  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.d.ts +109 -14
  39. package/build/modules/ace/codemods.js +222 -374
  40. package/build/modules/ace/main.d.ts +30 -0
  41. package/build/modules/ace/main.js +2 -11
  42. package/build/modules/app.d.ts +17 -0
  43. package/build/modules/app.js +4 -9
  44. package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
  45. package/build/modules/bodyparser/main.js +4 -9
  46. package/build/modules/config.d.ts +17 -0
  47. package/build/modules/config.js +4 -9
  48. package/build/modules/container.js +4 -9
  49. package/build/modules/dumper/dumper.d.ts +5 -0
  50. package/build/modules/dumper/main.d.ts +21 -0
  51. package/build/modules/dumper/main.js +6 -11
  52. package/build/modules/dumper/plugins/edge.js +2 -62
  53. package/build/modules/encryption.d.ts +17 -0
  54. package/build/modules/encryption.js +4 -9
  55. package/build/modules/env/editor.js +2 -9
  56. package/build/modules/env/main.d.ts +19 -0
  57. package/build/modules/env/main.js +2 -9
  58. package/build/modules/events.js +4 -9
  59. package/build/modules/hash/drivers/argon.js +2 -9
  60. package/build/modules/hash/drivers/bcrypt.d.ts +11 -0
  61. package/build/modules/hash/drivers/bcrypt.js +2 -9
  62. package/build/modules/hash/drivers/scrypt.js +2 -9
  63. package/build/modules/hash/main.d.ts +18 -0
  64. package/build/modules/hash/main.js +6 -10
  65. package/build/modules/hash/phc_formatter.js +2 -9
  66. package/build/modules/health.js +2 -9
  67. package/build/modules/http/main.js +4 -15
  68. package/build/modules/http/url_builder_client.d.ts +1 -0
  69. package/build/modules/http/url_builder_client.js +2 -0
  70. package/build/modules/logger.d.ts +30 -0
  71. package/build/modules/logger.js +4 -9
  72. package/build/modules/repl.js +4 -9
  73. package/build/modules/transformers/main.js +4 -9
  74. package/build/providers/app_provider.d.ts +9 -21
  75. package/build/providers/app_provider.js +147 -363
  76. package/build/providers/edge_provider.js +97 -104
  77. package/build/providers/hash_provider.js +29 -91
  78. package/build/providers/repl_provider.js +61 -152
  79. package/build/providers/vinejs_provider.d.ts +1 -1
  80. package/build/providers/vinejs_provider.js +20 -66
  81. package/build/services/ace.js +2 -17
  82. package/build/services/app.js +2 -21
  83. package/build/services/config.js +2 -13
  84. package/build/services/dumper.js +5 -21
  85. package/build/services/emitter.js +2 -14
  86. package/build/services/encryption.js +2 -14
  87. package/build/services/hash.js +2 -14
  88. package/build/services/logger.js +2 -14
  89. package/build/services/repl.js +2 -14
  90. package/build/services/router.js +2 -14
  91. package/build/services/server.js +2 -14
  92. package/build/services/test_utils.js +2 -17
  93. package/build/services/url_builder.js +5 -17
  94. package/build/src/exceptions.js +2 -49
  95. package/build/src/helpers/assert.js +2 -55
  96. package/build/src/helpers/http.d.ts +20 -0
  97. package/build/src/helpers/http.js +2 -0
  98. package/build/src/helpers/is.js +3 -31
  99. package/build/src/helpers/main.d.ts +1 -5
  100. package/build/src/helpers/main.js +5 -56
  101. package/build/src/helpers/string.js +2 -60
  102. package/build/src/helpers/types.js +26 -135
  103. package/build/src/helpers/verification_token.js +2 -120
  104. package/build/src/test_utils/main.js +5 -77
  105. package/build/src/types.d.ts +1 -0
  106. package/build/src/types.js +0 -8
  107. package/build/src/utils.d.ts +1 -1
  108. package/build/src/vine.js +2 -97
  109. package/build/types/ace.js +2 -9
  110. package/build/types/app.js +2 -9
  111. package/build/types/bodyparser.js +2 -9
  112. package/build/types/common.js +2 -9
  113. package/build/types/container.js +2 -9
  114. package/build/types/encryption.js +2 -9
  115. package/build/types/events.js +2 -9
  116. package/build/types/hash.js +2 -9
  117. package/build/types/health.js +2 -9
  118. package/build/types/helpers.d.ts +20 -0
  119. package/build/types/helpers.js +0 -8
  120. package/build/types/http.js +2 -9
  121. package/build/types/logger.js +2 -9
  122. package/build/types/repl.js +2 -9
  123. package/build/types/transformers.js +2 -9
  124. package/package.json +88 -30
  125. package/build/modules/ace/commands.js +0 -157
  126. package/build/modules/ace/create_kernel.js +0 -91
  127. package/build/modules/ace/kernel.js +0 -40
  128. package/build/modules/dumper/define_config.js +0 -36
  129. package/build/modules/dumper/dumper.js +0 -256
  130. package/build/modules/dumper/errors.js +0 -119
  131. package/build/modules/hash/define_config.js +0 -125
  132. package/build/modules/http/request_validator.js +0 -100
  133. package/build/src/assembler_hooks/index_entities.js +0 -106
  134. package/build/src/cli_formatters/routes_list.js +0 -381
  135. package/build/src/config_provider.js +0 -71
  136. package/build/src/debug.js +0 -25
  137. package/build/src/ignitor/ace.js +0 -102
  138. package/build/src/ignitor/http.js +0 -146
  139. package/build/src/ignitor/main.js +0 -124
  140. package/build/src/ignitor/test.js +0 -66
  141. package/build/src/test_utils/http.js +0 -82
  142. package/build/src/utils.js +0 -104
  143. package/build/stubs/main.js +0 -9
  144. package/build/toolkit/commands/index_commands.js +0 -30
  145. package/build/toolkit/main.js +0 -27
@@ -1,136 +1,27 @@
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
- * @deprecated
12
- * Use "is" helpers instead. The types helpers exist for backward compatibility.
13
- *
14
- * @example
15
- * // Instead of using types helpers (deprecated)
16
- * types.isString('hello')
17
- * types.isNumber(42)
18
- *
19
- * @example
20
- * // Use the new "is" helpers
21
- * import { is } from '@adonisjs/core/helpers'
22
- * is.string('hello')
23
- * is.number(42)
24
- */
25
- const types = {
26
- /**
27
- * Direct reference to the is utility for type checking lookups.
28
- * @deprecated Use the is helpers directly instead
29
- */
30
- lookup: is,
31
- /**
32
- * Check if value is null.
33
- * @deprecated Use is.null instead
34
- */
35
- isNull: is.null,
36
- /**
37
- * Check if value is a boolean.
38
- * @deprecated Use is.boolean instead
39
- */
40
- isBoolean: is.boolean,
41
- /**
42
- * Check if value is a Buffer.
43
- * @deprecated Use is.buffer instead
44
- */
45
- isBuffer: is.buffer,
46
- /**
47
- * Check if value is a number.
48
- * @deprecated Use is.number instead
49
- */
50
- isNumber: is.number,
51
- /**
52
- * Check if value is a string.
53
- * @deprecated Use is.string instead
54
- */
55
- isString: is.string,
56
- /**
57
- * Check if value is an arguments object.
58
- * @deprecated Use is.arguments instead
59
- */
60
- isArguments: is.arguments,
61
- /**
62
- * Check if value is an object.
63
- * @deprecated Use is.object instead
64
- */
65
- isObject: is.object,
66
- /**
67
- * Check if value is a Date.
68
- * @deprecated Use is.date instead
69
- */
70
- isDate: is.date,
71
- /**
72
- * Check if value is an array.
73
- * @deprecated Use is.array instead
74
- */
75
- isArray: is.array,
76
- /**
77
- * Check if value is a regular expression.
78
- * @deprecated Use is.regExp instead
79
- */
80
- isRegexp: is.regExp,
81
- /**
82
- * Check if value is an error object.
83
- * @deprecated Use is.error instead
84
- */
85
- isError: is.error,
86
- /**
87
- * Check if value is a function.
88
- * @deprecated Use is.function instead
89
- */
90
- isFunction: is.function,
91
- /**
92
- * Check if value is a class.
93
- * @deprecated Use is.class instead
94
- */
95
- isClass: is.class,
96
- /**
97
- * Check if value is an integer.
98
- * @deprecated Use is.integer instead
99
- */
100
- isInteger: is.integer,
101
- /**
102
- * Check if a number is a float (has decimal places).
103
- *
104
- * @param value - The number to check
105
- * @deprecated Use is.decimal or custom logic instead
106
- *
107
- * @example
108
- * types.isFloat(3.14) // true
109
- * types.isFloat(42) // false
110
- */
111
- isFloat(value) {
112
- return value !== (value | 0);
113
- },
114
- /**
115
- * Check if a value represents a decimal number with specific decimal places.
116
- *
117
- * @param value - The value to check (string or number)
118
- * @param options - Options for decimal validation
119
- * @param options.decimalPlaces - Regex pattern for allowed decimal places (default: '1,')
120
- * @deprecated Use a validation library like Vine or custom logic instead
121
- *
122
- * @example
123
- * types.isDecimal('3.14') // true
124
- * types.isDecimal('42.0') // true
125
- * types.isDecimal('42') // false
126
- * types.isDecimal('3.141', { decimalPlaces: '1,3' }) // true
127
- */
128
- isDecimal(value, options) {
129
- if (typeof value === 'number') {
130
- value = value.toString();
131
- }
132
- const decimalPlaces = (options && options.decimalPlaces) || '1,';
133
- return new RegExp(`^[-+]?([0-9]+)?(\\.[0-9]{${decimalPlaces}})$`).test(value);
134
- },
1
+ import is from "@sindresorhus/is";
2
+ var types_default = {
3
+ lookup: is,
4
+ isNull: is.null,
5
+ isBoolean: is.boolean,
6
+ isBuffer: is.buffer,
7
+ isNumber: is.number,
8
+ isString: is.string,
9
+ isArguments: is.arguments,
10
+ isObject: is.object,
11
+ isDate: is.date,
12
+ isArray: is.array,
13
+ isRegexp: is.regExp,
14
+ isError: is.error,
15
+ isFunction: is.function,
16
+ isClass: is.class,
17
+ isInteger: is.integer,
18
+ isFloat(value) {
19
+ return value !== (value | 0);
20
+ },
21
+ isDecimal(value, options) {
22
+ if (typeof value === "number") value = value.toString();
23
+ const decimalPlaces = options && options.decimalPlaces || "1,";
24
+ return (/* @__PURE__ */ new RegExp(`^[-+]?([0-9]+)?(\\.[0-9]{${decimalPlaces}})$`)).test(value);
25
+ }
135
26
  };
136
- export default types;
27
+ export { types_default as default };
@@ -1,120 +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
- import { createHash } from 'node:crypto';
10
- import string from '@poppinss/utils/string';
11
- import { safeEqual, Secret } from '@poppinss/utils';
12
- import base64 from '@poppinss/utils/base64';
13
- /**
14
- * Verification token class can be used to create tokens publicly
15
- * shareable tokens while storing the token hash within the database.
16
- *
17
- * This class is used by the Auth and the Persona packages to manage
18
- * tokens for authentication and authorization purposes.
19
- *
20
- * @example
21
- * class UserToken extends VerificationToken {
22
- * constructor(user: User, secret: Secret<string>) {
23
- * super()
24
- * this.tokenableId = user.id
25
- * this.computeValue(secret)
26
- * }
27
- * }
28
- */
29
- export class VerificationToken {
30
- /**
31
- * Decodes a publicly shared token and return the series
32
- * and the token value from it.
33
- *
34
- * Returns null when unable to decode the token because of
35
- * invalid format or encoding.
36
- *
37
- * @param value - The token string to decode
38
- */
39
- static decode(value) {
40
- /**
41
- * Ensure value is a string and starts with the prefix.
42
- */
43
- if (typeof value !== 'string') {
44
- return null;
45
- }
46
- /**
47
- * Remove prefix from the rest of the token.
48
- */
49
- if (!value) {
50
- return null;
51
- }
52
- const [identifier, ...tokenValue] = value.split('.');
53
- if (!identifier || tokenValue.length === 0) {
54
- return null;
55
- }
56
- const decodedIdentifier = base64.urlDecode(identifier);
57
- const decodedSecret = base64.urlDecode(tokenValue.join('.'));
58
- if (!decodedIdentifier || !decodedSecret) {
59
- return null;
60
- }
61
- return {
62
- identifier: decodedIdentifier,
63
- secret: new Secret(decodedSecret),
64
- };
65
- }
66
- /**
67
- * Creates a transient token that can be shared with the persistence
68
- * layer.
69
- *
70
- * @param userId - The user ID for whom the token is being created
71
- * @param size - The size of the random token seed
72
- * @param expiresIn - Token expiration time (string like '2h' or number in seconds)
73
- */
74
- static createTransientToken(userId, size, expiresIn) {
75
- const expiresAt = new Date();
76
- expiresAt.setSeconds(expiresAt.getSeconds() + string.seconds.parse(expiresIn));
77
- return {
78
- userId,
79
- expiresAt,
80
- ...this.seed(size),
81
- };
82
- }
83
- /**
84
- * Creates a secret opaque token and its hash.
85
- *
86
- * @param size - The length of the random token to generate
87
- */
88
- static seed(size) {
89
- const seed = string.random(size);
90
- const secret = new Secret(seed);
91
- const hash = createHash('sha256').update(secret.release()).digest('hex');
92
- return { secret, hash };
93
- }
94
- /**
95
- * Compute the value property using the given secret. You can
96
- * get secret via the static "createTransientToken" method.
97
- *
98
- * @param secret - The secret value to compute the public token value from
99
- */
100
- computeValue(secret) {
101
- this.value = new Secret(`${base64.urlEncode(String(this.identifier))}.${base64.urlEncode(secret.release())}`);
102
- }
103
- /**
104
- * Check if the token has been expired. Verifies
105
- * the "expiresAt" timestamp with the current
106
- * date.
107
- */
108
- isExpired() {
109
- return this.expiresAt < new Date();
110
- }
111
- /**
112
- * Verifies the value of a token against the pre-defined hash
113
- *
114
- * @param secret - The secret to verify against the stored hash
115
- */
116
- verify(secret) {
117
- const newHash = createHash('sha256').update(secret.release()).digest('hex');
118
- return safeEqual(this.hash, newHash);
119
- }
120
- }
1
+ import { t as VerificationToken } from "../../verification_token-DXsW81rl.js";
2
+ export { VerificationToken };
@@ -1,77 +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
- import { Socket } from 'node:net';
10
- import Macroable from '@poppinss/macroable';
11
- import { IncomingMessage, ServerResponse } from 'node:http';
12
- import { HttpServerUtils } from "./http.js";
13
- import { CookieClient } from "../../modules/http/main.js";
14
- /**
15
- * Test utils has a collection of helper methods to make testing
16
- * experience great for AdonisJS applications. It provides utilities
17
- * for HTTP testing, context creation, and cookie handling.
18
- *
19
- * @example
20
- * const testUtils = new TestUtils(app)
21
- * await testUtils.boot()
22
- *
23
- * const ctx = await testUtils.createHttpContext()
24
- * const httpUtils = testUtils.httpServer()
25
- */
26
- export class TestUtils extends Macroable {
27
- app;
28
- /**
29
- * Flag to track if test utils have been booted
30
- */
31
- #booted = false;
32
- /**
33
- * Check if utils have been booted
34
- */
35
- get isBooted() {
36
- return this.#booted;
37
- }
38
- /**
39
- * Creates a new TestUtils instance
40
- *
41
- * @param app - The application service instance
42
- */
43
- constructor(app) {
44
- super();
45
- this.app = app;
46
- }
47
- /**
48
- * Boot test utils. It requires the app to be booted
49
- * and container to have all the bindings
50
- */
51
- async boot() {
52
- if (!this.isBooted) {
53
- this.#booted = true;
54
- this.cookies = new CookieClient(await this.app.container.make('encryption'));
55
- }
56
- }
57
- /**
58
- * Returns an instance of the HTTP server testing
59
- * utils
60
- */
61
- httpServer() {
62
- return new HttpServerUtils(this);
63
- }
64
- /**
65
- * Create an instance of HTTP context for testing
66
- *
67
- * @param options - Options for creating HTTP context with custom req/res objects
68
- */
69
- async createHttpContext(options = {}) {
70
- const req = options.req || new IncomingMessage(new Socket());
71
- const res = options.res || new ServerResponse(req);
72
- const server = await this.app.container.make('server');
73
- const request = server.createRequest(req, res);
74
- const response = server.createResponse(req, res);
75
- return server.createHttpContext(request, response, this.app.container.createResolver());
76
- }
77
- }
1
+ import "../../chunk-MjwdjG2f.js";
2
+ import "../../debug-DURPi9xn.js";
3
+ import "../../main-CFmDHDls.js";
4
+ import { t as TestUtils } from "../../main-2-nm3TiB.js";
5
+ export { TestUtils };
@@ -374,6 +374,7 @@ export type IndexEntitiesConfig = {
374
374
  };
375
375
  transformers?: {
376
376
  enabled?: boolean;
377
+ withSharedProps?: boolean;
377
378
  source?: string;
378
379
  importAlias?: string;
379
380
  glob?: string[];
@@ -1,9 +1 @@
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
1
  export {};
@@ -57,4 +57,4 @@ export declare function importTypeScript(app: ApplicationService): Promise<typeo
57
57
  * // }
58
58
  * // }
59
59
  */
60
- export declare function outputTransformerDataObjects(transformersList: RecursiveFileTree, buffer: Assembler.FileBuffer): Promise<void>;
60
+ export declare function outputTransformerDataObjects(transformersList: RecursiveFileTree, buffer: Assembler.FileBuffer, withSharedProps: boolean): Promise<void>;
package/build/src/vine.js CHANGED
@@ -1,97 +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
- import vine, { symbols, BaseLiteralType } from '@vinejs/vine';
10
- const MULTIPART_FILE = symbols.SUBTYPE ?? Symbol.for('subtype');
11
- /**
12
- * Checks if the value is an instance of multipart file
13
- * from bodyparser.
14
- */
15
- function isBodyParserFile(file) {
16
- return !!(file && typeof file === 'object' && 'isMultipartFile' in file);
17
- }
18
- /**
19
- * VineJS validation rule that validates the file to be an
20
- * instance of BodyParser MultipartFile class.
21
- */
22
- const isMultipartFile = vine.createRule((file, options, field) => {
23
- /**
24
- * Report error when value is not a field multipart
25
- * file object
26
- */
27
- if (!isBodyParserFile(file)) {
28
- field.report('The {{ field }} must be a file', 'file', field);
29
- return;
30
- }
31
- const validationOptions = typeof options === 'function' ? options(field) : options;
32
- /**
33
- * Set size when it's defined in the options and missing
34
- * on the file instance
35
- */
36
- if (file.sizeLimit === undefined && validationOptions.size) {
37
- file.sizeLimit = validationOptions.size;
38
- }
39
- /**
40
- * Set extensions when it's defined in the options and missing
41
- * on the file instance
42
- */
43
- if (file.allowedExtensions === undefined && validationOptions.extnames) {
44
- file.allowedExtensions = validationOptions.extnames;
45
- }
46
- /**
47
- * Validate file
48
- */
49
- file.validate();
50
- /**
51
- * Report errors
52
- */
53
- file.errors.forEach((error) => {
54
- field.report(error.message, `file.${error.type}`, field, validationOptions);
55
- });
56
- });
57
- /**
58
- * Represents a multipart file uploaded via multipart/form-data HTTP
59
- * request. This class extends VineJS's BaseLiteralType to provide
60
- * specialized validation for uploaded files.
61
- *
62
- * @example
63
- * const fileSchema = vine.object({
64
- * avatar: vine.file({
65
- * size: '2mb',
66
- * extnames: ['jpg', 'png']
67
- * })
68
- * })
69
- */
70
- export class VineMultipartFile extends BaseLiteralType {
71
- /**
72
- * Private validation options for file validation
73
- */
74
- #validationOptions;
75
- /**
76
- * Symbol identifier for multipart file subtype
77
- */
78
- [MULTIPART_FILE] = 'multipartFile';
79
- /**
80
- * Creates a new VineMultipartFile instance
81
- *
82
- * @param validationOptions - File validation options like size limits and allowed extensions
83
- * @param options - Field options from VineJS
84
- * @param validations - Array of validation functions to apply
85
- */
86
- constructor(validationOptions, options, validations) {
87
- super(options, validations || [isMultipartFile(validationOptions || {})]);
88
- this.#validationOptions = validationOptions;
89
- }
90
- /**
91
- * Creates a clone of the current VineMultipartFile instance
92
- * with the same validation options and configurations
93
- */
94
- clone() {
95
- return new VineMultipartFile(this.#validationOptions, this.cloneOptions(), this.cloneValidations());
96
- }
97
- }
1
+ import { t as VineMultipartFile } from "../vine-Bt4ymkM0.js";
2
+ export { VineMultipartFile };
@@ -1,9 +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
- export * from '@adonisjs/ace/types';
1
+ export * from "@adonisjs/ace/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/application/types';
1
+ export * from "@adonisjs/application/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/bodyparser/types';
1
+ export * from "@adonisjs/bodyparser/types";
2
+ export {};
@@ -1,9 +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
- export * from '@poppinss/utils/types';
1
+ export * from "@poppinss/utils/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/fold/types';
1
+ export * from "@adonisjs/fold/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/encryption/types';
1
+ export * from "@adonisjs/encryption/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/events/types';
1
+ export * from "@adonisjs/events/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/hash/types';
1
+ export * from "@adonisjs/hash/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/health/types';
1
+ export * from "@adonisjs/health/types";
2
+ export {};
@@ -1,2 +1,22 @@
1
+ /**
2
+ * Helper types and utilities for AdonisJS applications.
3
+ * Re-exports commonly used type utilities and file system operation types.
4
+ *
5
+ * @example
6
+ * // Use Opaque type for branded primitives
7
+ * import type { Opaque } from '@adonisjs/core/types/helpers'
8
+ *
9
+ * type UserId = Opaque<'UserId', number>
10
+ * const userId: UserId = 123 as UserId
11
+ *
12
+ * @example
13
+ * // Use file system option types
14
+ * import type { ImportAllFilesOptions } from '@adonisjs/core/types/helpers'
15
+ *
16
+ * const options: ImportAllFilesOptions = {
17
+ * ignoreMissingExports: true,
18
+ * transformKeys: (key) => key.toLowerCase()
19
+ * }
20
+ */
1
21
  export type { Opaque, NormalizeConstructor } from '@poppinss/utils/types';
2
22
  export type { ImportAllFilesOptions, ReadAllFilesOptions } from '@poppinss/utils/fs';
@@ -1,9 +1 @@
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
1
  export {};
@@ -1,9 +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
- export * from '@adonisjs/http-server/types';
1
+ export * from "@adonisjs/http-server/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/logger/types';
1
+ export * from "@adonisjs/logger/types";
2
+ export {};
@@ -1,9 +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
- export * from '@adonisjs/repl/types';
1
+ export * from "@adonisjs/repl/types";
2
+ export {};