Comparing version 2.1.2 to 2.1.4
@@ -8,3 +8,2 @@ /** | ||
var debug = require('debug')('Routr:router'); | ||
var pathToRegexp = require('path-to-regexp'); | ||
@@ -170,3 +169,2 @@ var queryString = require('query-string'); | ||
debug('Route.makePath failed, e = ', err); | ||
return null; | ||
@@ -232,3 +230,2 @@ }; | ||
self._options = options || {}; | ||
debug('new Router, routes = ', routes); | ||
@@ -235,0 +232,0 @@ if (!Array.isArray(routes)) { |
{ | ||
"name": "routr", | ||
"version": "2.1.2", | ||
"version": "2.1.4", | ||
"description": "A router for both server and client", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"lint": "eslint .", | ||
"test": "mocha tests/unit/ --recursive --compilers js:babel-register --require babel-polyfill --reporter spec" | ||
"test": "mocha tests/unit/ --recursive --require babel-register --require babel-polyfill --reporter spec" | ||
}, | ||
@@ -24,3 +24,2 @@ "author": "Lingyan Zhu <lingyan@yahoo-inc.com", | ||
"dependencies": { | ||
"debug": "^2.0.0", | ||
"path-to-regexp": "^1.1.1", | ||
@@ -30,3 +29,3 @@ "query-string": "^5.0.0" | ||
"devDependencies": { | ||
"babel-eslint": "^9.0.0", | ||
"babel-eslint": "^10.0.2", | ||
"babel-polyfill": "^6.13.0", | ||
@@ -37,8 +36,8 @@ "babel-preset-es2015": "^6.14.0", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^5.0.0", | ||
"eslint": "^7.29.0", | ||
"eslint-plugin-babel": "^5.0.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.0.0", | ||
"mocha": "^9.0.1", | ||
"pre-commit": "^1.0.7", | ||
"sinon": "^7.2.4" | ||
"sinon": "^8.0.0" | ||
}, | ||
@@ -45,0 +44,0 @@ "pre-commit": [ |
Sorry, the diff of this file is not supported yet
2
21557
11
283
- Removeddebug@^2.0.0
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)