html-get 2.16.9 → 2.16.11
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 +2 -6
- package/src/auto-domains.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "html-get",
|
|
3
3
|
"description": "Get the HTML from any website, fine-tuned for correction & speed",
|
|
4
4
|
"homepage": "https://nicedoc.com/microlinkhq/html-get",
|
|
5
|
-
"version": "2.16.
|
|
5
|
+
"version": "2.16.11",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"html-get": "bin/index.js"
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"git-authors-cli": "latest",
|
|
66
66
|
"github-generate-release": "latest",
|
|
67
67
|
"nano-staged": "latest",
|
|
68
|
-
"npm-check-updates": "latest",
|
|
69
68
|
"pretty": "latest",
|
|
70
69
|
"puppeteer": "latest",
|
|
71
70
|
"regex-iso-date": "latest",
|
|
@@ -88,14 +87,11 @@
|
|
|
88
87
|
"lint": "standard-markdown README.md && standard",
|
|
89
88
|
"postinstall": "node scripts/postinstall",
|
|
90
89
|
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
91
|
-
"prerelease": "npm run update:check",
|
|
92
90
|
"pretest": "npm run lint",
|
|
93
91
|
"release": "standard-version -a",
|
|
94
92
|
"release:github": "github-generate-release",
|
|
95
93
|
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
96
|
-
"test": "c8 ava"
|
|
97
|
-
"update": "ncu -u",
|
|
98
|
-
"update:check": "ncu -- --error-level 2"
|
|
94
|
+
"test": "c8 ava"
|
|
99
95
|
},
|
|
100
96
|
"license": "MIT",
|
|
101
97
|
"ava": {
|
package/src/auto-domains.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[[["domainWithoutSuffix","google"]],[["domainWithoutSuffix","youtube"]],[["domainWithoutSuffix","apple"]],[["domainWithoutSuffix","wordpress"]],[["domainWithoutSuffix","microsoft"]],[["domainWithoutSuffix","wikipedia"]],[["domainWithoutSuffix","blogspot"]],[["domainWithoutSuffix","
|
|
1
|
+
[[["domainWithoutSuffix","google"]],[["domainWithoutSuffix","youtube"]],[["domainWithoutSuffix","apple"]],[["domainWithoutSuffix","wordpress"]],[["domainWithoutSuffix","microsoft"]],[["domainWithoutSuffix","wikipedia"]],[["domainWithoutSuffix","blogspot"]],[["domainWithoutSuffix","vimeo"]],[["domainWithoutSuffix","github"]],[["domainWithoutSuffix","nytimes"]],[["domainWithoutSuffix","twitter"]],[["domainWithoutSuffix","imdb"]],[["domainWithoutSuffix","bbc"]],[["domainWithoutSuffix","theguardian"]],[["domainWithoutSuffix","huffingtonpost"]],[["domainWithoutSuffix","telegraph"]],[["domainWithoutSuffix","pinterest"]],[["domainWithoutSuffix","slideshare"]],[["domain","x.com"]],[["domainWithoutSuffix","spotify"]],[["domainWithoutSuffix","eventbrite"]],[["domainWithoutSuffix","arxiv"]],[["domainWithoutSuffix","soundcloud"]],[["domainWithoutSuffix","engadget"]],[["domain","abc.net.au"]],[["domainWithoutSuffix","zoom"]],[["domainWithoutSuffix","techcrunch"]],[["domainWithoutSuffix","yelp"]],[["domainWithoutSuffix","theverge"]],[["domainWithoutSuffix","dribbble"]],[["domainWithoutSuffix","csdn"]],[["domainWithoutSuffix","deviantart"]],[["domainWithoutSuffix","digg"]],[["domainWithoutSuffix","etsy"]],[["domainWithoutSuffix","flickr"]],[["domainWithoutSuffix","ghost"]],[["domainWithoutSuffix","giphy"]],[["domainWithoutSuffix","gitlab"]],[["domainWithoutSuffix","imgur"]],[["domainWithoutSuffix","meetup"]],[["domainWithoutSuffix","producthunt"]],[["domainWithoutSuffix","sourceforge"]],[["domainWithoutSuffix","stackoverflow"]],[["domainWithoutSuffix","substack"]],[["domainWithoutSuffix","tumblr"]],[["domainWithoutSuffix","ycombinator"]]]
|
package/src/index.js
CHANGED
|
@@ -57,7 +57,7 @@ const fetch = PCancelable.fn(
|
|
|
57
57
|
if (mutoolPath && contentType === 'application/pdf') {
|
|
58
58
|
const file = getTemporalFile(url, 'pdf')
|
|
59
59
|
await writeFile(file.path, res.body)
|
|
60
|
-
return (await $(
|
|
60
|
+
return (await $(`${mutoolPath} draw -q -F html ${file.path}`)).stdout
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
return contentType.startsWith('text/html') || !isMediaUrl(url)
|
|
@@ -191,7 +191,7 @@ const defaultGetTemporalFile = (url, ext) => {
|
|
|
191
191
|
const defaultMutoolPath = () =>
|
|
192
192
|
(() => {
|
|
193
193
|
try {
|
|
194
|
-
return execSync('which mutool').toString().trim()
|
|
194
|
+
return execSync('which mutool', { stdio: 'pipe' }).toString().trim()
|
|
195
195
|
} catch (_) {}
|
|
196
196
|
})()
|
|
197
197
|
|