puppeteer-extra-plugin-stealth
Advanced tools
Comparing version 2.4.9 to 2.4.10
@@ -6,11 +6,12 @@ const test = require('ava') | ||
test('vanilla: Accept-Language header is missing', async t => { | ||
const browser = await vanillaPuppeteer.launch({ headless: true }) | ||
const page = await browser.newPage() | ||
await page.goto('http://httpbin.org/headers') | ||
// Fixed since 2.1.1? | ||
// test('vanilla: Accept-Language header is missing', async t => { | ||
// const browser = await vanillaPuppeteer.launch({ headless: true }) | ||
// const page = await browser.newPage() | ||
// await page.goto('http://httpbin.org/headers') | ||
const content = await page.content() | ||
t.true(content.includes(`"User-Agent"`)) | ||
t.false(content.includes(`"Accept-Language"`)) | ||
}) | ||
// const content = await page.content() | ||
// t.true(content.includes(`"User-Agent"`)) | ||
// t.false(content.includes(`"Accept-Language"`)) | ||
// }) | ||
@@ -17,0 +18,0 @@ test('vanilla: User-Agent header contains HeadlessChrome', async t => { |
@@ -154,4 +154,6 @@ 'use strict' | ||
async onBrowser(browser) { | ||
// Increase event emitter listeners to prevent MaxListenersExceededWarning | ||
browser.setMaxListeners(30) | ||
if (browser && browser.setMaxListeners) { | ||
// Increase event emitter listeners to prevent MaxListenersExceededWarning | ||
browser.setMaxListeners(30) | ||
} | ||
} | ||
@@ -158,0 +160,0 @@ } |
{ | ||
"name": "puppeteer-extra-plugin-stealth", | ||
"version": "2.4.9", | ||
"version": "2.4.10", | ||
"description": "Stealth mode: Applies various techniques to make detection of headless puppeteer harder.", | ||
@@ -51,3 +51,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "491c82d042a8607e41d422b3e6bd8806292a151c" | ||
"gitHead": "bd73a05835ef5bd19565330188ad69d49431b7ea" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
573913
2145