Comparing version 0.1.38 to 0.1.39
13
aa02.js
@@ -166,15 +166,14 @@ // Callbacks vs Coroutines | ||
typeof val.then === 'function' ? promisecb(val, cb) : | ||
objcb(val, cb); }, | ||
val.constructor === Object ? objcb(val, cb) : | ||
valcb(val, cb); }, | ||
Array: parcb, | ||
Error: valcb, | ||
Promise: promisecb, | ||
$: valcb | ||
/* | ||
function (val, cb) { | ||
$: function (val, cb) { | ||
typeof val.next === 'function' && typeof val['throw'] === 'function' ? gtorcb(val, cb) : | ||
typeof val.then === 'function' ? promisecb(val, cb) : | ||
val instanceof Error ? nextTick(cb, val) : | ||
//val instanceof Error ? nextTick(cb, val) : | ||
val.constructor === Array ? parcb(val, cb) : | ||
objcb(val, cb); } | ||
*/ | ||
val.constructor === Object ? objcb(val, cb) : | ||
valcb(val, cb); } | ||
}; | ||
@@ -181,0 +180,0 @@ |
{ | ||
"name": "aa", | ||
"version": "0.1.38", | ||
"version": "0.1.39", | ||
"description": "aa - async-await. co like library, go like channel, thunkify or promisify wrap package.", | ||
@@ -5,0 +5,0 @@ "main": "aa.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30701
5
894