updated mismatched test and packages
This commit is contained in:
Generated
+3237
-1573
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "auth-guardian",
|
"name": "auth-guardian",
|
||||||
"version": "2.1.2",
|
"version": "2.1.3",
|
||||||
"description": "auth-guardian a library for enhancing application security",
|
"description": "auth-guardian a library for enhancing application security",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
@@ -26,15 +26,15 @@
|
|||||||
"author": "kaj van schalkwijk",
|
"author": "kaj van schalkwijk",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/bcrypt": "^5.0.2",
|
"@types/bcrypt": "^6.0.0",
|
||||||
"@types/jsonwebtoken": "^9.0.5",
|
"@types/jsonwebtoken": "9.0.10",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^6.0.0",
|
||||||
"jsonwebtoken": "^9.0.2"
|
"jsonwebtoken": "^9.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.14",
|
||||||
"jest": "^29.7.0",
|
"jest": "^30.2.0",
|
||||||
"ts-jest": "^29.1.2",
|
"ts-jest": "^29.4.6",
|
||||||
"ts-node": "^10.9.2"
|
"ts-node": "^10.9.2"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -45,4 +45,4 @@
|
|||||||
"default": "./dist/esm/index.js"
|
"default": "./dist/esm/index.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import JwtAuth from "./jwt";
|
import JwtAuth from "./jwt";
|
||||||
|
import type { SignOptions } from "jsonwebtoken";
|
||||||
|
|
||||||
describe('JWT', () => {
|
describe('JWT', () => {
|
||||||
const jwt = new JwtAuth('secret');
|
const jwt = new JwtAuth('secret');
|
||||||
@@ -7,7 +8,7 @@ describe('JWT', () => {
|
|||||||
password: 'test'
|
password: 'test'
|
||||||
};
|
};
|
||||||
|
|
||||||
const settings: {expiresIn: string} = {
|
const settings: SignOptions = {
|
||||||
expiresIn: '1h'
|
expiresIn: '1h'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user