New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tail

Package Overview
Dependencies
Maintainers
1
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 1.2.2 to 1.2.3

_config.yml

26

lib/tail.js

@@ -88,3 +88,3 @@ // Generated by CoffeeScript 1.10.0

Tail.prototype.watch = function(pos) {
var stats;
var err, error1, stats;
if (this.isWatching) {

@@ -94,3 +94,12 @@ return;

this.isWatching = true;
stats = fs.statSync(this.filename);
try {
stats = fs.statSync(this.filename);
} catch (error1) {
err = error1;
if (this.logger) {
this.logger.error("watch for " + this.filename + " failed: " + this.err);
}
this.emit("error", "watch for " + this.filename + " failed: " + this.err);
return;
}
this.pos = pos != null ? pos : stats.size;

@@ -123,5 +132,14 @@ if (this.logger) {

Tail.prototype.watchEvent = function(e) {
var stats;
var err, error1, stats;
if (e === 'change') {
stats = fs.statSync(this.filename);
try {
stats = fs.statSync(this.filename);
} catch (error1) {
err = error1;
if (this.logger) {
this.logger.error("'change' event for " + this.filename + ". " + this.err);
}
this.emit("error", "'change' event for " + this.filename + ". " + this.err);
return;
}
if (stats.size < this.pos) {

@@ -128,0 +146,0 @@ this.pos = stats.size;

6

package.json
{
"author":{"name": "Luca Grulla",
"url" : "http://www.lucagrulla.com"},
"url" : "https://www.lucagrulla.com"},
"contributors": [

@@ -10,4 +10,4 @@ "Luca Grulla",

"keywords": ["tail", "file"],
"version": "1.2.2",
"homepage": "http://www.lucagrulla.com/node-tail",
"version": "1.2.3",
"homepage": "https://www.lucagrulla.com/node-tail",
"repository": {

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

@@ -1,5 +0,7 @@

#tail
# Tail
[![NPM](https://nodei.co/npm/tail.png?downloads=true&downloadRank=true)](https://nodei.co/npm/tail.png?downloads=true&downloadRank=true)
Author: Luca Grulla - [www.lucagrulla.com](https://www.lucagrulla.com)
# Installation

@@ -84,3 +86,7 @@

# Real world use
Tail was born as part of a data firehose. Read about it [here](https://www.lucagrulla.com/posts/building-a-firehose-with-nodejs/).
#License
MIT. Please see License file for more details.
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