0.2.3 add logging for change event emitting
parent
1900dc5ba2
commit
0d65514630
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@uci-utils/watcher",
|
"name": "@uci-utils/watcher",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"description": "File System Watcher Class that emits events",
|
"description": "File System Watcher Class that emits events",
|
||||||
"main": "src/watcher.js",
|
"main": "src/watcher.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -80,6 +80,7 @@ class Watcher extends Emitter {
|
||||||
this.emit('install', f)
|
this.emit('install', f)
|
||||||
}
|
}
|
||||||
// user might want to run debounce on the listener for this event
|
// 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})
|
this.emit('changed', {file:f, type:type})
|
||||||
} // end handler
|
} // end handler
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue