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

pump

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pump - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

test-node.js

2

index.js

@@ -6,2 +6,3 @@ var once = require('once')

var noop = function () {}
var ancient = /^v?\.0/.test(process.version)

@@ -13,2 +14,3 @@ var isFn = function (fn) {

var isFS = function (stream) {
if (!ancient) return false // newer node version do not need to care about fs is a special way
if (!fs) return false // browser

@@ -15,0 +17,0 @@ return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)

4

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

@@ -22,4 +22,4 @@ "license": "MIT",

"scripts": {
"test": "node test.js"
"test": "node test-browser.js && node test-node.js"
}
}

@@ -33,3 +33,6 @@ var stream = require('stream')

var check = function () {
if (wsClosed && rsClosed && callbackCalled) console.log('done')
if (wsClosed && rsClosed && callbackCalled) {
console.log('test-browser.js passes')
clearTimeout(timeout)
}
}

@@ -57,4 +60,5 @@

setTimeout(function () {
if (!check()) throw new Error('timeout')
var timeout = setTimeout(function () {
check()
throw new Error('timeout')
}, 5000)
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