@browserless/goto 9.3.15 → 9.3.19

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/README.md CHANGED
@@ -1,13 +1,12 @@
1
- # @browserless/goto
2
-
3
- <h1 align="center">
1
+ <div align="center">
2
+ <br>
4
3
  <img style="width: 500px; margin:3rem 0 1.5rem;" src="https://browserless.js.org/static/logo-banner.png" alt="browserless">
5
4
  <br>
6
- </h1>
7
-
8
- > Go to a page aborting unnecessary requests.
9
-
10
- See [goto](https://browserless.js.org/#%2F%3Fid=gotopage-options) section our [website](https://browserless.js.org) for more information.
5
+ <br>
6
+ <p align="center"><strong>@browserless/goto</strong>: Go to a page aborting unnecessary requests.</p>
7
+ <p align="center">See <a href="https://browserless.js.org/#%2F%3Fid=gotopage-options" target='_blank' rel='noopener noreferrer'>goto</a> section our <a href="https://browserless.js.org" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p>
8
+ <br>
9
+ </div>
11
10
 
12
11
  ## Install
13
12
 
@@ -19,9 +18,9 @@ npm install @browserless/goto --save
19
18
 
20
19
  ## License
21
20
 
22
- **browserless** © [Microlink](https://microlink.io), Released under the [MIT](https://github.com/microlinkhq/browserless/blob/master/LICENSE.md) License.<br>
21
+ **@browserless/goto** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/browserless/blob/master/LICENSE.md) License.<br>
23
22
  Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/browserless/contributors).
24
23
 
25
24
  The [logo](https://thenounproject.com/term/browser/288309/) has been designed by [xinh studio](https://xinh.studio).
26
25
 
27
- > [microlink.io](https://microlink.io) · GitHub [@MicrolinkHQ](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
26
+ > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/goto",
3
3
  "description": "Go to a page aborting unnecessary requests",
4
4
  "homepage": "https://browserless.js.org/#/?id=gotopage-options",
5
- "version": "9.3.15",
5
+ "version": "9.3.19",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -29,7 +29,7 @@
29
29
  "puppeteer"
30
30
  ],
31
31
  "dependencies": {
32
- "@browserless/devices": "^9.3.15",
32
+ "@browserless/devices": "^9.3.19",
33
33
  "@cliqz/adblocker-puppeteer": "~1.23.7",
34
34
  "debug-logfmt": "~1.0.4",
35
35
  "got": "~11.8.3",
@@ -68,5 +68,5 @@
68
68
  "timeout": "2m",
69
69
  "verbose": true
70
70
  },
71
- "gitHead": "b901fa38dd8d4f501b0b9fed5579fe0c29f5b097"
71
+ "gitHead": "dc3e62e73696d8ff878dd6a8881bad5d69426d21"
72
72
  }
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -363,7 +363,7 @@ module.exports = ({
363
363
 
364
364
  await Promise.all(prePromises.concat(applyEvasions))
365
365
 
366
- const { value: response } = await run({
366
+ const { value: response, reason: error } = await run({
367
367
  fn: html ? page.setContent(html, args) : page.goto(url, args),
368
368
  timeout: gotoTimeout,
369
369
  debug: html ? 'html' : 'url'
@@ -413,7 +413,7 @@ module.exports = ({
413
413
  await waitUntilAuto(page, { response, timeout: actionTimeout * 2 })
414
414
  }
415
415
 
416
- return { response, device }
416
+ return { response, device, error }
417
417
  }
418
418
 
419
419
  goto.getDevice = getDevice