Socket
Socket
Sign inDemoInstall

phantomjs

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantomjs - npm Package Compare versions

Comparing version 1.9.7-8 to 1.9.7-9

13

install.js

@@ -190,12 +190,13 @@ // Copyright 2012 The Obvious Corporation.

if (proxyUrl) {
console.log('Using proxy ' + proxyUrl)
// Print using proxy
var proxy = url.parse(proxyUrl)
// Turn basic authorization into proxy-authorization.
if (proxy.auth) {
options.headers['Proxy-Authorization'] = 'Basic ' + new Buffer(proxy.auth).toString('base64')
delete proxy.auth
// Mask password
proxy.auth = proxy.auth.replace(/:.*$/, ':******')
}
console.log('Using proxy ' + url.format(proxy))
options.proxy = url.format(proxy)
// Enable proxy
options.proxy = proxyUrl

@@ -202,0 +203,0 @@ // If going through proxy, spoof the User-Agent, since may commerical proxies block blank or unknown agents in headers

{
"name": "phantomjs",
"version": "1.9.7-8",
"version": "1.9.7-9",
"keywords": [

@@ -5,0 +5,0 @@ "phantomjs",

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