@browserless/goto 10.1.16 → 10.1.18

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.16",
5
+ "version": "10.1.18",
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.15",
45
+ "@browserless/test": "^10.1.17",
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": "2a184f1c72ec5a967f34fbf148806fa8224ef156",
64
+ "gitHead": "f8e21e951876d99efcecf7415959aa13488e9c7e",
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
@@ -281,7 +281,7 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
281
281
  )
282
282
  }
283
283
 
284
- const device = getDevice({ headers, ...args })
284
+ const device = getDevice({ headers, ...args, device: args.device ?? defaultDevice })
285
285
 
286
286
  if (device.userAgent && !headers['user-agent']) {
287
287
  headers['user-agent'] = device.userAgent