File tree Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Expand file tree Collapse file tree 3 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ module.exports = {
3131    'prefer-spread' : 'warn' , 
3232    'unicorn/explicit-length-check' : 'warn' , 
3333    'unicorn/no-array-reduce' : 'warn' , 
34-     'unicorn/prefer-spread' : 'warn' 
34+     'unicorn/prefer-spread' : 'warn' , 
35+     'unicorn/prefer-node-protocol' : 'off' 
3536  } 
3637} ; 
Original file line number Diff line number Diff line change 1919    "path-to-regexp" : " ^6.2.1" 
2020  },
2121  "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 "  ,
2626    "cross-env" : " ^7.0.3"  ,
27-     "eslint" : " ^8.19 .0"  ,
27+     "eslint" : " 8.39 .0"  ,
2828    "eslint-config-xo-lass" : " ^2.0.1"  ,
2929    "expect.js" : " ^0.3.1"  ,
3030    "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"  ,
3636    "nyc" : " ^15.1.0"  ,
37-     "remark-cli" : " ^11 .0.0"  ,
37+     "remark-cli" : " ^12 .0.0"  ,
3838    "remark-preset-github" : " ^4.0.4"  ,
3939    "should" : " ^13.2.3"  ,
40-     "supertest" : " ^6.2.4 "  ,
40+     "supertest" : " ^6.3.3 "  ,
4141    "wrk" : " ^1.2.1"  ,
42-     "xo" : " ^0.50.0 " 
42+     "xo" : " 0.53.1 " 
4343  },
4444  "engines" : {
4545    "node" : " >= 12" 
Original file line number Diff line number Diff line change @@ -162,21 +162,21 @@ describe('Layer', function () {
162162      const  notexistHandle  =  undefined ; 
163163      ( function  ( )  { 
164164        router . get ( '/foo' ,  notexistHandle ) ; 
165-       } . should . throw ( 
165+       } ) . should . throw ( 
166166        'get `/foo`: `middleware` must be a function, not `undefined`' 
167-       ) ) ; 
167+       ) ; 
168168
169169      ( function  ( )  { 
170170        router . get ( 'foo router' ,  '/foo' ,  notexistHandle ) ; 
171-       } . should . throw ( 
171+       } ) . should . throw ( 
172172        'get `foo router`: `middleware` must be a function, not `undefined`' 
173-       ) ) ; 
173+       ) ; 
174174
175175      ( function  ( )  { 
176176        router . post ( '/foo' ,  function  ( )  { } ,  notexistHandle ) ; 
177-       } . should . throw ( 
177+       } ) . should . throw ( 
178178        'post `/foo`: `middleware` must be a function, not `undefined`' 
179-       ) ) ; 
179+       ) ; 
180180    } ) ; 
181181  } ) ; 
182182
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments