Skip to content

Commit

Permalink
0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 19, 2015
1 parent 61e9292 commit 023b772
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 114 deletions.
4 changes: 2 additions & 2 deletions lib/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var Router = (function () {
value: new Node('/')
});
Object.defineProperty(_this, m, {
get: function get() {
get() {
return function verb(path, handler) {
return this.add(m.toUpperCase(), path, handler);
};
Expand Down Expand Up @@ -319,7 +319,7 @@ var Router = (function () {

function lcp(a, b) {
var i = 0;
var max = min(a.length, b.length);
const max = min(a.length, b.length);
for (; i < max && a.charCodeAt(i) === b.charCodeAt(i); ++i) {}
return i;
}
Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trek-router",
"version": "0.5.0",
"version": "0.5.1",
"description": "A fast HTTP router",
"repository": "trekjs/router",
"main": "lib/Router.js",
Expand All @@ -26,7 +26,7 @@
"benchmark": "^1.0.0",
"finalhandler": "^0.4.0",
"isparta": "^3.x",
"istanbul": "^0.3.x",
"istanbul": "^0.4.0",
"lodash": "^3.10.1",
"mocha": "^2.3.3",
"path-to-regexp": "^1.2.1",
Expand All @@ -46,5 +46,15 @@
},
"dependencies": {
"methods": "^1.1.1"
},
"babel": {
"blacklist": [
"regenerator",
"es6.constants",
"es6.properties.computed",
"es6.properties.shorthand",
"es6.tailCall",
"es6.templateLiterals"
]
}
}

0 comments on commit 023b772

Please sign in to comment.