Skip to content

Commit

Permalink
fix(helpers): add missing memoize.EqualityFirstArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 19, 2025
1 parent b7e00b7 commit d350837
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/metascraper-helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand Down

0 comments on commit d350837

Please sign in to comment.