File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const extraRoutesPlugin = (route, options) => {
17
17
return [ ] ;
18
18
} ;
19
19
20
- extraRoutesPlugin [ configValidator ] = async options => {
20
+ const validator = async options => {
21
21
const errors = [ ] ;
22
22
23
23
if ( options . numberOfPages && typeof options . numberOfPages !== 'number' ) {
@@ -42,5 +42,5 @@ extraRoutesPlugin[configValidator] = async options => {
42
42
return errors ;
43
43
} ;
44
44
45
- registerPlugin ( 'router' , 'extra' , extraRoutesPlugin ) ;
45
+ registerPlugin ( 'router' , 'extra' , extraRoutesPlugin , validator ) ;
46
46
module . exports . extraRoutesPlugin = extraRoutesPlugin ;
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ const tocPlugin = async (html, options) => {
24
24
return html ;
25
25
} ;
26
26
27
- tocPlugin [ configValidator ] = async config => [ ] ;
28
- registerPlugin ( 'render' , 'toc' , tocPlugin ) ;
27
+ const validator = async config => [ ] ;
28
+ registerPlugin ( 'render' , 'toc' , tocPlugin , validator ) ;
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ const voidPlugin = async (route, options) => {
9
9
return [ ] ;
10
10
} ;
11
11
12
- voidPlugin [ configValidator ] = async conf => [ ] ;
13
- registerPlugin ( 'router' , 'void' , voidPlugin ) ;
12
+ const validator = async conf => [ ] ;
13
+ registerPlugin ( 'router' , 'void' , voidPlugin , validator ) ;
You can’t perform that action at this time.
0 commit comments