From 27cec4f6cfb1be906bd0fab11387787a5f26e353 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:21:46 -0600 Subject: [PATCH] chore: bump deps, fixed linting --- index.js | 3 +-- package.json | 16 ++++++++-------- test/test.js | 2 -- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index fb54a58..6d14b78 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ const process = require('node:process'); - const Boom = require('@hapi/boom'); const auth = require('basic-auth'); const isSANB = require('is-string-and-not-blank'); @@ -212,7 +211,7 @@ class Policies { const credentials = auth(ctx.req); if ( - typeof credentials === 'undefined' || + credentials === undefined || typeof credentials.name !== 'string' || !credentials.name ) diff --git a/package.json b/package.json index d1f3089..fccd2f1 100644 --- a/package.json +++ b/package.json @@ -15,26 +15,26 @@ "shadowgate15 (https://github.com/shadowgate15)" ], "dependencies": { - "@hapi/boom": "^10.0.0", + "@hapi/boom": "^10.0.1", "basic-auth": "^2.0.1", "boolean": "^3.2.0", "is-string-and-not-blank": "^0.0.2" }, "devDependencies": { - "@commitlint/cli": "^17.4.2", - "@commitlint/config-conventional": "^17.4.2", + "@commitlint/cli": "^18.4.3", + "@commitlint/config-conventional": "^18.4.3", "ava": "^5.1.0", "cross-env": "^7.0.3", - "eslint": "^8.31.0", + "eslint": "^8.55.0", "eslint-config-xo-lass": "^2.0.1", "fixpack": "^4.0.0", "husky": "^8.0.3", - "lint-staged": "^13.1.0", + "lint-staged": "^15.2.0", "nyc": "^15.1.0", - "remark-cli": "^11.0.0", + "remark-cli": "11", "remark-preset-github": "^4.0.4", - "undici": "^5.20.0", - "xo": "^0.53.1" + "undici": "^6.0.1", + "xo": "^0.56.0" }, "engines": { "node": ">=14" diff --git a/test/test.js b/test/test.js index 2fc6d8b..41940ab 100644 --- a/test/test.js +++ b/test/test.js @@ -1,7 +1,5 @@ const process = require('node:process'); - const test = require('ava'); - const Policies = require('..'); test.beforeEach((t) => {