You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

prerender

Package Overview
Dependencies
Maintainers
6
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prerender - npm Package Compare versions

Comparing version
5.20.2
to
5.20.3
+5
-0
CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

## 5.20.3 - 2024-04-17
### Changed
- Add `proxyServer` option to allow for a proxy server to be used by Headless Chrome
- Add `extraChromeFlags` option to add additional Chrome flags without overriding the default flags
## 5.20.2 - 2023-03-01

@@ -7,0 +12,0 @@ - Add `x-prerender-render-id` and `x-prerender-render-at` meta tags to header

+9
-2

@@ -35,3 +35,3 @@ const CDP = require('chrome-remote-interface');

this.chromeChild = spawn(location, this.options.chromeFlags || [
const chromeFlags = this.options.chromeFlags || [
'--headless',

@@ -41,4 +41,11 @@ '--disable-gpu',

'--hide-scrollbars',
]);
];
if (!this.options.chromeFlags) {
if (this.options.extraChromeFlags) chromeFlags = chromeFlags.concat(this.options.extraChromeFlags);
if (this.options.proxyServer) chromeFlags.push('--proxy-server=' + this.options.proxyServer);
}
this.chromeChild = spawn(location, chromeFlags, {shell: true});
resolve();

@@ -45,0 +52,0 @@ });

+2
-2

@@ -5,3 +5,3 @@ {

"description": "Service to prerender Javascript rendered pages for SEO",
"version": "5.20.2",
"version": "5.20.3",
"license": "MIT",

@@ -32,2 +32,2 @@ "repository": {

}
}
}