@browserless/goto 9.3.17 → 9.4.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.
package/README.md CHANGED
@@ -18,9 +18,9 @@ npm install @browserless/goto --save
18
18
 
19
19
  ## License
20
20
 
21
- **@browserless/goto** © [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>
22
22
  Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/browserless/contributors).
23
23
 
24
24
  The [logo](https://thenounproject.com/term/browser/288309/) has been designed by [xinh studio](https://xinh.studio).
25
25
 
26
- > [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.17",
5
+ "version": "9.4.1",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -29,17 +29,17 @@
29
29
  "puppeteer"
30
30
  ],
31
31
  "dependencies": {
32
- "@browserless/devices": "^9.3.17",
33
- "@cliqz/adblocker-puppeteer": "~1.23.7",
32
+ "@browserless/devices": "^9.4.1",
33
+ "@cliqz/adblocker-puppeteer": "~1.23.8",
34
34
  "debug-logfmt": "~1.0.4",
35
- "got": "~11.8.3",
36
- "is-url-http": "~2.3.1",
35
+ "got": "~11.8.5",
36
+ "is-url-http": "~2.3.2",
37
37
  "p-reflect": "~2.1.0",
38
38
  "p-timeout": "~4.1.0",
39
39
  "pretty-ms": "~7.0.1",
40
40
  "shallow-equal": "~1.2.1",
41
41
  "time-span": "~4.0.0",
42
- "top-user-agents": "~1.0.43",
42
+ "top-user-agents": "~1.0.45",
43
43
  "tough-cookie": "~4.0.0",
44
44
  "unique-random-array": "~2.0.0"
45
45
  },
@@ -68,5 +68,5 @@
68
68
  "timeout": "2m",
69
69
  "verbose": true
70
70
  },
71
- "gitHead": "04673cb79ea79b17bbd90fe78f130143aac60690"
71
+ "gitHead": "06e8bc03ec49cec34ae8462ae073180c26c93766"
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