updated mismatched test and packages

This commit is contained in:
2026-02-19 18:37:13 +01:00
parent 86f8bc139a
commit c6c3a42ffd
3 changed files with 3247 additions and 1582 deletions
+3235 -1571
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "auth-guardian",
"version": "2.1.2",
"version": "2.1.3",
"description": "auth-guardian a library for enhancing application security",
"main": "./dist/cjs/index.js",
"module": "dist/esm/index.js",
@@ -26,15 +26,15 @@
"author": "kaj van schalkwijk",
"license": "MIT",
"dependencies": {
"@types/bcrypt": "^5.0.2",
"@types/jsonwebtoken": "^9.0.5",
"bcrypt": "^5.1.1",
"@types/bcrypt": "^6.0.0",
"@types/jsonwebtoken": "9.0.10",
"bcrypt": "^6.0.0",
"jsonwebtoken": "^9.0.2"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"@types/jest": "^29.5.14",
"jest": "^30.2.0",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2"
},
"exports": {
+2 -1
View File
@@ -1,4 +1,5 @@
import JwtAuth from "./jwt";
import type { SignOptions } from "jsonwebtoken";
describe('JWT', () => {
const jwt = new JwtAuth('secret');
@@ -7,7 +8,7 @@ describe('JWT', () => {
password: 'test'
};
const settings: {expiresIn: string} = {
const settings: SignOptions = {
expiresIn: '1h'
};