@adonisjs/core 7.3.4 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{ace-CNQ6J0KB.js → ace-DZFqbA8w.js} +2 -2
- package/build/{app-C9YGPOJ4.js → app-BOjDPLf-.js} +1 -1
- package/build/commands/add.js +2 -2
- package/build/commands/build.js +2 -2
- package/build/commands/configure.js +1 -1
- package/build/commands/eject.js +1 -1
- package/build/commands/env/add.js +1 -1
- package/build/commands/generate_key.js +1 -1
- package/build/commands/list/routes.js +1 -1
- package/build/commands/make/command.js +1 -1
- package/build/commands/make/controller.js +9 -5
- package/build/commands/make/event.js +1 -1
- package/build/commands/make/exception.js +1 -1
- package/build/commands/make/listener.js +1 -1
- package/build/commands/make/middleware.js +1 -1
- package/build/commands/make/preload.js +1 -1
- package/build/commands/make/provider.js +1 -1
- package/build/commands/make/service.js +1 -1
- package/build/commands/make/test.js +1 -1
- package/build/commands/make/transformer.js +1 -1
- package/build/commands/make/validator.js +1 -1
- package/build/commands/make/view.js +1 -1
- package/build/commands/serve.js +2 -2
- package/build/commands/test.js +2 -2
- package/build/{config-Bs4A3e5s.js → config-BB5flRG9.js} +1 -1
- package/build/{container-D8sVPuqE.js → container-DLqyMqk-.js} +1 -1
- package/build/{core-CCkG99Cu.js → core-D_q7qxZy.js} +6 -5
- package/build/{decorate-B1SGdM93.js → decorate-BKn10QQi.js} +1 -1
- package/build/{dumper-Dc5XHjSe.js → dumper-BhtAWrcS.js} +1 -1
- package/build/{events-DNyBVOHs.js → events-BVzXwbEH.js} +1 -1
- package/build/factories/core/ace.js +1 -1
- package/build/factories/core/ignitor.js +1 -1
- package/build/factories/core/main.js +3 -3
- package/build/factories/core/test_utils.js +1 -1
- package/build/factories/stubs.js +1 -1
- package/build/{ignitor-CnZgjncK.js → ignitor-CSR3YT32.js} +5 -5
- package/build/index.js +3 -3
- package/build/{logger-CbW11i_M.js → logger-DaDoVXHv.js} +1 -1
- package/build/{main-BWrmf4Da.js → main-B-RqQwgz.js} +1 -1
- package/build/{main-BZSwUaVy.js → main-B2M1tZ4I.js} +1 -1
- package/build/{main-C7vRIoCE.js → main-BOydGWpm.js} +1 -1
- package/build/{main-LKXR6eqi.js → main-DopY-cf1.js} +1 -1
- package/build/{main-DA1qYeFY.js → main-j-xf1jGN.js} +1 -1
- package/build/modules/ace/codemods.d.ts +1 -1
- package/build/modules/app.js +1 -1
- package/build/modules/bodyparser/main.js +1 -1
- package/build/modules/config.js +1 -1
- package/build/modules/container.js +1 -1
- package/build/modules/dumper/main.js +1 -1
- package/build/modules/encryption/drivers/legacy.js +12 -3
- package/build/modules/encryption/errors.d.ts +1 -0
- package/build/modules/events.js +1 -1
- package/build/modules/hash/main.js +1 -1
- package/build/modules/http/main.js +1 -1
- package/build/modules/logger.js +1 -1
- package/build/modules/repl.js +1 -1
- package/build/providers/app_provider.js +8 -7
- package/build/providers/edge_provider.js +1 -1
- package/build/providers/hash_provider.js +1 -1
- package/build/providers/repl_provider.js +1 -1
- package/build/providers/vinejs_provider.js +1 -1
- package/build/{repl--AZJh4Qw.js → repl-CScjR8hL.js} +1 -1
- package/build/src/helpers/main.js +1 -1
- package/build/src/helpers/verification_token.js +1 -1
- package/build/src/test_utils/main.js +1 -1
- package/build/src/vine.d.ts +1 -1
- package/build/{test_utils-CQULeC52.js → test_utils-C6nT3iIR.js} +4 -4
- package/build/toolkit/main.js +1 -1
- package/build/{utils-1rNipeII.js → utils-Dm42v0Nc.js} +2 -1
- package/build/{verification_token-4PdpH5bL.js → verification_token-CW-yBjui.js} +2 -1
- package/package.json +20 -20
- /package/build/{chunk-BBjsoOtd.js → rolldown-runtime-BBjsoOtd.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
1
|
+
import { t as Ignitor } from "./main-B2M1tZ4I.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-CSR3YT32.js";
|
|
3
3
|
import { t as createAceKernel } from "./create_kernel-Bx7xtr5F.js";
|
|
4
4
|
//#region factories/core/ace.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/app.ts
|
|
3
3
|
var app_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_application from "@adonisjs/application";
|
package/build/commands/add.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as prettyPrintError } from "../core-
|
|
1
|
+
import { n as prettyPrintError } from "../core-D_q7qxZy.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/add.ts
|
|
5
5
|
/**
|
|
6
6
|
* The install command is used to `npm install` and `node ace 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-
|
|
1
|
+
import { n as importTypeScript, t as importAssembler } from "../utils-Dm42v0Nc.js";
|
|
2
2
|
import { p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/build.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create the production build by compiling TypeScript source and the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
5
5
|
//#region commands/configure.ts
|
|
6
6
|
/**
|
package/build/commands/eject.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stringHelpers } from "../string-DUpLZV_t.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/eject.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to eject scaffolding stubs from packages to your application root.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stringHelpers } from "../../string-DUpLZV_t.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/env/add.ts
|
|
5
5
|
const ALLOWED_TYPES = [
|
|
6
6
|
"string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
3
3
|
import string from "@poppinss/utils/string";
|
|
4
4
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
5
5
|
//#region commands/generate_key.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as args, p as BaseCommand, s as cliHelpers, u as flags } from "../../main-DvUje0hm.js";
|
|
2
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
3
3
|
import stringWidth from "string-width";
|
|
4
4
|
import { middlewareInfo, routeInfo } from "@adonisjs/http-server/helpers";
|
|
5
5
|
//#region src/cli_formatters/routes_list.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/command.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new Ace command class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
import string from "@poppinss/utils/string";
|
|
5
5
|
//#region commands/make/controller.ts
|
|
6
6
|
/**
|
|
@@ -43,13 +43,17 @@ var MakeController = class extends BaseCommand {
|
|
|
43
43
|
/**
|
|
44
44
|
* Use resource stub
|
|
45
45
|
*/
|
|
46
|
-
if (this.resource)
|
|
47
|
-
|
|
46
|
+
if (this.resource) {
|
|
47
|
+
if (this.actions) this.logger.warning("Cannot use --resource flag with actions. Ignoring --resource");
|
|
48
|
+
else this.stubPath = "make/controller/resource.stub";
|
|
49
|
+
}
|
|
48
50
|
/**
|
|
49
51
|
* Use api stub
|
|
50
52
|
*/
|
|
51
|
-
if (this.api)
|
|
52
|
-
|
|
53
|
+
if (this.api) {
|
|
54
|
+
if (this.actions) this.logger.warning("Cannot use --api flag with actions. Ignoring --api");
|
|
55
|
+
else this.stubPath = "make/controller/api.stub";
|
|
56
|
+
}
|
|
53
57
|
/**
|
|
54
58
|
* Log warning when both flags are used together
|
|
55
59
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/event.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new event class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/exception.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new custom exception class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/listener.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new event listener class.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { t as stringHelpers } from "../../string-DUpLZV_t.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
5
5
|
import string from "@poppinss/utils/string";
|
|
6
6
|
import { basename, extname, relative } from "node:path";
|
|
7
7
|
//#region commands/make/middleware.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { t as stringHelpers } from "../../string-DUpLZV_t.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
//#region commands/make/preload.ts
|
|
7
7
|
const ALLOWED_ENVIRONMENTS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { t as stringHelpers } from "../../string-DUpLZV_t.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
//#region commands/make/provider.ts
|
|
7
7
|
const ALLOWED_ENVIRONMENTS = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/service.ts
|
|
5
5
|
/**
|
|
6
6
|
* Make a new service class
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/test.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new Japa test file.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/transformer.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new transformer class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/validator.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new VineJS validator file.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-DbL06a4f.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/make/view.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to create a new Edge.js template file.
|
package/build/commands/serve.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
1
|
+
import { t as importAssembler } from "../utils-Dm42v0Nc.js";
|
|
2
2
|
import { p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/serve.ts
|
|
5
5
|
/**
|
|
6
6
|
* Serve command is used to run the AdonisJS HTTP server during development. The
|
package/build/commands/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
1
|
+
import { t as importAssembler } from "../utils-Dm42v0Nc.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DvUje0hm.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
4
4
|
//#region commands/test.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to run application tests using the Japa test runner.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/config.ts
|
|
3
3
|
var config_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_config from "@adonisjs/config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/container.ts
|
|
3
3
|
var container_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_fold from "@adonisjs/fold";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./main-DbL06a4f.js";
|
|
2
|
-
import "./container-
|
|
3
|
-
import "./main-
|
|
2
|
+
import "./container-DLqyMqk-.js";
|
|
3
|
+
import "./main-B2M1tZ4I.js";
|
|
4
4
|
import "./config_provider-t1UIlTp8.js";
|
|
5
5
|
import { t as stringHelpers } from "./string-DUpLZV_t.js";
|
|
6
|
-
import { r as outputTransformerDataObjects } from "./utils-
|
|
6
|
+
import { r as outputTransformerDataObjects } from "./utils-Dm42v0Nc.js";
|
|
7
7
|
import { errors } from "@adonisjs/ace";
|
|
8
8
|
import { errors as errors$1 } from "@adonisjs/env";
|
|
9
9
|
import { errors as errors$2 } from "@adonisjs/application";
|
|
@@ -133,7 +133,7 @@ function indexEntities(entities = {}) {
|
|
|
133
133
|
source: transformers.source,
|
|
134
134
|
glob: transformers.glob,
|
|
135
135
|
as(vfs, buffer, ___, helpers) {
|
|
136
|
-
|
|
136
|
+
const transformersList = vfs.asTree({
|
|
137
137
|
transformKey(key) {
|
|
138
138
|
let segments = key.split("/");
|
|
139
139
|
const baseName = segments.pop();
|
|
@@ -141,7 +141,8 @@ function indexEntities(entities = {}) {
|
|
|
141
141
|
return [...segments.map((segment) => stringHelpers.pascalCase(segment)), stringHelpers.create(baseName).removeSuffix("transformer").pascalCase()].join("/");
|
|
142
142
|
},
|
|
143
143
|
transformValue: helpers.toImportPath
|
|
144
|
-
})
|
|
144
|
+
});
|
|
145
|
+
outputTransformerDataObjects(transformersList, buffer, transformers.withSharedProps, transformers.inertiaMiddlewareImportPath);
|
|
145
146
|
},
|
|
146
147
|
importAlias: transformers.importAlias,
|
|
147
148
|
output: transformers.output,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.143.0/helpers/esm/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/events.ts
|
|
3
3
|
var events_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_events from "@adonisjs/events";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as AceFactory } from "../../ace-
|
|
1
|
+
import { t as AceFactory } from "../../ace-DZFqbA8w.js";
|
|
2
2
|
export { AceFactory };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-CSR3YT32.js";
|
|
2
2
|
export { IgnitorFactory };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
2
|
-
import { t as AceFactory } from "../../ace-
|
|
3
|
-
import { t as TestUtilsFactory } from "../../test_utils-
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-CSR3YT32.js";
|
|
2
|
+
import { t as AceFactory } from "../../ace-DZFqbA8w.js";
|
|
3
|
+
import { t as TestUtilsFactory } from "../../test_utils-C6nT3iIR.js";
|
|
4
4
|
export { AceFactory, IgnitorFactory, TestUtilsFactory };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TestUtilsFactory } from "../../test_utils-
|
|
1
|
+
import { t as TestUtilsFactory } from "../../test_utils-C6nT3iIR.js";
|
|
2
2
|
export { TestUtilsFactory };
|
package/build/factories/stubs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as logger_exports } from "./logger-
|
|
3
|
-
import { t as main_exports } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-B2M1tZ4I.js";
|
|
2
|
+
import { t as logger_exports } from "./logger-DaDoVXHv.js";
|
|
3
|
+
import { t as main_exports } from "./main-BOydGWpm.js";
|
|
4
4
|
import { n as drivers, t as defineConfig } from "./define_config-DzONx0uA.js";
|
|
5
|
-
import { n as defineConfig$1, r as drivers$1 } from "./main-
|
|
6
|
-
import { t as main_exports$1 } from "./main-
|
|
5
|
+
import { n as defineConfig$1, r as drivers$1 } from "./main-B-RqQwgz.js";
|
|
6
|
+
import { t as main_exports$1 } from "./main-DopY-cf1.js";
|
|
7
7
|
//#region factories/core/ignitor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Factory for creating and configuring AdonisJS Ignitor instances.
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "./main-DbL06a4f.js";
|
|
2
|
-
import { t as container_exports } from "./container-
|
|
3
|
-
import { t as Ignitor } from "./main-
|
|
2
|
+
import { t as container_exports } from "./container-DLqyMqk-.js";
|
|
3
|
+
import { t as Ignitor } from "./main-B2M1tZ4I.js";
|
|
4
4
|
import { t as configProvider } from "./config_provider-t1UIlTp8.js";
|
|
5
|
-
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-
|
|
5
|
+
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-D_q7qxZy.js";
|
|
6
6
|
var inject = container_exports.inject;
|
|
7
7
|
export { Ignitor, configProvider, errors, indexEntities, inject, prettyPrintError, stubsRoot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
import { destination } from "@adonisjs/logger";
|
|
3
3
|
//#region modules/logger.ts
|
|
4
4
|
var logger_exports = /* @__PURE__ */ __exportAll({ syncDestination: () => syncDestination });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
import { t as debug_default } from "./debug-DrrWgeSu.js";
|
|
3
3
|
import { t as configProvider } from "./config_provider-t1UIlTp8.js";
|
|
4
4
|
import { InvalidArgumentsException } from "@poppinss/utils/exception";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DrrWgeSu.js";
|
|
2
2
|
import { n as setApp } from "./app-D370X_QN.js";
|
|
3
|
-
import { t as app_exports } from "./app-
|
|
3
|
+
import { t as app_exports } from "./app-BOjDPLf-.js";
|
|
4
4
|
import { createServer } from "node:http";
|
|
5
5
|
//#region src/ignitor/ace.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/bodyparser/main.ts
|
|
3
3
|
var main_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_bodyparser from "@adonisjs/bodyparser";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DrrWgeSu.js";
|
|
2
|
-
import { t as main_exports } from "./main-
|
|
2
|
+
import { t as main_exports } from "./main-BOydGWpm.js";
|
|
3
3
|
import { n as Encryption } from "./main-DsUS7ncp.js";
|
|
4
4
|
import { IncomingMessage, ServerResponse, createServer } from "node:http";
|
|
5
5
|
import { Socket } from "node:net";
|
|
@@ -291,7 +291,7 @@ export declare class Codemods extends EventEmitter {
|
|
|
291
291
|
installPackages(packages: {
|
|
292
292
|
name: string;
|
|
293
293
|
isDevDependency: boolean;
|
|
294
|
-
}[], packageManager?: SupportedPackageManager | 'pnpm@6' | 'deno'): Promise<boolean>;
|
|
294
|
+
}[], packageManager?: SupportedPackageManager | 'pnpm@6' | 'deno' | 'nub' | 'aube'): Promise<boolean>;
|
|
295
295
|
/**
|
|
296
296
|
* List the packages that should be installed manually.
|
|
297
297
|
* This method displays installation commands for different package managers
|
package/build/modules/app.js
CHANGED
package/build/modules/config.js
CHANGED
|
@@ -65,9 +65,14 @@ var Legacy = class extends BaseDriver {
|
|
|
65
65
|
* values encrypted here cannot be decrypted by the old encrypter.
|
|
66
66
|
*/
|
|
67
67
|
const iv = string.random(16);
|
|
68
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Use the first 32 bytes of the key for AES-256
|
|
70
|
+
*/
|
|
71
|
+
const encryptionKey = this.cryptoKey.subarray(0, 32);
|
|
72
|
+
const cipher = createCipheriv("aes-256-cbc", encryptionKey, iv);
|
|
69
73
|
const plainText = new MessageBuilder().build(payload, expiresIn, actualPurpose);
|
|
70
|
-
const
|
|
74
|
+
const cipherText = Buffer.concat([cipher.update(plainText), cipher.final()]);
|
|
75
|
+
const macPayload = `${base64UrlEncode(cipherText)}${this.separator}${base64UrlEncode(iv)}`;
|
|
71
76
|
const hmac = new Hmac(this.cryptoKey).generate(macPayload);
|
|
72
77
|
return this.computeReturns([macPayload, hmac]);
|
|
73
78
|
}
|
|
@@ -84,7 +89,11 @@ var Legacy = class extends BaseDriver {
|
|
|
84
89
|
if (!iv) return null;
|
|
85
90
|
if (!new Hmac(this.cryptoKey).compare(`${cipherEncoded}${this.separator}${ivEncoded}`, macEncoded)) return null;
|
|
86
91
|
try {
|
|
87
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Use the first 32 bytes of the key for AES-256
|
|
94
|
+
*/
|
|
95
|
+
const encryptionKey = this.cryptoKey.subarray(0, 32);
|
|
96
|
+
const decipher = createDecipheriv("aes-256-cbc", encryptionKey, iv);
|
|
88
97
|
const plainTextBuffer = Buffer.concat([decipher.update(cipherText), decipher.final()]);
|
|
89
98
|
return new MessageBuilder().verify(plainTextBuffer, purpose);
|
|
90
99
|
} catch {
|
|
@@ -13,4 +13,5 @@ export declare const errors: {
|
|
|
13
13
|
E_INVALID_ENCRYPTER_ID: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
14
14
|
E_MISSING_ENCRYPTER_ID: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
15
15
|
E_MISSING_ENCRYPTER_KEY: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
16
|
+
E_MISSING_ENCRYPTER_KEYS: new (args?: any, options?: ErrorOptions) => import("../../src/exceptions.ts").Exception;
|
|
16
17
|
};
|
package/build/modules/events.js
CHANGED
package/build/modules/logger.js
CHANGED
package/build/modules/repl.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as app_exports } from "../app-
|
|
1
|
+
import { t as app_exports } from "../app-BOjDPLf-.js";
|
|
2
2
|
import { t as configProvider } from "../config_provider-t1UIlTp8.js";
|
|
3
|
-
import { t as config_exports } from "../config-
|
|
4
|
-
import { t as events_exports } from "../events-
|
|
5
|
-
import { t as logger_exports } from "../logger-
|
|
6
|
-
import { t as Dumper } from "../dumper-
|
|
3
|
+
import { t as config_exports } from "../config-BB5flRG9.js";
|
|
4
|
+
import { t as events_exports } from "../events-BVzXwbEH.js";
|
|
5
|
+
import { t as logger_exports } from "../logger-DaDoVXHv.js";
|
|
6
|
+
import { t as Dumper } from "../dumper-BhtAWrcS.js";
|
|
7
7
|
import { r as RuntimeException } from "../exceptions-I3WraG06.js";
|
|
8
|
-
import { t as main_exports } from "../main-
|
|
8
|
+
import { t as main_exports } from "../main-BOydGWpm.js";
|
|
9
9
|
import { n as Encryption } from "../main-DsUS7ncp.js";
|
|
10
10
|
import { t as bodyparser_middleware_default } from "../bodyparser_middleware-DnG3kauC.js";
|
|
11
11
|
import { dirname } from "node:path";
|
|
@@ -225,7 +225,8 @@ var AppServiceProvider = class {
|
|
|
225
225
|
*/
|
|
226
226
|
registerBodyParserMiddleware() {
|
|
227
227
|
this.app.container.singleton(bodyparser_middleware_default, () => {
|
|
228
|
-
|
|
228
|
+
const config = this.app.config.get("bodyparser");
|
|
229
|
+
return new bodyparser_middleware_default(config, this.app.experimentalFlags);
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
232
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as configProvider } from "../config_provider-t1UIlTp8.js";
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
2
|
+
import { t as main_exports } from "../main-B-RqQwgz.js";
|
|
3
3
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
4
4
|
//#region providers/hash_provider.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RequestValidator, t as main_exports } from "../main-
|
|
1
|
+
import { n as RequestValidator, t as main_exports } from "../main-BOydGWpm.js";
|
|
2
2
|
import { t as VineMultipartFile } from "../vine-DOhOuZZt.js";
|
|
3
3
|
import { Vine } from "@vinejs/vine";
|
|
4
4
|
//#region providers/vinejs_provider.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
2
|
//#region modules/repl.ts
|
|
3
3
|
var repl_exports = /* @__PURE__ */ __exportAll({});
|
|
4
4
|
import * as import__adonisjs_repl from "@adonisjs/repl";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-CW-yBjui.js";
|
|
2
2
|
import { t as safeTiming } from "../../safe_timing-Du31tvV6.js";
|
|
3
3
|
import { fsImportAll, fsReadAll } from "@poppinss/utils/fs";
|
|
4
4
|
import base64 from "@poppinss/utils/base64";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VerificationToken } from "../../verification_token-
|
|
1
|
+
import { t as VerificationToken } from "../../verification_token-CW-yBjui.js";
|
|
2
2
|
export { VerificationToken };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TestUtils } from "../../main-
|
|
1
|
+
import { t as TestUtils } from "../../main-j-xf1jGN.js";
|
|
2
2
|
export { TestUtils };
|
package/build/src/vine.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type FileRuleValidationOptions = Partial<FileValidationOptions> | ((field
|
|
|
19
19
|
* })
|
|
20
20
|
* })
|
|
21
21
|
*/
|
|
22
|
-
export declare class VineMultipartFile extends BaseLiteralType<MultipartFile, MultipartFile, MultipartFile> {
|
|
22
|
+
export declare class VineMultipartFile extends BaseLiteralType<MultipartFile | File | Blob, MultipartFile, MultipartFile> {
|
|
23
23
|
#private;
|
|
24
24
|
/**
|
|
25
25
|
* Symbol identifier for multipart file subtype
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import "./core-
|
|
3
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
4
|
-
import { t as TestUtils } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-B2M1tZ4I.js";
|
|
2
|
+
import "./core-D_q7qxZy.js";
|
|
3
|
+
import { t as IgnitorFactory } from "./ignitor-CSR3YT32.js";
|
|
4
|
+
import { t as TestUtils } from "./main-j-xf1jGN.js";
|
|
5
5
|
//#region factories/core/test_utils.ts
|
|
6
6
|
/**
|
|
7
7
|
* Factory for creating TestUtils instances used in AdonisJS testing scenarios.
|
package/build/toolkit/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { t as __decorate } from "../decorate-BKn10QQi.js";
|
|
3
3
|
import { BaseCommand, HelpCommand, IndexGenerator, Kernel, ListLoader, args } from "@adonisjs/ace";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
//#region toolkit/commands/index_commands.ts
|
|
@@ -66,7 +66,7 @@ async function outputTransformerDataObjects(transformersList, buffer, withShared
|
|
|
66
66
|
const importsBuffer = buffer.create();
|
|
67
67
|
importsBuffer.write(`/// <reference path="./manifest.d.ts" />`);
|
|
68
68
|
importsBuffer.write(`import type { InferData, InferVariants } from '@adonisjs/core/types/transformers'`);
|
|
69
|
-
if (withSharedProps) importsBuffer.write(`import type { InferSharedProps } from '@adonisjs/inertia/types'`);
|
|
69
|
+
if (withSharedProps) importsBuffer.write(`import type { InferSharedProps, InferFlashData } from '@adonisjs/inertia/types'`);
|
|
70
70
|
buffer.writeLine(importsBuffer);
|
|
71
71
|
buffer.write("export namespace Data {").indent();
|
|
72
72
|
/**
|
|
@@ -98,6 +98,7 @@ async function outputTransformerDataObjects(transformersList, buffer, withShared
|
|
|
98
98
|
if (withSharedProps) {
|
|
99
99
|
importsBuffer.write(`import type InertiaMiddleware from '${inertiaMiddlewareImportPath}'`);
|
|
100
100
|
buffer.write("export type SharedProps = InferSharedProps<InertiaMiddleware>");
|
|
101
|
+
buffer.write("export type FlashMessages = InferFlashData<InertiaMiddleware>");
|
|
101
102
|
}
|
|
102
103
|
buffer.dedent().write("}");
|
|
103
104
|
}
|
|
@@ -71,7 +71,8 @@ var VerificationToken = class {
|
|
|
71
71
|
* @param size - The length of the random token to generate
|
|
72
72
|
*/
|
|
73
73
|
static seed(size) {
|
|
74
|
-
const
|
|
74
|
+
const seed = string.random(size);
|
|
75
|
+
const secret = new Secret(seed);
|
|
75
76
|
return {
|
|
76
77
|
secret,
|
|
77
78
|
hash: createHash("sha256").update(secret.release()).digest("hex")
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.4.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -93,32 +93,32 @@
|
|
|
93
93
|
"@japa/runner": "^5.3.0",
|
|
94
94
|
"@japa/snapshot": "^2.0.10",
|
|
95
95
|
"@poppinss/ts-exec": "^1.4.4",
|
|
96
|
-
"@release-it/conventional-changelog": "^
|
|
97
|
-
"@types/node": "~
|
|
96
|
+
"@release-it/conventional-changelog": "^12.0.0",
|
|
97
|
+
"@types/node": "~26.2.0",
|
|
98
98
|
"@types/pretty-hrtime": "^1.0.3",
|
|
99
|
-
"@types/sinon": "^
|
|
100
|
-
"@types/supertest": "^7.2.
|
|
99
|
+
"@types/sinon": "^22.0.0",
|
|
100
|
+
"@types/supertest": "^7.2.1",
|
|
101
101
|
"@types/test-console": "^2.0.3",
|
|
102
102
|
"@vinejs/vine": "^4.4.0",
|
|
103
|
-
"argon2": "^0.
|
|
103
|
+
"argon2": "^0.45.1",
|
|
104
104
|
"bcrypt": "^6.0.0",
|
|
105
|
-
"c8": "^
|
|
105
|
+
"c8": "^12.0.0",
|
|
106
106
|
"copyfiles": "^2.4.1",
|
|
107
107
|
"cross-env": "^10.1.0",
|
|
108
108
|
"del-cli": "^7.0.0",
|
|
109
109
|
"edge.js": "^6.5.1",
|
|
110
|
-
"eslint": "^10.
|
|
111
|
-
"execa": "^
|
|
110
|
+
"eslint": "^10.8.1",
|
|
111
|
+
"execa": "^10.0.1",
|
|
112
112
|
"get-port": "^7.2.0",
|
|
113
113
|
"pino-pretty": "^13.1.3",
|
|
114
|
-
"prettier": "^3.
|
|
115
|
-
"release-it": "^
|
|
116
|
-
"sinon": "^22.
|
|
114
|
+
"prettier": "^3.9.6",
|
|
115
|
+
"release-it": "^21.0.1",
|
|
116
|
+
"sinon": "^22.1.0",
|
|
117
117
|
"supertest": "^7.2.2",
|
|
118
118
|
"test-console": "^2.0.0",
|
|
119
119
|
"timekeeper": "^2.3.1",
|
|
120
|
-
"tsdown": "^0.22.
|
|
121
|
-
"typedoc": "^0.28.
|
|
120
|
+
"tsdown": "^0.22.14",
|
|
121
|
+
"typedoc": "^0.28.20",
|
|
122
122
|
"typescript": "^6.0.3",
|
|
123
123
|
"youch": "^4.1.1"
|
|
124
124
|
},
|
|
@@ -130,28 +130,28 @@
|
|
|
130
130
|
"@adonisjs/env": "^7.0.0",
|
|
131
131
|
"@adonisjs/events": "^10.2.0",
|
|
132
132
|
"@adonisjs/fold": "^11.0.0",
|
|
133
|
-
"@adonisjs/hash": "^10.1.
|
|
133
|
+
"@adonisjs/hash": "^10.1.1",
|
|
134
134
|
"@adonisjs/health": "^3.1.0",
|
|
135
|
-
"@adonisjs/http-server": "^9.0
|
|
135
|
+
"@adonisjs/http-server": "^9.2.0",
|
|
136
136
|
"@adonisjs/http-transformers": "^2.3.1",
|
|
137
137
|
"@adonisjs/logger": "^7.1.1",
|
|
138
138
|
"@adonisjs/repl": "^5.0.0",
|
|
139
|
-
"@boringnode/encryption": "^1.0.
|
|
139
|
+
"@boringnode/encryption": "^1.0.1",
|
|
140
140
|
"@poppinss/colors": "^4.1.6",
|
|
141
141
|
"@poppinss/dumper": "^0.7.0",
|
|
142
142
|
"@poppinss/macroable": "^1.1.2",
|
|
143
143
|
"@poppinss/utils": "^7.0.1",
|
|
144
144
|
"@sindresorhus/is": "^8.1.0",
|
|
145
145
|
"@types/he": "^1.2.3",
|
|
146
|
-
"error-stack-parser-es": "^
|
|
146
|
+
"error-stack-parser-es": "^2.0.1",
|
|
147
147
|
"he": "^1.2.0",
|
|
148
148
|
"pretty-hrtime": "^1.0.3",
|
|
149
|
-
"string-width": "^8.2.
|
|
149
|
+
"string-width": "^8.2.2"
|
|
150
150
|
},
|
|
151
151
|
"peerDependencies": {
|
|
152
152
|
"@adonisjs/assembler": "^8.0.0-next.23 || ^8.0.0",
|
|
153
153
|
"@vinejs/vine": "^4.0.0",
|
|
154
|
-
"argon2": "^0.44.0",
|
|
154
|
+
"argon2": "^0.44.0 || ^0.45.1",
|
|
155
155
|
"bcrypt": "^6.0.0",
|
|
156
156
|
"edge.js": "^6.2.0",
|
|
157
157
|
"pino-pretty": "^13.1.3",
|
|
File without changes
|