routes
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -132,2 +132,6 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.routes=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
if (this.routeMap[path]) { | ||
throw new Error('path is already defined: ' + path); | ||
} | ||
var route = Route(path); | ||
@@ -134,0 +138,0 @@ route.fn = fn; |
@@ -131,2 +131,6 @@ | ||
if (this.routeMap[path]) { | ||
throw new Error('path is already defined: ' + path); | ||
} | ||
var route = Route(path); | ||
@@ -133,0 +137,0 @@ route.fn = fn; |
{ | ||
"name": "routes", | ||
"description": "Minimalist route matching for javascript", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/aaronblohowiak/routes.js", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/aaronblohowiak/routes.js.git", |
@@ -184,5 +184,5 @@ var assert = require("assert"), | ||
{ | ||
path: "*://*example.com/:foo/*/:bar", | ||
path: "*://*example2.com/:foo/*/:bar", | ||
testMatch: { | ||
"http://example.com/the/best/test" :{ | ||
"http://example2.com/the/best/test" :{ | ||
fn: noop, | ||
@@ -189,0 +189,0 @@ params: { |
21657
9
625