Comparing version 0.13.10 to 1.0.0
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
0
160
0
36297
4
+ Addedpixel-change@^1.0.0
+ Addednode-addon-api@4.3.0(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedpixel-change@1.1.0(transitive)
- Removedbindings@^1.5.0
- Removednode-addon-api@^1.6.3
- Removedbindings@1.5.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removednode-addon-api@1.7.2(transitive)