Skip to content

Commit

Permalink
fix(utils): hashObject doesn't include functions
Browse files Browse the repository at this point in the history
This change adds support for hashing functions to `hashObject`.
  • Loading branch information
michaelfaith committed Sep 26, 2024
1 parent 78a63ed commit 250571e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function hashify(value, hash) {

if (Array.isArray(value)) {
hashArray(value, hash);
} else if (typeof value === 'function') {
hash.update(String(value));
} else if (value instanceof Object) {
hashObject(value, hash);
} else {
Expand Down

0 comments on commit 250571e

Please sign in to comment.