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

routington

Package Overview
Dependencies
Maintainers
3
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 1.0.1 to 1.0.2

5

lib/match.js
var assert = require('http-assert')
var Routington = require('./routington')
var createError = require('http-errors')

@@ -32,3 +33,3 @@ /*

frag = decode(frags.shift())
if (frag === -1) throw createError(404, 'malformed url: ' + url)
assert(frag !== -1, 404, 'malformed url: ' + url)
length = frags.length

@@ -35,0 +36,0 @@

@@ -0,1 +1,4 @@

var assert = require('assert')
var Routington = require('./routington')

@@ -5,3 +8,3 @@

var options = Parse(string)
if (!options) throw new Error('Invalid parsed string: ' + string)
assert(options, 'Invalid parsed string: ' + string)
return options

@@ -8,0 +11,0 @@ }

3

lib/routington.js

@@ -5,4 +5,3 @@

function Routington(options) {
if (!(this instanceof Routington))
return new Routington(options)
if (!(this instanceof Routington)) return new Routington(options)

@@ -9,0 +8,0 @@ this._init(options)

{
"name": "routington",
"description": "Trie-based URL Routing",
"version": "1.0.1",
"version": "1.0.2",
"dependencies": {
"http-errors": "~1.2.0",
"flatten": "~0.0.1"
"flatten": "~0.0.1",
"http-assert": "^1.0.2"
},

@@ -9,0 +9,0 @@ "devDependencies": {

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