proxy-chain
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -96,2 +96,3 @@ 'use strict'; | ||
protocol: urlObj.protocol, | ||
scheme: null, | ||
search: urlObj.search, | ||
@@ -101,2 +102,10 @@ searchParams: urlObj.searchParams | ||
// Add scheme field (as some other external tools rely on that) | ||
if (parsed.protocol) { | ||
var matches = /^([a-z0-9]+):$/i.exec(parsed.protocol); | ||
if (matches && matches.length === 2) { | ||
parsed.scheme = matches[1]; | ||
} | ||
} | ||
return parsed; | ||
@@ -103,0 +112,0 @@ } catch (e) { |
@@ -0,1 +1,5 @@ | ||
0.4.9 / 2021-01-26 | ||
=================== | ||
- Bugfix: Added back the `scheme` field to result from`parseUrl()` | ||
0.4.8 / 2021-01-26 | ||
@@ -2,0 +6,0 @@ =================== |
{ | ||
"name": "proxy-chain", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
131369
1934