Socket
Socket
Sign inDemoInstall

original-url

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

2

index.js

@@ -10,3 +10,3 @@ 'use strict'

const secure = req.secure || (req.connection && req.connection.encrypted)
const result = {}
const result = { raw: raw }
let host

@@ -13,0 +13,0 @@

{
"name": "original-url",
"version": "1.0.1",
"version": "1.1.0",
"description": "Reconstruct the original URL used in an HTTP request based on the HTTP request headers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,3 +19,4 @@ 'use strict'

pathname: '/',
full: 'http://localhost:' + port + '/'
full: 'http://localhost:' + port + '/',
raw: '/'
})

@@ -33,3 +34,4 @@ })

pathname: '/some/path',
full: 'http://localhost:' + port + '/some/path'
full: 'http://localhost:' + port + '/some/path',
raw: '/some/path'
})

@@ -48,3 +50,4 @@ })

search: '?key=value',
full: 'http://localhost:' + port + '/some/path?key=value'
full: 'http://localhost:' + port + '/some/path?key=value',
raw: '/some/path?key=value'
})

@@ -66,3 +69,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -80,3 +84,4 @@ })

pathname: '/some/path',
full: 'https://localhost:' + port + '/some/path'
full: 'https://localhost:' + port + '/some/path',
raw: '/some/path'
})

@@ -95,3 +100,4 @@ })

search: '?key=value',
full: 'https://localhost:' + port + '/some/path?key=value'
full: 'https://localhost:' + port + '/some/path?key=value',
raw: '/some/path?key=value'
})

@@ -116,3 +122,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -133,3 +140,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -150,3 +158,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -167,3 +176,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -184,3 +194,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -201,3 +212,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -218,3 +230,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -235,3 +248,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -252,3 +266,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -269,3 +284,4 @@ })

pathname: '/',
full: 'https://localhost:' + port + '/'
full: 'https://localhost:' + port + '/',
raw: '/'
})

@@ -289,3 +305,4 @@ })

pathname: '/',
full: 'http://example.com/'
full: 'http://example.com/',
raw: '/'
})

@@ -306,3 +323,4 @@ })

pathname: '/',
full: 'http://example.com:1337/'
full: 'http://example.com:1337/',
raw: '/'
})

@@ -328,3 +346,4 @@ })

hash: '#hash',
full: 'http://example.com:1337/some/other/path?key=value#hash'
full: 'http://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -350,3 +369,4 @@ })

hash: '#hash',
full: 'https://example.com:1337/some/other/path?key=value#hash'
full: 'https://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -366,3 +386,4 @@ })

pathname: '/',
full: 'http://example.com/'
full: 'http://example.com/',
raw: '/'
})

@@ -382,3 +403,4 @@ })

pathname: '/',
full: 'http://example.com/'
full: 'http://example.com/',
raw: '/'
})

@@ -399,3 +421,4 @@ })

pathname: '/',
full: 'http://example.com:1337/'
full: 'http://example.com:1337/',
raw: '/'
})

@@ -421,3 +444,4 @@ })

hash: '#hash',
full: 'http://example.com:1337/some/other/path?key=value#hash'
full: 'http://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -443,3 +467,4 @@ })

hash: '#hash',
full: 'https://example.com:1337/some/other/path?key=value#hash'
full: 'https://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -464,3 +489,4 @@ })

pathname: '/',
full: 'http://localhost:1337/'
full: 'http://localhost:1337/',
raw: '/'
})

@@ -481,3 +507,4 @@ })

pathname: '/',
full: 'http://localhost:1337/'
full: 'http://localhost:1337/',
raw: '/'
})

@@ -501,3 +528,4 @@ })

pathname: '/',
full: 'http://example.com/'
full: 'http://example.com/',
raw: '/'
})

@@ -517,3 +545,4 @@ })

pathname: '/',
full: 'https://example.com/'
full: 'https://example.com/',
raw: '/'
})

@@ -534,3 +563,4 @@ })

pathname: '/',
full: 'http://example.com:1337/'
full: 'http://example.com:1337/',
raw: '/'
})

@@ -551,3 +581,4 @@ })

pathname: '/',
full: 'http://example.com:1337/'
full: 'http://example.com:1337/',
raw: '/'
})

@@ -573,3 +604,4 @@ })

hash: '#hash',
full: 'http://example.com:1337/some/other/path?key=value#hash'
full: 'http://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -595,3 +627,4 @@ })

hash: '#hash',
full: 'https://example.com:1337/some/other/path?key=value#hash'
full: 'https://example.com:1337/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -617,3 +650,4 @@ })

hash: '#hash',
full: 'http://example.com:1234/some/other/path?key=value#hash'
full: 'http://example.com:1234/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -642,3 +676,4 @@ })

hash: '#hash',
full: 'http://example.com:1234/some/other/path?key=value#hash'
full: 'http://example.com:1234/some/other/path?key=value#hash',
raw: '/some/other/path?key=value'
})

@@ -656,3 +691,4 @@ })

protocol: 'http:',
pathname: '/'
pathname: '/',
raw: '/'
})

@@ -659,0 +695,0 @@ t.end()

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