html-get 2.12.0 → 2.13.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "html-get",
3
3
  "description": "Get the HTML from any website, using prerendering when is necessary.",
4
4
  "homepage": "https://nicedoc.com/microlinkhq/html-get",
5
- "version": "2.12.0",
5
+ "version": "2.13.1",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "html-get": "bin/index.js"
@@ -29,7 +29,7 @@
29
29
  "request"
30
30
  ],
31
31
  "dependencies": {
32
- "@metascraper/helpers": "~5.34.7",
32
+ "@metascraper/helpers": "~5.35.0",
33
33
  "cheerio": "~1.0.0-rc.12",
34
34
  "css-url-regex": "~4.0.0",
35
35
  "debug-logfmt": "~1.0.4",
@@ -2,37 +2,37 @@
2
2
  [
3
3
  [
4
4
  "domainWithoutSuffix",
5
- "google"
5
+ "youtube"
6
6
  ]
7
7
  ],
8
8
  [
9
9
  [
10
10
  "domainWithoutSuffix",
11
- "youtube"
11
+ "google"
12
12
  ]
13
13
  ],
14
14
  [
15
15
  [
16
16
  "domainWithoutSuffix",
17
- "apple"
17
+ "microsoft"
18
18
  ]
19
19
  ],
20
20
  [
21
21
  [
22
22
  "domainWithoutSuffix",
23
- "wordpress"
23
+ "apple"
24
24
  ]
25
25
  ],
26
26
  [
27
27
  [
28
28
  "domainWithoutSuffix",
29
- "microsoft"
29
+ "wikipedia"
30
30
  ]
31
31
  ],
32
32
  [
33
33
  [
34
34
  "domainWithoutSuffix",
35
- "wikipedia"
35
+ "wordpress"
36
36
  ]
37
37
  ],
38
38
  [
@@ -74,13 +74,13 @@
74
74
  [
75
75
  [
76
76
  "domainWithoutSuffix",
77
- "bbc"
77
+ "theguardian"
78
78
  ]
79
79
  ],
80
80
  [
81
81
  [
82
82
  "domainWithoutSuffix",
83
- "theguardian"
83
+ "bbc"
84
84
  ]
85
85
  ],
86
86
  [
@@ -161,12 +161,6 @@
161
161
  "etsy"
162
162
  ]
163
163
  ],
164
- [
165
- [
166
- "domainWithoutSuffix",
167
- "stackoverflow"
168
- ]
169
- ],
170
164
  [
171
165
  [
172
166
  "domainWithoutSuffix",
@@ -239,6 +233,12 @@
239
233
  "sourceforge"
240
234
  ]
241
235
  ],
236
+ [
237
+ [
238
+ "domainWithoutSuffix",
239
+ "stackoverflow"
240
+ ]
241
+ ],
242
242
  [
243
243
  [
244
244
  "domainWithoutSuffix",
package/src/html.js CHANGED
@@ -79,9 +79,9 @@ const addBody = ({ url, headers, html }) => {
79
79
  if (isMime(contentType, 'image')) {
80
80
  element = `<img src="${url}"></img>`
81
81
  } else if (isMime(contentType, 'video')) {
82
- element = `<video src="${url}"></video>`
82
+ element = `<video><source src="${url}" type="${contentType}"></source></video>`
83
83
  } else if (isMime(contentType, 'audio')) {
84
- element = `<audio src="${url}"></audio>`
84
+ element = `<audio><source src="${url}" type="${contentType}"></source></audio>`
85
85
  } else if (mimeExtension(contentType) === 'json') {
86
86
  element = `<pre>${html}</pre>`
87
87
  }