From 28bb58abc7b459a283c6521b00656010571af5c7 Mon Sep 17 00:00:00 2001 From: michael faith Date: Thu, 26 Sep 2024 05:12:56 -0500 Subject: [PATCH] fix(utils): hashObject doesn't include functions This change adds support for hashing functions to `hashObject`. --- utils/hash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/hash.js b/utils/hash.js index b3ce618b5..21ed524a9 100644 --- a/utils/hash.js +++ b/utils/hash.js @@ -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 {