@adonisjs/core 7.3.1 → 7.3.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-WfzFjXRM.js → ace-C8xJZJlK.js} +1 -1
- 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 +2 -2
- package/build/commands/env/add.js +2 -2
- 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 +2 -2
- package/build/commands/make/preload.js +2 -2
- package/build/commands/make/provider.js +2 -2
- 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_provider-Do9af1ze.js → config_provider-4fYNzX9M.js} +29 -0
- package/build/{core-X32M3Zo8.js → core-DMssQKwM.js} +2 -2
- package/build/{decorate-yKe-VEeE.js → decorate-CjDBNaqp.js} +1 -1
- package/build/{define_config--5euEdi8.js → define_config-B66U6mUT.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-CEEHASdH.js → ignitor-BxhEMsoG.js} +2 -2
- package/build/index.js +2 -2
- package/build/{main-nex7ClUz.js → main-CjrccPZ4.js} +1 -1
- package/build/{main-CG-utHjr.js → main-DmX6Gpu5.js} +1 -1
- package/build/{main-_4BIfRkS.js → main-l3qICfaP.js} +1 -1
- package/build/modules/ace/codemods.js +1 -1
- package/build/modules/encryption/main.js +2 -2
- package/build/modules/hash/main.js +1 -1
- package/build/providers/app_provider.js +2 -2
- package/build/providers/hash_provider.js +2 -2
- package/build/src/helpers/string.js +1 -1
- package/build/src/helpers/types.d.ts +7 -0
- package/build/src/helpers/types.js +84 -0
- package/build/src/test_utils/main.js +1 -1
- package/build/{string-8_8He-HH.js → string-QIN8KW6u.js} +24 -0
- package/build/{test_utils-CX2woeem.js → test_utils-BPLE25og.js} +3 -3
- package/build/toolkit/main.js +1 -1
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-BxhEMsoG.js";
|
|
3
3
|
import { t as createAceKernel } from "./create_kernel-CziaAklz.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 "../core-
|
|
1
|
+
import { n as prettyPrintError } from "../core-DMssQKwM.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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 importTypeScript, t as importAssembler } from "../utils-CKwka7OL.js";
|
|
2
2
|
import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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
|
-
import { t as stringHelpers } from "../string-
|
|
1
|
+
import { t as stringHelpers } from "../string-QIN8KW6u.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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
|
-
import { t as stringHelpers } from "../../string-
|
|
1
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-DzNXtXg3.js";
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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-DzNXtXg3.js";
|
|
2
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
|
-
import { t as stringHelpers } from "../../string-
|
|
2
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
|
-
import { t as stringHelpers } from "../../string-
|
|
2
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
|
-
import { t as stringHelpers } from "../../string-
|
|
2
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
3
3
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
4
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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-CfTiGsiS.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
3
|
+
import { t as __decorate } from "../../decorate-CjDBNaqp.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 { t as importAssembler } from "../utils-CKwka7OL.js";
|
|
2
2
|
import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.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 { t as importAssembler } from "../utils-CKwka7OL.js";
|
|
2
2
|
import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
3
|
+
import { t as __decorate } from "../decorate-CjDBNaqp.js";
|
|
4
4
|
//#region commands/test.ts
|
|
5
5
|
/**
|
|
6
6
|
* Command to run application tests using the Japa test runner.
|
|
@@ -20,12 +20,41 @@
|
|
|
20
20
|
* }
|
|
21
21
|
*/
|
|
22
22
|
const configProvider = {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new config provider that will resolve configuration
|
|
25
|
+
* when the application is booted.
|
|
26
|
+
*
|
|
27
|
+
* @param resolver - Function that receives the application service and returns the configuration
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const mailConfig = configProvider.create(async (app) => ({
|
|
31
|
+
* driver: app.env.get('MAIL_DRIVER', 'smtp'),
|
|
32
|
+
* host: app.env.get('SMTP_HOST'),
|
|
33
|
+
* port: app.env.get('SMTP_PORT', 587)
|
|
34
|
+
* }))
|
|
35
|
+
*/
|
|
23
36
|
create(resolver) {
|
|
24
37
|
return {
|
|
25
38
|
type: "provider",
|
|
26
39
|
resolver
|
|
27
40
|
};
|
|
28
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* Resolves a config provider if the provided value is a valid config provider,
|
|
44
|
+
* otherwise returns null.
|
|
45
|
+
*
|
|
46
|
+
* @param app - The application service instance
|
|
47
|
+
* @param provider - The potential config provider to resolve
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* const resolved = await configProvider.resolve(app, someProvider)
|
|
51
|
+
* if (resolved) {
|
|
52
|
+
* // Use the resolved configuration
|
|
53
|
+
* console.log('Config resolved:', resolved)
|
|
54
|
+
* } else {
|
|
55
|
+
* console.log('Not a valid config provider')
|
|
56
|
+
* }
|
|
57
|
+
*/
|
|
29
58
|
async resolve(app, provider) {
|
|
30
59
|
if (provider && typeof provider === "object" && "type" in provider) return provider.resolver(app);
|
|
31
60
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./main-CfTiGsiS.js";
|
|
2
2
|
import "./container-BB6VBj9q.js";
|
|
3
3
|
import "./main-zFY2qkGC.js";
|
|
4
|
-
import "./config_provider-
|
|
5
|
-
import { t as stringHelpers } from "./string-
|
|
4
|
+
import "./config_provider-4fYNzX9M.js";
|
|
5
|
+
import { t as stringHelpers } from "./string-QIN8KW6u.js";
|
|
6
6
|
import { r as outputTransformerDataObjects } from "./utils-CKwka7OL.js";
|
|
7
7
|
import { errors } from "@adonisjs/ace";
|
|
8
8
|
import { errors as errors$1 } from "@adonisjs/env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.127.0/helpers/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,5 +1,5 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
2
|
-
import { t as configProvider } from "./config_provider-
|
|
2
|
+
import { t as configProvider } from "./config_provider-4fYNzX9M.js";
|
|
3
3
|
import { n as InvalidArgumentsException } from "./exceptions-B2MzIlHY.js";
|
|
4
4
|
//#region modules/encryption/define_config.ts
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as AceFactory } from "../../ace-
|
|
1
|
+
import { t as AceFactory } from "../../ace-C8xJZJlK.js";
|
|
2
2
|
export { AceFactory };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
1
|
+
import { t as IgnitorFactory } from "../../ignitor-BxhEMsoG.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-BxhEMsoG.js";
|
|
2
|
+
import { t as AceFactory } from "../../ace-C8xJZJlK.js";
|
|
3
|
+
import { t as TestUtilsFactory } from "../../test_utils-BPLE25og.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-BPLE25og.js";
|
|
2
2
|
export { TestUtilsFactory };
|
package/build/factories/stubs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
2
2
|
import { t as logger_exports } from "./logger-Cj7AOEsL.js";
|
|
3
3
|
import { t as main_exports } from "./main-BDd3QiJF.js";
|
|
4
|
-
import { n as drivers, t as defineConfig } from "./define_config
|
|
5
|
-
import { n as defineConfig$1, r as drivers$1 } from "./main-
|
|
4
|
+
import { n as drivers, t as defineConfig } from "./define_config-B66U6mUT.js";
|
|
5
|
+
import { n as defineConfig$1, r as drivers$1 } from "./main-DmX6Gpu5.js";
|
|
6
6
|
import { t as main_exports$1 } from "./main-DpE5rTyk.js";
|
|
7
7
|
//#region factories/core/ignitor.ts
|
|
8
8
|
/**
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "./main-CfTiGsiS.js";
|
|
2
2
|
import { t as container_exports } from "./container-BB6VBj9q.js";
|
|
3
3
|
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
4
|
-
import { t as configProvider } from "./config_provider-
|
|
5
|
-
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-
|
|
4
|
+
import { t as configProvider } from "./config_provider-4fYNzX9M.js";
|
|
5
|
+
import { n as prettyPrintError, r as indexEntities, t as errors } from "./core-DMssQKwM.js";
|
|
6
6
|
var inject = container_exports.inject;
|
|
7
7
|
export { Ignitor, configProvider, errors, indexEntities, inject, prettyPrintError, stubsRoot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./errors-BScZTzBu.js";
|
|
2
|
-
import "./define_config
|
|
2
|
+
import "./define_config-B66U6mUT.js";
|
|
3
3
|
import { BaseDriver as BaseDriver$1, Encryption, EncryptionManager, Hmac as Hmac$1 } from "@boringnode/encryption";
|
|
4
4
|
export { Hmac$1 as i, Encryption as n, EncryptionManager as r, BaseDriver$1 as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __reExport, t as __exportAll } from "./chunk-ZRW5x4aP.js";
|
|
2
2
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
3
|
-
import { t as configProvider } from "./config_provider-
|
|
3
|
+
import { t as configProvider } from "./config_provider-4fYNzX9M.js";
|
|
4
4
|
import { InvalidArgumentsException } from "@poppinss/utils/exception";
|
|
5
5
|
//#region modules/hash/define_config.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DWofTfIX.js";
|
|
2
2
|
import { t as main_exports } from "./main-BDd3QiJF.js";
|
|
3
|
-
import { n as Encryption } from "./main-
|
|
3
|
+
import { n as Encryption } from "./main-CjrccPZ4.js";
|
|
4
4
|
import { IncomingMessage, ServerResponse, createServer } from "node:http";
|
|
5
5
|
import { Socket } from "node:net";
|
|
6
6
|
import Macroable from "@poppinss/macroable";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as debug_default } from "../../debug-DWofTfIX.js";
|
|
2
|
-
import { t as stringHelpers } from "../../string-
|
|
2
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
3
3
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
4
4
|
import { isAbsolute } from "node:path";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as errors } from "../../errors-BScZTzBu.js";
|
|
2
|
-
import { n as drivers, t as defineConfig } from "../../define_config
|
|
3
|
-
import { i as Hmac, n as Encryption, r as EncryptionManager, t as BaseDriver } from "../../main-
|
|
2
|
+
import { n as drivers, t as defineConfig } from "../../define_config-B66U6mUT.js";
|
|
3
|
+
import { i as Hmac, n as Encryption, r as EncryptionManager, t as BaseDriver } from "../../main-CjrccPZ4.js";
|
|
4
4
|
export { BaseDriver, Encryption, EncryptionManager, Hmac, defineConfig, drivers, errors };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as app_exports } from "../app-XhU0L_kQ.js";
|
|
2
|
-
import { t as configProvider } from "../config_provider-
|
|
2
|
+
import { t as configProvider } from "../config_provider-4fYNzX9M.js";
|
|
3
3
|
import { t as config_exports } from "../config-dLMqZYix.js";
|
|
4
4
|
import { t as events_exports } from "../events-DIYBcPfM.js";
|
|
5
5
|
import { t as logger_exports } from "../logger-Cj7AOEsL.js";
|
|
6
6
|
import { t as Dumper } from "../dumper-V22ueBaO.js";
|
|
7
7
|
import { r as RuntimeException } from "../exceptions-B2MzIlHY.js";
|
|
8
8
|
import { t as main_exports } from "../main-BDd3QiJF.js";
|
|
9
|
-
import { n as Encryption } from "../main-
|
|
9
|
+
import { n as Encryption } from "../main-CjrccPZ4.js";
|
|
10
10
|
import { t as bodyparser_middleware_default } from "../bodyparser_middleware-H5FArWkI.js";
|
|
11
11
|
import { dirname } from "node:path";
|
|
12
12
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as configProvider } from "../config_provider-
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
1
|
+
import { t as configProvider } from "../config_provider-4fYNzX9M.js";
|
|
2
|
+
import { t as main_exports } from "../main-DmX6Gpu5.js";
|
|
3
3
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
4
4
|
//#region providers/hash_provider.ts
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as stringHelpers } from "../../string-
|
|
1
|
+
import { t as stringHelpers } from "../../string-QIN8KW6u.js";
|
|
2
2
|
export { stringHelpers as default };
|
|
@@ -24,6 +24,7 @@ declare const types: {
|
|
|
24
24
|
array: typeof import("@sindresorhus/is").isArray;
|
|
25
25
|
arrayBuffer: typeof import("@sindresorhus/is").isArrayBuffer;
|
|
26
26
|
arrayLike: typeof import("@sindresorhus/is").isArrayLike;
|
|
27
|
+
arrayOf: typeof import("@sindresorhus/is").isArrayOf;
|
|
27
28
|
asyncFunction: typeof import("@sindresorhus/is").isAsyncFunction;
|
|
28
29
|
asyncGenerator: typeof import("@sindresorhus/is").isAsyncGenerator;
|
|
29
30
|
asyncGeneratorFunction: typeof import("@sindresorhus/is").isAsyncGeneratorFunction;
|
|
@@ -50,6 +51,7 @@ declare const types: {
|
|
|
50
51
|
error: typeof import("@sindresorhus/is").isError;
|
|
51
52
|
evenInteger: typeof import("@sindresorhus/is").isEvenInteger;
|
|
52
53
|
falsy: typeof import("@sindresorhus/is").isFalsy;
|
|
54
|
+
finiteNumber: typeof import("@sindresorhus/is").isFiniteNumber;
|
|
53
55
|
float32Array: typeof import("@sindresorhus/is").isFloat32Array;
|
|
54
56
|
float64Array: typeof import("@sindresorhus/is").isFloat64Array;
|
|
55
57
|
formData: typeof import("@sindresorhus/is").isFormData;
|
|
@@ -67,6 +69,7 @@ declare const types: {
|
|
|
67
69
|
map: typeof import("@sindresorhus/is").isMap;
|
|
68
70
|
nan: typeof import("@sindresorhus/is").isNan;
|
|
69
71
|
nativePromise: typeof import("@sindresorhus/is").isNativePromise;
|
|
72
|
+
negativeInteger: typeof import("@sindresorhus/is").isNegativeInteger;
|
|
70
73
|
negativeNumber: typeof import("@sindresorhus/is").isNegativeNumber;
|
|
71
74
|
nodeStream: typeof import("@sindresorhus/is").isNodeStream;
|
|
72
75
|
nonEmptyArray: typeof import("@sindresorhus/is").isNonEmptyArray;
|
|
@@ -75,6 +78,8 @@ declare const types: {
|
|
|
75
78
|
nonEmptySet: typeof import("@sindresorhus/is").isNonEmptySet;
|
|
76
79
|
nonEmptyString: typeof import("@sindresorhus/is").isNonEmptyString;
|
|
77
80
|
nonEmptyStringAndNotWhitespace: typeof import("@sindresorhus/is").isNonEmptyStringAndNotWhitespace;
|
|
81
|
+
nonNegativeInteger: typeof import("@sindresorhus/is").isNonNegativeInteger;
|
|
82
|
+
nonNegativeNumber: typeof import("@sindresorhus/is").isNonNegativeNumber;
|
|
78
83
|
null: typeof import("@sindresorhus/is").isNull;
|
|
79
84
|
nullOrUndefined: typeof import("@sindresorhus/is").isNullOrUndefined;
|
|
80
85
|
number: typeof import("@sindresorhus/is").isNumber;
|
|
@@ -82,7 +87,9 @@ declare const types: {
|
|
|
82
87
|
object: typeof import("@sindresorhus/is").isObject;
|
|
83
88
|
observable: typeof import("@sindresorhus/is").isObservable;
|
|
84
89
|
oddInteger: typeof import("@sindresorhus/is").isOddInteger;
|
|
90
|
+
oneOf: typeof import("@sindresorhus/is").isOneOf;
|
|
85
91
|
plainObject: typeof import("@sindresorhus/is").isPlainObject;
|
|
92
|
+
positiveInteger: typeof import("@sindresorhus/is").isPositiveInteger;
|
|
86
93
|
positiveNumber: typeof import("@sindresorhus/is").isPositiveNumber;
|
|
87
94
|
primitive: typeof import("@sindresorhus/is").isPrimitive;
|
|
88
95
|
promise: typeof import("@sindresorhus/is").isPromise;
|
|
@@ -16,24 +16,108 @@ import is from "@sindresorhus/is";
|
|
|
16
16
|
* is.number(42)
|
|
17
17
|
*/
|
|
18
18
|
const types = {
|
|
19
|
+
/**
|
|
20
|
+
* Direct reference to the is utility for type checking lookups.
|
|
21
|
+
* @deprecated Use the is helpers directly instead
|
|
22
|
+
*/
|
|
19
23
|
lookup: is,
|
|
24
|
+
/**
|
|
25
|
+
* Check if value is null.
|
|
26
|
+
* @deprecated Use is.null instead
|
|
27
|
+
*/
|
|
20
28
|
isNull: is.null,
|
|
29
|
+
/**
|
|
30
|
+
* Check if value is a boolean.
|
|
31
|
+
* @deprecated Use is.boolean instead
|
|
32
|
+
*/
|
|
21
33
|
isBoolean: is.boolean,
|
|
34
|
+
/**
|
|
35
|
+
* Check if value is a Buffer.
|
|
36
|
+
* @deprecated Use is.buffer instead
|
|
37
|
+
*/
|
|
22
38
|
isBuffer: is.buffer,
|
|
39
|
+
/**
|
|
40
|
+
* Check if value is a number.
|
|
41
|
+
* @deprecated Use is.number instead
|
|
42
|
+
*/
|
|
23
43
|
isNumber: is.number,
|
|
44
|
+
/**
|
|
45
|
+
* Check if value is a string.
|
|
46
|
+
* @deprecated Use is.string instead
|
|
47
|
+
*/
|
|
24
48
|
isString: is.string,
|
|
49
|
+
/**
|
|
50
|
+
* Check if value is an arguments object.
|
|
51
|
+
* @deprecated Use is.arguments instead
|
|
52
|
+
*/
|
|
25
53
|
isArguments: is.arguments,
|
|
54
|
+
/**
|
|
55
|
+
* Check if value is an object.
|
|
56
|
+
* @deprecated Use is.object instead
|
|
57
|
+
*/
|
|
26
58
|
isObject: is.object,
|
|
59
|
+
/**
|
|
60
|
+
* Check if value is a Date.
|
|
61
|
+
* @deprecated Use is.date instead
|
|
62
|
+
*/
|
|
27
63
|
isDate: is.date,
|
|
64
|
+
/**
|
|
65
|
+
* Check if value is an array.
|
|
66
|
+
* @deprecated Use is.array instead
|
|
67
|
+
*/
|
|
28
68
|
isArray: is.array,
|
|
69
|
+
/**
|
|
70
|
+
* Check if value is a regular expression.
|
|
71
|
+
* @deprecated Use is.regExp instead
|
|
72
|
+
*/
|
|
29
73
|
isRegexp: is.regExp,
|
|
74
|
+
/**
|
|
75
|
+
* Check if value is an error object.
|
|
76
|
+
* @deprecated Use is.error instead
|
|
77
|
+
*/
|
|
30
78
|
isError: is.error,
|
|
79
|
+
/**
|
|
80
|
+
* Check if value is a function.
|
|
81
|
+
* @deprecated Use is.function instead
|
|
82
|
+
*/
|
|
31
83
|
isFunction: is.function,
|
|
84
|
+
/**
|
|
85
|
+
* Check if value is a class.
|
|
86
|
+
* @deprecated Use is.class instead
|
|
87
|
+
*/
|
|
32
88
|
isClass: is.class,
|
|
89
|
+
/**
|
|
90
|
+
* Check if value is an integer.
|
|
91
|
+
* @deprecated Use is.integer instead
|
|
92
|
+
*/
|
|
33
93
|
isInteger: is.integer,
|
|
94
|
+
/**
|
|
95
|
+
* Check if a number is a float (has decimal places).
|
|
96
|
+
*
|
|
97
|
+
* @param value - The number to check
|
|
98
|
+
* @deprecated Use is.decimal or custom logic instead
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* types.isFloat(3.14) // true
|
|
102
|
+
* types.isFloat(42) // false
|
|
103
|
+
*/
|
|
34
104
|
isFloat(value) {
|
|
35
105
|
return value !== (value | 0);
|
|
36
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* Check if a value represents a decimal number with specific decimal places.
|
|
109
|
+
*
|
|
110
|
+
* @param value - The value to check (string or number)
|
|
111
|
+
* @param options - Options for decimal validation
|
|
112
|
+
* @param options.decimalPlaces - Regex pattern for allowed decimal places (default: '1,')
|
|
113
|
+
* @deprecated Use a validation library like Vine or custom logic instead
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* types.isDecimal('3.14') // true
|
|
117
|
+
* types.isDecimal('42.0') // true
|
|
118
|
+
* types.isDecimal('42') // false
|
|
119
|
+
* types.isDecimal('3.141', { decimalPlaces: '1,3' }) // true
|
|
120
|
+
*/
|
|
37
121
|
isDecimal(value, options) {
|
|
38
122
|
if (typeof value === "number") value = value.toString();
|
|
39
123
|
const decimalPlaces = options && options.decimalPlaces || "1,";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TestUtils } from "../../main-
|
|
1
|
+
import { t as TestUtils } from "../../main-l3qICfaP.js";
|
|
2
2
|
export { TestUtils };
|
|
@@ -27,17 +27,41 @@ const stringHelpers = {
|
|
|
27
27
|
create(value) {
|
|
28
28
|
return new StringBuilder(value);
|
|
29
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* Formats Node.js hrtime output into a human-readable string.
|
|
32
|
+
*
|
|
33
|
+
* @param time - Tuple of [seconds, nanoseconds] from process.hrtime()
|
|
34
|
+
* @param options - Formatting options for output style and precision
|
|
35
|
+
*/
|
|
30
36
|
prettyHrTime(time, options) {
|
|
31
37
|
return prettyHrTime(time, options);
|
|
32
38
|
},
|
|
39
|
+
/**
|
|
40
|
+
* Check if a string is empty or contains only whitespace characters.
|
|
41
|
+
*
|
|
42
|
+
* @param value - The string to check for emptiness
|
|
43
|
+
*/
|
|
33
44
|
isEmpty(value) {
|
|
34
45
|
return value.trim().length === 0;
|
|
35
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* Escape HTML entities to prevent XSS attacks and display HTML safely.
|
|
49
|
+
*
|
|
50
|
+
* @param value - The string containing HTML to escape
|
|
51
|
+
* @param options - Optional configuration for escaping behavior
|
|
52
|
+
* @param options.encodeSymbols - Whether to also encode Unicode symbols as HTML entities
|
|
53
|
+
*/
|
|
36
54
|
escapeHTML(value, options) {
|
|
37
55
|
value = he.escape(value);
|
|
38
56
|
if (options && options.encodeSymbols) value = this.encodeSymbols(value, { allowUnsafeSymbols: true });
|
|
39
57
|
return value;
|
|
40
58
|
},
|
|
59
|
+
/**
|
|
60
|
+
* Encode Unicode symbols and special characters as HTML entities.
|
|
61
|
+
*
|
|
62
|
+
* @param value - The string containing symbols to encode
|
|
63
|
+
* @param options - Encoding options from the 'he' library
|
|
64
|
+
*/
|
|
41
65
|
encodeSymbols(value, options) {
|
|
42
66
|
return he.encode(value, options);
|
|
43
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Ignitor } from "./main-zFY2qkGC.js";
|
|
2
|
-
import "./core-
|
|
3
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
4
|
-
import { t as TestUtils } from "./main-
|
|
2
|
+
import "./core-DMssQKwM.js";
|
|
3
|
+
import { t as IgnitorFactory } from "./ignitor-BxhEMsoG.js";
|
|
4
|
+
import { t as TestUtils } from "./main-l3qICfaP.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-CjDBNaqp.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
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.3.
|
|
4
|
+
"version": "7.3.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"@japa/runner": "^5.3.0",
|
|
93
93
|
"@japa/snapshot": "^2.0.10",
|
|
94
94
|
"@poppinss/ts-exec": "^1.4.4",
|
|
95
|
-
"@release-it/conventional-changelog": "^
|
|
96
|
-
"@types/node": "~25.
|
|
95
|
+
"@release-it/conventional-changelog": "^11.0.0",
|
|
96
|
+
"@types/node": "~25.6.0",
|
|
97
97
|
"@types/pretty-hrtime": "^1.0.3",
|
|
98
98
|
"@types/sinon": "^21.0.1",
|
|
99
99
|
"@types/supertest": "^7.2.0",
|
|
@@ -106,19 +106,19 @@
|
|
|
106
106
|
"cross-env": "^10.1.0",
|
|
107
107
|
"del-cli": "^7.0.0",
|
|
108
108
|
"edge.js": "^6.5.0",
|
|
109
|
-
"eslint": "^10.2.
|
|
109
|
+
"eslint": "^10.2.1",
|
|
110
110
|
"execa": "^9.6.1",
|
|
111
111
|
"get-port": "^7.2.0",
|
|
112
112
|
"pino-pretty": "^13.1.3",
|
|
113
|
-
"prettier": "^3.8.
|
|
114
|
-
"release-it": "^
|
|
115
|
-
"sinon": "^21.
|
|
113
|
+
"prettier": "^3.8.3",
|
|
114
|
+
"release-it": "^20.0.1",
|
|
115
|
+
"sinon": "^21.1.2",
|
|
116
116
|
"supertest": "^7.2.2",
|
|
117
117
|
"test-console": "^2.0.0",
|
|
118
118
|
"timekeeper": "^2.3.1",
|
|
119
|
-
"tsdown": "^0.21.
|
|
120
|
-
"typedoc": "^0.28.
|
|
121
|
-
"typescript": "^6.0.
|
|
119
|
+
"tsdown": "^0.21.10",
|
|
120
|
+
"typedoc": "^0.28.19",
|
|
121
|
+
"typescript": "^6.0.3",
|
|
122
122
|
"youch": "^4.1.1"
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@poppinss/dumper": "^0.7.0",
|
|
141
141
|
"@poppinss/macroable": "^1.1.2",
|
|
142
142
|
"@poppinss/utils": "^7.0.1",
|
|
143
|
-
"@sindresorhus/is": "^
|
|
143
|
+
"@sindresorhus/is": "^8.0.0",
|
|
144
144
|
"@types/he": "^1.2.3",
|
|
145
145
|
"error-stack-parser-es": "^1.0.5",
|
|
146
146
|
"he": "^1.2.0",
|