New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare-scraper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare-scraper - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "cloudflare-scraper",
"version": "1.0.4",
"version": "1.0.5",
"description": "A package to bypass Cloudflare's protection",

@@ -5,0 +5,0 @@ "author": "Jimmy Laurent",

@@ -32,3 +32,10 @@ const { addExtra } = require('puppeteer-extra');

async function createBrowser({ proxy = HTTP_PROXY || HTTPS_PROXY }) {
async function createBrowser(options) {
const { proxy = HTTP_PROXY || HTTPS_PROXY, browserWSEndpoint, browserUrl } = options;
const ignoreHTTPSErrors = PUPPETEER_IGNORE_HTTPS_ERROR === 'true';
if (browserWSEndpoint || browserUrl) {
return puppeteer.connect({ browserWSEndpoint, browserUrl, ignoreHTTPSErrors });
}
const args = ['--no-sandbox', '--disable-setuid-sandbox', '--user-agent=' + getUserAgent()];

@@ -41,3 +48,3 @@ if (proxy) {

headless: PUPPETEER_HEADLESS === 'true',
ignoreHTTPSErrors: PUPPETEER_IGNORE_HTTPS_ERROR === 'true',
ignoreHTTPSErrors,
args

@@ -44,0 +51,0 @@ };

@@ -25,6 +25,6 @@ const createBrowser = require('./createBrowser');

async function fillCookiesJar(request, options) {
let { proxy, jar, url, uri } = options;
let { jar, url, uri } = options;
url = url || uri;
const browser = await createBrowser({ proxy });
const browser = await createBrowser(options);
try {

@@ -31,0 +31,0 @@ const page = await browser.newPage();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc