From 9a45a3be514bc50e8f4db1c8fd353294ed248285 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:20:24 -0500 Subject: [PATCH] chore: bump deps, fixed linting --- .xo-config.js | 3 ++- package.json | 26 +++++++++++++------------- test/lib/layer.js | 12 ++++++------ 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.xo-config.js b/.xo-config.js index 9ac8037..6163131 100644 --- a/.xo-config.js +++ b/.xo-config.js @@ -31,6 +31,7 @@ module.exports = { 'prefer-spread': 'warn', 'unicorn/explicit-length-check': 'warn', 'unicorn/no-array-reduce': 'warn', - 'unicorn/prefer-spread': 'warn' + 'unicorn/prefer-spread': 'warn', + 'unicorn/prefer-node-protocol': 'off' } }; diff --git a/package.json b/package.json index f64097d..4b541ad 100644 --- a/package.json +++ b/package.json @@ -19,27 +19,27 @@ "path-to-regexp": "^6.2.1" }, "devDependencies": { - "@commitlint/cli": "^17.0.3", - "@commitlint/config-conventional": "^17.0.3", - "@ladjs/env": "^3.0.0", - "ava": "^4.3.0", + "@commitlint/cli": "^17.7.2", + "@commitlint/config-conventional": "^17.7.0", + "@ladjs/env": "^4.0.0", + "ava": "^5.3.1", "cross-env": "^7.0.3", - "eslint": "^8.19.0", + "eslint": "8.39.0", "eslint-config-xo-lass": "^2.0.1", "expect.js": "^0.3.1", "fixpack": "^4.0.0", - "husky": "^8.0.1", - "jsdoc-to-markdown": "^7.1.1", - "koa": "^2.13.4", - "lint-staged": "^13.0.3", - "mocha": "^10.0.0", + "husky": "^8.0.3", + "jsdoc-to-markdown": "^8.0.0", + "koa": "^2.14.2", + "lint-staged": "^14.0.1", + "mocha": "^10.2.0", "nyc": "^15.1.0", - "remark-cli": "^11.0.0", + "remark-cli": "^12.0.0", "remark-preset-github": "^4.0.4", "should": "^13.2.3", - "supertest": "^6.2.4", + "supertest": "^6.3.3", "wrk": "^1.2.1", - "xo": "^0.50.0" + "xo": "0.53.1" }, "engines": { "node": ">= 12" diff --git a/test/lib/layer.js b/test/lib/layer.js index 9b82847..182c332 100644 --- a/test/lib/layer.js +++ b/test/lib/layer.js @@ -162,21 +162,21 @@ describe('Layer', function () { const notexistHandle = undefined; (function () { router.get('/foo', notexistHandle); - }.should.throw( + }).should.throw( 'get `/foo`: `middleware` must be a function, not `undefined`' - )); + ); (function () { router.get('foo router', '/foo', notexistHandle); - }.should.throw( + }).should.throw( 'get `foo router`: `middleware` must be a function, not `undefined`' - )); + ); (function () { router.post('/foo', function () {}, notexistHandle); - }.should.throw( + }).should.throw( 'post `/foo`: `middleware` must be a function, not `undefined`' - )); + ); }); });