metascraper-manifest 5.25.7 → 5.26.2
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/index.js +5 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -30,7 +30,11 @@ module.exports = opts => {
|
|
|
30
30
|
logo: async ({ htmlDom, url }) => {
|
|
31
31
|
const manifest = await fetchManifest(url, htmlDom)
|
|
32
32
|
if (!manifest) return
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
const icon = first(orderBy(manifest.icons, 'sizes', 'desc'))
|
|
35
|
+
if (!icon) return
|
|
36
|
+
|
|
37
|
+
const { src: srcUrl } = icon
|
|
34
38
|
const iconUrl = absoluteUrl(url, srcUrl)
|
|
35
39
|
return logo(iconUrl)
|
|
36
40
|
}
|
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.
|
|
5
|
+
"version": "5.26.2",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pwa"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@metascraper/helpers": "^5.
|
|
26
|
+
"@metascraper/helpers": "^5.26.0",
|
|
27
27
|
"async-memoize-one": "~1.1.0",
|
|
28
28
|
"got": "~11.8.3",
|
|
29
29
|
"lodash": "~4.17.21"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"slow": 300,
|
|
51
51
|
"timeout": "120000"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e3289bbeeab1150e08759908230ce247e75050ce"
|
|
54
54
|
}
|