express-enrouten
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -23,3 +23,2 @@ /*───────────────────────────────────────────────────────────────────────────*\ | ||
var express = require('express'); | ||
var reverend = require('reverend'); | ||
var debug = require('debuglog')('enrouten'); | ||
@@ -30,2 +29,3 @@ var index = require('./lib/index'); | ||
var directory = require('./lib/directory'); | ||
var path2regexp = require('path-to-regexp'); | ||
@@ -78,3 +78,3 @@ | ||
if (typeof route === 'string') { | ||
return reverend(route, data || {}); | ||
return path2regexp.compile(route)(data); | ||
} | ||
@@ -81,0 +81,0 @@ return undefined; |
{ | ||
"name": "express-enrouten", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "An express route initialization and configuration module.", | ||
@@ -39,4 +39,4 @@ "main": "index.js", | ||
"debuglog": "^1.0.1", | ||
"reverend": "^0.3.0" | ||
"path-to-regexp": "^1.1.1" | ||
} | ||
} |
express-enrouten | ||
================== | ||
Lead Maintainer: [Jean-Charles Sisk](https://github.com/jasisk) | ||
[![Build Status](https://travis-ci.org/krakenjs/express-enrouten.svg?branch=master)](https://travis-ci.org/krakenjs/express-enrouten) | ||
[![NPM version](https://badge.fury.io/js/express-enrouten.png)](http://badge.fury.io/js/express-enrouten) | ||
Route configuration middleware for expressjs. | ||
@@ -10,5 +15,2 @@ | ||
[![Build Status](https://travis-ci.org/krakenjs/express-enrouten.png)](https://travis-ci.org/krakenjs/express-enrouten) | ||
[![NPM version](https://badge.fury.io/js/express-enrouten.png)](http://badge.fury.io/js/express-enrouten) | ||
### API | ||
@@ -15,0 +17,0 @@ #### `app.use(enrouten(options))` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196
26938
13
301
1
+ Addedpath-to-regexp@^1.1.1
- Removedreverend@^0.3.0
- Removedreverend@0.3.1(transitive)