@browserless/goto 10.6.0 → 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 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.6.0",
5
+ "version": "10.7.0",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -29,20 +29,20 @@
29
29
  "puppeteer"
30
30
  ],
31
31
  "dependencies": {
32
- "@browserless/devices": "^10.5.2",
33
- "@cliqz/adblocker-puppeteer": "~1.27.0",
34
- "@kikobeats/time-span": "~1.0.3",
35
- "debug-logfmt": "~1.2.1",
32
+ "@browserless/devices": "^10.7.0",
33
+ "@ghostery/adblocker-puppeteer": "~2.3.1",
34
+ "@kikobeats/time-span": "~1.0.5",
35
+ "debug-logfmt": "~1.2.3",
36
36
  "got": "~11.8.6",
37
- "is-url-http": "~2.3.7",
37
+ "is-url-http": "~2.3.8",
38
38
  "p-reflect": "~2.1.0",
39
39
  "p-timeout": "~4.1.0",
40
40
  "pretty-ms": "~7.0.1",
41
41
  "shallow-equal": "~3.1.0",
42
- "tough-cookie": "~4.1.3"
42
+ "tough-cookie": "~5.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@browserless/test": "^10.6.0",
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": "9f7ca79b51bc3e9d8dbba388553498b1b89b0e73"
69
+ "gitHead": "ce5afb4f249e7a5ea9a653811b3a5388a03d65c0"
70
70
  }
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { PuppeteerBlocker } = require('@cliqz/adblocker-puppeteer')
3
+ const { PuppeteerBlocker } = require('@ghostery/adblocker-puppeteer')
4
4
  const { promisify } = require('util')
5
5
  const got = require('got')
6
6
  const fs = require('fs')
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('@cliqz/adblocker-puppeteer')
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 (username || password) {
221
+ if (authenticate) {
223
222
  prePromises.push(
224
223
  run({
225
- fn: page.authenticate({ username, password }),
224
+ fn: page.authenticate(authenticate),
226
225
  timeout: actionTimeout,
227
226
  debug: 'authenticate'
228
227
  })