enhanced-resolve
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -71,3 +71,5 @@ /* | ||
var line = options.loaders[i]; | ||
if(line.test.test(resource)) { | ||
var test = line.test; | ||
if(typeof test == "string") test = new RegExp(test); | ||
if(test.test(resource)) { | ||
Array.prototype.push.apply(identifiers, line.loader.split(/!/g)); | ||
@@ -117,3 +119,5 @@ break; | ||
return callback(new Error("File \"" + intermediateResult + "\" is blocked by postprocessors: " + err)); | ||
postprocessors.shift()(result, next); | ||
var postprocessor = postprocessors.shift(); | ||
if(typeof postprocessor == "string") postprocessor = require(postprocessor); | ||
postprocessor(result, next); | ||
})(null, intermediateResult); | ||
@@ -120,0 +124,0 @@ } |
{ | ||
"name": "enhanced-resolve", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
23436
655
7