New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0 to 0.1.1

2

package.json

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

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

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

@@ -1,2 +0,2 @@

var Tail, events, fs;
var Tail, environment, events, fs;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {

@@ -12,2 +12,3 @@ for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }

fs = require('fs');
environment = process.env['NODE_ENV'] || 'development';
Tail = (function() {

@@ -25,12 +26,16 @@ __extends(Tail, events.EventEmitter);

stream.on('error', __bind(function(error) {
console.log("Tail error:" + error);
return this.emit('error', error);
}, this));
stream.on('end', __bind(function() {
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) {
this.internalDispatcher.emit("next");
}
return this.emit('end');
}, this));
stream.on('close', __bind(function() {
this.queue.shift();
if (this.queue.length >= 1) {
this.internalDispatcher("next");
}
return this.emit('close');

@@ -37,0 +42,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