promised-io
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -0,0 +0,0 @@ /* |
13
fs.js
@@ -25,3 +25,5 @@ /** | ||
// async | ||
exports[i] = convertNodeAsyncFunction(fs[i], i === "readFile"); | ||
if (fs[i]) { | ||
exports[i] = convertNodeAsyncFunction(fs[i], i === "readFile"); | ||
} | ||
} | ||
@@ -53,4 +55,9 @@ else{ | ||
if (bytesRead === 0){ | ||
fs.close(fd); | ||
deferred.resolve(); | ||
fs.close(fd, function (err) { | ||
if(err){ | ||
deferred.reject(err); | ||
return; | ||
} | ||
deferred.resolve(); | ||
}); | ||
} | ||
@@ -57,0 +64,0 @@ else { |
{ | ||
"name": "promised-io", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Kris Zyp" |
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
93361
2522
26