@browserless/goto 9.11.0 → 9.12.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/LICENSE.md CHANGED
File without changes
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.11.0",
5
+ "version": "9.12.4",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@browserless/devices": "^9.10.2",
33
- "@cliqz/adblocker-puppeteer": "~1.26.1",
33
+ "@cliqz/adblocker-puppeteer": "~1.26.6",
34
34
  "debug-logfmt": "~1.0.4",
35
35
  "got": "~11.8.6",
36
36
  "is-url-http": "~2.3.5",
@@ -39,8 +39,8 @@
39
39
  "pretty-ms": "~7.0.1",
40
40
  "shallow-equal": "~3.1.0",
41
41
  "time-span": "~4.0.0",
42
- "top-user-agents": "~1.0.50",
43
- "tough-cookie": "~4.1.2",
42
+ "top-user-agents": "~1.0.57",
43
+ "tough-cookie": "~4.1.3",
44
44
  "unique-random-array": "~2.0.0"
45
45
  },
46
46
  "devDependencies": {
@@ -57,6 +57,10 @@
57
57
  "scripts",
58
58
  "src"
59
59
  ],
60
+ "scripts": {
61
+ "postinstall": "node scripts/postinstall",
62
+ "test": "ava"
63
+ },
60
64
  "license": "MIT",
61
65
  "ava": {
62
66
  "files": [
@@ -66,9 +70,5 @@
66
70
  "timeout": "30s",
67
71
  "workerThreads": false
68
72
  },
69
- "gitHead": "9e24768346df1dda9df4be065137deb1783c37c3",
70
- "scripts": {
71
- "postinstall": "node scripts/postinstall",
72
- "test": "ava"
73
- }
74
- }
73
+ "gitHead": "5b81d2e12abab0726176894365f4fb4b4efd6580"
74
+ }
package/src/engine.bin CHANGED
Binary file
package/src/index.js CHANGED
@@ -249,7 +249,7 @@ module.exports = ({
249
249
  }
250
250
 
251
251
  const enableInterception =
252
- (onPageRequest || abortTypes.length > 0) && page.setRequestInterception(true)
252
+ (onPageRequest || abortTypes.length > 0) && run({ fn: page.setRequestInterception(true), debug: 'enableInterception' })
253
253
 
254
254
  if (onPageRequest) {
255
255
  Promise.resolve(enableInterception).then(() => page.on('request', onPageRequest))