html-get 2.26.9 → 2.26.10
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 +1 -1
- package/src/auto-domains.json +27 -27
- package/src/index.js +4 -1
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.26.
|
|
5
|
+
"version": "2.26.10",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"bin": {
|
package/src/auto-domains.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
[
|
|
3
3
|
[
|
|
4
4
|
"domainWithoutSuffix",
|
|
5
|
-
"
|
|
5
|
+
"google"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
8
|
[
|
|
9
9
|
[
|
|
10
10
|
"domainWithoutSuffix",
|
|
11
|
-
"
|
|
11
|
+
"youtube"
|
|
12
12
|
]
|
|
13
13
|
],
|
|
14
14
|
[
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
[
|
|
33
33
|
[
|
|
34
34
|
"domainWithoutSuffix",
|
|
35
|
-
"
|
|
35
|
+
"github"
|
|
36
36
|
]
|
|
37
37
|
],
|
|
38
38
|
[
|
|
39
39
|
[
|
|
40
40
|
"domainWithoutSuffix",
|
|
41
|
-
"
|
|
41
|
+
"wikipedia"
|
|
42
42
|
]
|
|
43
43
|
],
|
|
44
44
|
[
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
[
|
|
51
51
|
[
|
|
52
52
|
"domainWithoutSuffix",
|
|
53
|
-
"
|
|
53
|
+
"nytimes"
|
|
54
54
|
]
|
|
55
55
|
],
|
|
56
56
|
[
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
[
|
|
63
63
|
[
|
|
64
64
|
"domainWithoutSuffix",
|
|
65
|
-
"
|
|
65
|
+
"vimeo"
|
|
66
66
|
]
|
|
67
67
|
],
|
|
68
68
|
[
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
[
|
|
81
81
|
[
|
|
82
82
|
"domainWithoutSuffix",
|
|
83
|
-
"
|
|
83
|
+
"pinterest"
|
|
84
84
|
]
|
|
85
85
|
],
|
|
86
86
|
[
|
|
87
87
|
[
|
|
88
88
|
"domainWithoutSuffix",
|
|
89
|
-
"
|
|
89
|
+
"telegraph"
|
|
90
90
|
]
|
|
91
91
|
],
|
|
92
92
|
[
|
|
@@ -104,19 +104,13 @@
|
|
|
104
104
|
[
|
|
105
105
|
[
|
|
106
106
|
"domainWithoutSuffix",
|
|
107
|
-
"
|
|
108
|
-
]
|
|
109
|
-
],
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
"domainWithoutSuffix",
|
|
113
|
-
"pinterest"
|
|
107
|
+
"spotify"
|
|
114
108
|
]
|
|
115
109
|
],
|
|
116
110
|
[
|
|
117
111
|
[
|
|
118
112
|
"domainWithoutSuffix",
|
|
119
|
-
"
|
|
113
|
+
"huffingtonpost"
|
|
120
114
|
]
|
|
121
115
|
],
|
|
122
116
|
[
|
|
@@ -140,19 +134,13 @@
|
|
|
140
134
|
[
|
|
141
135
|
[
|
|
142
136
|
"domainWithoutSuffix",
|
|
143
|
-
"
|
|
144
|
-
]
|
|
145
|
-
],
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
"domainWithoutSuffix",
|
|
149
|
-
"soundcloud"
|
|
137
|
+
"yelp"
|
|
150
138
|
]
|
|
151
139
|
],
|
|
152
140
|
[
|
|
153
141
|
[
|
|
154
142
|
"domainWithoutSuffix",
|
|
155
|
-
"
|
|
143
|
+
"arxiv"
|
|
156
144
|
]
|
|
157
145
|
],
|
|
158
146
|
[
|
|
@@ -164,19 +152,19 @@
|
|
|
164
152
|
[
|
|
165
153
|
[
|
|
166
154
|
"domainWithoutSuffix",
|
|
167
|
-
"
|
|
155
|
+
"engadget"
|
|
168
156
|
]
|
|
169
157
|
],
|
|
170
158
|
[
|
|
171
159
|
[
|
|
172
160
|
"domainWithoutSuffix",
|
|
173
|
-
"
|
|
161
|
+
"soundcloud"
|
|
174
162
|
]
|
|
175
163
|
],
|
|
176
164
|
[
|
|
177
165
|
[
|
|
178
166
|
"domainWithoutSuffix",
|
|
179
|
-
"
|
|
167
|
+
"theverge"
|
|
180
168
|
]
|
|
181
169
|
],
|
|
182
170
|
[
|
|
@@ -221,6 +209,12 @@
|
|
|
221
209
|
"ghost"
|
|
222
210
|
]
|
|
223
211
|
],
|
|
212
|
+
[
|
|
213
|
+
[
|
|
214
|
+
"domainWithoutSuffix",
|
|
215
|
+
"giphy"
|
|
216
|
+
]
|
|
217
|
+
],
|
|
224
218
|
[
|
|
225
219
|
[
|
|
226
220
|
"domainWithoutSuffix",
|
|
@@ -269,6 +263,12 @@
|
|
|
269
263
|
"stackoverflow"
|
|
270
264
|
]
|
|
271
265
|
],
|
|
266
|
+
[
|
|
267
|
+
[
|
|
268
|
+
"domainWithoutSuffix",
|
|
269
|
+
"substack"
|
|
270
|
+
]
|
|
271
|
+
],
|
|
272
272
|
[
|
|
273
273
|
[
|
|
274
274
|
"domainWithoutSuffix",
|
package/src/index.js
CHANGED
|
@@ -427,7 +427,10 @@ module.exports = PCancelable.fn(
|
|
|
427
427
|
})
|
|
428
428
|
onCancel(() => prerenderPromise.cancel())
|
|
429
429
|
const prerenderResult = await prerenderPromise
|
|
430
|
-
|
|
430
|
+
// Same rule as the prerender 4xx fetch fallback: challenge HTML is
|
|
431
|
+
// still a successful page.content(), so only replace a working fetch
|
|
432
|
+
// when the retry is actually usable.
|
|
433
|
+
if (prerenderResult.html && prerenderResult.statusCode < 400) {
|
|
431
434
|
;({ mode, html, $, ...payload } = prerenderResult)
|
|
432
435
|
shadowDOM = hasShadowDOM($)
|
|
433
436
|
}
|