From f4ce83e4fea8f1186852d6f12cdb5d8e0b9092cf Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Tue, 3 Sep 2024 10:58:48 +0530 Subject: [PATCH] chore: update dependencies --- eslint.config.js | 2 ++ package.json | 38 ++++++++++++++++++------------------ src/legacy/bcrypt_base64.cjs | 4 ---- 3 files changed, 21 insertions(+), 23 deletions(-) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..e4cad4b --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,2 @@ +import { configPkg } from '@adonisjs/eslint-config' +export default configPkg() diff --git a/package.json b/package.json index c5f1c5c..bea320c 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "version": "npm run build", "format": "prettier --write .", "prepublishOnly": "npm run build", - "lint": "eslint . --ext=.ts", + "lint": "eslint .", "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/hash", - "quick:test": "node --loader=ts-node/esm bin/test.ts" + "quick:test": "node --import=ts-node-maintained/register/esm bin/test.ts" }, "keywords": [ "hash", @@ -46,37 +46,37 @@ "author": "adonisjs,virk", "license": "MIT", "devDependencies": { - "@adonisjs/eslint-config": "^1.3.0", - "@adonisjs/prettier-config": "^1.3.0", - "@adonisjs/tsconfig": "^1.3.0", - "@commitlint/cli": "^19.2.2", - "@commitlint/config-conventional": "^19.2.2", + "@adonisjs/eslint-config": "^2.0.0-beta.6", + "@adonisjs/prettier-config": "^1.4.0", + "@adonisjs/tsconfig": "^1.4.0", + "@commitlint/cli": "^19.4.1", + "@commitlint/config-conventional": "^19.4.1", "@japa/assert": "^3.0.0", "@japa/expect-type": "^2.0.2", "@japa/runner": "^3.1.4", - "@swc/core": "^1.4.16", + "@swc/core": "^1.7.23", "@types/bcrypt": "^5.0.2", - "@types/node": "^20.12.7", - "argon2": "^0.40.1", + "@types/node": "^22.5.2", + "argon2": "^0.41.1", "bcrypt": "^5.1.1", - "c8": "^9.1.0", + "c8": "^10.1.2", "cross-env": "^7.0.3", "del-cli": "^5.1.0", - "eslint": "^8.57.0", + "eslint": "^9.9.1", "github-label-sync": "^2.3.1", - "husky": "^9.0.11", - "prettier": "^3.2.5", - "release-it": "^17.2.0", - "ts-node": "^10.9.2", - "tsup": "^8.0.2", - "typescript": "^5.4.5" + "husky": "^9.1.5", + "prettier": "^3.3.3", + "release-it": "^17.6.0", + "ts-node-maintained": "^10.9.4", + "tsup": "^8.2.4", + "typescript": "^5.5.4" }, "dependencies": { "@phc/format": "^1.0.0", "@poppinss/utils": "^6.7.3" }, "peerDependencies": { - "argon2": "^0.31.2 || ^0.40.0", + "argon2": "^0.31.2 || ^0.41.0", "bcrypt": "^5.1.1" }, "peerDependenciesMeta": { diff --git a/src/legacy/bcrypt_base64.cjs b/src/legacy/bcrypt_base64.cjs index 8fa7169..e3592a1 100644 --- a/src/legacy/bcrypt_base64.cjs +++ b/src/legacy/bcrypt_base64.cjs @@ -1,5 +1,3 @@ -/* eslint-disable capitalized-comments,unicorn/number-literal-case,unicorn/no-abusive-eslint-disable */ - /** * Bcrypt does not use standard base64 encoding. * https://hackernoon.com/the-bcrypt-protocol-is-kind-of-a-mess-4aace5eb31bd @@ -10,7 +8,6 @@ **/ const BASE64_CODE = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.split('') -/* eslint-disable prettier/prettier */ const BASE64_INDEX = [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 54, @@ -19,7 +16,6 @@ const BASE64_INDEX = [ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, -1, -1, -1, -1, -1, ] -/* eslint-enable prettier/prettier */ /** * Encodes a Buffer to base64 using the bcrypt's base64 dictionary.