Huge News!Announcing our $40M Series B led by Abstract Ventures.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.13.10 to 1.0.0

4

index.js

@@ -7,3 +7,3 @@ 'use strict';

const addon = require('bindings')('addon');
const PC = require('pixel-change');

@@ -488,3 +488,3 @@ class PamDiff extends Transform {

engine += this._sync ? '_sync' : '_async';
const pixelChange = addon(config);
const pixelChange = PC(config);
this._engine = this._sync ? pixelChange.compareSync.bind(pixelChange) : pixelChange.compare.bind(pixelChange);

@@ -491,0 +491,0 @@ if (this._debug) {

{
"name": "pam-diff",
"version": "0.13.10",
"version": "1.0.0",
"description": "Measure differences between pixel arrays extracted from pam images",
"main": "index.js",
"scripts": {
"__install": "node-gyp rebuild",
"__pretest": "npm install",
"preversion": "npm install && npm test",
"postversion": "npm run doc",
"examples": "node examples/example && node examples/example2 && node examples/example3 && node examples/example4 && node examples/example5",
"all": "npm test && npm run examples && npm run jpeg",
"doc": "jsdoc index.js -d docs && git commit -m \"update docs\" -- docs",

@@ -102,6 +99,2 @@ "test": "npm run gray && npm run rgb && npm run rgba",

"rgba:regions:6": "node tests/test_rgba4 --sync true --response blobs",
"pub": "npm publish -tag latest",
"__pub": "npm publish",
"exp": "npm install && node tests/test_gray5 && node tests/test_gray6",
"jpeg": "npm run pam && npm run draw",
"pam": "npm run pam:async && npm run pam:sync",

@@ -149,4 +142,3 @@ "pam:async": "npm run pam:gray:async && npm run pam:rgb:async && npm run pam:rgba:async",

"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^1.6.3",
"pixel-change": "^1.0.0",
"polygon-points": "^0.6.0"

@@ -163,6 +155,7 @@ },

"files": [
"binding.gyp",
"src/*.cc",
"src/*.h"
"package.json",
"index.js",
"LICENSE",
"README.md"
]
}

@@ -14,2 +14,3 @@ # pam-diff

#### *New Feature:* Starting with version 0.13.6, async behavior will now be default. If you need the pixel difference measurements to block the event loop, use `{sync: true}`.
#### *New Feature:* Starting with version 1.0.0, pre-built binaries will be used. If binaries are not available, installation will fall back to node-gyp.
### Usage Options:

@@ -155,3 +156,3 @@ ##### When comparing 2 equally sized buffers of grayscale, rgb, or rgba pixels, there are several options:

### Future Plans:
- [ ] Make pre-built binaries available when using node-gyp is not an option.
- [x] Make pre-built binaries available when using node-gyp is not an option.
- [x] Include option to return coordinates for bounding box of changed pixels.

@@ -158,0 +159,0 @@ - [x] Include option to return pixel buffer containing bounding boxes.

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