Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "pam-diff", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Measure differences between pixel arrays extracted from pam images", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,7 +65,7 @@ # pam-diff | ||
ffmpeg.on('error', function(error) { | ||
ffmpeg.on('error', (error) => { | ||
console.log(error); | ||
}); | ||
ffmpeg.on('exit', function(code, signal) { | ||
ffmpeg.on('exit', (code, signal) => { | ||
console.log('exit', code, signal); | ||
@@ -78,3 +78,3 @@ }); | ||
p2p.on('pam', function(data) { | ||
p2p.on('pam', (data) => { | ||
//you do not have to listen to this event if you are just piping this data to pam-diff | ||
@@ -86,3 +86,3 @@ console.log(`received pam ${++counter}`); | ||
pamDiff.on('diff', function(data) { | ||
pamDiff.on('diff', (data) => { | ||
console.log(data); | ||
@@ -101,3 +101,3 @@ | ||
ff.stdin.end(data.pam); | ||
ff.on('exit', function (data) { | ||
ff.on('exit', (data) => { | ||
if (data === 0) { | ||
@@ -104,0 +104,0 @@ console.log(`FFMPEG clean exit after creating ${jpeg}`); |
18732