html-get 2.22.0-0 → 2.22.0-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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +3 -4
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.22.0-0",
5
+ "version": "2.22.0-1",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "html-get": "bin/index.js"
package/src/index.js CHANGED
@@ -139,9 +139,10 @@ const prerender = PCancelable.fn(
139
139
  async (page, response) => {
140
140
  if (!response) throw new AbortError('empty response')
141
141
 
142
- const duration = debug.duration()
142
+ const duration = debug.duration('payload')
143
143
  const payload = {
144
144
  headers: response.headers(),
145
+ html: await page.content('html'),
145
146
  mode: 'prerender',
146
147
  url: response.url(),
147
148
  statusCode: response.status(),
@@ -154,9 +155,7 @@ const prerender = PCancelable.fn(
154
155
  }))
155
156
  }
156
157
 
157
- duration('payload:basic')
158
- payload.html = await page.content('html')
159
- duration('payload:html')
158
+ duration()
160
159
  return payload
161
160
  },
162
161
  {