Comparing version 0.0.6 to 0.0.7
@@ -167,8 +167,9 @@ /** | ||
readFile: function(filename, options) { | ||
var self = this; | ||
return Utils.fs.exists(filename) | ||
.then(function(exists) { | ||
if (exists) { | ||
options = this._parseOptions(options, filename); | ||
options = self._parseOptions(options, filename); | ||
var stream = fs.createReadStream(filename); | ||
return this.read(stream, options); | ||
return self.read(stream, options); | ||
} else { | ||
@@ -175,0 +176,0 @@ throw new Error("File Not Found: " + filename); |
{ | ||
"name": "imagejs", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Image Processor", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -21,2 +21,8 @@ # ImageJS | ||
<li>Performance Improvements</li> | ||
<li> | ||
Bug Fixes | ||
<ul> | ||
<li>readFile this bug</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
@@ -23,0 +29,0 @@ |
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
40321
749
209