@browserless/goto 9.6.10 → 9.6.11

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.6.10",
5
+ "version": "9.6.11",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -70,5 +70,5 @@
70
70
  "timeout": "30s",
71
71
  "verbose": true
72
72
  },
73
- "gitHead": "f0ddebc30c34184721b6ed2a694bdd59b37f3169"
73
+ "gitHead": "d47d6caceb0b6a9f30cbf3025786b705cc3e8300"
74
74
  }
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -364,9 +364,11 @@ module.exports = ({
364
364
  await Promise.all(prePromises.concat(applyEvasions))
365
365
 
366
366
  const { value: response, reason: error } = await run({
367
- fn: html ? page.setContent(html, args) : page.goto(url, args),
367
+ fn: html
368
+ ? page.setContent(html, { waitUntil, ...args })
369
+ : page.goto(url, { waitUntil, ...args }),
368
370
  timeout: gotoTimeout,
369
- debug: html ? 'html' : 'url'
371
+ debug: { fn: html ? 'html' : 'url', waitUntil }
370
372
  })
371
373
 
372
374
  for (const [key, value] of Object.entries({