From d3508376409dc80f280b8489fb4f16ba0015b30a Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sun, 19 Jan 2025 22:03:54 +0100 Subject: [PATCH] fix(helpers): add missing memoize.EqualityFirstArgument --- packages/metascraper-helpers/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/metascraper-helpers/index.js b/packages/metascraper-helpers/index.js index dc1e8f532..f9e954512 100644 --- a/packages/metascraper-helpers/index.js +++ b/packages/metascraper-helpers/index.js @@ -346,6 +346,9 @@ const isMime = (contentType, type) => memoizeOne.EqualityUrlAndHtmlDom = (newArgs, oldArgs) => newArgs[0] === oldArgs[0] && newArgs[1].html() === oldArgs[1].html() +memoizeOne.EqualityFirstArgument = (newArgs, oldArgs) => + newArgs[0] === oldArgs[0] + const jsonld = memoizeOne( $ => $('script[type="application/ld+json"]')