looks-same
Advanced tools
Comparing version 7.2.2 to 7.2.3
@@ -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 @@ |
@@ -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, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
763256
143
3180
6
1