@adonisjs/core 7.0.0-next.27 → 7.0.0-next.29
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/{chunk-B88MteZI.js → chunk-iKc69rpz.js} +2 -2
- package/build/commands/add.js +8 -12
- package/build/commands/build.js +3 -3
- package/build/commands/configure.js +2 -2
- package/build/commands/eject.js +4 -4
- package/build/commands/env/add.js +5 -5
- 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.js +2 -2
- package/build/commands/make/controller.js +2 -2
- package/build/commands/make/event.js +2 -2
- package/build/commands/make/exception.js +2 -2
- package/build/commands/make/listener.js +2 -2
- package/build/commands/make/middleware.js +4 -4
- package/build/commands/make/preload.js +4 -4
- package/build/commands/make/provider.js +4 -4
- package/build/commands/make/service.js +2 -2
- package/build/commands/make/test.js +2 -2
- package/build/commands/make/transformer.js +2 -2
- package/build/commands/make/validator.js +2 -2
- package/build/commands/make/view.js +2 -2
- package/build/commands/repl.js +1 -1
- package/build/commands/serve.js +3 -3
- package/build/commands/test.js +3 -3
- package/build/{core-Ckhxy7oM.js → core-CvwBnUuy.js} +3 -3
- package/build/{create_kernel-PIeMK2Fo.js → create_kernel-B7ILNhuP.js} +1 -1
- package/build/create_kernel-BD0Iqi8e.js +3 -0
- package/build/{define_config-BlZ46bUg.js → define_config-0oHaj43l.js} +16 -3
- package/build/{dumper-DxJ_VRuC.js → dumper-BBgqFX5a.js} +1 -1
- package/build/errors-CrCO-k44.js +8 -0
- package/build/factories/core/ace.js +22 -16
- package/build/factories/core/ignitor.js +73 -13
- package/build/factories/core/main.js +16 -23
- package/build/factories/core/test_utils.js +18 -20
- package/build/factories/stubs.js +6 -10
- package/build/index.js +7 -10
- package/build/{main-C4Amt3wT.js → main--nXd7T-C.js} +3 -3
- package/build/{main-DRfo73b5.js → main-Cxz0TyIw.js} +4 -4
- package/build/{main-BDp4yNr8.js → main-DN2qEEg5.js} +1 -1
- package/build/{main-BIVLvDaW.js → main-DkNgvceD.js} +3 -3
- package/build/modules/ace/codemods.js +3 -3
- package/build/modules/ace/main.js +1 -1
- package/build/modules/app.js +5 -3
- package/build/modules/bodyparser/bodyparser_middleware.js +2 -1
- package/build/modules/bodyparser/main.js +5 -3
- package/build/modules/config.js +5 -3
- package/build/modules/container.js +5 -3
- package/build/modules/dumper/main.js +2 -2
- package/build/modules/dumper/plugins/edge.js +46 -1
- package/build/modules/encryption/define_config.d.ts +15 -1
- package/build/modules/encryption/drivers/aes_siv.d.ts +19 -0
- package/build/modules/encryption/drivers/aes_siv.js +2 -0
- package/build/modules/encryption/drivers/legacy.d.ts +9 -1
- package/build/modules/encryption/drivers/legacy.js +7 -0
- package/build/modules/encryption/errors.d.ts +16 -0
- package/build/modules/encryption/main.d.ts +6 -2
- package/build/modules/encryption/main.js +6 -6
- package/build/modules/events.js +5 -3
- package/build/modules/hash/main.js +4 -4
- package/build/modules/http/main.js +2 -2
- package/build/modules/logger.js +13 -3
- package/build/modules/repl.js +5 -3
- package/build/providers/app_provider.js +15 -14
- package/build/providers/edge_provider.js +7 -5
- package/build/providers/hash_provider.js +4 -4
- package/build/providers/repl_provider.js +2 -2
- package/build/providers/vinejs_provider.js +3 -3
- package/build/services/ace.js +1 -1
- package/build/services/app.js +4 -1
- package/build/services/config.js +1 -1
- package/build/services/dumper.js +1 -1
- package/build/services/emitter.js +1 -1
- package/build/services/encryption.js +1 -1
- package/build/services/hash.js +1 -1
- package/build/services/logger.js +1 -1
- package/build/services/repl.js +1 -1
- package/build/services/router.js +1 -1
- package/build/services/server.js +1 -1
- package/build/services/test_utils.js +1 -1
- package/build/services/url_builder.js +1 -1
- package/build/src/exceptions.js +1 -1
- package/build/src/helpers/main.js +1 -1
- package/build/src/helpers/string.js +28 -2
- package/build/src/helpers/types.js +2 -2
- package/build/src/helpers/verification_token.js +45 -1
- package/build/src/test_utils/main.js +7 -8
- package/build/src/vine.js +32 -1
- package/build/toolkit/main.js +1 -1
- package/build/types/encryption.d.ts +6 -0
- package/package.json +13 -12
- package/build/ace-BtbS16RX.js +0 -16
- package/build/app-B6oge7b3.js +0 -5
- package/build/app-DNvbxVWl.js +0 -5
- package/build/bodyparser_middleware-BmARtnYe.js +0 -3
- package/build/config-BEEqDrcn.js +0 -5
- package/build/container-uxa8LpGI.js +0 -5
- package/build/create_kernel-BCs646Vx.js +0 -3
- package/build/edge-D4loPeln.js +0 -47
- package/build/events-BWRc08nG.js +0 -5
- package/build/exceptions-DNMesP42.js +0 -2
- package/build/ignitor-D6oitHT8.js +0 -71
- package/build/logger-DV65GX9N.js +0 -13
- package/build/main-C2r_lzz0.js +0 -2
- package/build/main-DOY5Q8Av.js +0 -5
- package/build/repl-CwFmzJvr.js +0 -5
- package/build/string-CJ7ewUFq.js +0 -28
- package/build/test_utils-Ql9I7QAz.js +0 -10
- package/build/verification_token-DrdoU4RH.js +0 -46
- package/build/vine-D37x2ex7.js +0 -33
- /package/build/{config_provider-CY-xuo2R.js → config_provider-FIAUgvae.js} +0 -0
- /package/build/{debug-DURPi9xn.js → debug-CGQmxzGt.js} +0 -0
- /package/build/{decorate-DM0Sx1ye.js → decorate-DmrZA614.js} +0 -0
- /package/build/{main-BWftwyAK.js → main-MBAMnmJb.js} +0 -0
- /package/build/{utils-DjXMIVBJ.js → utils-CcS9NOK_.js} +0 -0
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
2
|
import "../../main-kn40V-hF.js";
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "../../
|
|
9
|
-
import "../../
|
|
10
|
-
import "../../
|
|
11
|
-
import "../../
|
|
12
|
-
import "
|
|
13
|
-
import "../../
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "../../main-C4Amt3wT.js";
|
|
21
|
-
import { t as TestUtilsFactory } from "../../test_utils-Ql9I7QAz.js";
|
|
3
|
+
import "../../debug-CGQmxzGt.js";
|
|
4
|
+
import { t as Ignitor } from "../../main-Cxz0TyIw.js";
|
|
5
|
+
import "../../config_provider-FIAUgvae.js";
|
|
6
|
+
import "../../utils-CcS9NOK_.js";
|
|
7
|
+
import "../../core-CvwBnUuy.js";
|
|
8
|
+
import "../../main-DN2qEEg5.js";
|
|
9
|
+
import "../../errors-CrCO-k44.js";
|
|
10
|
+
import "../../define_config-0oHaj43l.js";
|
|
11
|
+
import "../../main-DkNgvceD.js";
|
|
12
|
+
import { IgnitorFactory } from "./ignitor.js";
|
|
13
|
+
import { t as TestUtils } from "../../main--nXd7T-C.js";
|
|
14
|
+
var TestUtilsFactory = class {
|
|
15
|
+
create(ignitorOrAppRoot, options) {
|
|
16
|
+
if (ignitorOrAppRoot instanceof Ignitor) return new TestUtils(ignitorOrAppRoot.createApp("test"));
|
|
17
|
+
return new TestUtils(new IgnitorFactory().withCoreConfig().withCoreProviders().create(ignitorOrAppRoot, options).createApp("console"));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
22
20
|
export { TestUtilsFactory };
|
package/build/factories/stubs.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
2
|
import { t as stubsRoot } from "../main-kn40V-hF.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../config_provider-CY-xuo2R.js";
|
|
9
|
-
import "../string-CJ7ewUFq.js";
|
|
10
|
-
import "../utils-DjXMIVBJ.js";
|
|
11
|
-
import "../core-Ckhxy7oM.js";
|
|
3
|
+
import "../debug-CGQmxzGt.js";
|
|
4
|
+
import "../main-Cxz0TyIw.js";
|
|
5
|
+
import "../config_provider-FIAUgvae.js";
|
|
6
|
+
import "../utils-CcS9NOK_.js";
|
|
7
|
+
import "../core-CvwBnUuy.js";
|
|
12
8
|
import { AppFactory } from "@adonisjs/application/factories";
|
|
13
9
|
var StubsFactory = class {
|
|
14
10
|
#parameters = {};
|
package/build/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-iKc69rpz.js";
|
|
2
2
|
import { t as stubsRoot } from "./main-kn40V-hF.js";
|
|
3
|
-
import { t as container_exports } from "./container
|
|
4
|
-
import "./debug-
|
|
5
|
-
import { t as Ignitor } from "./main-
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import { t as
|
|
9
|
-
import "./string-CJ7ewUFq.js";
|
|
10
|
-
import "./utils-DjXMIVBJ.js";
|
|
11
|
-
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-Ckhxy7oM.js";
|
|
3
|
+
import { t as container_exports } from "./modules/container.js";
|
|
4
|
+
import "./debug-CGQmxzGt.js";
|
|
5
|
+
import { t as Ignitor } from "./main-Cxz0TyIw.js";
|
|
6
|
+
import { t as configProvider } from "./config_provider-FIAUgvae.js";
|
|
7
|
+
import "./utils-CcS9NOK_.js";
|
|
8
|
+
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-CvwBnUuy.js";
|
|
12
9
|
var inject = container_exports.inject;
|
|
13
10
|
export { Ignitor, configProvider, errors, indexEntities, inject, prettyPrintError, stubsRoot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as debug_default } from "./debug-
|
|
2
|
-
import { t as main_exports } from "./main-
|
|
3
|
-
import {
|
|
1
|
+
import { t as debug_default } from "./debug-CGQmxzGt.js";
|
|
2
|
+
import { t as main_exports } from "./main-DN2qEEg5.js";
|
|
3
|
+
import { Encryption } from "./modules/encryption/main.js";
|
|
4
4
|
import { IncomingMessage, ServerResponse, createServer } from "node:http";
|
|
5
5
|
import { Socket } from "node:net";
|
|
6
6
|
import Macroable from "@poppinss/macroable";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as debug_default } from "./debug-
|
|
2
|
-
import {
|
|
3
|
-
import { t as app_exports } from "./app
|
|
1
|
+
import { t as debug_default } from "./debug-CGQmxzGt.js";
|
|
2
|
+
import { setApp } from "./services/app.js";
|
|
3
|
+
import { t as app_exports } from "./modules/app.js";
|
|
4
4
|
import { createServer } from "node:http";
|
|
5
5
|
var AceProcess = class {
|
|
6
6
|
#ignitor;
|
|
@@ -15,7 +15,7 @@ var AceProcess = class {
|
|
|
15
15
|
async handle(argv) {
|
|
16
16
|
const app = this.#ignitor.createApp("console");
|
|
17
17
|
await app.init();
|
|
18
|
-
const { createAceKernel } = await import("./create_kernel-
|
|
18
|
+
const { createAceKernel } = await import("./create_kernel-BD0Iqi8e.js");
|
|
19
19
|
const commandName = argv[argv.findIndex((value) => !value.startsWith("-"))];
|
|
20
20
|
const kernel = createAceKernel(app, commandName);
|
|
21
21
|
app.container.bindValue("ace", kernel);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
2
|
-
import { t as debug_default } from "./debug-
|
|
3
|
-
import { t as configProvider } from "./config_provider-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-iKc69rpz.js";
|
|
2
|
+
import { t as debug_default } from "./debug-CGQmxzGt.js";
|
|
3
|
+
import { t as configProvider } from "./config_provider-FIAUgvae.js";
|
|
4
4
|
import { InvalidArgumentsException } from "@poppinss/utils/exception";
|
|
5
5
|
function defineConfig(config) {
|
|
6
6
|
if (!config.list) throw new InvalidArgumentsException("Missing \"list\" property in hash config");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as debug_default } from "../../debug-
|
|
2
|
-
import
|
|
1
|
+
import { t as debug_default } from "../../debug-CGQmxzGt.js";
|
|
2
|
+
import stringHelpers from "../../src/helpers/string.js";
|
|
3
3
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
4
4
|
import { isAbsolute } from "node:path";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
@@ -222,7 +222,7 @@ var Codemods = class extends EventEmitter {
|
|
|
222
222
|
...stubState
|
|
223
223
|
});
|
|
224
224
|
debug_default("generating file %O", output);
|
|
225
|
-
const entityFileName =
|
|
225
|
+
const entityFileName = stringHelpers.toUnixSlash(this.#app.relativePath(output.destination));
|
|
226
226
|
const result = {
|
|
227
227
|
...output,
|
|
228
228
|
relativeFileName: entityFileName
|
|
@@ -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-MBAMnmJb.js";
|
|
2
2
|
export { BaseCommand, FsLoader, HelpCommand, IndexGenerator, Kernel, ListCommand, ListLoader, Parser, args, cliHelpers, errors, flags, tracingChannels };
|
package/build/modules/app.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../app-DNvbxVWl.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/application";
|
|
4
|
-
|
|
3
|
+
var app_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_application from "@adonisjs/application";
|
|
5
|
+
__reExport(app_exports, import__adonisjs_application);
|
|
6
|
+
export { app_exports as t };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BodyParserMiddleware } from "@adonisjs/bodyparser/bodyparser_middleware";
|
|
2
|
+
var bodyparser_middleware_default = BodyParserMiddleware;
|
|
2
3
|
export { bodyparser_middleware_default as default };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import "../../main-DOY5Q8Av.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/bodyparser";
|
|
4
|
-
|
|
3
|
+
var main_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_bodyparser from "@adonisjs/bodyparser";
|
|
5
|
+
__reExport(main_exports, import__adonisjs_bodyparser);
|
|
6
|
+
export { main_exports as t };
|
package/build/modules/config.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../config-BEEqDrcn.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/config";
|
|
4
|
-
|
|
3
|
+
var config_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_config from "@adonisjs/config";
|
|
5
|
+
__reExport(config_exports, import__adonisjs_config);
|
|
6
|
+
export { config_exports as t };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../container-uxa8LpGI.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/fold";
|
|
4
|
-
|
|
3
|
+
var container_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_fold from "@adonisjs/fold";
|
|
5
|
+
__reExport(container_exports, import__adonisjs_fold);
|
|
6
|
+
export { container_exports as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import { n as errors_exports, t as Dumper } from "../../dumper-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
|
+
import { n as errors_exports, t as Dumper } from "../../dumper-BBgqFX5a.js";
|
|
3
3
|
function defineConfig(dumperConfig) {
|
|
4
4
|
return dumperConfig;
|
|
5
5
|
}
|
|
@@ -1,2 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Template } from "edge.js";
|
|
2
|
+
function pluginEdgeDumper(dumper) {
|
|
3
|
+
Template.macro("dumper", dumper);
|
|
4
|
+
return (edge) => {
|
|
5
|
+
edge.registerTag({
|
|
6
|
+
tagName: "dump",
|
|
7
|
+
block: false,
|
|
8
|
+
seekable: true,
|
|
9
|
+
noNewLine: true,
|
|
10
|
+
compile(parser, buffer, token) {
|
|
11
|
+
const parsed = parser.utils.transformAst(parser.utils.generateAST(token.properties.jsArg, token.loc, token.filename), token.filename, parser);
|
|
12
|
+
buffer.writeExpression(`template.stacks.pushOnceTo('dumper', 'dumper_globals', template.dumper.getHeadElements(state.cspNonce))`, token.filename, token.loc.start.line);
|
|
13
|
+
buffer.outputExpression(`template.dumper.dumpToHtml(${parser.utils.stringify(parsed)}, { cspNonce: state.cspNonce, source: { location: $filename, line: $lineNumber } })`, token.filename, token.loc.start.line, true);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
edge.registerTag({
|
|
17
|
+
tagName: "dd",
|
|
18
|
+
block: false,
|
|
19
|
+
seekable: true,
|
|
20
|
+
noNewLine: true,
|
|
21
|
+
compile(parser, buffer, token) {
|
|
22
|
+
const parsed = parser.utils.transformAst(parser.utils.generateAST(token.properties.jsArg, token.loc, token.filename), token.filename, parser);
|
|
23
|
+
const ddStatement = [
|
|
24
|
+
"try {",
|
|
25
|
+
` template.dumper.dd(${parser.utils.stringify(parsed)})`,
|
|
26
|
+
"} catch (error) {",
|
|
27
|
+
` if (error.code === 'E_DUMP_DIE_EXCEPTION') {`,
|
|
28
|
+
" const edgeError = template.createError(error.message, $filename, $lineNumber)",
|
|
29
|
+
" error.fileName = $filename",
|
|
30
|
+
" error.lineNumber = $lineNumber",
|
|
31
|
+
" edgeError.handle = function (_, ctx) {",
|
|
32
|
+
" return error.handle(error, ctx)",
|
|
33
|
+
" }",
|
|
34
|
+
" edgeError.report = function () {",
|
|
35
|
+
" return error.report(error)",
|
|
36
|
+
" }",
|
|
37
|
+
" throw edgeError",
|
|
38
|
+
" }",
|
|
39
|
+
" throw error",
|
|
40
|
+
"}"
|
|
41
|
+
].join("\n");
|
|
42
|
+
buffer.writeStatement(ddStatement, token.filename, token.loc.start.line);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
}
|
|
2
47
|
export { pluginEdgeDumper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConfigProvider } from '../../src/types.ts';
|
|
2
|
-
import { type AES256CBCDriverConfig, type AES256GCMDriverConfig, type ChaCha20Poly1305DriverConfig, type LegacyDriverConfig } from '../../types/encryption.ts';
|
|
2
|
+
import { type AESSIVDriverConfig, 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,6 +124,20 @@ export declare const drivers: {
|
|
|
124
124
|
* ```
|
|
125
125
|
*/
|
|
126
126
|
aes256gcm: (config: AES256GCMDriverConfig) => ConfigProvider<EncryptionConfig>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates an AES-SIV encryption driver configuration.
|
|
129
|
+
*
|
|
130
|
+
* @param config - The AES-SIV driver configuration
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* drivers.aessiv({
|
|
135
|
+
* id: 'app',
|
|
136
|
+
* key: env.get('APP_KEY')
|
|
137
|
+
* })
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
aessiv: (config: AESSIVDriverConfig) => ConfigProvider<EncryptionConfig>;
|
|
127
141
|
/**
|
|
128
142
|
* Creates a Legacy encryption driver configuration.
|
|
129
143
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AES-SIV encryption driver implementation.
|
|
3
|
+
*
|
|
4
|
+
* This driver provides deterministic authenticated encryption using AES-SIV
|
|
5
|
+
* (Synthetic Initialization Vector). It is useful when you need equality
|
|
6
|
+
* queries over encrypted values while preserving authenticity guarantees.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const driver = new AESSIV({
|
|
11
|
+
* id: 'app',
|
|
12
|
+
* key: 'your-256-bit-key-here'
|
|
13
|
+
* })
|
|
14
|
+
*
|
|
15
|
+
* const encrypted = driver.encrypt('sensitive data')
|
|
16
|
+
* const decrypted = driver.decrypt(encrypted)
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export { AESSIV } from '@boringnode/encryption/drivers/aes_siv';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Secret } from '@poppinss/utils';
|
|
2
2
|
import { BaseDriver } from '@boringnode/encryption';
|
|
3
|
-
import type {
|
|
3
|
+
import type { CypherText, EncryptOptions, EncryptionDriverContract } from '@boringnode/encryption/types';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for the Legacy encryption driver.
|
|
6
6
|
*
|
|
@@ -73,4 +73,12 @@ export declare class Legacy extends BaseDriver implements EncryptionDriverContra
|
|
|
73
73
|
* Decrypt value and verify it against a purpose
|
|
74
74
|
*/
|
|
75
75
|
decrypt<T extends any>(value: string, purpose?: string): T | null;
|
|
76
|
+
/**
|
|
77
|
+
* Legacy driver does not support blind indexes.
|
|
78
|
+
*/
|
|
79
|
+
blindIndex(_payload: any, _purpose: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* Legacy driver does not support blind indexes.
|
|
82
|
+
*/
|
|
83
|
+
blindIndexes(_payload: any, _purpose: string): string[];
|
|
76
84
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as E_BLIND_INDEX_NOT_SUPPORTED } from "../../../errors-CrCO-k44.js";
|
|
1
2
|
import { BaseDriver, Hmac, base64UrlDecode, base64UrlEncode, errors } from "@boringnode/encryption";
|
|
2
3
|
import { MessageBuilder } from "@poppinss/utils";
|
|
3
4
|
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
@@ -46,5 +47,11 @@ var Legacy = class extends BaseDriver {
|
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
50
|
+
blindIndex(_payload, _purpose) {
|
|
51
|
+
throw new E_BLIND_INDEX_NOT_SUPPORTED(["legacy"]);
|
|
52
|
+
}
|
|
53
|
+
blindIndexes(_payload, _purpose) {
|
|
54
|
+
throw new E_BLIND_INDEX_NOT_SUPPORTED(["legacy"]);
|
|
55
|
+
}
|
|
49
56
|
};
|
|
50
57
|
export { Legacy, legacy };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Raised when attempting to compute blind indexes using the legacy driver.
|
|
3
|
+
*/
|
|
4
|
+
export declare const E_BLIND_INDEX_NOT_SUPPORTED: new (args: [string], options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
5
|
+
/**
|
|
6
|
+
* Encryption errors exposed by this package.
|
|
7
|
+
*/
|
|
8
|
+
export declare const errors: {
|
|
9
|
+
E_BLIND_INDEX_NOT_SUPPORTED: new (args: [string], options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
10
|
+
E_BLIND_INDEX_PURPOSE_REQUIRED: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
11
|
+
E_DETERMINISTIC_DRIVER_EXPIRES_IN_NOT_SUPPORTED: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
12
|
+
E_INSECURE_ENCRYPTER_KEY: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
13
|
+
E_INVALID_ENCRYPTER_ID: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
14
|
+
E_MISSING_ENCRYPTER_ID: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
15
|
+
E_MISSING_ENCRYPTER_KEY: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
16
|
+
};
|
|
@@ -68,6 +68,10 @@ export { Hmac } from '@boringnode/encryption';
|
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
export { BaseDriver } from '@boringnode/encryption';
|
|
71
|
+
/**
|
|
72
|
+
* Encryption module specific exceptions.
|
|
73
|
+
*/
|
|
74
|
+
export { errors } from './errors.ts';
|
|
71
75
|
/**
|
|
72
76
|
* Defines the encryption configuration for the application.
|
|
73
77
|
*
|
|
@@ -77,8 +81,8 @@ export { defineConfig } from './define_config.ts';
|
|
|
77
81
|
/**
|
|
78
82
|
* Collection of built-in encryption driver factory functions.
|
|
79
83
|
*
|
|
80
|
-
* Includes factories for ChaCha20-Poly1305, AES-256-CBC,
|
|
81
|
-
* AES-256-GCM encryption algorithms.
|
|
84
|
+
* Includes factories for ChaCha20-Poly1305, AES-256-CBC,
|
|
85
|
+
* AES-256-GCM, and AES-SIV encryption algorithms.
|
|
82
86
|
*
|
|
83
87
|
* @see {drivers} in define_config.ts for detailed documentation
|
|
84
88
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../debug-
|
|
2
|
-
import "../../config_provider-
|
|
3
|
-
import "../../
|
|
4
|
-
import { n as drivers, t as defineConfig } from "../../define_config-
|
|
5
|
-
import {
|
|
6
|
-
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers };
|
|
1
|
+
import "../../debug-CGQmxzGt.js";
|
|
2
|
+
import "../../config_provider-FIAUgvae.js";
|
|
3
|
+
import { n as errors } from "../../errors-CrCO-k44.js";
|
|
4
|
+
import { n as drivers, t as defineConfig } from "../../define_config-0oHaj43l.js";
|
|
5
|
+
import { BaseDriver, Encryption, EncryptionManager, Hmac } from "@boringnode/encryption";
|
|
6
|
+
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers, errors };
|
package/build/modules/events.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../events-BWRc08nG.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/events";
|
|
4
|
-
|
|
3
|
+
var events_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_events from "@adonisjs/events";
|
|
5
|
+
__reExport(events_exports, import__adonisjs_events);
|
|
6
|
+
export { events_exports as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import "../../debug-
|
|
3
|
-
import "../../config_provider-
|
|
4
|
-
import { n as defineConfig, r as drivers } from "../../main-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
|
+
import "../../debug-CGQmxzGt.js";
|
|
3
|
+
import "../../config_provider-FIAUgvae.js";
|
|
4
|
+
import { n as defineConfig, r as drivers } from "../../main-DkNgvceD.js";
|
|
5
5
|
export * from "@adonisjs/hash";
|
|
6
6
|
export { defineConfig, drivers };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import { n as RequestValidator } from "../../main-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
|
+
import { n as RequestValidator } from "../../main-DN2qEEg5.js";
|
|
3
3
|
export * from "@adonisjs/http-server";
|
|
4
4
|
export { RequestValidator };
|
package/build/modules/logger.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
2
|
+
import { destination } from "@adonisjs/logger";
|
|
3
3
|
export * from "@adonisjs/logger";
|
|
4
|
-
|
|
4
|
+
var logger_exports = /* @__PURE__ */ __exportAll({ syncDestination: () => syncDestination });
|
|
5
|
+
import * as import__adonisjs_logger from "@adonisjs/logger";
|
|
6
|
+
__reExport(logger_exports, import__adonisjs_logger);
|
|
7
|
+
async function syncDestination(options) {
|
|
8
|
+
const { default: pinoPretty, isColorSupported } = await import("pino-pretty");
|
|
9
|
+
return isColorSupported ? pinoPretty({
|
|
10
|
+
...options,
|
|
11
|
+
sync: true
|
|
12
|
+
}) : destination(1);
|
|
13
|
+
}
|
|
14
|
+
export { syncDestination, logger_exports as t };
|
package/build/modules/repl.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../repl-CwFmzJvr.js";
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "../chunk-iKc69rpz.js";
|
|
3
2
|
export * from "@adonisjs/repl";
|
|
4
|
-
|
|
3
|
+
var repl_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
import * as import__adonisjs_repl from "@adonisjs/repl";
|
|
5
|
+
__reExport(repl_exports, import__adonisjs_repl);
|
|
6
|
+
export { repl_exports as t };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../debug-
|
|
3
|
-
import { t as app_exports } from "../app
|
|
4
|
-
import { t as configProvider } from "../config_provider-
|
|
5
|
-
import { t as config_exports } from "../config
|
|
6
|
-
import { t as events_exports } from "../events
|
|
7
|
-
import { t as logger_exports } from "../logger
|
|
8
|
-
import { t as Dumper } from "../dumper-
|
|
9
|
-
import {
|
|
10
|
-
import { t as main_exports } from "../main-
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
|
+
import "../debug-CGQmxzGt.js";
|
|
3
|
+
import { t as app_exports } from "../modules/app.js";
|
|
4
|
+
import { t as configProvider } from "../config_provider-FIAUgvae.js";
|
|
5
|
+
import { t as config_exports } from "../modules/config.js";
|
|
6
|
+
import { t as events_exports } from "../modules/events.js";
|
|
7
|
+
import { t as logger_exports } from "../modules/logger.js";
|
|
8
|
+
import { t as Dumper } from "../dumper-BBgqFX5a.js";
|
|
9
|
+
import { RuntimeException } from "../src/exceptions.js";
|
|
10
|
+
import { t as main_exports } from "../main-DN2qEEg5.js";
|
|
11
|
+
import "../errors-CrCO-k44.js";
|
|
12
|
+
import "../define_config-0oHaj43l.js";
|
|
13
|
+
import { Encryption } from "../modules/encryption/main.js";
|
|
14
|
+
import bodyparser_middleware_default from "../modules/bodyparser/bodyparser_middleware.js";
|
|
14
15
|
import { dirname } from "node:path";
|
|
15
16
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
16
17
|
var AppServiceProvider = class {
|
|
@@ -25,7 +26,7 @@ var AppServiceProvider = class {
|
|
|
25
26
|
}
|
|
26
27
|
registerAce() {
|
|
27
28
|
this.app.container.singleton("ace", async () => {
|
|
28
|
-
const { createAceKernel } = await import("../create_kernel-
|
|
29
|
+
const { createAceKernel } = await import("../create_kernel-BD0Iqi8e.js");
|
|
29
30
|
return createAceKernel(this.app);
|
|
30
31
|
});
|
|
31
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
3
|
-
import {
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
|
+
import { t as main_exports } from "../main-DN2qEEg5.js";
|
|
3
|
+
import { pluginEdgeDumper } from "../modules/dumper/plugins/edge.js";
|
|
4
4
|
import edge from "edge.js";
|
|
5
5
|
var EdgeServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
|
@@ -58,10 +58,12 @@ var EdgeServiceProvider = class {
|
|
|
58
58
|
return router.urlBuilder.signedUrlFor(...args);
|
|
59
59
|
});
|
|
60
60
|
edge.global("qs", qs);
|
|
61
|
-
edge.global("formAttributes", function(route,
|
|
61
|
+
edge.global("formAttributes", function(route, params, options) {
|
|
62
|
+
const matchingRoute = router.findOrFail(route);
|
|
62
63
|
options = options ?? {};
|
|
63
|
-
method =
|
|
64
|
+
let method = matchingRoute.methods[0].toUpperCase();
|
|
64
65
|
const original = method;
|
|
66
|
+
if (method === "HEAD") method = "GET";
|
|
65
67
|
if (method !== "GET" && method !== "POST") {
|
|
66
68
|
method = "POST";
|
|
67
69
|
options = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../debug-
|
|
3
|
-
import { t as configProvider } from "../config_provider-
|
|
4
|
-
import { t as main_exports } from "../main-
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
|
+
import "../debug-CGQmxzGt.js";
|
|
3
|
+
import { t as configProvider } from "../config_provider-FIAUgvae.js";
|
|
4
|
+
import { t as main_exports } from "../main-DkNgvceD.js";
|
|
5
5
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
6
6
|
var HashServiceProvider = class {
|
|
7
7
|
constructor(app) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import { t as repl_exports } from "../repl
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
|
+
import { t as repl_exports } from "../modules/repl.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
|
-
import "../chunk-
|
|
2
|
-
import { n as RequestValidator, t as main_exports } from "../main-
|
|
3
|
-
import {
|
|
1
|
+
import "../chunk-iKc69rpz.js";
|
|
2
|
+
import { n as RequestValidator, t as main_exports } from "../main-DN2qEEg5.js";
|
|
3
|
+
import { VineMultipartFile } from "../src/vine.js";
|
|
4
4
|
import { Vine } from "@vinejs/vine";
|
|
5
5
|
var VineJSServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
package/build/services/ace.js
CHANGED
package/build/services/app.js
CHANGED
package/build/services/config.js
CHANGED
package/build/services/dumper.js
CHANGED