🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

if-err

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-err - npm Package Compare versions

Comparing version

to
0.1.1

2

package.json
{
"name": "if-err",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,4 +21,9 @@ # ifErr

asyncFunc(function (err) {
error.if(err, '');
error.if(err, 'bad things happened');
});
asyncFunc(function (err, data) {
error.if(err, 'bad things happened');
error.ifNot(data, 'data wasn\'t returned');
});
```

@@ -25,0 +30,0 @@

Sorry, the diff of this file is not supported yet