diff --git a/.eslintrc.js b/.eslintrc.js index 14e83fd..e3693a2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,6 +6,6 @@ module.exports = { }, rules: { ...require('@ackee/styleguide-backend-config/eslint').rules, - 'new-cap': 1 + 'new-cap': 1, }, } diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 36af219..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged diff --git a/.npmignore b/.npmignore index 0027f16..b149060 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,5 @@ .vscode .github -.husky .vscode src test diff --git a/.nvmrc b/.nvmrc index b460d6f..f3f52b4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18.12.1 +20.9.0 diff --git a/README.md b/README.md index 798d17f..1db8720 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Module for **HOTP** ([IETF RFC 4226](https://www.rfc-editor.org/rfc/rfc4226)) and **TOTP** ([IETF RFC 6238](https://www.rfc-editor.org/rfc/rfc6238)) one time password codes without any dependencies for Node. Fully tested accordign to RFC specification, exposing full API of respective reference implementations. ## Usage + OTPass is a library made for easy implementation of OTP functionality into your Node applications. - 📑 Implemented in accordance with RFC specifications @@ -15,6 +16,7 @@ OTPass is a library made for easy implementation of OTP functionality into your - ✔️ Validate codes, including custom time settings and sliding windows for range validation ## What are we talking about here? + [Time based one-time password (Wikipedia)](https://en.wikipedia.org/wiki/Time-based_one-time_password) -[HMAC based one-time password (Wikipedia)](https://en.wikipedia.org/wiki/HMAC-based_one-time_password) \ No newline at end of file +[HMAC based one-time password (Wikipedia)](https://en.wikipedia.org/wiki/HMAC-based_one-time_password) diff --git a/package.json b/package.json index ce4f3b3..5a274c8 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Easy to use 2FA module supporting both Timed one-time passwords (RFC 6238) and Hmac one-time-passwords (RFC 4226). Also contains helper functions and types so their use is as easy as possible.", "main": "./index.js", "engines": { - "node": ">=14.0.0" + "node": ">=15.0.0" }, "scripts": { "build": "tsc", @@ -28,18 +28,18 @@ }, "license": "MIT", "devDependencies": { - "@ackee/styleguide-backend-config": "^0.3.1", - "@microsoft/tsdoc": "^0.14.2", - "@types/chai": "^4.3.3", - "@types/mocha": "^10.0.0", - "@types/node": "^18.11.9", - "chai": "^4.3.6", + "@ackee/styleguide-backend-config": "^0.5.0", + "@microsoft/tsdoc": "^0.15.0", + "@types/chai": "^4.3.19", + "@types/mocha": "^10.0.7", + "@types/node": "^20.9.0", + "chai": "^4.5.0", "cross-env": "^7.0.3", - "husky": "^8.0.1", - "lint-staged": "^13.0.3", - "mocha": "^10.1.0", - "ts-node": "^10.9.1", - "typescript": "^4.9.4" + "husky": "^9.1.5", + "lint-staged": "^15.2.10", + "mocha": "^10.7.3", + "ts-node": "^10.9.2", + "typescript": "^5.5.4" }, "peerDependencies": { "keyv": "4.5.0" diff --git a/tsconfig.json b/tsconfig.json index d734115..024512c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "incremental": true, // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declaration": true /* Generates corresponding '.d.ts' file. */, "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "dist" /* Redirect output structure to the directory. */, @@ -52,6 +52,6 @@ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ "resolveJsonModule": true, - "useUnknownInCatchVariables": false, + "useUnknownInCatchVariables": false } }