Socket
Socket
Sign inDemoInstall

pac-proxy-agent

Package Overview
Dependencies
54
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

.github/workflows/test.yml

10

package.json
{
"name": "pac-proxy-agent",
"version": "3.0.0",
"version": "3.0.1",
"description": "A PAC file proxy `http.Agent` implementation for HTTP",

@@ -31,6 +31,6 @@ "main": "index.js",

"agent-base": "^4.2.0",
"debug": "^3.1.0",
"debug": "^4.1.1",
"get-uri": "^2.0.0",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^2.2.1",
"https-proxy-agent": "^3.0.0",
"pac-resolver": "^3.0.0",

@@ -41,6 +41,6 @@ "raw-body": "^2.2.0",

"devDependencies": {
"mocha": "^5.1.0",
"proxy": "0.2.4",
"mocha": "6",
"proxy": "^1.0.1",
"socksv5": "0.0.6"
}
}

@@ -83,24 +83,29 @@ /**

after(function (done) {
socksServer.once('close', function () { done(); });
//socksServer.once('close', function () { done(); });
socksServer.close();
done();
});
after(function (done) {
httpServer.once('close', function () { done(); });
//httpServer.once('close', function () { done(); });
httpServer.close();
done();
});
after(function (done) {
httpsServer.once('close', function () { done(); });
//httpsServer.once('close', function () { done(); });
httpsServer.close();
done();
});
after(function (done) {
proxyServer.once('close', function () { done(); });
//proxyServer.once('close', function () { done(); });
proxyServer.close();
done();
});
after(function (done) {
proxyHttpsServer.once('close', function () { done(); });
//proxyHttpsServer.once('close', function () { done(); });
proxyHttpsServer.close();
done();
});

@@ -134,3 +139,3 @@

var opts = url.parse('http://127.0.0.1:' + httpPort + '/test');
var opts = url.parse('http://localhost:' + httpPort + '/test');
opts.agent = agent;

@@ -173,3 +178,3 @@

function FindProxyForURL(url, host) {
return "PROXY 127.0.0.1:PORT;"
return "PROXY localhost:PORT;"
}

@@ -180,3 +185,3 @@

var opts = url.parse('http://127.0.0.1:' + httpPort + '/test');
var opts = url.parse('http://localhost:' + httpPort + '/test');
opts.agent = agent;

@@ -188,3 +193,3 @@

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpPort, data.host);
assert.equal('localhost:' + httpPort, data.host);
assert('via' in data);

@@ -203,3 +208,3 @@ done();

function FindProxyForURL(url, host) {
return "HTTPS 127.0.0.1:PORT;"
return "HTTPS localhost:PORT;"
}

@@ -212,3 +217,3 @@

var opts = url.parse('http://127.0.0.1:' + httpPort + '/test');
var opts = url.parse('http://localhost:' + httpPort + '/test');
opts.agent = agent;

@@ -220,3 +225,3 @@

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpPort, data.host);
assert.equal('localhost:' + httpPort, data.host);
assert('via' in data);

@@ -235,3 +240,3 @@ done();

function FindProxyForURL(url, host) {
return "SOCKS 127.0.0.1:PORT;"
return "SOCKS localhost:PORT;"
}

@@ -242,3 +247,3 @@

var opts = url.parse('http://127.0.0.1:' + httpPort + '/test');
var opts = url.parse('http://localhost:' + httpPort + '/test');
opts.agent = agent;

@@ -250,3 +255,3 @@

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpPort, data.host);
assert.equal('localhost:' + httpPort, data.host);
done();

@@ -268,3 +273,3 @@ });

function FindProxyForURL(url, host) {
return "PROXY 127.0.0.1:PORT;"
return "PROXY localhost:PORT;"
}

@@ -275,3 +280,3 @@

var opts = url.parse('https://127.0.0.1:' + httpsPort + '/test');
var opts = url.parse('https://localhost:' + httpsPort + '/test');
opts.agent = agent;

@@ -284,3 +289,3 @@ opts.rejectUnauthorized = false;

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpsPort, data.host);
assert.equal('localhost:' + httpsPort, data.host);
done();

@@ -300,3 +305,3 @@ });

function FindProxyForURL(url, host) {
return "HTTPS 127.0.0.1:PORT;"
return "HTTPS localhost:PORT;"
}

@@ -309,3 +314,3 @@

var opts = url.parse('https://127.0.0.1:' + httpsPort + '/test');
var opts = url.parse('https://localhost:' + httpsPort + '/test');
opts.agent = agent;

@@ -318,3 +323,3 @@ opts.rejectUnauthorized = false;

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpsPort, data.host);
assert.equal('localhost:' + httpsPort, data.host);
assert(gotReq);

@@ -335,3 +340,3 @@ done();

function FindProxyForURL(url, host) {
return "SOCKS 127.0.0.1:PORT;"
return "SOCKS localhost:PORT;"
}

@@ -342,3 +347,3 @@

var opts = url.parse('https://127.0.0.1:' + httpsPort + '/test');
var opts = url.parse('https://localhost:' + httpsPort + '/test');
opts.agent = agent;

@@ -351,3 +356,3 @@ opts.rejectUnauthorized = false;

var data = JSON.parse(buf);
assert.equal('127.0.0.1:' + httpsPort, data.host);
assert.equal('localhost:' + httpsPort, data.host);
assert(gotReq);

@@ -354,0 +359,0 @@ done();

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc