pathwatcher
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -35,6 +35,6 @@ var binding = require('../build/Release/pathwatcher.node'); | ||
self.start(); | ||
self.trigger('rename', path); | ||
self.emit('change', 'rename', path); | ||
} else { // atomic write. | ||
self.start(); | ||
self.trigger('change', path); | ||
self.emit('change', 'change', null); | ||
} | ||
@@ -41,0 +41,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"description": "watch events of a file", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -7,6 +7,2 @@ watcher = require('./lib/main.js'); | ||
r.on('close', function() { | ||
console.log('close'); | ||
}); | ||
require('fs').writeFileSync('/tmp/test.txt', '1'); |
8457
81