New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pixel-compare

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixel-compare - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

20

index.js

@@ -117,8 +117,18 @@ "use strict";

);
const writable = fs.createWriteStream(outputImagePath);
savePixels(resultNdarray, imageType).pipe(writable);
return new Promise((resolve, reject) => {
const writable = fs.createWriteStream(outputImagePath);
const stream = savePixels(resultNdarray, imageType).pipe(writable);
stream.on("finish", () => {
resolve(isSame);
});
stream.on("error", err => {
reject(err);
});
});
}
return isSame;
})
.catch(console.error);
else {
return isSame;
}
});
}
{
"name": "pixel-compare",
"version": "1.0.3",
"version": "1.1.0",
"description": "compare pixel of image for PNG, JPEG or DataURL.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,1 +8,2 @@ const pixelCompare = require("../index");

})
.then(isSame => console.log(isSame));
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