Skip to content

Commit

Permalink
Merge pull request #742 from microlinkhq/helpers
Browse files Browse the repository at this point in the history
fix(helpers): add missing memoize.EqualityFirstArgument
  • Loading branch information
Kikobeats authored Jan 19, 2025
2 parents b7e00b7 + d350837 commit 90ece33
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 90ece33

Please sign in to comment.