Comparing version 0.0.4 to 0.0.5
@@ -10,3 +10,3 @@ (function() { | ||
return await asyncy.inline(me,f,...arguments); | ||
} | ||
}; | ||
}, | ||
@@ -30,3 +30,3 @@ type = typeof(functionOrObject); | ||
return new Promise((resolve,reject) => { | ||
let outerresult | ||
let outerresult; | ||
try { | ||
@@ -53,3 +53,3 @@ outerresult = f.call(thisArg,...args,(err,...result) => { | ||
if(outerresult!==UNDEFINED) { | ||
if(outerresult instanceof Promise) { outerresult.then(result => resolve({result})); } | ||
if(outerresult instanceof Promise) { outerresult.then((result) => resolve({result})); } | ||
else if(outerresult instanceof Error) { resolve({err:outerresult}); } | ||
@@ -64,3 +64,3 @@ else { resolve({result:outerresult}); } | ||
}); | ||
} | ||
}; | ||
if(typeof(module)!=="undefined") { | ||
@@ -67,0 +67,0 @@ module.exports = asyncy; |
{ | ||
"name": "asyncy", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A utility for creating aysnc functions", | ||
@@ -5,0 +5,0 @@ "engines": {}, |
# asyncy | ||
A utility for creating aysnc functions. | ||
NOTE: There is now a company called Asyncy. They are doing pretty cool stuff with microservices. To avoid confusion and trademark issues, this GitHUb repository and the associated NPM packages are being moved over to their control. | ||
# Usage | ||
@@ -90,2 +92,4 @@ | ||
2018-06-23 v0.0.5 Transfering ownership to asyncy.com | ||
2017-07-07 v0.0.4 Codacy driven style, error and security improvements. | ||
@@ -92,0 +96,0 @@ |
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
101
9749
7