Skip to content

Commit 9a45a3b

Browse files
committedOct 12, 2023
chore: bump deps, fixed linting
1 parent 04884de commit 9a45a3b

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed
 

‎.xo-config.js

+2-1
Original file line numberDiff line numberDiff 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
};

‎package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@
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"

‎test/lib/layer.js

+6-6
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
Please sign in to comment.