Skip to content

Commit 25fad68

Browse files
committed
Update @dwtechs/checkard to version 3.5.1 and clean up test error logging
1 parent cde196d commit 25fad68

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- Added `urlSafe` parameter to the `compare` and `rndB64Secret` function to chose from URL-safe base64 secrets or standard base64 secrets
44
- Delete logs dependency
55
- Replaced logs by proper custom errors
6-
- Updated @dwtechs/checkard to version 3.5.0
6+
- Updated @dwtechs/checkard to version 3.5.01
77
- `setDigest()`, `setKeyLen()`, `setSaltRounds()`, `hash()`, `pbkdf2()`, `tse()`, `encrypt()`, `b64Encode()`, `b64Decode()` and `compare()` functions throws custom errors on top of @dwtechs/Checkard errors
88

99
# 0.3.0 (Aug 23th 2025)

package-lock.json

Lines changed: 4 additions & 4 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
@@ -36,7 +36,7 @@
3636
"dist/"
3737
],
3838
"dependencies": {
39-
"@dwtechs/checkard": "3.5.0",
39+
"@dwtechs/checkard": "3.5.1",
4040
"@dwtechs/winstan": "0.4.0"
4141
},
4242
"devDependencies": {

tests/compare.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ describe("compare", () => {
2323

2424
test("Throws error when comparing with the right password with url-safe secret and non url-safe comparison", () => {
2525
expect(() => compare(password, hashedPassword, secret, false)).toThrow();
26-
// log.error(err.stack);
27-
// log.error(err.message);
26+
2827
let caughtError;
2928
try {
3029
compare(password, hashedPassword, secret, false);
@@ -39,7 +38,6 @@ describe("compare", () => {
3938
console.log('\n=== Error Stack Information ===');
4039
console.log('Main Error Stack:');
4140
console.log(caughtError.stack);
42-
// console.log('\nMain Error Message:', caughtError.message);
4341

4442
console.log('================================\n');
4543
});

0 commit comments

Comments
 (0)