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

if-async

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-async - npm Package Compare versions

Comparing version 3.7.2 to 3.7.3

21

index.js

@@ -159,11 +159,26 @@ var util = require('util')

function elseNoop(callback) {
function elseNoop() {
var callback = arguments[arguments.length - 1]
if (typeof callback !== 'function') {
throw new Error('expected a callback function')
}
setImmediate(callback)
}
function elseTrue(callback) {
function elseTrue() {
var callback = arguments[arguments.length - 1]
if (typeof callback !== 'function') {
throw new Error('expected a callback function')
}
callback(null, true)
}
function elseFalse(callback) {
function elseFalse() {
var callback = arguments[arguments.length - 1]
if (typeof callback !== 'function') {
throw new Error('expected a callback function')
}
callback(null, false)

@@ -170,0 +185,0 @@ }

2

package.json
{
"name": "if-async",
"description": "",
"version": "3.7.2",
"version": "3.7.3",
"keywords": [

@@ -6,0 +6,0 @@ "async"

@@ -96,3 +96,3 @@ # if-async [![Build Status](https://secure.travis-ci.org/kessler/if-async.png?branch=master)](http://travis-ci.org/kessler/if-async)

#### Consequent
in the context of ifAsync and consequent is an async function that is invoked as a result of an evaluation of a predicate, e.g
in the context of ifAsync a consequent is an async function that is invoked as a result of an evaluation of a predicate, e.g
```javascript

@@ -99,0 +99,0 @@ function consequent(callback) {

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