@adonisjs/assembler 8.0.0-next.31 → 8.0.0-next.32
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/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as loadHooks, c as readTsConfig, d as runNode, f as throttle, m as debug_default, n as copyFiles, o as memoize, p as watch, r as getPort, s as parseConfig, t as VirtualFileSystem, u as run } from "./virtual_file_system-bGeoWsK-.js";
|
|
2
2
|
import { n as FileBuffer, t as IndexGenerator } from "./main-CknPN3rJ.js";
|
|
3
|
-
import { t as RoutesScanner } from "./main-
|
|
3
|
+
import { t as RoutesScanner } from "./main-Cmk7Nkta.js";
|
|
4
4
|
import "./helpers-DDurYRsZ.js";
|
|
5
5
|
import { t as CodemodException } from "./codemod_exception-vyN1VXuX.js";
|
|
6
6
|
import dedent from "dedent";
|
|
@@ -556,7 +556,7 @@ var DevServer = class DevServer {
|
|
|
556
556
|
this.ui.logger.info(`starting server in ${this.#mode} mode...`);
|
|
557
557
|
this.#indexGenerator = new IndexGenerator(this.cwdPath, this.ui.logger);
|
|
558
558
|
this.#stickyPort = String(await getPort(this.cwd));
|
|
559
|
-
this.#stickyHmrPort = String(getRandomPort({ port: 24678 }));
|
|
559
|
+
this.#stickyHmrPort = String(await getRandomPort({ port: 24678 }));
|
|
560
560
|
this.#fileSystem = new FileSystem(this.cwdPath, tsConfig, this.options);
|
|
561
561
|
this.ui.logger.info("loading hooks...");
|
|
562
562
|
this.#hooks = await loadHooks(this.options.hooks, [
|
|
@@ -855,7 +855,7 @@ var TestRunner = class {
|
|
|
855
855
|
}
|
|
856
856
|
async run() {
|
|
857
857
|
this.#stickyPort = String(await getPort(this.cwd));
|
|
858
|
-
this.#stickyHmrPort = String(getRandomPort({ port: 24678 }));
|
|
858
|
+
this.#stickyHmrPort = String(await getRandomPort({ port: 24678 }));
|
|
859
859
|
this.#indexGenerator = new IndexGenerator(this.cwdPath, this.ui.logger);
|
|
860
860
|
this.#clearScreen();
|
|
861
861
|
this.ui.logger.info("loading hooks...");
|
|
@@ -43,7 +43,11 @@ async function extractValidators(appRoot, vfs, controller) {
|
|
|
43
43
|
debug_default(`Unable to find "%s" method in "%s"`, controller.method, controller.import.specifier);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const validationCalls = inspectMethodArguments(method, [
|
|
46
|
+
const validationCalls = inspectMethodArguments(method, [
|
|
47
|
+
"request.validateUsing",
|
|
48
|
+
"$CTX.request.validateUsing",
|
|
49
|
+
"vine.validate"
|
|
50
|
+
]).map((node) => {
|
|
47
51
|
const firstArg = node.find({ rule: { any: [{ kind: "identifier" }, { kind: "member_expression" }] } });
|
|
48
52
|
if (!firstArg) return;
|
|
49
53
|
return nodeToPlainText(firstArg);
|
package/package.json
CHANGED