Comparing version 2.2.5 to 2.2.6
@@ -144,4 +144,8 @@ let events = require(`events`) | ||
const { size } = fs.statSync(this.filename); | ||
if (size === 0) { | ||
return 0; | ||
} | ||
const fd = fs.openSync(this.filename, 'r'); | ||
// Start from the end of the file and work backwards in specific chunks | ||
@@ -148,0 +152,0 @@ let currentReadPosition = size; |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"homepage": "https://www.lucagrulla.com/node-tail", | ||
@@ -20,0 +20,0 @@ "repository": { |
48598
9
295