@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
|
@@ -3,13 +3,13 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __exportAll = (all,
|
|
6
|
+
var __exportAll = (all, no_symbols) => {
|
|
7
7
|
let target = {};
|
|
8
8
|
for (var name in all) __defProp(target, name, {
|
|
9
9
|
get: all[name],
|
|
10
10
|
enumerable: true
|
|
11
11
|
});
|
|
12
|
-
if (
|
|
12
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
13
|
return target;
|
|
14
14
|
};
|
|
15
15
|
var __copyProps = (to, from, except, desc) => {
|
package/build/commands/add.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
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 "../utils-DjXMIVBJ.js";
|
|
11
|
-
import { n as prettyPrintError } from "../core-Ckhxy7oM.js";
|
|
12
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-BWftwyAK.js";
|
|
13
|
-
import { t as __decorate } from "../decorate-DM0Sx1ye.js";
|
|
3
|
+
import "../debug-CGQmxzGt.js";
|
|
4
|
+
import "../main-Cxz0TyIw.js";
|
|
5
|
+
import "../config_provider-FIAUgvae.js";
|
|
6
|
+
import "../utils-CcS9NOK_.js";
|
|
7
|
+
import { n as prettyPrintError } from "../core-CvwBnUuy.js";
|
|
8
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-MBAMnmJb.js";
|
|
9
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
14
10
|
var Add = class extends BaseCommand {
|
|
15
11
|
static commandName = "add";
|
|
16
12
|
static description = "Install and configure one or more packages";
|
package/build/commands/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as importTypeScript, t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { n as importTypeScript, t as importAssembler } from "../utils-CcS9NOK_.js";
|
|
2
|
+
import { f as BaseCommand, l as flags } from "../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
4
4
|
var Build = class extends BaseCommand {
|
|
5
5
|
static commandName = "build";
|
|
6
6
|
static description = "Build application for production by compiling frontend assets and TypeScript source to JavaScript";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
4
4
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
5
5
|
var Configure = class extends BaseCommand {
|
|
6
6
|
static commandName = "configure";
|
package/build/commands/eject.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import stringHelpers from "../src/helpers/string.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
4
4
|
var Eject = class extends BaseCommand {
|
|
5
5
|
static commandName = "eject";
|
|
6
6
|
static description = "Eject scaffolding stubs to your application root";
|
|
7
7
|
async run() {
|
|
8
8
|
(await (await this.app.stubs.create()).copy(this.stubPath, { pkg: this.pkg })).forEach((stubPath) => {
|
|
9
|
-
this.logger.success(`eject ${
|
|
9
|
+
this.logger.success(`eject ${stringHelpers.toUnixSlash(this.app.relativePath(stubPath))}`);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
1
|
+
import stringHelpers from "../../src/helpers/string.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
const ALLOWED_TYPES = [
|
|
5
5
|
"string",
|
|
6
6
|
"boolean",
|
|
@@ -17,7 +17,7 @@ var EnvAdd = class extends BaseCommand {
|
|
|
17
17
|
async run() {
|
|
18
18
|
if (!this.name) this.name = await this.prompt.ask("Enter the variable name", {
|
|
19
19
|
validate: (value) => !!value,
|
|
20
|
-
format: (value) =>
|
|
20
|
+
format: (value) => stringHelpers.snakeCase(value).toUpperCase()
|
|
21
21
|
});
|
|
22
22
|
if (!this.value) this.value = await this.prompt.ask("Enter the variable value");
|
|
23
23
|
if (!this.type) this.type = await this.prompt.choice("Select the variable type", ALLOWED_TYPES);
|
|
@@ -27,7 +27,7 @@ var EnvAdd = class extends BaseCommand {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
const codemods = await this.createCodemods();
|
|
30
|
-
const transformedName =
|
|
30
|
+
const transformedName = stringHelpers.snakeCase(this.name).toUpperCase();
|
|
31
31
|
await codemods.defineEnvVariables({ [transformedName]: this.value }, { omitFromExample: [transformedName] });
|
|
32
32
|
const validation = {
|
|
33
33
|
string: "Env.schema.string()",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { f as BaseCommand, l as flags } from "../main-MBAMnmJb.js";
|
|
2
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
3
3
|
import string from "@poppinss/utils/string";
|
|
4
4
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
5
5
|
var GenerateKey = class extends BaseCommand {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BaseCommand } from "../main-
|
|
1
|
+
import { f as BaseCommand } from "../main-MBAMnmJb.js";
|
|
2
2
|
var InspectRCFile = class extends BaseCommand {
|
|
3
3
|
static commandName = "inspect:rcfile";
|
|
4
4
|
static description = "Inspect the RC file with its default values";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BaseCommand, l as flags, o as args, s as cliHelpers } from "../../main-
|
|
2
|
-
import { t as __decorate } from "../../decorate-
|
|
1
|
+
import { f as BaseCommand, l as flags, o as args, s as cliHelpers } from "../../main-MBAMnmJb.js";
|
|
2
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
3
3
|
import stringWidth from "string-width";
|
|
4
4
|
import { middlewareInfo, routeInfo } from "@adonisjs/http-server/helpers";
|
|
5
5
|
var RoutesListFormatter = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeCommand = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:command";
|
|
6
6
|
static description = "Create a new ace command class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
import string from "@poppinss/utils/string";
|
|
5
5
|
var MakeController = class extends BaseCommand {
|
|
6
6
|
static commandName = "make:controller";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeEvent = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:event";
|
|
6
6
|
static description = "Create a new event class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeException = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:exception";
|
|
6
6
|
static description = "Create a new custom exception class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeListener = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:listener";
|
|
6
6
|
static description = "Create a new event listener class";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import stringHelpers from "../../src/helpers/string.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
5
5
|
import string from "@poppinss/utils/string";
|
|
6
6
|
import { basename, extname, relative } from "node:path";
|
|
7
7
|
var MakeMiddleware = class extends BaseCommand {
|
|
@@ -26,7 +26,7 @@ var MakeMiddleware = class extends BaseCommand {
|
|
|
26
26
|
flags: this.parsed.flags,
|
|
27
27
|
entity: this.app.generators.createEntity(this.name)
|
|
28
28
|
}, { contentsFromFile: this.contentsFrom });
|
|
29
|
-
const middlewareRelativePath =
|
|
29
|
+
const middlewareRelativePath = stringHelpers.toUnixSlash(relative(this.app.middlewarePath(), destination).replace(extname(destination), ""));
|
|
30
30
|
const name = string.camelCase(basename(middlewareRelativePath).replace(/_middleware$/, ""));
|
|
31
31
|
await codemods.registerMiddleware(this.stack, [{
|
|
32
32
|
name,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import stringHelpers from "../../src/helpers/string.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
const ALLOWED_ENVIRONMENTS = [
|
|
7
7
|
"web",
|
|
@@ -29,7 +29,7 @@ var MakePreload = class extends BaseCommand {
|
|
|
29
29
|
entity: this.app.generators.createEntity(this.name)
|
|
30
30
|
}, { contentsFromFile: this.contentsFrom });
|
|
31
31
|
if (!this.register) return;
|
|
32
|
-
const preloadFileRelativePath =
|
|
32
|
+
const preloadFileRelativePath = stringHelpers.toUnixSlash(relative(this.app.startPath(), destination).replace(extname(destination), ""));
|
|
33
33
|
await codemods.updateRcFile((rcFile) => {
|
|
34
34
|
rcFile.addPreloadFile(`#start/${preloadFileRelativePath}`, this.environments);
|
|
35
35
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import stringHelpers from "../../src/helpers/string.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
const ALLOWED_ENVIRONMENTS = [
|
|
7
7
|
"web",
|
|
@@ -29,7 +29,7 @@ var MakeProvider = class extends BaseCommand {
|
|
|
29
29
|
entity: this.app.generators.createEntity(this.name)
|
|
30
30
|
}, { contentsFromFile: this.contentsFrom });
|
|
31
31
|
if (!this.register) return;
|
|
32
|
-
const providerRelativePath =
|
|
32
|
+
const providerRelativePath = stringHelpers.toUnixSlash(relative(this.app.providersPath(), destination).replace(extname(destination), ""));
|
|
33
33
|
await codemods.updateRcFile((rcFile) => {
|
|
34
34
|
rcFile.addProvider(`#providers/${providerRelativePath}`, this.environments);
|
|
35
35
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeService = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:service";
|
|
6
6
|
static description = "Create a new service class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeTest = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:test";
|
|
6
6
|
static description = "Create a new Japa test file";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeTransformer = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:transformer";
|
|
6
6
|
static description = "Create a new transformer class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeValidator = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:validator";
|
|
6
6
|
static description = "Create a new file to define VineJS validators";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DmrZA614.js";
|
|
4
4
|
var MakeView = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:view";
|
|
6
6
|
static description = "Create a new Edge.js template file";
|
package/build/commands/repl.js
CHANGED
package/build/commands/serve.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { t as importAssembler } from "../utils-CcS9NOK_.js";
|
|
2
|
+
import { f as BaseCommand, l as flags } from "../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
4
4
|
var Serve = class extends BaseCommand {
|
|
5
5
|
static commandName = "serve";
|
|
6
6
|
static description = "Start the development HTTP server along with the file watcher to perform restarts on file change";
|
package/build/commands/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { t as importAssembler } from "../utils-CcS9NOK_.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-MBAMnmJb.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DmrZA614.js";
|
|
4
4
|
var Test = class extends BaseCommand {
|
|
5
5
|
static commandName = "test";
|
|
6
6
|
static description = "Run tests along with the file watcher to re-run tests on file change";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as outputTransformerDataObjects } from "./utils-
|
|
1
|
+
import stringHelpers from "./src/helpers/string.js";
|
|
2
|
+
import { r as outputTransformerDataObjects } from "./utils-CcS9NOK_.js";
|
|
3
3
|
import { errors } from "@adonisjs/ace";
|
|
4
4
|
import { errors as errors$1 } from "@adonisjs/env";
|
|
5
5
|
import { errors as errors$2 } from "@adonisjs/application";
|
|
@@ -91,7 +91,7 @@ function indexEntities(entities = {}) {
|
|
|
91
91
|
let segments = key.split("/");
|
|
92
92
|
const baseName = segments.pop();
|
|
93
93
|
if (transformers.skipSegments?.length) segments = segments.filter((s) => !transformers.skipSegments.includes(s));
|
|
94
|
-
return [...segments.map((segment) =>
|
|
94
|
+
return [...segments.map((segment) => stringHelpers.pascalCase(segment)), stringHelpers.create(baseName).removeSuffix("transformer").pascalCase()].join("/");
|
|
95
95
|
},
|
|
96
96
|
transformValue: helpers.toImportPath
|
|
97
97
|
}), buffer, transformers.withSharedProps);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Kernel, n as HelpCommand, t as FsLoader } from "./main-
|
|
1
|
+
import { d as Kernel, n as HelpCommand, t as FsLoader } from "./main-MBAMnmJb.js";
|
|
2
2
|
function createAceKernel(app, commandName) {
|
|
3
3
|
const kernel = new Kernel(app);
|
|
4
4
|
kernel.info.set("binary", "node ace");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as debug_default } from "./debug-
|
|
2
|
-
import { t as configProvider } from "./config_provider-
|
|
3
|
-
import {
|
|
1
|
+
import { t as debug_default } from "./debug-CGQmxzGt.js";
|
|
2
|
+
import { t as configProvider } from "./config_provider-FIAUgvae.js";
|
|
3
|
+
import { InvalidArgumentsException } from "./src/exceptions.js";
|
|
4
4
|
function defineConfig(config) {
|
|
5
5
|
if (!config.list) throw new InvalidArgumentsException("Missing \"list\" property in encryption config");
|
|
6
6
|
if (config.default && !config.list[config.default]) throw new InvalidArgumentsException(`Missing "list.${String(config.default)}" in encryption config. It is referenced by the "default" property`);
|
|
@@ -59,6 +59,19 @@ const drivers = {
|
|
|
59
59
|
};
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
|
+
aessiv: (config) => {
|
|
63
|
+
return configProvider.create(async () => {
|
|
64
|
+
const { AESSIV } = await import("./modules/encryption/drivers/aes_siv.js");
|
|
65
|
+
debug_default("configuring aessiv encryption driver");
|
|
66
|
+
return {
|
|
67
|
+
driver: (key) => new AESSIV({
|
|
68
|
+
id: config.id,
|
|
69
|
+
key
|
|
70
|
+
}),
|
|
71
|
+
keys: [config.key].filter((key) => !!key)
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
},
|
|
62
75
|
legacy: (config) => {
|
|
63
76
|
return configProvider.create(async () => {
|
|
64
77
|
const { Legacy } = await import("./modules/encryption/drivers/legacy.js");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createError } from "./src/exceptions.js";
|
|
2
|
+
import { errors } from "@boringnode/encryption";
|
|
3
|
+
const E_BLIND_INDEX_NOT_SUPPORTED = createError("Blind indexes are not supported by the \"%s\" encryption driver", "E_BLIND_INDEX_NOT_SUPPORTED");
|
|
4
|
+
const errors$1 = {
|
|
5
|
+
...errors,
|
|
6
|
+
E_BLIND_INDEX_NOT_SUPPORTED
|
|
7
|
+
};
|
|
8
|
+
export { errors$1 as n, E_BLIND_INDEX_NOT_SUPPORTED as t };
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import "../../debug-
|
|
3
|
-
import "../../main-
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "../../
|
|
9
|
-
import "
|
|
10
|
-
import "../../
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
|
+
import "../../debug-CGQmxzGt.js";
|
|
3
|
+
import { t as Ignitor } from "../../main-Cxz0TyIw.js";
|
|
4
|
+
import "../../config_provider-FIAUgvae.js";
|
|
5
|
+
import "../../main-MBAMnmJb.js";
|
|
6
|
+
import "../../main-DN2qEEg5.js";
|
|
7
|
+
import "../../define_config-0oHaj43l.js";
|
|
8
|
+
import "../../main-DkNgvceD.js";
|
|
9
|
+
import { IgnitorFactory } from "./ignitor.js";
|
|
10
|
+
import { t as createAceKernel } from "../../create_kernel-B7ILNhuP.js";
|
|
11
|
+
var AceFactory = class {
|
|
12
|
+
async make(ignitorOrAppRoot, options) {
|
|
13
|
+
if (ignitorOrAppRoot instanceof Ignitor) {
|
|
14
|
+
const app = ignitorOrAppRoot.createApp("console");
|
|
15
|
+
await app.init();
|
|
16
|
+
return createAceKernel(app);
|
|
17
|
+
}
|
|
18
|
+
const app = new IgnitorFactory().withCoreConfig().withCoreProviders().create(ignitorOrAppRoot, options).createApp("console");
|
|
19
|
+
await app.init();
|
|
20
|
+
return createAceKernel(app);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
17
23
|
export { AceFactory };
|
|
@@ -1,14 +1,74 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import "../../debug-
|
|
3
|
-
import "../../main-
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "../../
|
|
9
|
-
import "../../main
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import "../../chunk-iKc69rpz.js";
|
|
2
|
+
import "../../debug-CGQmxzGt.js";
|
|
3
|
+
import { t as Ignitor } from "../../main-Cxz0TyIw.js";
|
|
4
|
+
import "../../config_provider-FIAUgvae.js";
|
|
5
|
+
import { t as logger_exports } from "../../modules/logger.js";
|
|
6
|
+
import { t as main_exports } from "../../main-DN2qEEg5.js";
|
|
7
|
+
import { n as drivers, t as defineConfig } from "../../define_config-0oHaj43l.js";
|
|
8
|
+
import { n as defineConfig$1, r as drivers$1 } from "../../main-DkNgvceD.js";
|
|
9
|
+
import { t as main_exports$1 } from "../../modules/bodyparser/main.js";
|
|
10
|
+
var IgnitorFactory = class {
|
|
11
|
+
#preloadActions = [];
|
|
12
|
+
#parameters = {};
|
|
13
|
+
#loadCoreProviders = false;
|
|
14
|
+
preload(action) {
|
|
15
|
+
this.#preloadActions.push(action);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
#mergeCoreProviders(providers) {
|
|
19
|
+
return [
|
|
20
|
+
() => import("@adonisjs/core/providers/app_provider"),
|
|
21
|
+
() => import("@adonisjs/core/providers/hash_provider"),
|
|
22
|
+
() => import("@adonisjs/core/providers/repl_provider")
|
|
23
|
+
].concat(providers || []);
|
|
24
|
+
}
|
|
25
|
+
merge(params) {
|
|
26
|
+
if (params.config) this.#parameters.config = Object.assign(this.#parameters.config || {}, params.config);
|
|
27
|
+
if (params.rcFileContents) this.#parameters.rcFileContents = Object.assign(this.#parameters.rcFileContents || {}, params.rcFileContents);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
withCoreProviders() {
|
|
31
|
+
this.#loadCoreProviders = true;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
withCoreConfig() {
|
|
35
|
+
this.merge({ config: {
|
|
36
|
+
app: {
|
|
37
|
+
appUrl: "http://localhost:3333",
|
|
38
|
+
http: (0, main_exports.defineConfig)({})
|
|
39
|
+
},
|
|
40
|
+
validator: {},
|
|
41
|
+
encryption: defineConfig({
|
|
42
|
+
default: "gcm",
|
|
43
|
+
list: { gcm: drivers.aes256gcm({
|
|
44
|
+
id: "gcm",
|
|
45
|
+
keys: ["averylongrandomsecretkey"]
|
|
46
|
+
}) }
|
|
47
|
+
}),
|
|
48
|
+
bodyparser: (0, main_exports$1.defineConfig)({}),
|
|
49
|
+
hash: defineConfig$1({
|
|
50
|
+
default: "scrypt",
|
|
51
|
+
list: { scrypt: drivers$1.scrypt({}) }
|
|
52
|
+
}),
|
|
53
|
+
logger: (0, logger_exports.defineConfig)({
|
|
54
|
+
default: "app",
|
|
55
|
+
loggers: { app: {} }
|
|
56
|
+
})
|
|
57
|
+
} });
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
create(appRoot, options) {
|
|
61
|
+
return new Ignitor(appRoot, options).tap((app) => {
|
|
62
|
+
app.booted(async () => {
|
|
63
|
+
for (let action of this.#preloadActions) await action(app);
|
|
64
|
+
});
|
|
65
|
+
if (this.#loadCoreProviders) {
|
|
66
|
+
this.#parameters.rcFileContents = this.#parameters.rcFileContents || {};
|
|
67
|
+
this.#parameters.rcFileContents.providers = this.#mergeCoreProviders(this.#parameters.rcFileContents.providers);
|
|
68
|
+
}
|
|
69
|
+
this.#parameters.rcFileContents && app.rcContents(this.#parameters.rcFileContents);
|
|
70
|
+
this.#parameters.config && app.useConfig(this.#parameters.config);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
14
74
|
export { IgnitorFactory };
|
|
@@ -1,25 +1,18 @@
|
|
|
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 "../../main-
|
|
13
|
-
import "
|
|
14
|
-
import "../../
|
|
15
|
-
import "
|
|
16
|
-
import "../../
|
|
17
|
-
import "
|
|
18
|
-
import "../../main-BIVLvDaW.js";
|
|
19
|
-
import "../../main-DOY5Q8Av.js";
|
|
20
|
-
import { t as IgnitorFactory } from "../../ignitor-D6oitHT8.js";
|
|
21
|
-
import "../../create_kernel-PIeMK2Fo.js";
|
|
22
|
-
import { t as AceFactory } from "../../ace-BtbS16RX.js";
|
|
23
|
-
import "../../main-C4Amt3wT.js";
|
|
24
|
-
import { t as TestUtilsFactory } from "../../test_utils-Ql9I7QAz.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";
|
|
8
|
+
import "../../main-MBAMnmJb.js";
|
|
9
|
+
import "../../main-DN2qEEg5.js";
|
|
10
|
+
import "../../errors-CrCO-k44.js";
|
|
11
|
+
import "../../define_config-0oHaj43l.js";
|
|
12
|
+
import "../../main-DkNgvceD.js";
|
|
13
|
+
import { IgnitorFactory } from "./ignitor.js";
|
|
14
|
+
import "../../create_kernel-B7ILNhuP.js";
|
|
15
|
+
import { AceFactory } from "./ace.js";
|
|
16
|
+
import "../../main--nXd7T-C.js";
|
|
17
|
+
import { TestUtilsFactory } from "./test_utils.js";
|
|
25
18
|
export { AceFactory, IgnitorFactory, TestUtilsFactory };
|