0.2.3 add logging for change event emitting

master
David Kebler 2019-02-16 16:15:54 -08:00
parent 1900dc5ba2
commit 0d65514630
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@uci-utils/watcher",
"version": "0.2.2",
"version": "0.2.3",
"description": "File System Watcher Class that emits events",
"main": "src/watcher.js",
"scripts": {

View File

@ -80,6 +80,7 @@ class Watcher extends Emitter {
this.emit('install', f)
}
// user might want to run debounce on the listener for this event
log.debug({file:f, type:type, msg:'file system changed, emitting'})
this.emit('changed', {file:f, type:type})
} // end handler