Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imagemagick-stream

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemagick-stream - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

13

index.js

@@ -225,2 +225,6 @@ var PassThrough = require('stream').PassThrough;

stdout.pipe(this.out);
var stderr = proc.stderr;
stderr.on('data', this.onerror);
stderr.on('error', this.onerror);

@@ -230,5 +234,14 @@ this.emit('spawn', proc);

/**
* Re-emit errors
*
* @param {Error|Buffer} err
* @api private
*/
onerror: function (err) {
if (!isError(err)) err = new Error(err);
if (!this.listeners('error')) throw err;
this.emit('error', err);
}
};

2

package.json
{
"name": "imagemagick-stream",
"version": "1.0.2",
"version": "1.1.0",
"description": "Streaming Imagemagick api",

@@ -5,0 +5,0 @@ "keywords": [

@@ -31,3 +31,3 @@ # imagemagick-stream

```
For freehand arguments, use `.options()`:
For freehand arguments, use `.options()`
``` js

@@ -34,0 +34,0 @@ im('image.png')

@@ -31,2 +31,12 @@ var assert = require('assert');

it('should emit errors from stderr', function (done) {
var img = im();
img.write('invalid data');
img.end();
img.on('error', function (err) {
assert(/^convert\:/.test(err.message));
done();
});
});
describe('.from()', function () {

@@ -33,0 +43,0 @@ it('should read from the given path', function (done) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc