metascraper-manifest 5.26.2 → 5.27.1

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.
Files changed (2) hide show
  1. package/index.js +2 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -30,13 +30,8 @@ module.exports = opts => {
30
30
  logo: async ({ htmlDom, url }) => {
31
31
  const manifest = await fetchManifest(url, htmlDom)
32
32
  if (!manifest) return
33
-
34
- const icon = first(orderBy(manifest.icons, 'sizes', 'desc'))
35
- if (!icon) return
36
-
37
- const { src: srcUrl } = icon
38
- const iconUrl = absoluteUrl(url, srcUrl)
39
- return logo(iconUrl)
33
+ const icon = first(orderBy(manifest.icons, 'sizes', 'desc')) || {}
34
+ return logo(icon.src, { url })
40
35
  }
41
36
  }
42
37
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-manifest",
3
3
  "description": "Metascraper integration for derecting PWA Web app manifest",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-manifest",
5
- "version": "5.26.2",
5
+ "version": "5.27.1",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -50,5 +50,5 @@
50
50
  "slow": 300,
51
51
  "timeout": "120000"
52
52
  },
53
- "gitHead": "e3289bbeeab1150e08759908230ce247e75050ce"
53
+ "gitHead": "d308bdebb0571d3af95a555df594b9bbaed0cbcf"
54
54
  }