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.1.2 to 1.1.3

10

HISTORY.md

@@ -0,1 +1,11 @@

1.1.3 / 2015-08-02
==================
* Fix infinite loop condition using `mergeParams: true`
* Fix inner numeric indices incorrectly altering parent `req.params`
* deps: array-flatten@1.1.1
- perf: enable strict mode
* deps: path-to-regexp@0.1.7
- Fix regression with escaped round brackets and matching groups
1.1.2 / 2015-07-06

@@ -2,0 +12,0 @@ ==================

14

index.js

@@ -631,8 +631,12 @@ /*!

// determine numeric gaps
while (i === o || o in parent) {
if (i in params) i++
if (o in parent) o++
// determine numeric gap in params
while (i in params) {
i++
}
// determine numeric gap in parent
while (o in parent) {
o++
}
// offset numeric indices in params before merge

@@ -648,3 +652,3 @@ for (i--; i >= 0; i--) {

return mixin(parent, params)
return mixin(obj, params)
}

@@ -651,0 +655,0 @@

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

@@ -9,7 +9,7 @@ "license": "MIT",

"dependencies": {
"array-flatten": "1.1.0",
"array-flatten": "1.1.1",
"debug": "~2.2.0",
"methods": "~1.1.1",
"parseurl": "~1.3.0",
"path-to-regexp": "0.1.6",
"path-to-regexp": "0.1.7",
"setprototypeof": "1.0.0",

@@ -16,0 +16,0 @@ "utils-merge": "1.0.0"

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