@browserless/goto 9.3.3 → 9.3.4

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": "@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.3",
5
+ "version": "9.3.4",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -68,5 +68,5 @@
68
68
  "timeout": "2m",
69
69
  "verbose": true
70
70
  },
71
- "gitHead": "e15c8a9fea38ad134170d52c9b8058010a3c7cd1"
71
+ "gitHead": "7daa01ff1b4f10dd6694df10803e1ca0246668bf"
72
72
  }
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -31,7 +31,7 @@ const castArray = value => [].concat(value).filter(Boolean)
31
31
 
32
32
  const run = async ({ fn, timeout, debug: props }) => {
33
33
  const debugProps = { duration: timeSpan() }
34
- const result = await pReflect(timeout ? pTimeout(fn, timeout) : fn())
34
+ const result = await pReflect(timeout ? pTimeout(fn, timeout) : fn)
35
35
  debugProps.duration = prettyMs(debugProps.duration())
36
36
  if (result.isRejected) debugProps.error = result.reason.message || result.reason
37
37
  debug(props, debugProps)