@adonisjs/core 7.0.0-next.24 → 7.0.0-next.26
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-CXo7ewJd.js → ace-BfYSDoPf.js} +3 -3
- package/build/commands/add.js +8 -7
- package/build/commands/build.js +3 -3
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.js +3 -4
- package/build/commands/eject.js +3 -3
- package/build/commands/env/add.js +3 -3
- package/build/commands/generate_key.js +2 -2
- package/build/commands/inspect_rcfile.js +1 -1
- package/build/commands/list/routes.js +2 -2
- package/build/commands/make/command.d.ts +5 -0
- package/build/commands/make/command.js +4 -3
- package/build/commands/make/controller.d.ts +5 -0
- package/build/commands/make/controller.js +4 -3
- package/build/commands/make/event.d.ts +5 -0
- package/build/commands/make/event.js +4 -3
- package/build/commands/make/exception.d.ts +5 -0
- package/build/commands/make/exception.js +4 -3
- package/build/commands/make/listener.d.ts +5 -0
- package/build/commands/make/listener.js +5 -4
- package/build/commands/make/middleware.d.ts +5 -0
- package/build/commands/make/middleware.js +5 -4
- package/build/commands/make/preload.d.ts +5 -0
- package/build/commands/make/preload.js +5 -4
- package/build/commands/make/provider.d.ts +5 -0
- package/build/commands/make/provider.js +5 -4
- package/build/commands/make/service.d.ts +5 -0
- package/build/commands/make/service.js +4 -3
- package/build/commands/make/test.d.ts +5 -0
- package/build/commands/make/test.js +4 -3
- package/build/commands/make/transformer.d.ts +5 -0
- package/build/commands/make/transformer.js +4 -3
- package/build/commands/make/validator.d.ts +5 -0
- package/build/commands/make/validator.js +4 -3
- package/build/commands/make/view.d.ts +5 -0
- package/build/commands/make/view.js +4 -3
- package/build/commands/repl.js +1 -1
- package/build/commands/serve.js +3 -3
- package/build/commands/test.js +3 -3
- package/build/{config_provider-DWVFHOQX.js → config_provider-CY-xuo2R.js} +1 -3
- package/build/{core-BuPP8K6N.js → core-Ckhxy7oM.js} +2 -2
- package/build/create_kernel-BCs646Vx.js +3 -0
- package/build/{create_kernel-C5k82J0c.js → create_kernel-PIeMK2Fo.js} +1 -1
- package/build/debug-DURPi9xn.js +3 -0
- package/build/{define_config-v5L8vFCk.js → define_config-BlZ46bUg.js} +13 -2
- package/build/factories/core/ace.js +13 -12
- package/build/factories/core/ignitor.js +10 -9
- package/build/factories/core/main.js +19 -18
- package/build/factories/core/test_utils.js +16 -15
- package/build/factories/stubs.d.ts +1 -6
- package/build/factories/stubs.js +6 -5
- package/build/{ignitor-BexUmGra.js → ignitor-B5akJVlQ.js} +6 -6
- package/build/index.js +6 -5
- package/build/{main-BpYXrgM0.js → main-BIVLvDaW.js} +2 -1
- package/build/main-C2r_lzz0.js +2 -0
- package/build/{main-BCUvPhoe.js → main-DIF5Sg8W.js} +2 -2
- package/build/{main-BBYaS2ws.js → main-DjlqWWRt.js} +3 -3
- package/build/modules/ace/codemods.d.ts +74 -22
- package/build/modules/ace/codemods.js +78 -3
- package/build/modules/ace/main.js +1 -1
- package/build/modules/bodyparser/bodyparser_middleware.js +1 -1
- package/build/modules/bodyparser/main.js +1 -1
- package/build/modules/config.js +1 -1
- package/build/modules/dumper/main.js +1 -1
- package/build/modules/dumper/plugins/edge.js +1 -1
- package/build/modules/encryption/define_config.d.ts +20 -1
- package/build/modules/encryption/drivers/legacy.d.ts +76 -0
- package/build/modules/encryption/drivers/legacy.js +50 -0
- package/build/modules/encryption/main.js +5 -4
- package/build/modules/events.js +1 -1
- package/build/modules/hash/main.js +3 -2
- package/build/modules/http/main.js +1 -1
- package/build/modules/logger.js +1 -1
- package/build/modules/repl.js +1 -1
- package/build/providers/app_provider.js +12 -11
- package/build/providers/edge_provider.js +2 -2
- package/build/providers/hash_provider.js +3 -2
- package/build/providers/repl_provider.js +1 -1
- package/build/providers/vinejs_provider.js +2 -2
- package/build/src/exceptions.js +1 -1
- package/build/src/helpers/main.js +1 -1
- package/build/src/helpers/string.js +1 -1
- package/build/src/helpers/verification_token.js +1 -1
- package/build/src/test_utils/main.js +7 -6
- package/build/src/vine.js +1 -1
- package/build/{test_utils-m-lvGE5J.js → test_utils-JjctlaE3.js} +3 -3
- package/build/toolkit/main.js +1 -1
- package/build/types/encryption.d.ts +8 -0
- package/build/{vine-Bt4ymkM0.js → vine-D37x2ex7.js} +1 -0
- package/package.json +4 -4
- package/build/create_kernel-CSvWA2w2.js +0 -3
- package/build/main-Bfnr5tAw.js +0 -2
- /package/build/{bodyparser_middleware-DTW0epKM.js → bodyparser_middleware-BmARtnYe.js} +0 -0
- /package/build/{config-Dd2H6-_e.js → config-BEEqDrcn.js} +0 -0
- /package/build/{decorate-CJcHOoD-.js → decorate-DM0Sx1ye.js} +0 -0
- /package/build/{dumper-BTjb8j4y.js → dumper-DxJ_VRuC.js} +0 -0
- /package/build/{edge-LQdCc1L3.js → edge-BVYR-Vjr.js} +0 -0
- /package/build/{events-C4d0OPUI.js → events-BWRc08nG.js} +0 -0
- /package/build/{exceptions-D7t_HaaU.js → exceptions-DNMesP42.js} +0 -0
- /package/build/{logger-0KKSqgPG.js → logger-DV65GX9N.js} +0 -0
- /package/build/{main-BlJhxJJ2.js → main-BWftwyAK.js} +0 -0
- /package/build/{main-B4VF6my1.js → main-DNokQ-c9.js} +0 -0
- /package/build/{main-DixtGykP.js → main-DOY5Q8Av.js} +0 -0
- /package/build/{repl-GSxgovJQ.js → repl-CwFmzJvr.js} +0 -0
- /package/build/{string-Cx6q_win.js → string-CJ7ewUFq.js} +0 -0
- /package/build/{utils-CtGytdtt.js → utils-DjXMIVBJ.js} +0 -0
- /package/build/{verification_token-DXsW81rl.js → verification_token-DrdoU4RH.js} +0 -0
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as debug_default } from "../../debug-DURPi9xn.js";
|
|
2
|
+
import { t as string_default } from "../../string-CJ7ewUFq.js";
|
|
2
3
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
4
|
+
import { isAbsolute } from "node:path";
|
|
5
|
+
import { readFile } from "node:fs/promises";
|
|
3
6
|
import { EventEmitter } from "node:events";
|
|
4
7
|
var Codemods = class extends EventEmitter {
|
|
5
8
|
#codeTransformer;
|
|
@@ -143,11 +146,83 @@ var Codemods = class extends EventEmitter {
|
|
|
143
146
|
action.failed(error.message);
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
|
-
async
|
|
147
|
-
const
|
|
149
|
+
async addValidator(...params) {
|
|
150
|
+
const transformer = await this.#getCodeTransformer();
|
|
151
|
+
if (!transformer) {
|
|
152
|
+
this.#cliLogger.warning("Cannot create validator file. Install \"@adonisjs/assembler\" to modify source files");
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const action = this.#cliLogger.action("create validator file");
|
|
156
|
+
try {
|
|
157
|
+
await transformer.addValidator(...params);
|
|
158
|
+
action.succeeded();
|
|
159
|
+
} catch (error) {
|
|
160
|
+
this.emit("error", error);
|
|
161
|
+
action.failed(error.message);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async addLimiter(...params) {
|
|
165
|
+
const transformer = await this.#getCodeTransformer();
|
|
166
|
+
if (!transformer) {
|
|
167
|
+
this.#cliLogger.warning("Cannot create limiter file. Install \"@adonisjs/assembler\" to modify source files");
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const action = this.#cliLogger.action("create limiter file");
|
|
171
|
+
try {
|
|
172
|
+
await transformer.addLimiter(...params);
|
|
173
|
+
action.succeeded();
|
|
174
|
+
} catch (error) {
|
|
175
|
+
this.emit("error", error);
|
|
176
|
+
action.failed(error.message);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async addModelMixins(...params) {
|
|
180
|
+
const transformer = await this.#getCodeTransformer();
|
|
181
|
+
if (!transformer) {
|
|
182
|
+
this.#cliLogger.warning("Cannot update model file. Install \"@adonisjs/assembler\" to modify source files");
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const action = this.#cliLogger.action("update model file");
|
|
186
|
+
try {
|
|
187
|
+
await transformer.addModelMixins(...params);
|
|
188
|
+
action.succeeded();
|
|
189
|
+
} catch (error) {
|
|
190
|
+
this.emit("error", error);
|
|
191
|
+
action.failed(error.message);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
async addControllerMethod(...params) {
|
|
195
|
+
const transformer = await this.#getCodeTransformer();
|
|
196
|
+
if (!transformer) {
|
|
197
|
+
this.#cliLogger.warning("Cannot update controller file. Install \"@adonisjs/assembler\" to modify source files");
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const action = this.#cliLogger.action("update controller file");
|
|
201
|
+
try {
|
|
202
|
+
await transformer.addControllerMethod(...params);
|
|
203
|
+
action.succeeded();
|
|
204
|
+
} catch (error) {
|
|
205
|
+
this.emit("error", error);
|
|
206
|
+
action.failed(error.message);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
async makeUsingStub(stubsRoot, stubPath, stubState, options) {
|
|
210
|
+
const stub = await (await this.#app.stubs.create()).build(stubPath, { source: stubsRoot });
|
|
211
|
+
if (options?.contentsFromFile) {
|
|
212
|
+
const source = isAbsolute(options.contentsFromFile) ? options.contentsFromFile : this.#app.makePath(options.contentsFromFile);
|
|
213
|
+
try {
|
|
214
|
+
debug_default("overwriting stub output with contents from file %s", source);
|
|
215
|
+
stub.replaceWith(await readFile(source, "utf-8"));
|
|
216
|
+
} catch (error) {
|
|
217
|
+
if (error.code === "ENOENT") throw new Error(`Cannot replace stub output with "${options.contentsFromFile}" file contents as the file is missing`, { cause: error });
|
|
218
|
+
throw error;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const output = await stub.generate({
|
|
148
222
|
force: this.overwriteExisting,
|
|
149
223
|
...stubState
|
|
150
224
|
});
|
|
225
|
+
debug_default("generating file %O", output);
|
|
151
226
|
const entityFileName = string_default.toUnixSlash(this.#app.relativePath(output.destination));
|
|
152
227
|
const result = {
|
|
153
228
|
...output,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Parser, c as errors, d as Kernel, f as BaseCommand, i as ListLoader, l as flags, n as HelpCommand, o as args, p as ListCommand, r as IndexGenerator, s as cliHelpers, t as FsLoader, u as tracingChannels } from "../../main-
|
|
1
|
+
import { a as Parser, c as errors, d as Kernel, f as BaseCommand, i as ListLoader, l as flags, n as HelpCommand, o as args, p as ListCommand, r as IndexGenerator, s as cliHelpers, t as FsLoader, u as tracingChannels } from "../../main-BWftwyAK.js";
|
|
2
2
|
export { BaseCommand, FsLoader, HelpCommand, IndexGenerator, Kernel, ListCommand, ListLoader, Parser, args, cliHelpers, errors, flags, tracingChannels };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bodyparser_middleware_default } from "../../bodyparser_middleware-
|
|
1
|
+
import { t as bodyparser_middleware_default } from "../../bodyparser_middleware-BmARtnYe.js";
|
|
2
2
|
export { bodyparser_middleware_default as default };
|
package/build/modules/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as pluginEdgeDumper } from "../../../edge-
|
|
1
|
+
import { t as pluginEdgeDumper } from "../../../edge-BVYR-Vjr.js";
|
|
2
2
|
export { pluginEdgeDumper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConfigProvider } from '../../src/types.ts';
|
|
2
|
-
import { type AES256CBCDriverConfig, type AES256GCMDriverConfig, type ChaCha20Poly1305DriverConfig } from '../../types/encryption.ts';
|
|
2
|
+
import { type AES256CBCDriverConfig, type AES256GCMDriverConfig, type ChaCha20Poly1305DriverConfig, type LegacyDriverConfig } from '../../types/encryption.ts';
|
|
3
3
|
import { type EncryptionConfig } from '../../types/encryption.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Resolved configuration from the config provider that will be
|
|
@@ -124,5 +124,24 @@ export declare const drivers: {
|
|
|
124
124
|
* ```
|
|
125
125
|
*/
|
|
126
126
|
aes256gcm: (config: AES256GCMDriverConfig) => ConfigProvider<EncryptionConfig>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a Legacy encryption driver configuration.
|
|
129
|
+
*
|
|
130
|
+
* The Legacy driver maintains compatibility with the old AdonisJS v6
|
|
131
|
+
* encryption format. It uses AES-256-CBC with HMAC SHA-256.
|
|
132
|
+
*
|
|
133
|
+
* Use this driver to decrypt values encrypted with older versions
|
|
134
|
+
* of AdonisJS or when migrating to newer encryption drivers.
|
|
135
|
+
*
|
|
136
|
+
* @param config - The Legacy driver configuration
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* drivers.legacy({
|
|
141
|
+
* keys: [env.get('APP_KEY')]
|
|
142
|
+
* })
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
legacy: (config: LegacyDriverConfig) => ConfigProvider<EncryptionConfig>;
|
|
127
146
|
};
|
|
128
147
|
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type Secret } from '@poppinss/utils';
|
|
2
|
+
import { BaseDriver } from '@boringnode/encryption';
|
|
3
|
+
import type { EncryptionDriverContract, CypherText, EncryptOptions } from '@boringnode/encryption/types';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for the Legacy encryption driver.
|
|
6
|
+
*
|
|
7
|
+
* The Legacy driver maintains compatibility with the old AdonisJS v6
|
|
8
|
+
* encryption format using AES-256-CBC with HMAC SHA-256.
|
|
9
|
+
*/
|
|
10
|
+
export interface LegacyConfig {
|
|
11
|
+
key: string | Secret<string>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for the Legacy encryption driver factory.
|
|
15
|
+
*
|
|
16
|
+
* Used when configuring the driver through the defineConfig function.
|
|
17
|
+
*/
|
|
18
|
+
export interface LegacyDriverConfig {
|
|
19
|
+
keys: (string | Secret<string>)[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Factory function to create a Legacy encryption configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* drivers.legacy({
|
|
27
|
+
* keys: [env.get('APP_KEY')]
|
|
28
|
+
* })
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function legacy(config: LegacyDriverConfig): {
|
|
32
|
+
driver: (key: string | Secret<string>) => Legacy;
|
|
33
|
+
keys: (string | Secret<string>)[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Legacy encryption driver for AdonisJS.
|
|
37
|
+
*
|
|
38
|
+
* This driver maintains compatibility with the old AdonisJS v6 encryption
|
|
39
|
+
* format. It uses:
|
|
40
|
+
* - AES-256-CBC for encryption
|
|
41
|
+
* - HMAC SHA-256 for integrity verification
|
|
42
|
+
* - MessageBuilder from @poppinss/utils for encoding values
|
|
43
|
+
*
|
|
44
|
+
* Encrypted format: `[encrypted_base64url].[iv_base64url].[hmac]`
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const driver = new Legacy({ key: 'your-32-character-secret-key!!' })
|
|
49
|
+
*
|
|
50
|
+
* const encrypted = driver.encrypt('sensitive data')
|
|
51
|
+
* const decrypted = driver.decrypt(encrypted)
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare class Legacy extends BaseDriver implements EncryptionDriverContract {
|
|
55
|
+
constructor(config: LegacyConfig);
|
|
56
|
+
/**
|
|
57
|
+
* Encrypt a given piece of value using the app secret. A wide range of
|
|
58
|
+
* data types are supported.
|
|
59
|
+
*
|
|
60
|
+
* - String
|
|
61
|
+
* - Arrays
|
|
62
|
+
* - Objects
|
|
63
|
+
* - Booleans
|
|
64
|
+
* - Numbers
|
|
65
|
+
* - Dates
|
|
66
|
+
*
|
|
67
|
+
* You can optionally define a purpose for which the value was encrypted and
|
|
68
|
+
* mentioning a different purpose/no purpose during decrypt will fail.
|
|
69
|
+
*/
|
|
70
|
+
encrypt(payload: any, options?: EncryptOptions): CypherText;
|
|
71
|
+
encrypt(payload: any, expiresIn?: string | number, purpose?: string): CypherText;
|
|
72
|
+
/**
|
|
73
|
+
* Decrypt value and verify it against a purpose
|
|
74
|
+
*/
|
|
75
|
+
decrypt<T extends any>(value: string, purpose?: string): T | null;
|
|
76
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BaseDriver, Hmac, base64UrlDecode, base64UrlEncode, errors } from "@boringnode/encryption";
|
|
2
|
+
import { MessageBuilder } from "@poppinss/utils";
|
|
3
|
+
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
4
|
+
function legacy(config) {
|
|
5
|
+
return {
|
|
6
|
+
driver: (key) => new Legacy({ key }),
|
|
7
|
+
keys: config.keys
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
var Legacy = class extends BaseDriver {
|
|
11
|
+
constructor(config) {
|
|
12
|
+
super(config);
|
|
13
|
+
if (this.cryptoKey.length < 16) throw new errors.E_INSECURE_ENCRYPTER_KEY();
|
|
14
|
+
}
|
|
15
|
+
encrypt(payload, expiresInOrOptions, purpose) {
|
|
16
|
+
let expiresIn;
|
|
17
|
+
let actualPurpose;
|
|
18
|
+
if (typeof expiresInOrOptions === "object" && expiresInOrOptions !== null) {
|
|
19
|
+
expiresIn = expiresInOrOptions.expiresIn;
|
|
20
|
+
actualPurpose = expiresInOrOptions.purpose;
|
|
21
|
+
} else {
|
|
22
|
+
expiresIn = expiresInOrOptions;
|
|
23
|
+
actualPurpose = purpose;
|
|
24
|
+
}
|
|
25
|
+
const iv = randomBytes(16);
|
|
26
|
+
const cipher = createCipheriv("aes-256-cbc", this.cryptoKey.subarray(0, 32), iv);
|
|
27
|
+
const plainText = new MessageBuilder().build(payload, expiresIn, actualPurpose);
|
|
28
|
+
const macPayload = `${base64UrlEncode(Buffer.concat([cipher.update(plainText), cipher.final()]))}${this.separator}${base64UrlEncode(iv)}`;
|
|
29
|
+
const hmac = new Hmac(this.cryptoKey).generate(macPayload);
|
|
30
|
+
return this.computeReturns([macPayload, hmac]);
|
|
31
|
+
}
|
|
32
|
+
decrypt(value, purpose) {
|
|
33
|
+
if (typeof value !== "string") return null;
|
|
34
|
+
const [cipherEncoded, ivEncoded, macEncoded] = value.split(this.separator);
|
|
35
|
+
if (!cipherEncoded || !ivEncoded || !macEncoded) return null;
|
|
36
|
+
const cipherText = base64UrlDecode(cipherEncoded);
|
|
37
|
+
if (!cipherText) return null;
|
|
38
|
+
const iv = base64UrlDecode(ivEncoded);
|
|
39
|
+
if (!iv) return null;
|
|
40
|
+
if (!new Hmac(this.cryptoKey).compare(`${cipherEncoded}${this.separator}${ivEncoded}`, macEncoded)) return null;
|
|
41
|
+
try {
|
|
42
|
+
const decipher = createDecipheriv("aes-256-cbc", this.cryptoKey.subarray(0, 32), iv);
|
|
43
|
+
const plainTextBuffer = Buffer.concat([decipher.update(cipherText), decipher.final()]);
|
|
44
|
+
return new MessageBuilder().verify(plainTextBuffer, purpose);
|
|
45
|
+
} catch {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export { Legacy, legacy };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import "../../debug-DURPi9xn.js";
|
|
2
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
3
|
+
import "../../exceptions-DNMesP42.js";
|
|
4
|
+
import { n as drivers, t as defineConfig } from "../../define_config-BlZ46bUg.js";
|
|
5
|
+
import { i as Hmac, n as Encryption, r as EncryptionManager, t as BaseDriver } from "../../main-C2r_lzz0.js";
|
|
5
6
|
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers };
|
package/build/modules/events.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
|
-
import "../../
|
|
3
|
-
import
|
|
2
|
+
import "../../debug-DURPi9xn.js";
|
|
3
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
4
|
+
import { n as defineConfig, r as drivers } from "../../main-BIVLvDaW.js";
|
|
4
5
|
export * from "@adonisjs/hash";
|
|
5
6
|
export { defineConfig, drivers };
|
package/build/modules/logger.js
CHANGED
package/build/modules/repl.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import
|
|
2
|
+
import "../debug-DURPi9xn.js";
|
|
3
3
|
import { t as app_exports } from "../app-DNvbxVWl.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
4
|
+
import { t as configProvider } from "../config_provider-CY-xuo2R.js";
|
|
5
|
+
import { t as config_exports } from "../config-BEEqDrcn.js";
|
|
6
|
+
import { t as events_exports } from "../events-BWRc08nG.js";
|
|
7
|
+
import { t as logger_exports } from "../logger-DV65GX9N.js";
|
|
8
|
+
import { t as Dumper } from "../dumper-DxJ_VRuC.js";
|
|
9
|
+
import { r as RuntimeException } from "../exceptions-DNMesP42.js";
|
|
10
|
+
import { t as main_exports } from "../main-DNokQ-c9.js";
|
|
11
|
+
import "../define_config-BlZ46bUg.js";
|
|
12
|
+
import { n as Encryption } from "../main-C2r_lzz0.js";
|
|
13
|
+
import { t as bodyparser_middleware_default } from "../bodyparser_middleware-BmARtnYe.js";
|
|
13
14
|
import { dirname } from "node:path";
|
|
14
15
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
15
16
|
var AppServiceProvider = class {
|
|
@@ -24,7 +25,7 @@ var AppServiceProvider = class {
|
|
|
24
25
|
}
|
|
25
26
|
registerAce() {
|
|
26
27
|
this.app.container.singleton("ace", async () => {
|
|
27
|
-
const { createAceKernel } = await import("../create_kernel-
|
|
28
|
+
const { createAceKernel } = await import("../create_kernel-BCs646Vx.js");
|
|
28
29
|
return createAceKernel(this.app);
|
|
29
30
|
});
|
|
30
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
3
|
-
import { t as pluginEdgeDumper } from "../edge-
|
|
2
|
+
import { t as main_exports } from "../main-DNokQ-c9.js";
|
|
3
|
+
import { t as pluginEdgeDumper } from "../edge-BVYR-Vjr.js";
|
|
4
4
|
import edge from "edge.js";
|
|
5
5
|
var EdgeServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
2
|
+
import "../debug-DURPi9xn.js";
|
|
3
|
+
import { t as configProvider } from "../config_provider-CY-xuo2R.js";
|
|
4
|
+
import { t as main_exports } from "../main-BIVLvDaW.js";
|
|
4
5
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
5
6
|
var HashServiceProvider = class {
|
|
6
7
|
constructor(app) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { t as repl_exports } from "../repl-
|
|
2
|
+
import { t as repl_exports } from "../repl-CwFmzJvr.js";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { fsImportAll } from "@poppinss/utils/fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { n as RequestValidator, t as main_exports } from "../main-
|
|
3
|
-
import { t as VineMultipartFile } from "../vine-
|
|
2
|
+
import { n as RequestValidator, t as main_exports } from "../main-DNokQ-c9.js";
|
|
3
|
+
import { t as VineMultipartFile } from "../vine-D37x2ex7.js";
|
|
4
4
|
import { Vine } from "@vinejs/vine";
|
|
5
5
|
var VineJSServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
package/build/src/exceptions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as createError, n as InvalidArgumentsException, r as RuntimeException, t as Exception } from "../exceptions-
|
|
1
|
+
import { i as createError, n as InvalidArgumentsException, r as RuntimeException, t as Exception } from "../exceptions-DNMesP42.js";
|
|
2
2
|
export { Exception, InvalidArgumentsException, RuntimeException, createError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-DrdoU4RH.js";
|
|
2
2
|
import { fsImportAll, fsReadAll } from "@poppinss/utils/fs";
|
|
3
3
|
import base64 from "@poppinss/utils/base64";
|
|
4
4
|
import { MessageBuilder, Secret, compose, defineStaticProperty, safeEqual } from "@poppinss/utils";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as string_default } from "../../string-
|
|
1
|
+
import { t as string_default } from "../../string-CJ7ewUFq.js";
|
|
2
2
|
export { string_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-DrdoU4RH.js";
|
|
2
2
|
export { VerificationToken };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import
|
|
2
|
+
import "../../debug-DURPi9xn.js";
|
|
3
|
+
import "../../config_provider-CY-xuo2R.js";
|
|
4
|
+
import "../../exceptions-DNMesP42.js";
|
|
5
|
+
import "../../main-DNokQ-c9.js";
|
|
6
|
+
import "../../define_config-BlZ46bUg.js";
|
|
7
|
+
import "../../main-C2r_lzz0.js";
|
|
8
|
+
import { t as TestUtils } from "../../main-DjlqWWRt.js";
|
|
8
9
|
export { TestUtils };
|
package/build/src/vine.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VineMultipartFile } from "../vine-
|
|
1
|
+
import { t as VineMultipartFile } from "../vine-D37x2ex7.js";
|
|
2
2
|
export { VineMultipartFile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
3
|
-
import { t as TestUtils } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-DIF5Sg8W.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-B5akJVlQ.js";
|
|
3
|
+
import { t as TestUtils } from "./main-DjlqWWRt.js";
|
|
4
4
|
var TestUtilsFactory = class {
|
|
5
5
|
create(ignitorOrAppRoot, options) {
|
|
6
6
|
if (ignitorOrAppRoot instanceof Ignitor) return new TestUtils(ignitorOrAppRoot.createApp("test"));
|
package/build/toolkit/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { t as __decorate } from "../decorate-DM0Sx1ye.js";
|
|
3
3
|
import { BaseCommand, HelpCommand, IndexGenerator, Kernel, ListLoader, args } from "@adonisjs/ace";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
var IndexCommand = class extends BaseCommand {
|
|
@@ -37,3 +37,11 @@ export type { AES256GCMDriverConfig } from '@boringnode/encryption/drivers/aes_2
|
|
|
37
37
|
* for decryption (allowing for key rotation).
|
|
38
38
|
*/
|
|
39
39
|
export type { ChaCha20Poly1305DriverConfig } from '@boringnode/encryption/drivers/chacha20_poly1305';
|
|
40
|
+
/**
|
|
41
|
+
* Configuration options for the Legacy encryption driver.
|
|
42
|
+
*
|
|
43
|
+
* The Legacy driver maintains compatibility with the old AdonisJS v6
|
|
44
|
+
* encryption format. It does not require a driver identifier since
|
|
45
|
+
* the legacy format doesn't include one.
|
|
46
|
+
*/
|
|
47
|
+
export type { LegacyDriverConfig } from '../modules/encryption/drivers/legacy.ts';
|
|
@@ -4,6 +4,7 @@ function isBodyParserFile(file) {
|
|
|
4
4
|
return !!(file && typeof file === "object" && "isMultipartFile" in file);
|
|
5
5
|
}
|
|
6
6
|
const isMultipartFile = vine.createRule((file, options, field) => {
|
|
7
|
+
if (!field.isDefined) return false;
|
|
7
8
|
if (!isBodyParserFile(file)) {
|
|
8
9
|
field.report("The {{ field }} must be a file", "file", field);
|
|
9
10
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.0.0-next.
|
|
4
|
+
"version": "7.0.0-next.26",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"index:commands": "node --import=@poppinss/ts-exec toolkit/main.js index build/commands"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@adonisjs/assembler": "^8.0.0-next.
|
|
83
|
+
"@adonisjs/assembler": "^8.0.0-next.31",
|
|
84
84
|
"@adonisjs/eslint-config": "^3.0.0-next.9",
|
|
85
85
|
"@adonisjs/prettier-config": "^1.4.5",
|
|
86
86
|
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@adonisjs/ace": "^14.0.1-next.4",
|
|
124
|
-
"@adonisjs/application": "^9.0.0-next.
|
|
124
|
+
"@adonisjs/application": "^9.0.0-next.15",
|
|
125
125
|
"@adonisjs/bodyparser": "^11.0.0-next.6",
|
|
126
126
|
"@adonisjs/config": "^6.1.0-next.0",
|
|
127
127
|
"@adonisjs/env": "^7.0.0-next.3",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"@adonisjs/http-transformers": "^2.1.0",
|
|
134
134
|
"@adonisjs/logger": "^7.1.0-next.3",
|
|
135
135
|
"@adonisjs/repl": "^5.0.0-next.1",
|
|
136
|
-
"@boringnode/encryption": "^0.2.
|
|
136
|
+
"@boringnode/encryption": "^0.2.5",
|
|
137
137
|
"@poppinss/colors": "^4.1.6",
|
|
138
138
|
"@poppinss/dumper": "^0.7.0",
|
|
139
139
|
"@poppinss/macroable": "^1.1.0",
|
package/build/main-Bfnr5tAw.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|