Socket
Socket
Sign inDemoInstall

pump

Package Overview
Dependencies
1
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

6

index.js

@@ -54,5 +54,9 @@ var once = require('once');

var functionish = function(fn) {
return !fn || typeof fn === 'function';
};
var pump = function() {
var streams = Array.prototype.slice.call(arguments);
var callback = typeof streams[streams.length-1] === 'function' ? streams.pop() : noop;
var callback = functionish(streams[streams.length-1]) && streams.pop() || noop;

@@ -59,0 +63,0 @@ if (Array.isArray(streams[0])) streams = streams[0];

2

package.json
{
"name": "pump",
"version": "0.1.2",
"version": "0.1.3",
"repository": "git://github.com/mafintosh/pump.git",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,3 +30,3 @@ # pump

setTimeout(function() {
dest.destroy(); // when dest is closes pump will destroy source
dest.destroy(); // when dest is closed pump will destroy source
}, 1000);

@@ -33,0 +33,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc