enhanced-resolve
Advanced tools
Comparing version 5.10.0 to 5.11.0
@@ -35,3 +35,3 @@ /* | ||
if (!directory) return callback(); | ||
fs.stat(directory, (err, stat) => { | ||
fs.stat(directory, { throwIfNoEntry: false }, (err, stat) => { | ||
if (err || !stat) { | ||
@@ -38,0 +38,0 @@ if (resolveContext.missingDependencies) |
@@ -33,3 +33,3 @@ /* | ||
if (!file) return callback(); | ||
fs.stat(file, (err, stat) => { | ||
fs.stat(file, { throwIfNoEntry: false }, (err, stat) => { | ||
if (err || !stat) { | ||
@@ -36,0 +36,0 @@ if (resolveContext.missingDependencies) |
@@ -49,3 +49,3 @@ /* | ||
(addr, callback) => { | ||
fs.stat(addr, (err, stat) => { | ||
fs.stat(addr, { throwIfNoEntry: false }, (err, stat) => { | ||
if (!err && stat && stat.isDirectory()) { | ||
@@ -52,0 +52,0 @@ const obj = { |
@@ -54,4 +54,4 @@ /* | ||
* @property {(function(string, FileSystemCallback<Buffer | string>): void) & function(string, object, FileSystemCallback<Buffer | string>): void} readlink | ||
* @property {(function(string, FileSystemCallback<FileSystemStats>): void) & function(string, object, FileSystemCallback<Buffer | string>): void=} lstat | ||
* @property {(function(string, FileSystemCallback<FileSystemStats>): void) & function(string, object, FileSystemCallback<Buffer | string>): void} stat | ||
* @property {(function(string, FileSystemCallback<FileSystemStats>): void) & function(string, object, FileSystemCallback<FileSystemStats>): void=} lstat | ||
* @property {(function(string, FileSystemCallback<FileSystemStats>): void) & function(string, object, FileSystemCallback<FileSystemStats>): void} stat | ||
*/ | ||
@@ -58,0 +58,0 @@ |
{ | ||
"name": "enhanced-resolve", | ||
"version": "5.10.0", | ||
"version": "5.11.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -16,3 +16,3 @@ "description": "Offers a async require.resolve function. It's highly configurable.", | ||
"dependencies": { | ||
"graceful-fs": "^4.2.4", | ||
"graceful-fs": "^4.2.9", | ||
"tapable": "^2.2.0" | ||
@@ -19,0 +19,0 @@ }, |
@@ -35,3 +35,3 @@ /* | ||
arg1: object, | ||
arg2: FileSystemCallback<string | Buffer> | ||
arg2: FileSystemCallback<FileSystemStats> | ||
): void; | ||
@@ -45,3 +45,3 @@ }; | ||
arg1: object, | ||
arg2: FileSystemCallback<string | Buffer> | ||
arg2: FileSystemCallback<FileSystemStats> | ||
): void; | ||
@@ -140,3 +140,3 @@ }; | ||
arg1: object, | ||
arg2: FileSystemCallback<string | Buffer> | ||
arg2: FileSystemCallback<FileSystemStats> | ||
): void; | ||
@@ -149,3 +149,3 @@ }; | ||
arg1: object, | ||
arg2: FileSystemCallback<string | Buffer> | ||
arg2: FileSystemCallback<FileSystemStats> | ||
): void; | ||
@@ -152,0 +152,0 @@ }; |
164967
Updatedgraceful-fs@^4.2.9