Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update dependencies #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
},
rules: {
...require('@ackee/styleguide-backend-config/eslint').rules,
'new-cap': 1
'new-cap': 1,
},
}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
lint:
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
strategy:
matrix:
version: [14, 16, 18]
version: [16, 18, 20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
tests:
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.vscode
.github
.husky
.vscode
src
test
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12.1
20.9.0
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
[HMAC based one-time password (Wikipedia)](https://en.wikipedia.org/wiki/HMAC-based_one-time_password)
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */,
Expand Down Expand Up @@ -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
}
}
Loading