More Debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 33s

This commit is contained in:
Alan Bridgeman 2025-06-23 20:24:20 -05:00
parent 85f56e4287
commit eb7dcaf556

View file

@ -65,6 +65,10 @@ export function Page(title: string, page: string, extraScripts: (string | { scri
console.log('[Page Decorator] Original:', original); console.log('[Page Decorator] Original:', original);
if(original.length === 1 && typeof original[0] === 'function') {
console.log('[Page Decorator] Original First Parameter:', original[0]);
}
// If the original function has more than 3 parameters, we can assume it is an error handler // If the original function has more than 3 parameters, we can assume it is an error handler
// An error handler starts with the error object, then the request, response and next functions. // An error handler starts with the error object, then the request, response and next functions.
if(original.length > 3) { if(original.length > 3) {