async-compat
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "async-compat", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures", | ||
@@ -42,4 +42,4 @@ "main": "index.js", | ||
"mocha": "^7.1.1", | ||
"prettier": "^2.0.2" | ||
"prettier": "^2.0.4" | ||
} | ||
} |
@@ -19,3 +19,3 @@ ## async-compat | ||
compat.asyncFunction(fn, false /* no callback */, 1, function (err, result) { | ||
compat.asyncFunction(fn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err); | ||
@@ -30,3 +30,3 @@ assert.equal(result, 4); | ||
compat.asyncFunction(errorFn, false /* no callback */, 1, function (err, result) { | ||
compat.asyncFunction(errorFn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!!err); | ||
@@ -43,3 +43,3 @@ }); | ||
compat.asyncFunction(callbackFn, true /* use callback */, 1, function (err, result) { | ||
compat.asyncFunction(callbackFn, true /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err); | ||
@@ -54,3 +54,3 @@ assert.equal(result, 4); | ||
compat.asyncFunction(errorCallbackFn, true /* use callback */, 1, function (err, result) { | ||
compat.asyncFunction(errorCallbackFn, true /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!!err); | ||
@@ -67,3 +67,3 @@ }); | ||
compat.asyncFunction(promiseFn, false /* no callback */, 1, function (err, result) { | ||
compat.asyncFunction(promiseFn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err); | ||
@@ -78,5 +78,5 @@ assert.equal(result, 4); | ||
compat.errorPromiseFn(promiseFn, false /* no callback */, 1, function (err, result) { | ||
compat.errorPromiseFn(promiseFn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!!err); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6766