Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1.0 to 1.1.1

17

lib/tail.js

@@ -28,3 +28,5 @@ // Generated by CoffeeScript 1.10.0

return function(error) {
console.error("Tail error:" + error);
if (_this.logger) {
_this.logger.error("Tail error:" + error);
}
return _this.emit('error', error);

@@ -65,6 +67,7 @@ };

this.readBlock = bind(this.readBlock, this);
console.info("Tail starting:");
console.info("filename:", this.filename);
console.info("options:", options);
this.separator = (ref = options.separator) != null ? ref : /[\r]{0,1}\n/, this.fsWatchOptions = (ref1 = options.fsWatchOptions) != null ? ref1 : {}, this.fromBeginning = (ref2 = options.fromBeginning) != null ? ref2 : false, this.follow = (ref3 = options.follow) != null ? ref3 : true;
this.separator = (ref = options.separator) != null ? ref : /[\r]{0,1}\n/, this.fsWatchOptions = (ref1 = options.fsWatchOptions) != null ? ref1 : {}, this.fromBeginning = (ref2 = options.fromBeginning) != null ? ref2 : false, this.follow = (ref3 = options.follow) != null ? ref3 : true, this.logger = options.logger;
if (this.logger) {
this.logger.info("Tail starting:");
this.logger.info("filename:", this.filename);
}
this.buffer = '';

@@ -134,3 +137,5 @@ this.internalDispatcher = new events.EventEmitter();

} else {
console.error("'rename' event for " + this.filename + ". File not available.");
if (this.logger) {
this.logger.error("'rename' event for " + this.filename + ". File not available.");
}
return this.emit("error", "'rename' event for " + this.filename + ". File not available.");

@@ -137,0 +142,0 @@ }

@@ -9,3 +9,3 @@ {

"description": "tail a file in node",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "http://www.lucagrulla.com/node-tail",

@@ -12,0 +12,0 @@ "repository": {

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