@adonisjs/core 7.0.0-next.26 → 7.0.0-next.28
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/README.md +61 -0
- 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-BFf40UqW.js} +1 -1
- package/build/create_kernel-kceIXCLj.js +3 -0
- package/build/{define_config-BlZ46bUg.js → define_config-C9vVaMH2.js} +3 -3
- package/build/{dumper-DxJ_VRuC.js → dumper-BBgqFX5a.js} +1 -1
- package/build/factories/core/ace.js +22 -16
- package/build/factories/core/ignitor.js +73 -13
- package/build/factories/core/main.js +15 -23
- package/build/factories/core/test_utils.js +17 -20
- package/build/factories/stubs.js +6 -10
- package/build/index.js +7 -10
- package/build/{main-BIVLvDaW.js → main-BAQrymbz.js} +3 -3
- package/build/{main-DjlqWWRt.js → main-CGF65fuX.js} +3 -3
- package/build/{main-DNokQ-c9.js → main-DN2qEEg5.js} +20 -9
- package/build/{main-DIF5Sg8W.js → main-zQdklBGW.js} +9 -7
- package/build/modules/ace/codemods.js +3 -4
- 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/main.js +4 -5
- 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/http/request_validator.d.ts +2 -1
- package/build/modules/logger.js +13 -3
- package/build/modules/repl.js +5 -3
- package/build/providers/app_provider.js +14 -14
- package/build/providers/edge_provider.js +3 -3
- package/build/providers/hash_provider.js +4 -4
- package/build/providers/repl_provider.js +2 -2
- package/build/providers/vinejs_provider.js +6 -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/debug.d.ts +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 +3 -3
- package/build/src/helpers/verification_token.js +45 -1
- package/build/src/test_utils/main.js +6 -8
- package/build/src/vine.js +32 -1
- package/build/toolkit/main.js +1 -1
- package/package.json +12 -12
- package/build/ace-BfYSDoPf.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-BVYR-Vjr.js +0 -47
- package/build/events-BWRc08nG.js +0 -5
- package/build/exceptions-DNMesP42.js +0 -2
- package/build/ignitor-B5akJVlQ.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-JjctlaE3.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,19 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import "../../ignitor-B5akJVlQ.js";
|
|
20
|
-
import "../../main-DjlqWWRt.js";
|
|
21
|
-
import { t as TestUtilsFactory } from "../../test_utils-JjctlaE3.js";
|
|
3
|
+
import "../../debug-CGQmxzGt.js";
|
|
4
|
+
import { t as Ignitor } from "../../main-zQdklBGW.js";
|
|
5
|
+
import "../../config_provider-FIAUgvae.js";
|
|
6
|
+
import "../../utils-CcS9NOK_.js";
|
|
7
|
+
import "../../core-CvwBnUuy.js";
|
|
8
|
+
import "../../main-DN2qEEg5.js";
|
|
9
|
+
import "../../define_config-C9vVaMH2.js";
|
|
10
|
+
import "../../main-BAQrymbz.js";
|
|
11
|
+
import { IgnitorFactory } from "./ignitor.js";
|
|
12
|
+
import { t as TestUtils } from "../../main-CGF65fuX.js";
|
|
13
|
+
var TestUtilsFactory = class {
|
|
14
|
+
create(ignitorOrAppRoot, options) {
|
|
15
|
+
if (ignitorOrAppRoot instanceof Ignitor) return new TestUtils(ignitorOrAppRoot.createApp("test"));
|
|
16
|
+
return new TestUtils(new IgnitorFactory().withCoreConfig().withCoreProviders().create(ignitorOrAppRoot, options).createApp("console"));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
22
19
|
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-zQdklBGW.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-zQdklBGW.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 { 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,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,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./chunk-iKc69rpz.js";
|
|
2
2
|
import "@adonisjs/bodyparser";
|
|
3
3
|
var RequestValidator = class RequestValidator {
|
|
4
4
|
#ctx;
|
|
@@ -7,22 +7,33 @@ var RequestValidator = class RequestValidator {
|
|
|
7
7
|
}
|
|
8
8
|
static errorReporter;
|
|
9
9
|
static messagesProvider;
|
|
10
|
-
|
|
10
|
+
#requestData() {
|
|
11
|
+
return {
|
|
12
|
+
...this.#ctx.request.all(),
|
|
13
|
+
params: this.#ctx.request.params(),
|
|
14
|
+
headers: this.#ctx.request.headers(),
|
|
15
|
+
cookies: this.#ctx.request.cookiesList()
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
#processValidatorOptions(options) {
|
|
11
19
|
const validatorOptions = options || {};
|
|
12
20
|
if (RequestValidator.errorReporter && !validatorOptions.errorReporter) {
|
|
13
21
|
const errorReporter = RequestValidator.errorReporter(this.#ctx);
|
|
14
22
|
validatorOptions.errorReporter = () => errorReporter;
|
|
15
23
|
}
|
|
16
24
|
if (RequestValidator.messagesProvider && !validatorOptions.messagesProvider) validatorOptions.messagesProvider = RequestValidator.messagesProvider(this.#ctx);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
cookies: this.#ctx.request.cookiesList()
|
|
23
|
-
};
|
|
25
|
+
return validatorOptions;
|
|
26
|
+
}
|
|
27
|
+
validateUsing(validator, ...[options]) {
|
|
28
|
+
const validatorOptions = this.#processValidatorOptions(options);
|
|
29
|
+
const data = validatorOptions.data || this.#requestData();
|
|
24
30
|
return validator.validate(data, validatorOptions);
|
|
25
31
|
}
|
|
32
|
+
async tryValidateUsing(validator, ...[options]) {
|
|
33
|
+
const validatorOptions = this.#processValidatorOptions(options);
|
|
34
|
+
const data = validatorOptions.data || this.#requestData();
|
|
35
|
+
return validator.tryValidate(data, validatorOptions);
|
|
36
|
+
}
|
|
26
37
|
};
|
|
27
38
|
var main_exports = /* @__PURE__ */ __exportAll({ RequestValidator: () => RequestValidator });
|
|
28
39
|
import * as import__adonisjs_http_server from "@adonisjs/http-server";
|
|
@@ -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-kceIXCLj.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);
|
|
@@ -27,14 +27,16 @@ var AceProcess = class {
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
await this.#configureCallback(app);
|
|
30
|
+
app.terminating(() => {
|
|
31
|
+
const mainCommand = kernel.getMainCommand();
|
|
32
|
+
if (mainCommand?.staysAlive) process.exitCode = mainCommand.exitCode;
|
|
33
|
+
});
|
|
30
34
|
await kernel.handle(argv);
|
|
31
35
|
const mainCommand = kernel.getMainCommand();
|
|
32
36
|
if (!mainCommand || !mainCommand.staysAlive) {
|
|
33
37
|
process.exitCode = kernel.exitCode;
|
|
34
38
|
await app.terminate();
|
|
35
|
-
}
|
|
36
|
-
process.exitCode = mainCommand.exitCode;
|
|
37
|
-
});
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
};
|
|
40
42
|
var TestRunnerProcess = class {
|
|
@@ -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";
|
|
@@ -34,7 +34,6 @@ var Codemods = class extends EventEmitter {
|
|
|
34
34
|
case "yarn":
|
|
35
35
|
case "yarn@berry": return `${colors.yellow(`yarn add${devFlag}`)} ${packages.join(" ")}`;
|
|
36
36
|
case "pnpm": return `${colors.yellow(`pnpm add${devFlag}`)} ${packages.join(" ")}`;
|
|
37
|
-
case "npm":
|
|
38
37
|
default: return `${colors.yellow(`npm i${devFlag}`)} ${packages.join(" ")}`;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -223,7 +222,7 @@ var Codemods = class extends EventEmitter {
|
|
|
223
222
|
...stubState
|
|
224
223
|
});
|
|
225
224
|
debug_default("generating file %O", output);
|
|
226
|
-
const entityFileName =
|
|
225
|
+
const entityFileName = stringHelpers.toUnixSlash(this.#app.relativePath(output.destination));
|
|
227
226
|
const result = {
|
|
228
227
|
...output,
|
|
229
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,6 +1,5 @@
|
|
|
1
|
-
import "../../debug-
|
|
2
|
-
import "../../config_provider-
|
|
3
|
-
import "../../
|
|
4
|
-
import {
|
|
5
|
-
import { i as Hmac, n as Encryption, r as EncryptionManager, t as BaseDriver } from "../../main-C2r_lzz0.js";
|
|
1
|
+
import "../../debug-CGQmxzGt.js";
|
|
2
|
+
import "../../config_provider-FIAUgvae.js";
|
|
3
|
+
import { n as drivers, t as defineConfig } from "../../define_config-C9vVaMH2.js";
|
|
4
|
+
import { BaseDriver, Encryption, EncryptionManager, Hmac } from "@boringnode/encryption";
|
|
6
5
|
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers };
|
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-BAQrymbz.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VineValidator } from '@vinejs/vine';
|
|
1
|
+
import type { ValidationError, VineValidator } from '@vinejs/vine';
|
|
2
2
|
import type { Infer, SchemaTypes, ErrorReporterContract, MessagesProviderContact } from '@vinejs/vine/types';
|
|
3
3
|
import type { HttpContext } from './main.ts';
|
|
4
4
|
import type { RequestValidationOptions } from '../../types/http.ts';
|
|
@@ -58,4 +58,5 @@ export declare class RequestValidator {
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
validateUsing<Schema extends SchemaTypes, MetaData extends undefined | Record<string, any>>(validator: VineValidator<Schema, MetaData>, ...[options]: [undefined] extends MetaData ? [options?: RequestValidationOptions<MetaData> | undefined] : [options: RequestValidationOptions<MetaData>]): Promise<Infer<Schema>>;
|
|
61
|
+
tryValidateUsing<Schema extends SchemaTypes, MetaData extends undefined | Record<string, any>>(validator: VineValidator<Schema, MetaData>, ...[options]: [undefined] extends MetaData ? [options?: RequestValidationOptions<MetaData> | undefined] : [options: RequestValidationOptions<MetaData>]): Promise<[ValidationError, null] | [null, Infer<Schema>]>;
|
|
61
62
|
}
|
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,16 @@
|
|
|
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 "../define_config-
|
|
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 "../define_config-C9vVaMH2.js";
|
|
12
|
+
import { Encryption } from "../modules/encryption/main.js";
|
|
13
|
+
import bodyparser_middleware_default from "../modules/bodyparser/bodyparser_middleware.js";
|
|
14
14
|
import { dirname } from "node:path";
|
|
15
15
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
16
16
|
var AppServiceProvider = class {
|
|
@@ -25,7 +25,7 @@ var AppServiceProvider = class {
|
|
|
25
25
|
}
|
|
26
26
|
registerAce() {
|
|
27
27
|
this.app.container.singleton("ace", async () => {
|
|
28
|
-
const { createAceKernel } = await import("../create_kernel-
|
|
28
|
+
const { createAceKernel } = await import("../create_kernel-kceIXCLj.js");
|
|
29
29
|
return createAceKernel(this.app);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -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) {
|
|
@@ -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-BAQrymbz.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) {
|
|
@@ -14,6 +14,9 @@ var VineJSServiceProvider = class {
|
|
|
14
14
|
main_exports.HttpRequest.macro("validateUsing", function(...args) {
|
|
15
15
|
return new RequestValidator(this.ctx).validateUsing(...args);
|
|
16
16
|
});
|
|
17
|
+
main_exports.HttpRequest.macro("tryValidateUsing", function(...args) {
|
|
18
|
+
return new RequestValidator(this.ctx).tryValidateUsing(...args);
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
21
|
};
|
|
19
22
|
export { VineJSServiceProvider as default };
|
package/build/services/ace.js
CHANGED
package/build/services/app.js
CHANGED
package/build/services/config.js
CHANGED
package/build/services/dumper.js
CHANGED
package/build/services/hash.js
CHANGED
package/build/services/logger.js
CHANGED
package/build/services/repl.js
CHANGED
package/build/services/router.js
CHANGED
package/build/services/server.js
CHANGED
package/build/src/debug.d.ts
CHANGED