New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trek-router

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trek-router - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

16

index.js

@@ -1,3 +0,1 @@

'use strict'
/*!

@@ -9,2 +7,4 @@ * router

'use strict'
const METHODS = require('methods')

@@ -25,3 +25,3 @@

* @param {Array} [children]
* @param {Function|GeneratorFunction} handler
* @param {Function} handler
* @param {Array} [pnames]

@@ -54,3 +54,3 @@ */

}
return undefined
return
}

@@ -91,3 +91,3 @@

* @param {String} path
* @param {Function|GeneratorFunction} handler
* @param {Function} handler
*/

@@ -134,3 +134,3 @@ add(method, path, handler) {

* @param {String} path
* @param {Function|GeneratorFunction} [handler]
* @param {Function} [handler]
* @param {Array} [pnames]

@@ -205,3 +205,3 @@ */

* @return {Array} result
* @property {Undefined|Function|GeneratorFunction} result[0]
* @property {Undefined|Function} result[0]
* @property {Array} result[1]

@@ -211,3 +211,3 @@ */

cn = cn || this.trees[method] // Current node as root
n = n || 0 // Param count
n = n | 0 // Param count
result = result || [undefined, []]

@@ -214,0 +214,0 @@ let search = path

{
"name": "trek-router",
"version": "1.0.0",
"version": "1.0.1",
"description": "A fast HTTP router",

@@ -23,18 +23,23 @@ "repository": "trekjs/router",

"devDependencies": {
"babel-cli": "^6.1.18",
"babel-core": "^6.1.19",
"babel-preset-es2015": "^6.1.18",
"benchmark": "^1.0.0",
"finalhandler": "^0.4.0",
"isparta": "^3.x",
"istanbul": "^0.4.0",
"lodash": "^3.10.1",
"mocha": "^2.3.3",
"path-to-regexp": "^1.2.1",
"power-assert": "^1.0.1",
"route-recognizer": "^0.1.7",
"route-trie": "^1.0.1",
"routington": "^1.0.3",
"supertest": "^1.1.0"
"babel-cli": "6",
"babel-core": "6",
"babel-preset-es2015": "6",
"benchmark": "1",
"finalhandler": "0",
"isparta": "4",
"lodash": "3",
"mocha": "2",
"path-to-regexp": "1",
"power-assert": "1",
"route-recognizer": "0",
"route-trie": "1",
"routington": "1",
"supertest": "1"
},
"engines": {
"node": ">= 4"
},
"dependencies": {
"methods": "^1.x"
},
"files": [

@@ -45,8 +50,2 @@ "HISTORY.md",

],
"engines": {
"node": ">= 4"
},
"dependencies": {
"methods": "^1.1.1"
},
"babel": {

@@ -53,0 +52,0 @@ "presets": [

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