@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((
|
|
98
|
-
|
|
99
|
-
|
|
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
package/package.json
CHANGED