Socket
Socket
Sign inDemoInstall

router

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

6

HISTORY.md

@@ -0,1 +1,7 @@

1.3.5 / 2020-03-24
==================
* Fix incorrect middleware execution with unanchored `RegExp`s
* perf: use plain object for internal method map
1.3.4 / 2020-01-24

@@ -2,0 +8,0 @@ ==================

@@ -305,2 +305,8 @@ /*!

if (layerPath.length !== 0) {
// Validate path is a prefix match
if (layerPath !== path.substr(0, layerPath.length)) {
next(layerError)
return
}
// Validate path breaks on a path separator

@@ -307,0 +313,0 @@ var c = path[layerPath.length]

2

lib/route.js

@@ -46,3 +46,3 @@ /*!

// route handlers for various http methods
this.methods = {}
this.methods = Object.create(null)
}

@@ -49,0 +49,0 @@

{
"name": "router",
"description": "Simple middleware-style router",
"version": "1.3.4",
"version": "1.3.5",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",

@@ -23,6 +23,6 @@ "contributors": [

"eslint": "6.8.0",
"eslint-plugin-markdown": "1.0.1",
"eslint-plugin-markdown": "1.0.2",
"finalhandler": "1.1.2",
"istanbul": "0.4.5",
"mocha": "7.0.0",
"mocha": "7.1.1",
"safe-buffer": "5.2.0",

@@ -29,0 +29,0 @@ "supertest": "4.0.2"

@@ -151,4 +151,4 @@ # router

Represents a single route as an instance that can be used can be used to handle
http `methods` with it's own, optional middleware.
Represents a single route as an instance that can be used to handle http
`methods` with it's own, optional middleware.

@@ -155,0 +155,0 @@ ### route\[method](handler)

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