@browserless/goto 10.6.3 → 10.7.0
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/scripts/postinstall.js +1 -1
- package/src/engine.bin +0 -0
- package/src/index.js +4 -5
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.
|
|
5
|
+
"version": "10.7.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"puppeteer"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@browserless/devices": "^10.
|
|
33
|
-
"@
|
|
32
|
+
"@browserless/devices": "^10.7.0",
|
|
33
|
+
"@ghostery/adblocker-puppeteer": "~2.3.1",
|
|
34
34
|
"@kikobeats/time-span": "~1.0.5",
|
|
35
35
|
"debug-logfmt": "~1.2.3",
|
|
36
36
|
"got": "~11.8.6",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tough-cookie": "~5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@browserless/test": "^10.
|
|
45
|
+
"@browserless/test": "^10.7.0",
|
|
46
46
|
"ava": "5",
|
|
47
47
|
"p-wait-for": "3"
|
|
48
48
|
},
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"timeout": "2m",
|
|
67
67
|
"workerThreads": false
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ce5afb4f249e7a5ea9a653811b3a5388a03d65c0"
|
|
70
70
|
}
|
package/scripts/postinstall.js
CHANGED
package/src/engine.bin
CHANGED
|
Binary file
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const { PuppeteerBlocker } = require('@
|
|
3
|
+
const { PuppeteerBlocker } = require('@ghostery/adblocker-puppeteer')
|
|
4
4
|
const { shallowEqualObjects } = require('shallow-equal')
|
|
5
5
|
const { setTimeout } = require('node:timers/promises')
|
|
6
6
|
const createDevices = require('@browserless/devices')
|
|
@@ -186,6 +186,7 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
|
|
|
186
186
|
abortTypes = [],
|
|
187
187
|
adblock = true,
|
|
188
188
|
animations = false,
|
|
189
|
+
authenticate,
|
|
189
190
|
click,
|
|
190
191
|
colorScheme,
|
|
191
192
|
headers = {},
|
|
@@ -193,14 +194,12 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
|
|
|
193
194
|
javascript = true,
|
|
194
195
|
mediaType,
|
|
195
196
|
modules,
|
|
196
|
-
password,
|
|
197
197
|
scripts,
|
|
198
198
|
scroll,
|
|
199
199
|
styles,
|
|
200
200
|
timeout,
|
|
201
201
|
timezone,
|
|
202
202
|
url,
|
|
203
|
-
username,
|
|
204
203
|
waitForFunction,
|
|
205
204
|
waitForSelector,
|
|
206
205
|
waitForTimeout,
|
|
@@ -219,10 +218,10 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
|
|
|
219
218
|
|
|
220
219
|
const prePromises = []
|
|
221
220
|
|
|
222
|
-
if (
|
|
221
|
+
if (authenticate) {
|
|
223
222
|
prePromises.push(
|
|
224
223
|
run({
|
|
225
|
-
fn: page.authenticate(
|
|
224
|
+
fn: page.authenticate(authenticate),
|
|
226
225
|
timeout: actionTimeout,
|
|
227
226
|
debug: 'authenticate'
|
|
228
227
|
})
|