browserless 13.1.3 → 13.1.4
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 +6 -6
- package/src/driver.js +8 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "browserless",
|
|
3
3
|
"description": "The headless Chrome/Chromium driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.",
|
|
4
4
|
"homepage": "https://browserless.js.org",
|
|
5
|
-
"version": "13.1.
|
|
5
|
+
"version": "13.1.4",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"author": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@browserless/errors": "13.0.0",
|
|
39
|
-
"@browserless/goto": "13.1.
|
|
40
|
-
"@browserless/pdf": "13.1.
|
|
41
|
-
"@browserless/screenshot": "13.1.
|
|
39
|
+
"@browserless/goto": "13.1.4",
|
|
40
|
+
"@browserless/pdf": "13.1.4",
|
|
41
|
+
"@browserless/screenshot": "13.1.4",
|
|
42
42
|
"debug-logfmt": "~1.4.10",
|
|
43
43
|
"kill-process-group": "~1.0.13",
|
|
44
44
|
"p-reflect": "~2.1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"superlock": "~1.2.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@browserless/test": "13.1.
|
|
51
|
+
"@browserless/test": "13.1.4",
|
|
52
52
|
"ava": "5",
|
|
53
53
|
"ps-list": "7",
|
|
54
54
|
"puppeteer": "25",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"timeout": "2m",
|
|
71
71
|
"workerThreads": false
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "7085bbe2e9dffb123f185bf50342e3f2c8c2f7cf"
|
|
74
74
|
}
|
package/src/driver.js
CHANGED
|
@@ -23,16 +23,20 @@ const defaultArgs = [
|
|
|
23
23
|
'--disk-cache-size=33554432', // https://source.chromium.org/search?q=lang:cpp+symbol:kDiskCacheSize&ss=chromium
|
|
24
24
|
'--font-render-hinting=none', // https://github.com/puppeteer/puppeteer/issues/2410#issuecomment-2886054614
|
|
25
25
|
'--ignore-gpu-blocklist', // https://source.chromium.org/search?q=lang:cpp+symbol:kIgnoreGpuBlocklist&ss=chromium
|
|
26
|
-
'--in-process-gpu', // https://github.com/search?q=repo%3Achromium%2Fchromium%20in-process-gpu&type=code
|
|
27
26
|
'--no-default-browser-check', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoDefaultBrowserCheck&ss=chromium
|
|
28
27
|
'--no-pings', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoPings&ss=chromium
|
|
29
28
|
'--no-sandbox', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoSandbox&ss=chromium
|
|
30
29
|
'--no-startup-window',
|
|
31
30
|
`--enable-features=${['SharedArrayBuffer'].join(',')}`,
|
|
32
31
|
'--no-zygote', // https://source.chromium.org/search?q=lang:cpp+symbol:kNoZygote&ss=chromium
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
// Route WebGL through ANGLE -> system OpenGL, which resolves to Mesa llvmpipe
|
|
33
|
+
// (software). On a GPU-less host this renders WebGL ~4x faster than the
|
|
34
|
+
// SwiftShader fallback (measured: ~7s vs ~30s for a 3D chart). Requires Mesa
|
|
35
|
+
// (libgl1-mesa-dri) installed and a display (Xvfb) so ANGLE can bind a GL
|
|
36
|
+
// surface; see .github/workflows for the CI setup. Do NOT add
|
|
37
|
+
// --disable-gpu/--in-process-gpu: they force the SwiftShader path and disable
|
|
38
|
+
// the GL surface respectively.
|
|
39
|
+
'--use-angle=gl', // https://chromium.googlesource.com/angle/angle/+/main/doc/DevSetup.md
|
|
36
40
|
`--disable-features=${[
|
|
37
41
|
'AudioServiceOutOfProcess',
|
|
38
42
|
'CalculateNativeWinOcclusion',
|