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

resemblejs

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resemblejs - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "resemblejs",
"version": "1.2.0",
"version": "1.2.1",
"description": "Image analysis and comparison with HTML5",

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

@@ -63,2 +63,3 @@ /*

var httpRegex = /^https?:\/\//;
var document = typeof window != "undefined" ? window.document : {};
var documentDomainRegex = new RegExp('^https?://' + document.domain);

@@ -383,2 +384,14 @@

var mismatchCount = 0;
var diffBounds = {
top: height,
left: width,
bottom: 0,
right: 0
};
var updateBounds = function(x, y) {
diffBounds.left = Math.min(x, diffBounds.left);
diffBounds.right = Math.max(x, diffBounds.right);
diffBounds.top = Math.min(y, diffBounds.top);
diffBounds.bottom = Math.max(y, diffBounds.bottom);
}

@@ -419,2 +432,3 @@ var time = Date.now();

mismatchCount++;
updateBounds(horizontalPos, verticalPos);
}

@@ -439,2 +453,3 @@ return;

mismatchCount++;
updateBounds(horizontalPos, verticalPos);
}

@@ -444,2 +459,3 @@ } else {

mismatchCount++;
updateBounds(horizontalPos, verticalPos);
}

@@ -450,2 +466,3 @@

data.misMatchPercentage = (mismatchCount / (height*width) * 100).toFixed(2);
data.diffBounds = diffBounds;
data.analysisTime = Date.now() - time;

@@ -452,0 +469,0 @@

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