@browserless/goto 10.2.0 → 10.2.3

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.2.0",
5
+ "version": "10.2.3",
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.17",
45
+ "@browserless/test": "^10.2.3",
46
46
  "ava": "latest",
47
47
  "p-wait-for": "3"
48
48
  },
@@ -55,13 +55,14 @@
55
55
  ],
56
56
  "license": "MIT",
57
57
  "ava": {
58
+ "serial": true,
58
59
  "files": [
59
60
  "!test/fixtures"
60
61
  ],
61
62
  "timeout": "2m",
62
63
  "workerThreads": false
63
64
  },
64
- "gitHead": "788449b48f993c02c2521ff3b872e06c4c137c5c",
65
+ "gitHead": "8e5f4dbe536f5dfb99b60f714d709859ee2900e3",
65
66
  "scripts": {
66
67
  "postinstall": "node scripts/postinstall",
67
68
  "test": "ava"
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -357,6 +357,8 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
357
357
  )
358
358
  }
359
359
 
360
+ await Promise.all(prePromises)
361
+
360
362
  const { value: response, reason: error } = await run({
361
363
  fn: html
362
364
  ? page.setContent(html, { waitUntil, ...args })