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

pipe-io

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipe-io - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

17

lib/pipe.js
(function () {
'use strict';
var Util = require('util.io'),
var Util = require('../util'),
fs = require('fs'),

@@ -27,3 +27,3 @@ zlib = require('zlib');

p = params,
func = Util.exec.ret(p.callback),
func = p.callback,
options = {

@@ -75,7 +75,12 @@ bufferSize: 4 * 1024

function on(event, emitter, callback) {
var listeners = emitter.listeners(event),
indexOf = listeners.indexOf(callback);
var isSet,
listeners = emitter.listeners(event),
callbackStr = '' + callback;
if (!~indexOf)
emitter.once(event, callback);
isSet = listeners.some(function(func) {
return '' + func === callbackStr;
});
if (!isSet)
emitter.on(event, callback);
}

@@ -82,0 +87,0 @@

{
"name": "pipe-io",
"version": "0.8.3",
"version": "0.8.4",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "Pipe streams and handle events",

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