Comparing version 0.0.5 to 0.0.6
@@ -38,3 +38,3 @@ 'use strict'; | ||
folderPath: './images', | ||
dimensions: [100, 200, 300], | ||
dimensions: [150, 300], | ||
request: { | ||
@@ -41,0 +41,0 @@ json: true, |
@@ -22,2 +22,6 @@ 'use strict'; | ||
var _fs = require('fs'); | ||
var _fs2 = _interopRequireDefault(_fs); | ||
/** | ||
@@ -58,3 +62,10 @@ * [saveAsFile description] | ||
if (parseInt(res.bytes) <= 0) { | ||
done(new Error('response bytes ' + res.bytes)); | ||
_fs2['default'].unlink(filePath, function (err) { | ||
if (err) { | ||
done(err); | ||
return; | ||
} | ||
done(new Error('response bytes ' + res.bytes)); | ||
}); | ||
return; | ||
@@ -61,0 +72,0 @@ } |
{ | ||
"name": "pmp-image", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "PicMePlease image", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/paolo-chiabrera/pmp-image", |
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
17424
392
3