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

looks-same

Package Overview
Dependencies
Maintainers
7
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

looks-same - npm Package Compare versions

Comparing version 7.2.2 to 7.2.3

build/src/index.d.ts

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [7.2.3](https://github.com/gemini-testing/looks-same/compare/v7.2.2...v7.2.3) (2020-05-08)
### Bug Fixes
* **prepareOpts:** TypeError when opts is undefined ([#66](https://github.com/gemini-testing/looks-same/issues/66)) ([c6ea6c2](https://github.com/gemini-testing/looks-same/commit/c6ea6c2de99a82e1cf798264e87c3d057f1ae32f))
### [7.2.2](https://github.com/gemini-testing/looks-same/compare/v7.2.1...v7.2.2) (2019-10-28)

@@ -7,0 +14,0 @@

2

index.d.ts

@@ -194,3 +194,3 @@ // Type definitions for looks-same 5.0

image2: string | Buffer | BoundedImage,
options: LooksSameOptions,
options: LooksSameOptions | {},
callback: LooksSameCallback

@@ -197,0 +197,0 @@ ): void;

@@ -119,2 +119,3 @@ 'use strict';

const prepareOpts = (opts) => {
opts = opts || {};
opts.tolerance = getToleranceFromOpts(opts);

@@ -121,0 +122,0 @@

{
"name": "looks-same",
"version": "7.2.2",
"version": "7.2.3",
"description": "Pure node.js library for comparing PNG-images, taking into account human color perception.",

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

@@ -92,6 +92,6 @@ # LooksSame

### Getting diff clusters
Looksame returns diff bounds divided into clusters. You can pass clusters size using `clustersSize` option.
Looksame returns diff bounds divided into clusters if option `shouldCluster` passed with `true` value. Moreover you can pass clusters size using `clustersSize` option.
```javascript
looksSame('image1.png', 'image2.png', {stopOnFirstFail: false}, function(error, {equal, diffBounds, diffClusters}) {
looksSame('image1.png', 'image2.png', {shouldCluster: true, clustersSize: 10}, function(error, {equal, diffBounds, diffClusters}) {
// {

@@ -98,0 +98,0 @@ // equal: false,

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