trek-router
Advanced tools
Comparing version 0.2.4 to 0.3.0
@@ -5,4 +5,2 @@ 'use strict'; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
@@ -16,6 +14,2 @@ | ||
var _slowEquals = require('slow-equals'); | ||
var _slowEquals2 = _interopRequireDefault(_slowEquals); | ||
const METHODS = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']; | ||
@@ -236,3 +230,3 @@ | ||
// Search order static > param > match-any | ||
if (search.length === 0 || _slowEquals2['default'](search, cn.prefix)) { | ||
if (search.length === 0 || search === cn.prefix) { | ||
// Found | ||
@@ -239,0 +233,0 @@ result[0] = cn.handler; |
{ | ||
"name": "trek-router", | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"description": "A fast HTTP router", | ||
@@ -44,6 +44,3 @@ "repository": "trekjs/router", | ||
"iojs": "1.x.x" | ||
}, | ||
"dependencies": { | ||
"slow-equals": "0.0.2" | ||
} | ||
} |
0
13170
269
- Removedslow-equals@0.0.2
- Removedslow-equals@0.0.2(transitive)