trek-router
Advanced tools
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": [ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14
0
13032
Updatedmethods@^1.x