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

putil-waterfall

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

putil-waterfall - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

5

lib/waterfall.js

@@ -35,5 +35,6 @@ /* putil-waterfall

try {
const o = fn(...args, next);
const o = fn(next, ...args);
if (o && (o instanceof Promise ||
(typeof o.then === 'function' && typeof o.catch === 'function'))) {
(typeof o.then === 'function' &&
typeof o.catch === 'function'))) {
o.catch(err => {

@@ -40,0 +41,0 @@ callback(err);

2

package.json
{
"name": "putil-waterfall",
"description": "Simple, fast async waterfall NodeJs module for ES6.",
"version": "1.0.7",
"version": "1.0.8",
"author": "Panates Ltd.",

@@ -6,0 +6,0 @@ "contributors": [

@@ -35,3 +35,3 @@ # putil-waterfall

},
function(arg1, arg2, next) {
function(next, arg1, arg2) {
let sum = arg1 + arg2;

@@ -41,3 +41,3 @@ console.log('Current sum: ', sum);

},
function(arg1, arg2, arg3, next) {
function(next, arg1, arg2, arg3) {
let sum = arg1 + arg2 + arg3;

@@ -44,0 +44,0 @@ console.log('Current sum: ', sum);

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