Comparing version 2.0.3 to 2.0.4
// Generated by CoffeeScript 2.4.1 | ||
var Tail, environment, events, fs, | ||
var Tail, environment, events, fs, path, | ||
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; | ||
@@ -9,2 +9,4 @@ | ||
path = require('path'); | ||
environment = process.env['NODE_ENV'] || 'development'; | ||
@@ -67,2 +69,3 @@ | ||
this.filename = filename; | ||
this.absPath = path.dirname(this.filename); | ||
({separator: this.separator = /[\r]{0,1}\n/, fsWatchOptions: this.fsWatchOptions = {}, follow: this.follow = true, logger: this.logger, useWatchFile: this.useWatchFile = false, flushAtEOF: this.flushAtEOF = false, encoding: this.encoding = "utf-8", fromBeginning = false} = options); | ||
@@ -173,3 +176,4 @@ if (this.logger) { | ||
if (this.follow) { | ||
return setTimeout((() => { | ||
this.filename = path.join(this.absPath, filename); | ||
return this.rewatchId = setTimeout((() => { | ||
return this.watch(); | ||
@@ -216,2 +220,6 @@ }), 1000); | ||
} | ||
if (this.rewatchId) { | ||
clearTimeout(this.rewatchId); | ||
this.rewatchId = void 0; | ||
} | ||
this.isWatching = false; | ||
@@ -218,0 +226,0 @@ this.queue = []; |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"homepage": "https://www.lucagrulla.com/node-tail", | ||
@@ -37,6 +37,6 @@ "repository": { | ||
"devDependencies": { | ||
"coffeescript": "2.4.1", | ||
"coffeescript": "2.5.1", | ||
"chai": "4.x", | ||
"mocha": "6.x" | ||
"mocha": "7.x" | ||
} | ||
} |
@@ -108,3 +108,3 @@ # Tail | ||
Tail is written in [CoffeeScript](http://jashkenas.github.com/coffee-script/). | ||
Tail is written in [CoffeeScript](https://coffeescript.org/). | ||
@@ -111,0 +111,0 @@ The Cakefile generates the javascript that is then published to npm. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12429
6
217