Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

routington

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routington - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

component.json

17

lib/match.js

@@ -29,3 +29,4 @@ var Routington = require('./routington')

while (length) {
frag = frags.shift()
frag = decode(frags.shift())
if (frag === -1) malformed()
length = frags.length

@@ -69,2 +70,16 @@

}
}
function decode(string) {
try {
return decodeURIComponent(string)
} catch (err) {
return -1
}
}
function malformed() {
var err = new Error('malformed url')
err.status = 400
throw err
}

2

package.json
{
"name": "routington",
"description": "Trie-based URL Routing",
"version": "0.1.1",
"version": "0.1.2",
"devDependencies": {

@@ -6,0 +6,0 @@ "mocha": "*",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc