@browserless/goto 10.7.10 → 10.8.0-beta.16
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 +9 -9
- package/src/engine.bin +0 -0
- package/src/index.js +3 -3
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.8.0-beta.16",
|
|
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.7.
|
|
33
|
-
"@ghostery/adblocker-puppeteer": "~2.
|
|
34
|
-
"@kikobeats/time-span": "~1.0.
|
|
35
|
-
"debug-logfmt": "~1.
|
|
32
|
+
"@browserless/devices": "^10.7.13",
|
|
33
|
+
"@ghostery/adblocker-puppeteer": "~2.11.3",
|
|
34
|
+
"@kikobeats/time-span": "~1.0.8",
|
|
35
|
+
"debug-logfmt": "~1.4.0",
|
|
36
36
|
"got": "~11.8.6",
|
|
37
|
-
"is-url-http": "~2.3.
|
|
37
|
+
"is-url-http": "~2.3.10",
|
|
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": "~
|
|
42
|
+
"tough-cookie": "~6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@browserless/test": "^10.7.
|
|
45
|
+
"@browserless/test": "^10.7.13",
|
|
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": "99489d79d64e80161ee16a1571be5420727de1a5"
|
|
70
70
|
}
|
package/src/engine.bin
CHANGED
|
Binary file
|
package/src/index.js
CHANGED
|
@@ -159,9 +159,9 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
|
|
|
159
159
|
const { viewport: defaultViewport } = getDevice.findDevice(defaultDevice)
|
|
160
160
|
|
|
161
161
|
const timeouts = {
|
|
162
|
-
base: (milliseconds = globalTimeout) => milliseconds * (2 / 3),
|
|
163
|
-
action: (milliseconds = globalTimeout) => milliseconds * (1 / 11),
|
|
164
|
-
goto: (milliseconds = globalTimeout) => milliseconds * (7 / 8)
|
|
162
|
+
base: (milliseconds = globalTimeout) => Math.round(milliseconds * (2 / 3)),
|
|
163
|
+
action: (milliseconds = globalTimeout) => Math.round(milliseconds * (1 / 11)),
|
|
164
|
+
goto: (milliseconds = globalTimeout) => Math.round(milliseconds * (7 / 8))
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
// related https://github.com/puppeteer/puppeteer/issues/1353
|