just move the position of a comment
This commit is contained in:
parent
4b75efbddd
commit
df248d213c
1 changed files with 6 additions and 7 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue