route-recognizer
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -90,3 +90,3 @@ function Target(path, matcher, delegate) { | ||
function map(callback, addRouteCallback) { | ||
var map = function(callback, addRouteCallback) { | ||
var matcher = new Matcher(); | ||
@@ -100,3 +100,3 @@ | ||
}, this); | ||
} | ||
}; | ||
@@ -524,5 +524,2 @@ // Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded | ||
} | ||
if (this.names.hasOwnProperty(name)) { | ||
throw new Error("You may not add a duplicate route named `" + name + "`."); | ||
} | ||
@@ -703,3 +700,3 @@ if (name = options && options.as) { | ||
RouteRecognizer.VERSION = '0.2.8'; | ||
RouteRecognizer.VERSION = '0.2.10'; | ||
@@ -716,2 +713,2 @@ // Set to false to opt-out of encoding and decoding path segments. | ||
export default RouteRecognizer; | ||
export default RouteRecognizer; |
@@ -92,3 +92,3 @@ define('route-recognizer', ['exports'], function (exports) { 'use strict'; | ||
function map(callback, addRouteCallback) { | ||
var map = function(callback, addRouteCallback) { | ||
var matcher = new Matcher(); | ||
@@ -102,3 +102,3 @@ | ||
}, this); | ||
} | ||
}; | ||
@@ -526,5 +526,2 @@ // Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded | ||
} | ||
if (this.names.hasOwnProperty(name)) { | ||
throw new Error("You may not add a duplicate route named `" + name + "`."); | ||
} | ||
@@ -705,3 +702,3 @@ if (name = options && options.as) { | ||
RouteRecognizer.VERSION = '0.2.8'; | ||
RouteRecognizer.VERSION = '0.2.10'; | ||
@@ -722,2 +719,2 @@ // Set to false to opt-out of encoding and decoding path segments. | ||
}); | ||
}); |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define('route-recognizer', factory) : | ||
(global.RouteRecognizer = factory()); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define('route-recognizer', factory) : | ||
(global.RouteRecognizer = factory()); | ||
}(this, (function () { 'use strict'; | ||
@@ -96,3 +96,3 @@ | ||
function map(callback, addRouteCallback) { | ||
var map = function(callback, addRouteCallback) { | ||
var matcher = new Matcher(); | ||
@@ -106,3 +106,3 @@ | ||
}, this); | ||
} | ||
}; | ||
@@ -530,5 +530,2 @@ // Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded | ||
} | ||
if (this.names.hasOwnProperty(name)) { | ||
throw new Error("You may not add a duplicate route named `" + name + "`."); | ||
} | ||
@@ -709,3 +706,3 @@ if (name = options && options.as) { | ||
RouteRecognizer.VERSION = '0.2.8'; | ||
RouteRecognizer.VERSION = '0.2.10'; | ||
@@ -724,2 +721,2 @@ // Set to false to opt-out of encoding and decoding path segments. | ||
}))); | ||
}))); |
{ | ||
"name": "route-recognizer", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "A lightweight JavaScript library that matches paths against registered routes.", | ||
@@ -5,0 +5,0 @@ "author": "Yehuda Katz", |
66448
7
1731