flex-combo-plus
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -34,3 +34,5 @@ /** | ||
module.exports = (function(http, merge, Promise, nw, fs, request, requestFopts, response, responseFopts, try2do, log){ | ||
module.exports = (function(http, util, merge, Promise, | ||
nw, fs, request, requestFopts, | ||
response, responseFopts, try2do, log){ | ||
@@ -69,2 +71,6 @@ return function(rules, options){ | ||
}); | ||
if(!util.isRegExp(rule.from)){ | ||
rule.from = new RegExp(rule.from); | ||
} | ||
}); | ||
@@ -88,3 +94,3 @@ | ||
function nex(){ // TODO nex | ||
function nex(){ | ||
try2do(options.after.bind(options, req, res), | ||
@@ -170,4 +176,4 @@ options.error.bind(options, req, res)); | ||
}; | ||
}(require('http'), require('merge'), require('promise'), | ||
}(require('http'), require('util'), require('merge'), require('promise'), | ||
require('./nw'), require('./fs'), require('./request'), require('./request.fopts'), | ||
require('./response'), require('./response.fopts'), require('./try2do'), require('./log'))); |
{ | ||
"name": "flex-combo-plus", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "instance.js", |
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
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
19687
465