@browserless/goto 9.11.0 → 9.12.1
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 +2 -2
- package/src/engine.bin +0 -0
- package/src/index.js +1 -1
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.
|
|
5
|
+
"version": "9.12.1",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"timeout": "30s",
|
|
67
67
|
"workerThreads": false
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "5c0063a7426efea722a67aa6e43f0e988a3c8957",
|
|
70
70
|
"scripts": {
|
|
71
71
|
"postinstall": "node scripts/postinstall",
|
|
72
72
|
"test": "ava"
|
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))
|