@browserless/goto 10.1.7 → 10.1.9

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": "10.1.7",
5
+ "version": "10.1.9",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -42,7 +42,7 @@
42
42
  "tough-cookie": "~4.1.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@browserless/test": "^10.1.7",
45
+ "@browserless/test": "^10.1.8",
46
46
  "ava": "latest",
47
47
  "p-wait-for": "3"
48
48
  },
@@ -61,7 +61,7 @@
61
61
  "timeout": "2m",
62
62
  "workerThreads": false
63
63
  },
64
- "gitHead": "419b439f1530accb2de1b53380878a26d5d631b0",
64
+ "gitHead": "652cbdd0ee2489f75aa6c76f92663a3838ed1cc0",
65
65
  "scripts": {
66
66
  "postinstall": "node scripts/postinstall",
67
67
  "test": "ava"
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -162,9 +162,7 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
162
162
  }
163
163
 
164
164
  // related https://github.com/puppeteer/puppeteer/issues/1353
165
- const _waitUntilAuto = (page, opts = {}) => {
166
- const timeout = timeouts.action(opts.timeout)
167
-
165
+ const _waitUntilAuto = (page, { timeout }) => {
168
166
  return Promise.all(
169
167
  [
170
168
  {
@@ -175,7 +173,7 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
175
173
  fn: () => page.evaluate(() => window.history.pushState(null, null, null)),
176
174
  debug: 'waitUntilAuto:pushState'
177
175
  }
178
- ].map(({ fn, ...opts }) => run({ fn: fn(), timeout, ...opts }))
176
+ ].map(({ fn, debug }) => run({ fn: fn(), debug, timeout }))
179
177
  )
180
178
  }
181
179