@adonisjs/assembler 8.0.0-next.19 → 8.0.0-next.20

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.
@@ -94,10 +94,9 @@ async function extractValidators(appRoot, vfs, controller) {
94
94
  debug_default(`No class defined within the "%s"`, controller.import.specifier);
95
95
  return;
96
96
  }
97
- const method = inspectClassMethods(controllerClass).find((e) => {
98
- return e.find({
99
- rule: { kind: "property_identifier", regex: `\\b${controller.method}\\b` }
100
- });
97
+ const method = inspectClassMethods(controllerClass).find((methodNode) => {
98
+ const methodName = methodNode.find({ rule: { kind: "property_identifier" } });
99
+ return methodName?.text() === controller.method;
101
100
  });
102
101
  if (!method) {
103
102
  debug_default(`Unable to find "%s" method in "%s"`, controller.method, controller.import.specifier);
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-4452KFDQ.js";
5
5
  import {
6
6
  RoutesScanner
7
- } from "./chunk-CSRLGGAO.js";
7
+ } from "./chunk-NAASGAFO.js";
8
8
  import "./chunk-TIKQQRMX.js";
9
9
  import {
10
10
  VirtualFileSystem,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RoutesScanner
3
- } from "../../../chunk-CSRLGGAO.js";
3
+ } from "../../../chunk-NAASGAFO.js";
4
4
  import "../../../chunk-TIKQQRMX.js";
5
5
  import "../../../chunk-JFBQ4OEM.js";
6
6
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
3
  "description": "Provides utilities to run AdonisJS development server and build project for production",
4
- "version": "8.0.0-next.19",
4
+ "version": "8.0.0-next.20",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },