html-get 2.17.0-4 → 2.17.0
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/LICENSE +0 -0
- package/package.json +15 -14
- package/scripts/postinstall +0 -0
- package/src/auto-domains.json +1 -1
- package/src/html.js +2 -2
package/LICENSE
CHANGED
|
File without changes
|
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.17.0
|
|
5
|
+
"version": "2.17.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"html-get": "bin/index.js"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"name": "Kiko Beats",
|
|
13
13
|
"url": "https://kikobeats.com"
|
|
14
14
|
},
|
|
15
|
+
"contributors": [],
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
18
|
"url": "git+https://github.com/microlinkhq/html-get.git"
|
|
@@ -81,6 +82,18 @@
|
|
|
81
82
|
"scripts",
|
|
82
83
|
"src"
|
|
83
84
|
],
|
|
85
|
+
"scripts": {
|
|
86
|
+
"clean": "rm -rf node_modules",
|
|
87
|
+
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
88
|
+
"lint": "standard-markdown README.md && standard",
|
|
89
|
+
"postinstall": "node scripts/postinstall",
|
|
90
|
+
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
91
|
+
"pretest": "npm run lint",
|
|
92
|
+
"release": "standard-version -a",
|
|
93
|
+
"release:github": "github-generate-release",
|
|
94
|
+
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
95
|
+
"test": "c8 ava"
|
|
96
|
+
},
|
|
84
97
|
"license": "MIT",
|
|
85
98
|
"ava": {
|
|
86
99
|
"files": [
|
|
@@ -115,17 +128,5 @@
|
|
|
115
128
|
"simple-git-hooks": {
|
|
116
129
|
"commit-msg": "npx commitlint --edit",
|
|
117
130
|
"pre-commit": "npx nano-staged"
|
|
118
|
-
},
|
|
119
|
-
"scripts": {
|
|
120
|
-
"clean": "rm -rf node_modules",
|
|
121
|
-
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
122
|
-
"lint": "standard-markdown README.md && standard",
|
|
123
|
-
"postinstall": "node scripts/postinstall",
|
|
124
|
-
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
125
|
-
"pretest": "npm run lint",
|
|
126
|
-
"release": "standard-version -a",
|
|
127
|
-
"release:github": "github-generate-release",
|
|
128
|
-
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
129
|
-
"test": "c8 ava"
|
|
130
131
|
}
|
|
131
|
-
}
|
|
132
|
+
}
|
package/scripts/postinstall
CHANGED
|
File without changes
|
package/src/auto-domains.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[[["domainWithoutSuffix","
|
|
1
|
+
[[["domainWithoutSuffix","google"]],[["domainWithoutSuffix","youtube"]],[["domainWithoutSuffix","apple"]],[["domainWithoutSuffix","wordpress"]],[["domainWithoutSuffix","microsoft"]],[["domainWithoutSuffix","wikipedia"]],[["domainWithoutSuffix","blogspot"]],[["domainWithoutSuffix","vimeo"]],[["domainWithoutSuffix","github"]],[["domainWithoutSuffix","nytimes"]],[["domainWithoutSuffix","bbc"]],[["domainWithoutSuffix","twitter"]],[["domainWithoutSuffix","imdb"]],[["domainWithoutSuffix","huffingtonpost"]],[["domainWithoutSuffix","spotify"]],[["domainWithoutSuffix","theguardian"]],[["domainWithoutSuffix","telegraph"]],[["domainWithoutSuffix","pinterest"]],[["domainWithoutSuffix","slideshare"]],[["domain","x.com"]],[["domainWithoutSuffix","eventbrite"]],[["domainWithoutSuffix","techcrunch"]],[["domainWithoutSuffix","zoom"]],[["domain","abc.net.au"]],[["domainWithoutSuffix","yelp"]],[["domainWithoutSuffix","arxiv"]],[["domainWithoutSuffix","engadget"]],[["domainWithoutSuffix","soundcloud"]],[["domainWithoutSuffix","theverge"]],[["domainWithoutSuffix","stackoverflow"]],[["domainWithoutSuffix","gitlab"]],[["domainWithoutSuffix","flickr"]],[["domainWithoutSuffix","giphy"]],[["domainWithoutSuffix","imgur"]],[["domainWithoutSuffix","etsy"]],[["domainWithoutSuffix","csdn"]],[["domainWithoutSuffix","deviantart"]],[["domainWithoutSuffix","digg"]],[["domainWithoutSuffix","dribbble"]],[["domainWithoutSuffix","ghost"]],[["domainWithoutSuffix","meetup"]],[["domainWithoutSuffix","producthunt"]],[["domainWithoutSuffix","sourceforge"]],[["domainWithoutSuffix","substack"]],[["domainWithoutSuffix","tumblr"]],[["domainWithoutSuffix","ycombinator"]]]
|
package/src/html.js
CHANGED
|
@@ -102,11 +102,11 @@ const rewriteMetaTags = ({ $ }) => {
|
|
|
102
102
|
const property = el.attr('property')
|
|
103
103
|
|
|
104
104
|
// Convert 'name' to 'property' for Open Graph tags if 'property' is not already set correctly
|
|
105
|
-
if (
|
|
105
|
+
if (property !== name && isOpenGraph(name)) {
|
|
106
106
|
el.removeAttr('name').attr('property', name)
|
|
107
107
|
debug('og', el.attr())
|
|
108
108
|
// Convert 'property' to 'name' for non-Open Graph tags
|
|
109
|
-
} else if (!isOpenGraph(property)) {
|
|
109
|
+
} else if (property && !isOpenGraph(property)) {
|
|
110
110
|
el.removeAttr('property').attr('name', property)
|
|
111
111
|
debug('meta', el.attr())
|
|
112
112
|
}
|