From f79191dfd256f23229be3136e43da48c48337b72 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..2e16d084f 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(value.toString()); } else if (value instanceof Object) { hashObject(value, hash); } else {