Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tail

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tail - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json

@@ -6,3 +6,3 @@ {

"description": "tail a file in node",
"version": "0.1.1",
"version": "0.1.2",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

@@ -30,5 +30,2 @@ var Tail, environment, events, fs;

this.queue.shift();
if (environment === 'development') {
console.log("" + this.queue.length + " queue length on end of stream at " + (new Date()));
}
if (this.queue.length >= 1) {

@@ -70,8 +67,10 @@ this.internalDispatcher.emit("next");

fs.watchFile(this.filename, __bind(function(curr, prev) {
this.queue.push({
start: prev.size,
end: curr.size
});
if (this.queue.length === 1) {
return this.internalDispatcher.emit("next");
if (curr.size > prev.size) {
this.queue.push({
start: prev.size,
end: curr.size
});
if (this.queue.length === 1) {
return this.internalDispatcher.emit("next");
}
}

@@ -78,0 +77,0 @@ }, this));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc