html-get 2.9.29 → 2.9.31

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.9.29",
5
+ "version": "2.9.31",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "html-get": "bin/index.js"
@@ -20,6 +20,7 @@ const domains = [
20
20
  'ghost',
21
21
  'giphy',
22
22
  'github',
23
+ 'gitlab',
23
24
  'google',
24
25
  'huffingtonpost',
25
26
  'imdb',
@@ -1,35 +1,36 @@
1
1
  [
2
- "google",
3
2
  "youtube",
4
- "wordpress",
3
+ "google",
5
4
  "apple",
5
+ "wordpress",
6
6
  "wikipedia",
7
7
  "microsoft",
8
8
  "blogspot",
9
9
  "vimeo",
10
10
  "github",
11
- "slideshare",
12
- "theguardian",
13
11
  "bbc",
14
- "nytimes",
15
12
  "imdb",
13
+ "slideshare",
14
+ "nytimes",
15
+ "theguardian",
16
16
  "soundcloud",
17
17
  "huffingtonpost",
18
18
  "telegraph",
19
19
  "pinterest",
20
20
  "yelp",
21
- "engadget",
22
- "techcrunch",
23
21
  "zoom",
22
+ "techcrunch",
23
+ "engadget",
24
24
  "eventbrite",
25
25
  "spotify",
26
26
  "theverge",
27
- "digg",
27
+ "giphy",
28
28
  "csdn",
29
+ "digg",
29
30
  "etsy",
30
31
  "flickr",
31
32
  "ghost",
32
- "giphy",
33
+ "gitlab",
33
34
  "imgur",
34
35
  "meetup",
35
36
  "producthunt",
package/src/index.js CHANGED
@@ -59,7 +59,15 @@ const fetch = (
59
59
 
60
60
  const prerender = async (
61
61
  url,
62
- { getBrowserless, toEncode, headers, gotOpts, timeout = REQ_TIMEOUT, ...opts }
62
+ {
63
+ getBrowserless,
64
+ toEncode,
65
+ headers,
66
+ gotOpts,
67
+ timeout = REQ_TIMEOUT,
68
+ abortTypes = ['stylesheet', 'font'],
69
+ ...opts
70
+ }
63
71
  ) => {
64
72
  let fetchRes
65
73
  let data = {}
@@ -90,7 +98,7 @@ const prerender = async (
90
98
  {
91
99
  timeout,
92
100
  headers,
93
- abortTypes: ['stylesheet', 'fonts']
101
+ abortTypes
94
102
  }
95
103
  )
96
104