@adonisjs/core 7.0.0-next.26 → 7.0.0-next.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/build/{ace-BfYSDoPf.js → ace-BtbS16RX.js} +5 -5
- package/build/commands/add.js +1 -1
- package/build/{edge-BVYR-Vjr.js → edge-D4loPeln.js} +3 -3
- package/build/factories/core/ace.js +4 -4
- package/build/factories/core/ignitor.js +3 -3
- package/build/factories/core/main.js +6 -6
- package/build/factories/core/test_utils.js +5 -5
- package/build/factories/stubs.js +1 -1
- package/build/{ignitor-B5akJVlQ.js → ignitor-D6oitHT8.js} +2 -2
- package/build/index.js +1 -1
- package/build/{main-DNokQ-c9.js → main-BDp4yNr8.js} +19 -8
- package/build/{main-DjlqWWRt.js → main-C4Amt3wT.js} +1 -1
- package/build/{main-DIF5Sg8W.js → main-DRfo73b5.js} +5 -3
- package/build/modules/ace/codemods.js +0 -1
- package/build/modules/dumper/plugins/edge.js +1 -1
- package/build/modules/http/main.js +1 -1
- package/build/modules/http/request_validator.d.ts +2 -1
- package/build/providers/app_provider.js +1 -1
- package/build/providers/edge_provider.js +2 -2
- package/build/providers/vinejs_provider.js +4 -1
- package/build/src/helpers/types.js +1 -1
- package/build/src/test_utils/main.js +2 -2
- package/build/{test_utils-JjctlaE3.js → test_utils-Ql9I7QAz.js} +3 -3
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @adonisjs/core
|
|
2
2
|
|
|
3
|
+
**Featured sponsors**
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
|
|
7
|
+
<tr>
|
|
8
|
+
<td>
|
|
9
|
+
|
|
10
|
+
<a href="https://route4me.com/?utm_source=adonisjs.com">
|
|
11
|
+
<img src="https://raw.githubusercontent.com/thetutlage/static/refs/heads/main/featured_sponsors/logos/route4me.jpg" />
|
|
12
|
+
</a>
|
|
13
|
+
|
|
14
|
+
</td>
|
|
15
|
+
|
|
16
|
+
<td>
|
|
17
|
+
|
|
18
|
+
<a href="https://ezycourse.com/?utm_source=adonisjs.com">
|
|
19
|
+
<img src="https://raw.githubusercontent.com/thetutlage/static/refs/heads/main/featured_sponsors/logos/ezycourse.jpg" />
|
|
20
|
+
</a>
|
|
21
|
+
|
|
22
|
+
</td>
|
|
23
|
+
|
|
24
|
+
</tr>
|
|
25
|
+
|
|
26
|
+
<tr>
|
|
27
|
+
|
|
28
|
+
<td>
|
|
29
|
+
|
|
30
|
+
<a href="https://meteor.software/g6h?utm_source=adonisjs.com">
|
|
31
|
+
<img src="https://raw.githubusercontent.com/thetutlage/static/refs/heads/main/featured_sponsors/logos/galaxy.jpg" />
|
|
32
|
+
</a>
|
|
33
|
+
|
|
34
|
+
</td>
|
|
35
|
+
|
|
36
|
+
<td>
|
|
37
|
+
|
|
38
|
+
<a href="https://www.testmuai.com/?utm_source=adonisjs.com">
|
|
39
|
+
<img src="https://raw.githubusercontent.com/thetutlage/static/refs/heads/main/featured_sponsors/logos/testmu.jpg" />
|
|
40
|
+
</a>
|
|
41
|
+
|
|
42
|
+
</td>
|
|
43
|
+
|
|
44
|
+
</tr>
|
|
45
|
+
|
|
46
|
+
<tr>
|
|
47
|
+
|
|
48
|
+
<td>
|
|
49
|
+
|
|
50
|
+
<a href="https://relancer.com/?utm_source=adonisjs.com">
|
|
51
|
+
<img src="https://raw.githubusercontent.com/thetutlage/static/refs/heads/main/featured_sponsors/logos/relancer.jpg" />
|
|
52
|
+
</a>
|
|
53
|
+
|
|
54
|
+
</td>
|
|
55
|
+
|
|
56
|
+
<td>
|
|
57
|
+
|
|
58
|
+
</td>
|
|
59
|
+
|
|
60
|
+
</tr>
|
|
61
|
+
|
|
62
|
+
</table>
|
|
63
|
+
|
|
3
64
|

|
|
4
65
|
|
|
5
66
|
<hr>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
1
|
+
import { t as Ignitor } from "./main-DRfo73b5.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-D6oitHT8.js";
|
|
3
3
|
import { t as createAceKernel } from "./create_kernel-PIeMK2Fo.js";
|
|
4
4
|
var AceFactory = class {
|
|
5
5
|
async make(ignitorOrAppRoot, options) {
|
|
6
6
|
if (ignitorOrAppRoot instanceof Ignitor) {
|
|
7
|
-
const app
|
|
8
|
-
await app
|
|
9
|
-
return createAceKernel(app
|
|
7
|
+
const app = ignitorOrAppRoot.createApp("console");
|
|
8
|
+
await app.init();
|
|
9
|
+
return createAceKernel(app);
|
|
10
10
|
}
|
|
11
11
|
const app = new IgnitorFactory().withCoreConfig().withCoreProviders().create(ignitorOrAppRoot, options).createApp("console");
|
|
12
12
|
await app.init();
|
package/build/commands/add.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-B88MteZI.js";
|
|
|
2
2
|
import "../main-kn40V-hF.js";
|
|
3
3
|
import "../container-uxa8LpGI.js";
|
|
4
4
|
import "../debug-DURPi9xn.js";
|
|
5
|
-
import "../main-
|
|
5
|
+
import "../main-DRfo73b5.js";
|
|
6
6
|
import "../app-B6oge7b3.js";
|
|
7
7
|
import "../app-DNvbxVWl.js";
|
|
8
8
|
import "../config_provider-CY-xuo2R.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Template } from "edge.js";
|
|
2
2
|
function pluginEdgeDumper(dumper) {
|
|
3
3
|
Template.macro("dumper", dumper);
|
|
4
|
-
return (edge
|
|
5
|
-
edge
|
|
4
|
+
return (edge) => {
|
|
5
|
+
edge.registerTag({
|
|
6
6
|
tagName: "dump",
|
|
7
7
|
block: false,
|
|
8
8
|
seekable: true,
|
|
@@ -13,7 +13,7 @@ function pluginEdgeDumper(dumper) {
|
|
|
13
13
|
buffer.outputExpression(`template.dumper.dumpToHtml(${parser.utils.stringify(parsed)}, { cspNonce: state.cspNonce, source: { location: $filename, line: $lineNumber } })`, token.filename, token.loc.start.line, true);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
edge
|
|
16
|
+
edge.registerTag({
|
|
17
17
|
tagName: "dd",
|
|
18
18
|
block: false,
|
|
19
19
|
seekable: true,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
2
|
import "../../debug-DURPi9xn.js";
|
|
3
|
-
import "../../main-
|
|
3
|
+
import "../../main-DRfo73b5.js";
|
|
4
4
|
import "../../app-B6oge7b3.js";
|
|
5
5
|
import "../../app-DNvbxVWl.js";
|
|
6
6
|
import "../../config_provider-CY-xuo2R.js";
|
|
7
7
|
import "../../main-BWftwyAK.js";
|
|
8
8
|
import "../../logger-DV65GX9N.js";
|
|
9
9
|
import "../../exceptions-DNMesP42.js";
|
|
10
|
-
import "../../main-
|
|
10
|
+
import "../../main-BDp4yNr8.js";
|
|
11
11
|
import "../../define_config-BlZ46bUg.js";
|
|
12
12
|
import "../../main-BIVLvDaW.js";
|
|
13
13
|
import "../../main-DOY5Q8Av.js";
|
|
14
|
-
import "../../ignitor-
|
|
14
|
+
import "../../ignitor-D6oitHT8.js";
|
|
15
15
|
import "../../create_kernel-PIeMK2Fo.js";
|
|
16
|
-
import { t as AceFactory } from "../../ace-
|
|
16
|
+
import { t as AceFactory } from "../../ace-BtbS16RX.js";
|
|
17
17
|
export { AceFactory };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../chunk-B88MteZI.js";
|
|
2
2
|
import "../../debug-DURPi9xn.js";
|
|
3
|
-
import "../../main-
|
|
3
|
+
import "../../main-DRfo73b5.js";
|
|
4
4
|
import "../../app-B6oge7b3.js";
|
|
5
5
|
import "../../app-DNvbxVWl.js";
|
|
6
6
|
import "../../config_provider-CY-xuo2R.js";
|
|
7
7
|
import "../../logger-DV65GX9N.js";
|
|
8
8
|
import "../../exceptions-DNMesP42.js";
|
|
9
|
-
import "../../main-
|
|
9
|
+
import "../../main-BDp4yNr8.js";
|
|
10
10
|
import "../../define_config-BlZ46bUg.js";
|
|
11
11
|
import "../../main-BIVLvDaW.js";
|
|
12
12
|
import "../../main-DOY5Q8Av.js";
|
|
13
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
13
|
+
import { t as IgnitorFactory } from "../../ignitor-D6oitHT8.js";
|
|
14
14
|
export { IgnitorFactory };
|
|
@@ -2,7 +2,7 @@ import "../../chunk-B88MteZI.js";
|
|
|
2
2
|
import "../../main-kn40V-hF.js";
|
|
3
3
|
import "../../container-uxa8LpGI.js";
|
|
4
4
|
import "../../debug-DURPi9xn.js";
|
|
5
|
-
import "../../main-
|
|
5
|
+
import "../../main-DRfo73b5.js";
|
|
6
6
|
import "../../app-B6oge7b3.js";
|
|
7
7
|
import "../../app-DNvbxVWl.js";
|
|
8
8
|
import "../../config_provider-CY-xuo2R.js";
|
|
@@ -12,14 +12,14 @@ import "../../core-Ckhxy7oM.js";
|
|
|
12
12
|
import "../../main-BWftwyAK.js";
|
|
13
13
|
import "../../logger-DV65GX9N.js";
|
|
14
14
|
import "../../exceptions-DNMesP42.js";
|
|
15
|
-
import "../../main-
|
|
15
|
+
import "../../main-BDp4yNr8.js";
|
|
16
16
|
import "../../define_config-BlZ46bUg.js";
|
|
17
17
|
import "../../main-C2r_lzz0.js";
|
|
18
18
|
import "../../main-BIVLvDaW.js";
|
|
19
19
|
import "../../main-DOY5Q8Av.js";
|
|
20
|
-
import { t as IgnitorFactory } from "../../ignitor-
|
|
20
|
+
import { t as IgnitorFactory } from "../../ignitor-D6oitHT8.js";
|
|
21
21
|
import "../../create_kernel-PIeMK2Fo.js";
|
|
22
|
-
import { t as AceFactory } from "../../ace-
|
|
23
|
-
import "../../main-
|
|
24
|
-
import { t as TestUtilsFactory } from "../../test_utils-
|
|
22
|
+
import { t as AceFactory } from "../../ace-BtbS16RX.js";
|
|
23
|
+
import "../../main-C4Amt3wT.js";
|
|
24
|
+
import { t as TestUtilsFactory } from "../../test_utils-Ql9I7QAz.js";
|
|
25
25
|
export { AceFactory, IgnitorFactory, TestUtilsFactory };
|
|
@@ -2,7 +2,7 @@ import "../../chunk-B88MteZI.js";
|
|
|
2
2
|
import "../../main-kn40V-hF.js";
|
|
3
3
|
import "../../container-uxa8LpGI.js";
|
|
4
4
|
import "../../debug-DURPi9xn.js";
|
|
5
|
-
import "../../main-
|
|
5
|
+
import "../../main-DRfo73b5.js";
|
|
6
6
|
import "../../app-B6oge7b3.js";
|
|
7
7
|
import "../../app-DNvbxVWl.js";
|
|
8
8
|
import "../../config_provider-CY-xuo2R.js";
|
|
@@ -11,12 +11,12 @@ import "../../utils-DjXMIVBJ.js";
|
|
|
11
11
|
import "../../core-Ckhxy7oM.js";
|
|
12
12
|
import "../../logger-DV65GX9N.js";
|
|
13
13
|
import "../../exceptions-DNMesP42.js";
|
|
14
|
-
import "../../main-
|
|
14
|
+
import "../../main-BDp4yNr8.js";
|
|
15
15
|
import "../../define_config-BlZ46bUg.js";
|
|
16
16
|
import "../../main-C2r_lzz0.js";
|
|
17
17
|
import "../../main-BIVLvDaW.js";
|
|
18
18
|
import "../../main-DOY5Q8Av.js";
|
|
19
|
-
import "../../ignitor-
|
|
20
|
-
import "../../main-
|
|
21
|
-
import { t as TestUtilsFactory } from "../../test_utils-
|
|
19
|
+
import "../../ignitor-D6oitHT8.js";
|
|
20
|
+
import "../../main-C4Amt3wT.js";
|
|
21
|
+
import { t as TestUtilsFactory } from "../../test_utils-Ql9I7QAz.js";
|
|
22
22
|
export { TestUtilsFactory };
|
package/build/factories/stubs.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-B88MteZI.js";
|
|
|
2
2
|
import { t as stubsRoot } from "../main-kn40V-hF.js";
|
|
3
3
|
import "../container-uxa8LpGI.js";
|
|
4
4
|
import "../debug-DURPi9xn.js";
|
|
5
|
-
import "../main-
|
|
5
|
+
import "../main-DRfo73b5.js";
|
|
6
6
|
import "../app-B6oge7b3.js";
|
|
7
7
|
import "../app-DNvbxVWl.js";
|
|
8
8
|
import "../config_provider-CY-xuo2R.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-DRfo73b5.js";
|
|
2
2
|
import { t as logger_exports } from "./logger-DV65GX9N.js";
|
|
3
|
-
import { t as main_exports } from "./main-
|
|
3
|
+
import { t as main_exports } from "./main-BDp4yNr8.js";
|
|
4
4
|
import { n as drivers, t as defineConfig } from "./define_config-BlZ46bUg.js";
|
|
5
5
|
import { n as defineConfig$1, r as drivers$1 } from "./main-BIVLvDaW.js";
|
|
6
6
|
import { t as main_exports$1 } from "./main-DOY5Q8Av.js";
|
package/build/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./chunk-B88MteZI.js";
|
|
|
2
2
|
import { t as stubsRoot } from "./main-kn40V-hF.js";
|
|
3
3
|
import { t as container_exports } from "./container-uxa8LpGI.js";
|
|
4
4
|
import "./debug-DURPi9xn.js";
|
|
5
|
-
import { t as Ignitor } from "./main-
|
|
5
|
+
import { t as Ignitor } from "./main-DRfo73b5.js";
|
|
6
6
|
import "./app-B6oge7b3.js";
|
|
7
7
|
import "./app-DNvbxVWl.js";
|
|
8
8
|
import { t as configProvider } from "./config_provider-CY-xuo2R.js";
|
|
@@ -7,22 +7,33 @@ var RequestValidator = class RequestValidator {
|
|
|
7
7
|
}
|
|
8
8
|
static errorReporter;
|
|
9
9
|
static messagesProvider;
|
|
10
|
-
|
|
10
|
+
#requestData() {
|
|
11
|
+
return {
|
|
12
|
+
...this.#ctx.request.all(),
|
|
13
|
+
params: this.#ctx.request.params(),
|
|
14
|
+
headers: this.#ctx.request.headers(),
|
|
15
|
+
cookies: this.#ctx.request.cookiesList()
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
#processValidatorOptions(options) {
|
|
11
19
|
const validatorOptions = options || {};
|
|
12
20
|
if (RequestValidator.errorReporter && !validatorOptions.errorReporter) {
|
|
13
21
|
const errorReporter = RequestValidator.errorReporter(this.#ctx);
|
|
14
22
|
validatorOptions.errorReporter = () => errorReporter;
|
|
15
23
|
}
|
|
16
24
|
if (RequestValidator.messagesProvider && !validatorOptions.messagesProvider) validatorOptions.messagesProvider = RequestValidator.messagesProvider(this.#ctx);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
cookies: this.#ctx.request.cookiesList()
|
|
23
|
-
};
|
|
25
|
+
return validatorOptions;
|
|
26
|
+
}
|
|
27
|
+
validateUsing(validator, ...[options]) {
|
|
28
|
+
const validatorOptions = this.#processValidatorOptions(options);
|
|
29
|
+
const data = validatorOptions.data || this.#requestData();
|
|
24
30
|
return validator.validate(data, validatorOptions);
|
|
25
31
|
}
|
|
32
|
+
async tryValidateUsing(validator, ...[options]) {
|
|
33
|
+
const validatorOptions = this.#processValidatorOptions(options);
|
|
34
|
+
const data = validatorOptions.data || this.#requestData();
|
|
35
|
+
return validator.tryValidate(data, validatorOptions);
|
|
36
|
+
}
|
|
26
37
|
};
|
|
27
38
|
var main_exports = /* @__PURE__ */ __exportAll({ RequestValidator: () => RequestValidator });
|
|
28
39
|
import * as import__adonisjs_http_server from "@adonisjs/http-server";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as debug_default } from "./debug-DURPi9xn.js";
|
|
2
|
-
import { t as main_exports } from "./main-
|
|
2
|
+
import { t as main_exports } from "./main-BDp4yNr8.js";
|
|
3
3
|
import { n as Encryption } from "./main-C2r_lzz0.js";
|
|
4
4
|
import { IncomingMessage, ServerResponse, createServer } from "node:http";
|
|
5
5
|
import { Socket } from "node:net";
|
|
@@ -27,14 +27,16 @@ var AceProcess = class {
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
await this.#configureCallback(app);
|
|
30
|
+
app.terminating(() => {
|
|
31
|
+
const mainCommand = kernel.getMainCommand();
|
|
32
|
+
if (mainCommand?.staysAlive) process.exitCode = mainCommand.exitCode;
|
|
33
|
+
});
|
|
30
34
|
await kernel.handle(argv);
|
|
31
35
|
const mainCommand = kernel.getMainCommand();
|
|
32
36
|
if (!mainCommand || !mainCommand.staysAlive) {
|
|
33
37
|
process.exitCode = kernel.exitCode;
|
|
34
38
|
await app.terminate();
|
|
35
|
-
}
|
|
36
|
-
process.exitCode = mainCommand.exitCode;
|
|
37
|
-
});
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
};
|
|
40
42
|
var TestRunnerProcess = class {
|
|
@@ -34,7 +34,6 @@ var Codemods = class extends EventEmitter {
|
|
|
34
34
|
case "yarn":
|
|
35
35
|
case "yarn@berry": return `${colors.yellow(`yarn add${devFlag}`)} ${packages.join(" ")}`;
|
|
36
36
|
case "pnpm": return `${colors.yellow(`pnpm add${devFlag}`)} ${packages.join(" ")}`;
|
|
37
|
-
case "npm":
|
|
38
37
|
default: return `${colors.yellow(`npm i${devFlag}`)} ${packages.join(" ")}`;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as pluginEdgeDumper } from "../../../edge-
|
|
1
|
+
import { t as pluginEdgeDumper } from "../../../edge-D4loPeln.js";
|
|
2
2
|
export { pluginEdgeDumper };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VineValidator } from '@vinejs/vine';
|
|
1
|
+
import type { ValidationError, VineValidator } from '@vinejs/vine';
|
|
2
2
|
import type { Infer, SchemaTypes, ErrorReporterContract, MessagesProviderContact } from '@vinejs/vine/types';
|
|
3
3
|
import type { HttpContext } from './main.ts';
|
|
4
4
|
import type { RequestValidationOptions } from '../../types/http.ts';
|
|
@@ -58,4 +58,5 @@ export declare class RequestValidator {
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
validateUsing<Schema extends SchemaTypes, MetaData extends undefined | Record<string, any>>(validator: VineValidator<Schema, MetaData>, ...[options]: [undefined] extends MetaData ? [options?: RequestValidationOptions<MetaData> | undefined] : [options: RequestValidationOptions<MetaData>]): Promise<Infer<Schema>>;
|
|
61
|
+
tryValidateUsing<Schema extends SchemaTypes, MetaData extends undefined | Record<string, any>>(validator: VineValidator<Schema, MetaData>, ...[options]: [undefined] extends MetaData ? [options?: RequestValidationOptions<MetaData> | undefined] : [options: RequestValidationOptions<MetaData>]): Promise<[ValidationError, null] | [null, Infer<Schema>]>;
|
|
61
62
|
}
|
|
@@ -7,7 +7,7 @@ import { t as events_exports } from "../events-BWRc08nG.js";
|
|
|
7
7
|
import { t as logger_exports } from "../logger-DV65GX9N.js";
|
|
8
8
|
import { t as Dumper } from "../dumper-DxJ_VRuC.js";
|
|
9
9
|
import { r as RuntimeException } from "../exceptions-DNMesP42.js";
|
|
10
|
-
import { t as main_exports } from "../main-
|
|
10
|
+
import { t as main_exports } from "../main-BDp4yNr8.js";
|
|
11
11
|
import "../define_config-BlZ46bUg.js";
|
|
12
12
|
import { n as Encryption } from "../main-C2r_lzz0.js";
|
|
13
13
|
import { t as bodyparser_middleware_default } from "../bodyparser_middleware-BmARtnYe.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { t as main_exports } from "../main-
|
|
3
|
-
import { t as pluginEdgeDumper } from "../edge-
|
|
2
|
+
import { t as main_exports } from "../main-BDp4yNr8.js";
|
|
3
|
+
import { t as pluginEdgeDumper } from "../edge-D4loPeln.js";
|
|
4
4
|
import edge from "edge.js";
|
|
5
5
|
var EdgeServiceProvider = class {
|
|
6
6
|
constructor(app) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-B88MteZI.js";
|
|
2
|
-
import { n as RequestValidator, t as main_exports } from "../main-
|
|
2
|
+
import { n as RequestValidator, t as main_exports } from "../main-BDp4yNr8.js";
|
|
3
3
|
import { t as VineMultipartFile } from "../vine-D37x2ex7.js";
|
|
4
4
|
import { Vine } from "@vinejs/vine";
|
|
5
5
|
var VineJSServiceProvider = class {
|
|
@@ -14,6 +14,9 @@ var VineJSServiceProvider = class {
|
|
|
14
14
|
main_exports.HttpRequest.macro("validateUsing", function(...args) {
|
|
15
15
|
return new RequestValidator(this.ctx).validateUsing(...args);
|
|
16
16
|
});
|
|
17
|
+
main_exports.HttpRequest.macro("tryValidateUsing", function(...args) {
|
|
18
|
+
return new RequestValidator(this.ctx).tryValidateUsing(...args);
|
|
19
|
+
});
|
|
17
20
|
}
|
|
18
21
|
};
|
|
19
22
|
export { VineJSServiceProvider as default };
|
|
@@ -21,7 +21,7 @@ var types_default = {
|
|
|
21
21
|
isDecimal(value, options) {
|
|
22
22
|
if (typeof value === "number") value = value.toString();
|
|
23
23
|
const decimalPlaces = options && options.decimalPlaces || "1,";
|
|
24
|
-
return
|
|
24
|
+
return new RegExp(`^[-+]?([0-9]+)?(\\.[0-9]{${decimalPlaces}})$`).test(value);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
export { types_default as default };
|
|
@@ -2,8 +2,8 @@ import "../../chunk-B88MteZI.js";
|
|
|
2
2
|
import "../../debug-DURPi9xn.js";
|
|
3
3
|
import "../../config_provider-CY-xuo2R.js";
|
|
4
4
|
import "../../exceptions-DNMesP42.js";
|
|
5
|
-
import "../../main-
|
|
5
|
+
import "../../main-BDp4yNr8.js";
|
|
6
6
|
import "../../define_config-BlZ46bUg.js";
|
|
7
7
|
import "../../main-C2r_lzz0.js";
|
|
8
|
-
import { t as TestUtils } from "../../main-
|
|
8
|
+
import { t as TestUtils } from "../../main-C4Amt3wT.js";
|
|
9
9
|
export { TestUtils };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
3
|
-
import { t as TestUtils } from "./main-
|
|
1
|
+
import { t as Ignitor } from "./main-DRfo73b5.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-D6oitHT8.js";
|
|
3
|
+
import { t as TestUtils } from "./main-C4Amt3wT.js";
|
|
4
4
|
var TestUtilsFactory = class {
|
|
5
5
|
create(ignitorOrAppRoot, options) {
|
|
6
6
|
if (ignitorOrAppRoot instanceof Ignitor) return new TestUtils(ignitorOrAppRoot.createApp("test"));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.0.0-next.
|
|
4
|
+
"version": "7.0.0-next.27",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@japa/file-system": "^3.0.0",
|
|
90
90
|
"@japa/runner": "^5.3.0",
|
|
91
91
|
"@japa/snapshot": "^2.0.10",
|
|
92
|
-
"@poppinss/ts-exec": "^1.4.
|
|
92
|
+
"@poppinss/ts-exec": "^1.4.3",
|
|
93
93
|
"@release-it/conventional-changelog": "^10.0.4",
|
|
94
|
-
"@types/node": "^25.0
|
|
94
|
+
"@types/node": "^25.1.0",
|
|
95
95
|
"@types/pretty-hrtime": "^1.0.3",
|
|
96
96
|
"@types/sinon": "^21.0.0",
|
|
97
97
|
"@types/supertest": "^6.0.3",
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"execa": "^9.6.1",
|
|
109
109
|
"get-port": "^7.1.0",
|
|
110
110
|
"pino-pretty": "^13.1.3",
|
|
111
|
-
"prettier": "^3.8.
|
|
112
|
-
"release-it": "^19.2.
|
|
111
|
+
"prettier": "^3.8.1",
|
|
112
|
+
"release-it": "^19.2.4",
|
|
113
113
|
"sinon": "^21.0.1",
|
|
114
114
|
"supertest": "^7.2.2",
|
|
115
115
|
"test-console": "^2.0.0",
|
|
116
116
|
"timekeeper": "^2.3.1",
|
|
117
|
-
"tsdown": "^0.
|
|
117
|
+
"tsdown": "^0.20.1",
|
|
118
118
|
"typedoc": "^0.28.16",
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
120
|
"youch": "^4.1.0-beta.13"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@adonisjs/ace": "^14.0.1-next.4",
|
|
124
124
|
"@adonisjs/application": "^9.0.0-next.15",
|
|
125
|
-
"@adonisjs/bodyparser": "^11.0.0-next.
|
|
125
|
+
"@adonisjs/bodyparser": "^11.0.0-next.7",
|
|
126
126
|
"@adonisjs/config": "^6.1.0-next.0",
|
|
127
127
|
"@adonisjs/env": "^7.0.0-next.3",
|
|
128
128
|
"@adonisjs/events": "^10.1.0-next.4",
|
|
@@ -132,18 +132,18 @@
|
|
|
132
132
|
"@adonisjs/http-server": "^8.0.0-next.18",
|
|
133
133
|
"@adonisjs/http-transformers": "^2.1.0",
|
|
134
134
|
"@adonisjs/logger": "^7.1.0-next.3",
|
|
135
|
-
"@adonisjs/repl": "^5.0.0-next.
|
|
135
|
+
"@adonisjs/repl": "^5.0.0-next.2",
|
|
136
136
|
"@boringnode/encryption": "^0.2.5",
|
|
137
137
|
"@poppinss/colors": "^4.1.6",
|
|
138
138
|
"@poppinss/dumper": "^0.7.0",
|
|
139
139
|
"@poppinss/macroable": "^1.1.0",
|
|
140
|
-
"@poppinss/utils": "^7.0.0-next.
|
|
140
|
+
"@poppinss/utils": "^7.0.0-next.7",
|
|
141
141
|
"@sindresorhus/is": "^7.2.0",
|
|
142
142
|
"@types/he": "^1.2.3",
|
|
143
143
|
"error-stack-parser-es": "^1.0.5",
|
|
144
144
|
"he": "^1.2.0",
|
|
145
145
|
"pretty-hrtime": "^1.0.3",
|
|
146
|
-
"string-width": "^8.1.
|
|
146
|
+
"string-width": "^8.1.1"
|
|
147
147
|
},
|
|
148
148
|
"peerDependencies": {
|
|
149
149
|
"@adonisjs/assembler": "^8.0.0-next.23",
|