File tree 3 files changed +21
-20
lines changed
3 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ module.exports = {
31
31
'prefer-spread' : 'warn' ,
32
32
'unicorn/explicit-length-check' : 'warn' ,
33
33
'unicorn/no-array-reduce' : 'warn' ,
34
- 'unicorn/prefer-spread' : 'warn'
34
+ 'unicorn/prefer-spread' : 'warn' ,
35
+ 'unicorn/prefer-node-protocol' : 'off'
35
36
}
36
37
} ;
Original file line number Diff line number Diff line change 19
19
"path-to-regexp" : " ^6.2.1"
20
20
},
21
21
"devDependencies" : {
22
- "@commitlint/cli" : " ^17.0.3 " ,
23
- "@commitlint/config-conventional" : " ^17.0.3 " ,
24
- "@ladjs/env" : " ^3 .0.0" ,
25
- "ava" : " ^4 .3.0 " ,
22
+ "@commitlint/cli" : " ^17.7.2 " ,
23
+ "@commitlint/config-conventional" : " ^17.7.0 " ,
24
+ "@ladjs/env" : " ^4 .0.0" ,
25
+ "ava" : " ^5 .3.1 " ,
26
26
"cross-env" : " ^7.0.3" ,
27
- "eslint" : " ^8.19 .0" ,
27
+ "eslint" : " 8.39 .0" ,
28
28
"eslint-config-xo-lass" : " ^2.0.1" ,
29
29
"expect.js" : " ^0.3.1" ,
30
30
"fixpack" : " ^4.0.0" ,
31
- "husky" : " ^8.0.1 " ,
32
- "jsdoc-to-markdown" : " ^7.1.1 " ,
33
- "koa" : " ^2.13.4 " ,
34
- "lint-staged" : " ^13 .0.3 " ,
35
- "mocha" : " ^10.0 .0" ,
31
+ "husky" : " ^8.0.3 " ,
32
+ "jsdoc-to-markdown" : " ^8.0.0 " ,
33
+ "koa" : " ^2.14.2 " ,
34
+ "lint-staged" : " ^14 .0.1 " ,
35
+ "mocha" : " ^10.2 .0" ,
36
36
"nyc" : " ^15.1.0" ,
37
- "remark-cli" : " ^11 .0.0" ,
37
+ "remark-cli" : " ^12 .0.0" ,
38
38
"remark-preset-github" : " ^4.0.4" ,
39
39
"should" : " ^13.2.3" ,
40
- "supertest" : " ^6.2.4 " ,
40
+ "supertest" : " ^6.3.3 " ,
41
41
"wrk" : " ^1.2.1" ,
42
- "xo" : " ^0.50.0 "
42
+ "xo" : " 0.53.1 "
43
43
},
44
44
"engines" : {
45
45
"node" : " >= 12"
Original file line number Diff line number Diff line change @@ -162,21 +162,21 @@ describe('Layer', function () {
162
162
const notexistHandle = undefined ;
163
163
( function ( ) {
164
164
router . get ( '/foo' , notexistHandle ) ;
165
- } . should . throw (
165
+ } ) . should . throw (
166
166
'get `/foo`: `middleware` must be a function, not `undefined`'
167
- ) ) ;
167
+ ) ;
168
168
169
169
( function ( ) {
170
170
router . get ( 'foo router' , '/foo' , notexistHandle ) ;
171
- } . should . throw (
171
+ } ) . should . throw (
172
172
'get `foo router`: `middleware` must be a function, not `undefined`'
173
- ) ) ;
173
+ ) ;
174
174
175
175
( function ( ) {
176
176
router . post ( '/foo' , function ( ) { } , notexistHandle ) ;
177
- } . should . throw (
177
+ } ) . should . throw (
178
178
'post `/foo`: `middleware` must be a function, not `undefined`'
179
- ) ) ;
179
+ ) ;
180
180
} ) ;
181
181
} ) ;
182
182
You can’t perform that action at this time.
0 commit comments