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

pam-diff

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pam-diff - npm Package Compare versions

Comparing version 0.8.0 to 0.8.2

13

index.js

@@ -1,2 +0,2 @@

// jshint esversion: 6, globalstrict: true, strict: true
// jshint esversion: 6, globalstrict: true, strict: true, bitwise: false
'use strict';

@@ -36,7 +36,7 @@

break;
case 'luminosity' :
case 'average' :
this._grayscale = this._averageToGray;
break;
default ://luminosity
this._grayscale = this._luminosityToGray;
break;
default :
this._grayscale = this._averageToGray;
}

@@ -115,4 +115,3 @@ };

PamDiff.prototype._luminosityToGray = function (r, g, b) {
//return 0.299 * r + 0.587 * g + 0.114 * b;
return 0.3 * r + 0.59 * g + 0.11 * b;
return ((66 * r + 129 * g + 25 * b + 128) >> 8) + 16;
};

@@ -119,0 +118,0 @@

{
"name": "pam-diff",
"version": "0.8.0",
"version": "0.8.2",
"description": "Measure differences between pixel arrays extracted from pam images",

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

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