Skip to content

Commit 9d0b9c0

Browse files
committed
bump version to 0.2.5, fix declaration file for JWT verify() function, and update CHANGELOG.md
1 parent 8bad26d commit 9d0b9c0

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.2.5 (mar 2nd 2025)
2+
3+
- fix declaration file for JWT verify() function
4+
15
# 0.2.4 (feb 26th 2025)
26

37
- Improve hash method for better compatibility with other JWT tools

dist/passken.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ declare function encrypt(pwd: string, b64Secret: string): string | false;
5858
declare function compare(pwd: string, hash: string, b64Secret: string): boolean;
5959
declare function randomPwd(opts?: Partial<Options>): string;
6060
declare function randomSecret(length?: number): string;
61-
declare function sign(iss: number | string, duration: number, type: Type, b64Secrets: string[]): string;
62-
declare function verify(token: string, b64Secrets: string[]): Payload;
61+
declare function sign(iss: number | string, duration: number, type: Type, b64Keys: string[]): string;
62+
declare function verify(token: string, b64Keys: string[], ignoreExpiration?: boolean): Payload;
6363

6464
export {
6565
getSaltRounds,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dwtechs/passken",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Open source password and JWT management library for Node.js to create, encrypt and compare safely.",
55
"keywords": [
66
"passwords",

src/passken.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ declare function encrypt(pwd: string, b64Secret: string): string | false;
3232
declare function compare(pwd: string, hash: string, b64Secret: string): boolean;
3333
declare function randomPwd(opts?: Partial<Options>): string;
3434
declare function randomSecret(length?: number): string;
35-
declare function sign(iss: number | string, duration: number, type: Type, b64Secrets: string[]): string;
36-
declare function verify(token: string, b64Secrets: string[]): Payload;
35+
declare function sign(iss: number | string, duration: number, type: Type, b64Keys: string[]): string;
36+
declare function verify(token: string, b64Keys: string[], ignoreExpiration?: boolean): Payload;
3737

3838
export {
3939
getSaltRounds,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"suppressImplicitAnyIndexErrors": false,
1818
"allowJs": false,
1919
"removeComments": true,
20-
"declaration": false,
20+
"declaration": true,
2121
"outDir": "build/es6/",
2222
"rootDir": "src/"
2323
},

0 commit comments

Comments
 (0)