Comparing version
{ | ||
"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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
30507
4.04%33
17.86%0
-100%