@adonisjs/core 7.5.0 → 7.5.2
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-DZFqbA8w.js → ace-B6apQo2x.js} +2 -2
- package/build/commands/add.js +2 -2
- package/build/commands/build.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/build/commands/test.js +1 -1
- package/build/{config-BB5flRG9.js → config-8KhKvjYy.js} +2 -1
- package/build/core-CPmWMNBG.js +23 -0
- package/build/{decorate-COk3IovQ.js → decorate-JJf0EFHX.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-CSR3YT32.js → ignitor-B4zotvea.js} +1 -1
- package/build/index.d.ts +1 -6
- package/build/index.js +3 -2
- package/build/{core-BOOnPIz3.js → index_entities-C517sTpx.js} +1 -39
- package/build/{main-B2M1tZ4I.js → main-B2rXbPKm.js} +18 -1
- package/build/modules/config.d.ts +6 -3
- package/build/modules/config.js +3 -2
- package/build/providers/app_provider.js +1 -1
- package/build/src/assembler_hooks/index_entities.js +2 -0
- package/build/src/ignitor/main.d.ts +5 -0
- package/build/src/ignitor/main.js +2 -0
- package/build/{test_utils-BRlZx7WG.js → test_utils-DeLxr1gf.js} +3 -3
- package/build/toolkit/main.js +2 -1
- package/package.json +18 -14
|
@@ -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-B2rXbPKm.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-B4zotvea.js";
|
|
3
3
|
import { t as createAceKernel } from "./create_kernel-Bx7xtr5F.js";
|
|
4
4
|
//#region factories/core/ace.ts
|
|
5
5
|
/**
|
package/build/commands/add.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as prettyPrintError } from "../
|
|
1
|
+
import { n as prettyPrintError } from "../main-B2rXbPKm.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-JJf0EFHX.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
1
|
import { n as importAssembler, r as importTypeScript } from "../utils-CeWrQT0f.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.js";
|
|
4
4
|
import string from "@poppinss/utils/string";
|
|
5
5
|
//#region commands/make/controller.ts
|
|
6
6
|
/**
|
|
@@ -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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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-JJf0EFHX.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
1
|
import { n as importAssembler } from "../utils-CeWrQT0f.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-JJf0EFHX.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
1
|
import { n as importAssembler } from "../utils-CeWrQT0f.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-JJf0EFHX.js";
|
|
4
4
|
//#region commands/test.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to run application tests using the Japa test runner.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.js";
|
|
2
|
+
import { t as configProvider } from "./config_provider-t1UIlTp8.js";
|
|
2
3
|
//#region modules/config.ts
|
|
3
|
-
var config_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
var config_exports = /* @__PURE__ */ __exportAll({ configProvider: () => configProvider });
|
|
4
5
|
import * as import__adonisjs_config from "@adonisjs/config";
|
|
5
6
|
__reExport(config_exports, import__adonisjs_config);
|
|
6
7
|
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./main-DbL06a4f.js";
|
|
2
|
+
import "./container-DLqyMqk-.js";
|
|
3
|
+
import "./main-B2rXbPKm.js";
|
|
4
|
+
import "./config_provider-t1UIlTp8.js";
|
|
5
|
+
import "./index_entities-C517sTpx.js";
|
|
6
|
+
import { errors } from "@adonisjs/ace";
|
|
7
|
+
import { errors as errors$1 } from "@adonisjs/env";
|
|
8
|
+
import { errors as errors$2 } from "@adonisjs/application";
|
|
9
|
+
import { errors as errors$3 } from "@boringnode/encryption";
|
|
10
|
+
import { errors as errors$4 } from "@adonisjs/http-server";
|
|
11
|
+
//#region index.ts
|
|
12
|
+
/**
|
|
13
|
+
* Aggregated errors from all modules.
|
|
14
|
+
*/
|
|
15
|
+
const errors$5 = {
|
|
16
|
+
...errors$3,
|
|
17
|
+
...errors$4,
|
|
18
|
+
...errors$2,
|
|
19
|
+
...errors,
|
|
20
|
+
...errors$1
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { errors$5 as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.151.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,2 +1,2 @@
|
|
|
1
|
-
import { t as AceFactory } from "../../ace-
|
|
1
|
+
import { t as AceFactory } from "../../ace-B6apQo2x.js";
|
|
2
2
|
export { AceFactory };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-B4zotvea.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-B4zotvea.js";
|
|
2
|
+
import { t as AceFactory } from "../../ace-B6apQo2x.js";
|
|
3
|
+
import { t as TestUtilsFactory } from "../../test_utils-DeLxr1gf.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-DeLxr1gf.js";
|
|
2
2
|
export { TestUtilsFactory };
|
package/build/factories/stubs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-B2rXbPKm.js";
|
|
2
2
|
import { t as logger_exports } from "./logger-DaDoVXHv.js";
|
|
3
3
|
import { t as main_exports } from "./main-BOydGWpm.js";
|
|
4
4
|
import { n as drivers, t as defineConfig } from "./define_config-DzONx0uA.js";
|
package/build/index.d.ts
CHANGED
|
@@ -5,15 +5,10 @@ import { errors as encryptionErrors } from '@boringnode/encryption';
|
|
|
5
5
|
import { errors as httpServerErrors } from '@adonisjs/http-server';
|
|
6
6
|
export { stubsRoot } from './stubs/main.ts';
|
|
7
7
|
export { inject } from './modules/container.ts';
|
|
8
|
-
export { Ignitor } from './src/ignitor/main.ts';
|
|
8
|
+
export { Ignitor, prettyPrintError } from './src/ignitor/main.ts';
|
|
9
9
|
export { configProvider } from './src/config_provider.ts';
|
|
10
10
|
export { indexEntities } from './src/assembler_hooks/index_entities.ts';
|
|
11
11
|
/**
|
|
12
12
|
* Aggregated errors from all modules.
|
|
13
13
|
*/
|
|
14
14
|
export declare const errors: typeof encryptionErrors & typeof httpServerErrors & typeof appErrors & typeof aceErrors & typeof envErrors;
|
|
15
|
-
/**
|
|
16
|
-
* Pretty prints an error with colorful output using
|
|
17
|
-
* Youch terminal
|
|
18
|
-
*/
|
|
19
|
-
export declare function prettyPrintError(error: any): Promise<void>;
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as stubsRoot } from "./main-DbL06a4f.js";
|
|
2
2
|
import { t as container_exports } from "./container-DLqyMqk-.js";
|
|
3
|
-
import { t as Ignitor } from "./main-
|
|
3
|
+
import { n as prettyPrintError, t as Ignitor } from "./main-B2rXbPKm.js";
|
|
4
4
|
import { t as configProvider } from "./config_provider-t1UIlTp8.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as indexEntities } from "./index_entities-C517sTpx.js";
|
|
6
|
+
import { t as errors } from "./core-CPmWMNBG.js";
|
|
6
7
|
var inject = container_exports.inject;
|
|
7
8
|
export { Ignitor, configProvider, errors, indexEntities, inject, prettyPrintError, stubsRoot };
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import "./main-DbL06a4f.js";
|
|
2
|
-
import "./container-DLqyMqk-.js";
|
|
3
|
-
import "./main-B2M1tZ4I.js";
|
|
4
|
-
import "./config_provider-t1UIlTp8.js";
|
|
5
1
|
import { t as stringHelpers } from "./string-DUpLZV_t.js";
|
|
6
2
|
import { i as outputTransformerDataObjects } from "./utils-CeWrQT0f.js";
|
|
7
|
-
import { errors } from "@adonisjs/ace";
|
|
8
|
-
import { errors as errors$1 } from "@adonisjs/env";
|
|
9
|
-
import { errors as errors$2 } from "@adonisjs/application";
|
|
10
|
-
import { errors as errors$3 } from "@boringnode/encryption";
|
|
11
|
-
import { errors as errors$4 } from "@adonisjs/http-server";
|
|
12
3
|
//#region src/assembler_hooks/index_entities.ts
|
|
13
4
|
/**
|
|
14
5
|
* Configures the IndexGenerator to create barrel files for "controllers", "events",
|
|
@@ -168,33 +159,4 @@ function indexEntities(entities = {}) {
|
|
|
168
159
|
} };
|
|
169
160
|
}
|
|
170
161
|
//#endregion
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Aggregated errors from all modules.
|
|
174
|
-
*/
|
|
175
|
-
const errors$5 = {
|
|
176
|
-
...errors$3,
|
|
177
|
-
...errors$4,
|
|
178
|
-
...errors$2,
|
|
179
|
-
...errors,
|
|
180
|
-
...errors$1
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Pretty prints an error with colorful output using
|
|
184
|
-
* Youch terminal
|
|
185
|
-
*/
|
|
186
|
-
async function prettyPrintError(error) {
|
|
187
|
-
if (error && typeof error === "object" && error.code === "E_DUMP_DIE_EXCEPTION") {
|
|
188
|
-
console.error(error);
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
try {
|
|
192
|
-
const { Youch } = await import("youch");
|
|
193
|
-
const youch = new Youch();
|
|
194
|
-
console.error(await youch.toANSI(error));
|
|
195
|
-
} catch {
|
|
196
|
-
console.error(error);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
//#endregion
|
|
200
|
-
export { prettyPrintError as n, indexEntities as r, errors$5 as t };
|
|
162
|
+
export { indexEntities as t };
|
|
@@ -431,5 +431,22 @@ var Ignitor = class {
|
|
|
431
431
|
await this.#app?.terminate();
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
|
+
/**
|
|
435
|
+
* Pretty prints an error with colorful output using
|
|
436
|
+
* Youch terminal
|
|
437
|
+
*/
|
|
438
|
+
async function prettyPrintError(error) {
|
|
439
|
+
if (error && typeof error === "object" && error.code === "E_DUMP_DIE_EXCEPTION") {
|
|
440
|
+
console.error(error);
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
try {
|
|
444
|
+
const { Youch } = await import("youch");
|
|
445
|
+
const youch = new Youch();
|
|
446
|
+
console.error(await youch.toANSI(error));
|
|
447
|
+
} catch {
|
|
448
|
+
console.error(error);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
434
451
|
//#endregion
|
|
435
|
-
export { Ignitor as t };
|
|
452
|
+
export { prettyPrintError as n, Ignitor as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Configuration module re-exports
|
|
3
|
-
*
|
|
4
|
-
* configuration files and environment-specific settings.
|
|
2
|
+
* Configuration module re-exports @adonisjs/config and the config provider
|
|
3
|
+
* helper used to defer configuration resolution until application boot.
|
|
5
4
|
*
|
|
6
5
|
* @example
|
|
7
6
|
* // Import the Config class
|
|
@@ -14,5 +13,9 @@
|
|
|
14
13
|
* @example
|
|
15
14
|
* // Import configuration types
|
|
16
15
|
* import type { ConfigProvider } from '@adonisjs/core/config'
|
|
16
|
+
*
|
|
17
|
+
* // Create a lazy configuration provider
|
|
18
|
+
* import { configProvider } from '@adonisjs/core/config'
|
|
17
19
|
*/
|
|
18
20
|
export * from '@adonisjs/config';
|
|
21
|
+
export { configProvider } from '../src/config_provider.ts';
|
package/build/modules/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as app_exports } from "../app-BOjDPLf-.js";
|
|
2
2
|
import { t as configProvider } from "../config_provider-t1UIlTp8.js";
|
|
3
3
|
import { t as emitRouteTypes } from "../utils-CeWrQT0f.js";
|
|
4
|
-
import { t as config_exports } from "../config-
|
|
4
|
+
import { t as config_exports } from "../config-8KhKvjYy.js";
|
|
5
5
|
import { t as events_exports } from "../events-BVzXwbEH.js";
|
|
6
6
|
import { t as logger_exports } from "../logger-DaDoVXHv.js";
|
|
7
7
|
import { t as Dumper } from "../dumper-BhtAWrcS.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import "./core-
|
|
3
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
1
|
+
import { t as Ignitor } from "./main-B2rXbPKm.js";
|
|
2
|
+
import "./core-CPmWMNBG.js";
|
|
3
|
+
import { t as IgnitorFactory } from "./ignitor-B4zotvea.js";
|
|
4
4
|
import { t as TestUtils } from "./main-j-xf1jGN.js";
|
|
5
5
|
//#region factories/core/test_utils.ts
|
|
6
6
|
/**
|
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-JJf0EFHX.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
|
|
@@ -32,5 +32,6 @@ kernel.on("help", async (command, $kernel, parsed) => {
|
|
|
32
32
|
return $kernel.shortcircuit();
|
|
33
33
|
});
|
|
34
34
|
await kernel.handle(process.argv.splice(2));
|
|
35
|
+
process.exitCode = kernel.exitCode;
|
|
35
36
|
//#endregion
|
|
36
37
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"./providers/*": "./build/providers/*.js",
|
|
28
28
|
"./helpers": "./build/src/helpers/main.js",
|
|
29
29
|
"./helpers/*": "./build/src/helpers/*.js",
|
|
30
|
+
"./ignitor": "./build/src/ignitor/main.js",
|
|
31
|
+
"./generators": "./build/src/assembler_hooks/index_entities.js",
|
|
30
32
|
"./ace": "./build/modules/ace/main.js",
|
|
31
33
|
"./ace/codemods": "./build/modules/ace/codemods.js",
|
|
32
34
|
"./bodyparser": "./build/modules/bodyparser/main.js",
|
|
@@ -82,7 +84,7 @@
|
|
|
82
84
|
"index:commands": "node --import=@poppinss/ts-exec toolkit/main.js index build/commands"
|
|
83
85
|
},
|
|
84
86
|
"devDependencies": {
|
|
85
|
-
"@adonisjs/assembler": "^8.5.
|
|
87
|
+
"@adonisjs/assembler": "^8.5.2",
|
|
86
88
|
"@adonisjs/encryption": "^6.0.2",
|
|
87
89
|
"@adonisjs/eslint-config": "^3.1.0",
|
|
88
90
|
"@adonisjs/prettier-config": "^1.5.0",
|
|
@@ -93,8 +95,8 @@
|
|
|
93
95
|
"@japa/runner": "^5.3.0",
|
|
94
96
|
"@japa/snapshot": "^2.0.10",
|
|
95
97
|
"@poppinss/ts-exec": "^1.4.4",
|
|
96
|
-
"@release-it/conventional-changelog": "^12.0.
|
|
97
|
-
"@types/node": "~26.2
|
|
98
|
+
"@release-it/conventional-changelog": "^12.0.2",
|
|
99
|
+
"@types/node": "~26.6.2",
|
|
98
100
|
"@types/pretty-hrtime": "^1.0.3",
|
|
99
101
|
"@types/sinon": "^22.0.0",
|
|
100
102
|
"@types/supertest": "^7.2.1",
|
|
@@ -107,32 +109,32 @@
|
|
|
107
109
|
"cross-env": "^10.1.0",
|
|
108
110
|
"del-cli": "^7.0.0",
|
|
109
111
|
"edge.js": "^6.5.1",
|
|
110
|
-
"eslint": "^10.
|
|
112
|
+
"eslint": "^10.11.0",
|
|
111
113
|
"execa": "^10.0.1",
|
|
112
114
|
"get-port": "^7.2.0",
|
|
113
115
|
"pino-pretty": "^13.1.3",
|
|
114
|
-
"prettier": "^3.9.
|
|
115
|
-
"release-it": "^21.0
|
|
116
|
+
"prettier": "^3.9.9",
|
|
117
|
+
"release-it": "^21.1.0",
|
|
116
118
|
"sinon": "^22.1.0",
|
|
117
|
-
"supertest": "^7.
|
|
119
|
+
"supertest": "^7.3.0",
|
|
118
120
|
"test-console": "^2.0.0",
|
|
119
121
|
"timekeeper": "^2.3.1",
|
|
120
|
-
"tsdown": "^0.
|
|
122
|
+
"tsdown": "^0.23.0",
|
|
121
123
|
"typedoc": "^0.28.20",
|
|
122
124
|
"typescript": "^6.0.3",
|
|
123
125
|
"youch": "^4.1.1"
|
|
124
126
|
},
|
|
125
127
|
"dependencies": {
|
|
126
|
-
"@adonisjs/ace": "^14.1.
|
|
128
|
+
"@adonisjs/ace": "^14.1.1",
|
|
127
129
|
"@adonisjs/application": "^9.1.0",
|
|
128
130
|
"@adonisjs/bodyparser": "^11.0.4",
|
|
129
131
|
"@adonisjs/config": "^6.1.0",
|
|
130
|
-
"@adonisjs/env": "^7.
|
|
132
|
+
"@adonisjs/env": "^7.1.0",
|
|
131
133
|
"@adonisjs/events": "^10.2.0",
|
|
132
|
-
"@adonisjs/fold": "^11.
|
|
134
|
+
"@adonisjs/fold": "^11.1.0",
|
|
133
135
|
"@adonisjs/hash": "^10.1.1",
|
|
134
136
|
"@adonisjs/health": "^3.1.0",
|
|
135
|
-
"@adonisjs/http-server": "^9.
|
|
137
|
+
"@adonisjs/http-server": "^9.3.1",
|
|
136
138
|
"@adonisjs/http-transformers": "^2.3.1",
|
|
137
139
|
"@adonisjs/logger": "^7.1.1",
|
|
138
140
|
"@adonisjs/repl": "^5.0.0",
|
|
@@ -140,7 +142,7 @@
|
|
|
140
142
|
"@poppinss/colors": "^4.1.6",
|
|
141
143
|
"@poppinss/dumper": "^0.7.0",
|
|
142
144
|
"@poppinss/macroable": "^1.1.2",
|
|
143
|
-
"@poppinss/utils": "^7.
|
|
145
|
+
"@poppinss/utils": "^7.1.1",
|
|
144
146
|
"@sindresorhus/is": "^8.1.0",
|
|
145
147
|
"@types/he": "^1.2.3",
|
|
146
148
|
"error-stack-parser-es": "^2.0.1",
|
|
@@ -235,6 +237,8 @@
|
|
|
235
237
|
"providers/**/*.ts",
|
|
236
238
|
"src/helpers/main.ts",
|
|
237
239
|
"src/helpers/**/*.ts",
|
|
240
|
+
"src/ignitor/main.ts",
|
|
241
|
+
"src/assembler_hooks/index_entities.ts",
|
|
238
242
|
"modules/ace/main.ts",
|
|
239
243
|
"modules/ace/codemods.ts",
|
|
240
244
|
"modules/bodyparser/main.ts",
|