egg-watcher
Advanced tools
Comparing version 2.1.3 to 2.2.0
2.2.0 / 2017-09-08 | ||
================== | ||
* feat: add event source event logs (#9) | ||
2.1.3 / 2017-06-04 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -24,5 +24,5 @@ 'use strict'; | ||
.on('fuzzy-change', this._onFuzzyChange.bind(this)) | ||
.on('info', msg => this.emit('info', msg)) | ||
.on('warn', msg => this.emit('warn', msg)) | ||
.on('error', err => this.emit('error', err)); | ||
.on('info', (...args) => this.emit('info', ...args)) | ||
.on('warn', (...args) => this.emit('warn', ...args)) | ||
.on('error', (...args) => this.emit('error', ...args)); | ||
@@ -72,2 +72,3 @@ this._eventSource.ready(() => this.ready(true)); | ||
_onChange(info) { | ||
this.emit('info', 'Recieved a change event from eventSource: %j', info); | ||
const path = info.path; | ||
@@ -84,2 +85,3 @@ | ||
_onFuzzyChange(info) { | ||
this.emit('info', 'Recieved a fuzzy-change event from eventSource: %j', info); | ||
const path = info.path; | ||
@@ -86,0 +88,0 @@ |
{ | ||
"name": "egg-watcher", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"description": "file watcher plugin for egg", | ||
@@ -53,4 +53,4 @@ "eggPlugin": { | ||
"ci": { | ||
"version": "6, 7" | ||
"version": "6, 7, 8" | ||
} | ||
} |
13810
231