enhanced-resolve
Advanced tools
Comparing version 0.5.13 to 0.5.14
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -37,3 +37,3 @@ /* | ||
} | ||
if(current) { | ||
if(typeof current === "string") { | ||
mainModules.push(current); | ||
@@ -44,3 +44,3 @@ continue; | ||
var field = fields[i]; | ||
if(content[field]) { | ||
if(typeof content[field] === "string") { | ||
mainModules.push(content[field]); | ||
@@ -47,0 +47,0 @@ continue; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -152,18 +152,20 @@ /* | ||
for(var i = 0; i < array.length; i++) { | ||
var itCb = function(i) { | ||
if(i >= currentPos) return; // ignore | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
done.push(i); | ||
if(args.length > 0) { | ||
currentPos = i + 1; | ||
done = done.filter(function(item) { | ||
return item <= i; | ||
}); | ||
currentResult = args; | ||
} | ||
if(done.length == currentPos) { | ||
callback.apply(null, currentResult); | ||
currentPos = 0; | ||
} | ||
}.bind(this, i); | ||
var itCb = (function(i) { | ||
return function() { | ||
if(i >= currentPos) return; // ignore | ||
var args = Array.prototype.slice.call(arguments); | ||
done.push(i); | ||
if(args.length > 0) { | ||
currentPos = i + 1; | ||
done = done.filter(function(item) { | ||
return item <= i; | ||
}); | ||
currentResult = args; | ||
} | ||
if(done.length == currentPos) { | ||
callback.apply(null, currentResult); | ||
currentPos = 0; | ||
} | ||
}; | ||
}(i)); | ||
iterator(array[i], itCb); | ||
@@ -170,0 +172,0 @@ if(currentPos == 0) break; |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
{ | ||
"name": "enhanced-resolve", | ||
"version": "0.5.13", | ||
"version": "0.5.14", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.", |
@@ -0,0 +0,0 @@ # enhanced-resolve |
@@ -0,0 +0,0 @@ var Resolver = require("../lib/Resolver"); |
@@ -0,0 +0,0 @@ var CachedInputFileSystem = require("../lib/CachedInputFileSystem"); |
module.exports = function a() { | ||
return "This is a"; | ||
}; |
module.exports = function b() { | ||
return "This is b"; | ||
}; |
@@ -0,0 +0,0 @@ module.exports = function b() { |
@@ -0,0 +0,0 @@ var complex1 = require("./lib/complex1"); |
@@ -0,0 +0,0 @@ var a = require("./a"); |
@@ -0,0 +0,0 @@ var a = require("./a"); |
@@ -0,0 +0,0 @@ var a = require("./a"); |
module.exports = function a() { | ||
return "This is m1/a"; | ||
}; |
module.exports = function a() { | ||
return "This is m1/b"; | ||
}; |
module.exports = function() { | ||
"module.exports = 'This is m2-loader/b';"; | ||
} |
module.exports = "This is m2/b"; |
@@ -0,0 +0,0 @@ var MemoryInputFileSystem = require("../lib/MemoryInputFileSystem"); |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ var resolve = require("../"); |
Sorry, the diff of this file is not supported yet
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
1373
47592