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.0 to 1.0.1

10

lib/match.js

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

var Routington = require('./routington')
var createError = require('http-errors')

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

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

@@ -77,7 +79,1 @@

}
function malformed(url) {
var err = new Error('malformed url: ' + url)
err.status = 400
throw err
}
{
"name": "routington",
"description": "Trie-based URL Routing",
"version": "1.0.0",
"version": "1.0.1",
"dependencies": {
"flatten": "0"
"http-errors": "~1.2.0",
"flatten": "~0.0.1"
},

@@ -26,3 +27,3 @@ "devDependencies": {

},
"repository": "jonathanong/routington",
"repository": "pillarjs/routington",
"license": "MIT",

@@ -29,0 +30,0 @@ "main": "lib",

## Routington
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

@@ -166,9 +169,17 @@

[npm-image]: https://img.shields.io/npm/v/routington.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/routington.svg?style=flat-square
[npm-url]: https://npmjs.org/package/routington
[travis-image]: https://img.shields.io/travis/jonathanong/routington.svg?style=flat
[travis-url]: https://travis-ci.org/jonathanong/routington
[coveralls-image]: https://img.shields.io/coveralls/jonathanong/routington.svg?style=flat
[coveralls-url]: https://coveralls.io/r/jonathanong/routington?branch=master
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat
[github-tag]: http://img.shields.io/github/tag/pillarjs/routington.svg?style=flat-square
[github-url]: https://github.com/pillarjs/routington/tags
[travis-image]: https://img.shields.io/travis/pillarjs/routington.svg?style=flat-square
[travis-url]: https://travis-ci.org/pillarjs/routington
[coveralls-image]: https://img.shields.io/coveralls/pillarjs/routington.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/pillarjs/routington?branch=master
[david-image]: http://img.shields.io/david/pillarjs/routington.svg?style=flat-square
[david-url]: https://david-dm.org/pillarjs/routington
[license-image]: http://img.shields.io/npm/l/routington.svg?style=flat-square
[license-url]: LICENSE.md
[downloads-image]: http://img.shields.io/npm/dm/routington.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/routington
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/
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