@browserless/goto 9.3.0-beta.3 → 9.3.0-beta.8
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 +5 -5
- package/src/engine.bin +0 -0
- package/src/index.js +2 -2
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.3.0-beta.
|
|
5
|
+
"version": "9.3.0-beta.8",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"@browserless/devices": "^9.2.22",
|
|
33
33
|
"@cliqz/adblocker-puppeteer": "~1.23.0",
|
|
34
34
|
"debug-logfmt": "~1.0.4",
|
|
35
|
-
"got": "~11.8.
|
|
36
|
-
"is-url-http": "~2.2.
|
|
35
|
+
"got": "~11.8.3",
|
|
36
|
+
"is-url-http": "~2.2.5",
|
|
37
37
|
"p-reflect": "~2.1.0",
|
|
38
38
|
"p-timeout": "~4.1.0",
|
|
39
39
|
"pretty-ms": "~7.0.1",
|
|
40
40
|
"shallow-equal": "~1.2.1",
|
|
41
41
|
"time-span": "~4.0.0",
|
|
42
|
-
"top-user-agents": "~1.0.
|
|
42
|
+
"top-user-agents": "~1.0.39",
|
|
43
43
|
"tough-cookie": "~4.0.0",
|
|
44
44
|
"unique-random-array": "~2.0.0"
|
|
45
45
|
},
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"timeout": "2m",
|
|
69
69
|
"verbose": true
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6e23f94a1b5496741d20ac7a358afab9cbe5dabf"
|
|
72
72
|
}
|
package/src/engine.bin
CHANGED
|
Binary file
|
package/src/index.js
CHANGED
|
@@ -165,7 +165,7 @@ module.exports = ({
|
|
|
165
165
|
const resourceType = req.resourceType()
|
|
166
166
|
if (!abortTypes.includes(resourceType)) {
|
|
167
167
|
debug('continue', { url: req.url(), resourceType })
|
|
168
|
-
return req.continue(req.continueRequestOverrides(),
|
|
168
|
+
return req.continue(req.continueRequestOverrides(), 0)
|
|
169
169
|
}
|
|
170
170
|
debug('abort', { url: req.url(), resourceType })
|
|
171
171
|
return req.abort('blockedbyclient', 2)
|
|
@@ -277,7 +277,7 @@ module.exports = ({
|
|
|
277
277
|
|
|
278
278
|
const { value } = await run({
|
|
279
279
|
fn: html ? page.setContent(html, args) : page.goto(url, args),
|
|
280
|
-
timeout: timeout * 0.
|
|
280
|
+
timeout: timeout * 0.8,
|
|
281
281
|
debug: html ? 'html' : 'url'
|
|
282
282
|
})
|
|
283
283
|
|