original-url
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -95,5 +95,5 @@ 'use strict' | ||
const containsProtocol = url.indexOf('://') !== -1 | ||
url = parseUrl(containsProtocol ? url : 'invalid://' + url) | ||
if (!containsProtocol) delete url.protocol | ||
return url | ||
const result = parseUrl(containsProtocol ? url : 'invalid://' + url) | ||
if (!containsProtocol) result.protocol = '' | ||
return result | ||
} |
{ | ||
"name": "original-url", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Reconstruct the original URL used in an HTTP request based on the HTTP request headers", | ||
@@ -15,2 +15,4 @@ "main": "index.js", | ||
"scripts": { | ||
"format": "standard --fix", | ||
"bench": "node benchmark/benchmark.js", | ||
"test": "standard && node test.js" | ||
@@ -50,5 +52,5 @@ }, | ||
"coordinates": [ | ||
55.777263, | ||
12.592294 | ||
55.778257, | ||
12.593204 | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
2
8733
4
83