@browserless/goto 10.7.13 → 10.8.0-beta.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": "10.7.13",
5
+ "version": "10.8.0-beta.4",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -66,5 +66,5 @@
66
66
  "timeout": "2m",
67
67
  "workerThreads": false
68
68
  },
69
- "gitHead": "9ed950add1325d6f93d072d6475f1603e4b97d45"
69
+ "gitHead": "1661cb17734e79e9b9b0e35b5e0ea5cda7df4f08"
70
70
  }
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -159,9 +159,9 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
159
159
  const { viewport: defaultViewport } = getDevice.findDevice(defaultDevice)
160
160
 
161
161
  const timeouts = {
162
- base: (milliseconds = globalTimeout) => milliseconds * (2 / 3),
163
- action: (milliseconds = globalTimeout) => milliseconds * (1 / 11),
164
- goto: (milliseconds = globalTimeout) => milliseconds * (7 / 8)
162
+ base: (milliseconds = globalTimeout) => Math.round(milliseconds * (2 / 3)),
163
+ action: (milliseconds = globalTimeout) => Math.round(milliseconds * (1 / 11)),
164
+ goto: (milliseconds = globalTimeout) => Math.round(milliseconds * (7 / 8))
165
165
  }
166
166
 
167
167
  // related https://github.com/puppeteer/puppeteer/issues/1353