Comparing version 0.9.2 to 0.10.1
10
index.js
@@ -1,2 +0,1 @@ | ||
// jshint esversion: 6, globalstrict: true, strict: true, bitwise: false | ||
'use strict'; | ||
@@ -93,2 +92,5 @@ | ||
if (typeof callback === 'function') { | ||
if (callback.length !== 1){ | ||
throw new Error('Callback function must only accept 1 argument'); | ||
} | ||
this._callback = callback; | ||
@@ -434,2 +436,7 @@ } else { | ||
PamDiff.prototype._flush = function (callback) { | ||
this.resetCache(); | ||
callback(); | ||
}; | ||
PamDiff.prototype.resetCache = function () { | ||
delete this._oldPix; | ||
@@ -440,3 +447,2 @@ delete this._newPix; | ||
this._parseChunk = this._parseFirstChunk; | ||
callback(); | ||
}; | ||
@@ -443,0 +449,0 @@ |
{ | ||
"name": "pam-diff", | ||
"version": "0.9.2", | ||
"version": "0.10.1", | ||
"description": "Measure differences between pixel arrays extracted from pam images", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node tests/test.js && node tests/test2.js && node tests/test3.js" | ||
"test": "node tests/test.js && node tests/test2.js && node tests/test3.js", | ||
"preversion": "npm test" | ||
}, | ||
@@ -30,7 +31,8 @@ "repository": { | ||
"dependencies": { | ||
"polygon-points": "^0.4.0" | ||
"polygon-points": "^0.5.0" | ||
}, | ||
"devDependencies": { | ||
"nan": "^2.8.0", | ||
"pipe2pam": "^0.6.0" | ||
} | ||
} |
# pam-diff | ||
###### [![Build Status](https://travis-ci.org/kevinGodell/pam-diff.svg?branch=master)](https://travis-ci.org/kevinGodell/pam-diff) [![GitHub issues](https://img.shields.io/github/issues/kevinGodell/pam-diff.svg)](https://github.com/kevinGodell/pam-diff/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kevinGodell/pam-diff/master/LICENSE) | ||
###### [![Build Status](https://travis-ci.org/kevinGodell/pam-diff.svg?branch=master)](https://travis-ci.org/kevinGodell/pam-diff) [![Build status](https://ci.appveyor.com/api/projects/status/hu6qw285sm6vfwtd/branch/master?svg=true)](https://ci.appveyor.com/project/kevinGodell/pam-diff/branch/master) [![GitHub issues](https://img.shields.io/github/issues/kevinGodell/pam-diff.svg)](https://github.com/kevinGodell/pam-diff/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kevinGodell/pam-diff/master/LICENSE) | ||
Measure differences between pixel arrays extracted from pam images. Works well with node module [pipe2pam](https://www.npmjs.com/package/pipe2pam) to extract pam images from an ffmpeg pipe. Supported ***tupltypes*** are ***rgb***, ***rgb_alpha***, ***grayscale***, and ***blackandwhite***. It is currently being used for a video motion detection project. | ||
@@ -4,0 +4,0 @@ ### installation: |
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
22696
421
2
+ Addedpolygon-points@0.5.1(transitive)
- Removedpolygon-points@0.4.0(transitive)
Updatedpolygon-points@^0.5.0