just move the position of a comment

This commit is contained in:
wearrrrr 2024-06-18 23:21:35 -05:00
parent 4b75efbddd
commit df248d213c

View file

@ -16,13 +16,6 @@ const defaultOpt = {
timing: false timing: false
}; };
// type middlewareManifest = {
// function: Function,
// name?: string,
// events: string[], // Should be a union of validEvents.
// configuration?: Object // Optional configuration for the middleware.
// }
const validEvents = [ const validEvents = [
"abortpayment", "abortpayment",
"activate", "activate",
@ -106,6 +99,12 @@ class WorkerWare {
return middlewares[id](event); return middlewares[id](event);
} }
} }
// type middlewareManifest = {
// function: Function,
// name?: string,
// events: string[], // Should be a union of validEvents.
// configuration?: Object // Optional configuration for the middleware.
// }
validateMiddleware(middleware) { validateMiddleware(middleware) {
if (!middleware.function) if (!middleware.function)
return { return {