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

proback.js

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proback.js - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

6

lib/Proback.js

@@ -8,8 +8,8 @@ module.exports = {

},
forAll: function ( promises, callback ) {
forAll: function ( promises, callback, defaultRes ) {
return new Promise( (resolve, reject) => {
Promise.all( promises )
.then( (res) => {
if (callback) callback(null, res)
resolve( res )
if (callback) callback(null, defaultRes || res)
resolve( defaultRes || res )
} )

@@ -16,0 +16,0 @@ .catch( (reason) => {

{
"name": "proback.js",
"version": "1.5.0",
"version": "1.5.1",
"description": "Tiny libary to aid Promise/Callback dual API design",

@@ -5,0 +5,0 @@ "keywords": [

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