Skip to content

Commit

Permalink
chore(deps-dev): bump @types/bcrypt from 3.0.1 to 5.0.0 (#1830)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump @types/bcrypt from 3.0.1 to 5.0.0

Bumps [@types/bcrypt](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bcrypt) from 3.0.1 to 5.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bcrypt)

Signed-off-by: dependabot[bot] <[email protected]>

* fix: update types for bcrypt wrappers

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antariksh <[email protected]>
  • Loading branch information
dependabot[bot] and mantariksh authored May 10, 2021
1 parent 44504f2 commit 5a9f706
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"@babel/plugin-transform-runtime": "^7.13.15",
"@babel/preset-env": "^7.14.1",
"@opengovsg/mockpass": "^2.6.9",
"@types/bcrypt": "^3.0.1",
"@types/bcrypt": "^5.0.0",
"@types/bluebird": "^3.5.34",
"@types/busboy": "^0.2.3",
"@types/compression": "^1.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/app/utils/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class HashingError extends ApplicationError {
* @returns err(ApplicationError) if hashing error occurs
*/
export const hashData = (
dataToHash: unknown,
dataToHash: string | Buffer,
logMeta: Record<string, unknown> = {},
saltRounds?: number,
): ResultAsync<string, HashingError> => {
Expand Down Expand Up @@ -56,7 +56,7 @@ export const hashData = (
* @returns err(ApplicationError) if error occurs whilst comparing hashes
*/
export const compareHash = (
data: unknown,
data: string | Buffer,
encrypted: string,
logMeta: Record<string, unknown> = {},
): ResultAsync<boolean, HashingError> => {
Expand Down

0 comments on commit 5a9f706

Please sign in to comment.