async-compat
Advanced tools
Comparing version 1.5.8 to 1.6.0
{ | ||
"name": "async-compat", | ||
"version": "1.5.8", | ||
"version": "1.6.0", | ||
"description": "Compatibility functions for writing libraries that support synchronous, callback and promise signatures", | ||
@@ -36,4 +36,2 @@ "keywords": [ | ||
"build": "tsds build", | ||
"deploy": "tsds deploy", | ||
"docs": "tsds docs", | ||
"format": "biome check --write --unsafe src/ test/", | ||
@@ -52,5 +50,3 @@ "test": "tsds test:node --no-timeouts", | ||
"@types/node": "^22.10.5", | ||
"mocha-compat": "^3.6.2", | ||
"pinkie-promise": "^2.0.1", | ||
"ts-swc-loaders": "^1.10.3" | ||
"pinkie-promise": "^2.0.1" | ||
}, | ||
@@ -57,0 +53,0 @@ "engines": { |
@@ -20,3 +20,2 @@ ## async-compat | ||
compat.asyncFunction(fn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err, err ? err.message : ''); | ||
assert.equal(result, 4); | ||
@@ -43,3 +42,2 @@ }); | ||
compat.asyncFunction(callbackFn, true /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err, err ? err.message : ''); | ||
assert.equal(result, 4); | ||
@@ -66,3 +64,2 @@ }); | ||
compat.asyncFunction(promiseFn, false /* no callbacks */, 1, function (err, result) { | ||
assert.ok(!err, err ? err.message : ''); | ||
assert.equal(result, 4); | ||
@@ -69,0 +66,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29838
4
306
74
0