@jsenv/server
Advanced tools
Comparing version 12.5.0 to 12.5.2
{ | ||
"name": "@jsenv/server", | ||
"version": "12.5.0", | ||
"version": "12.5.2", | ||
"description": "Write your Node.js server using pure functions", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -242,3 +242,3 @@ /* | ||
}, | ||
convertFileSystemErrorToResponseProperties(e), | ||
convertFileSystemErrorToResponseProperties(e) || {}, | ||
) | ||
@@ -245,0 +245,0 @@ } |
@@ -9,3 +9,2 @@ export const convertFileSystemErrorToResponseProperties = (error) => { | ||
} | ||
if (isErrorWithCode(error, "EPERM")) { | ||
@@ -17,3 +16,2 @@ return { | ||
} | ||
if (isErrorWithCode(error, "ENOENT")) { | ||
@@ -25,3 +23,2 @@ return { | ||
} | ||
// file access may be temporarily blocked | ||
@@ -38,3 +35,2 @@ // (by an antivirus scanning it because recently modified for instance) | ||
} | ||
// emfile means there is too many files currently opened | ||
@@ -50,3 +46,2 @@ if (isErrorWithCode(error, "EMFILE")) { | ||
} | ||
if (isErrorWithCode(error, "EISDIR")) { | ||
@@ -58,4 +53,3 @@ return { | ||
} | ||
return Promise.reject(error) | ||
return null | ||
} | ||
@@ -62,0 +56,0 @@ |
134600