Comparing version 0.4.1 to 0.4.2
@@ -110,5 +110,9 @@ /*jslint node: true */ | ||
if (!output || output.length === 0) { | ||
throw 'Invalid output'; | ||
callback('Invalid output'); | ||
} else { | ||
this._sharp(output, callback); | ||
if (this.options.inFile === output) { | ||
callback('Cannot use same file for input and output'); | ||
} else { | ||
this._sharp(output, callback); | ||
} | ||
} | ||
@@ -115,0 +119,0 @@ return this; |
{ | ||
"name": "sharp", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -34,3 +34,3 @@ "contributors": [ | ||
"dependencies": { | ||
"nan": "^1.0.0" | ||
"nan": "^1.1.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
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
41427
140
Updatednan@^1.1.0