Socket
Socket
Sign inDemoInstall

original-url

Package Overview
Dependencies
1
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

6

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc