metascraper-logo-favicon 5.45.21 → 5.45.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,4 +85,4 @@ It tries to resolve `favicon.ico` of the url when the URL is a subdomain.
85
85
  **metascraper-logo-favicon** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
86
86
  Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).
87
87
 
88
- > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
88
+ > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · X [@microlinkhq](https://x.com/microlinkhq)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-logo-favicon",
3
3
  "description": "metascraper logo favicon fallback",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-logo-favicon",
5
- "version": "5.45.21",
5
+ "version": "5.45.24",
6
6
  "types": "src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@keyvhq/memoize": "~2.1.1",
28
- "@metascraper/helpers": "^5.45.10",
28
+ "@metascraper/helpers": "^5.45.22",
29
29
  "lodash": "~4.17.21",
30
30
  "reachable-url": "~1.8.1"
31
31
  },
@@ -49,5 +49,5 @@
49
49
  "!test/helpers.js"
50
50
  ]
51
51
  },
52
- "gitHead": "59c331ae105ee698455e61d6874ea84a18beddf7"
52
+ "gitHead": "346fdec3e88b2cfef3e9315a27892e50823f4c85"
53
53
  }
package/src/index.js CHANGED
@@ -78,7 +78,7 @@ const getDomNodeSizes = (domNodes, attr, url) =>
78
78
  {
79
79
  ...domNode.attribs,
80
80
  url: normalizedUrl,
81
- size: getSize(url, domNode.attribs.sizes)
81
+ size: getSize(normalizedUrl, domNode.attribs.sizes)
82
82
  }
83
83
  ]
84
84
  }, [])
@@ -241,7 +241,11 @@ module.exports = ({
241
241
  logo: [
242
242
  toLogo(async ($, url) => {
243
243
  const sizes = getSizes($, sizeSelectors, url)
244
- return await pickFn(sizes, { gotOpts, pickBiggerSize })
244
+ return await pickFn(sizes, {
245
+ resolveFaviconUrl,
246
+ gotOpts,
247
+ pickBiggerSize
248
+ })
245
249
  }),
246
250
  ({ url }) => getLogo(normalizeUrl(url)),
247
251
  rootFavicon