Comparing version 1.0.0 to 1.0.1
1.0.1 / 2016-02-16 | ||
================== | ||
* move generator check above to prevent generators for being mistaken as async functions | ||
* remove unused function | ||
0.1.4 / 2015-01-21 | ||
@@ -3,0 +9,0 @@ ================== |
26
index.js
@@ -38,2 +38,7 @@ /** | ||
// generator | ||
if (generator(fn)) { | ||
return co(fn).apply(ctx, args.concat(done)); | ||
} | ||
// async | ||
@@ -49,7 +54,2 @@ if (fn.length > args.length) { | ||
// generator | ||
if (generator(fn)) { | ||
return co(fn).apply(ctx, args.concat(done)); | ||
} | ||
// sync | ||
@@ -115,17 +115,1 @@ return sync(fn, done).apply(ctx, args); | ||
} | ||
/** | ||
* Determi | ||
*/ | ||
/** | ||
* Once | ||
*/ | ||
function once(fn) { | ||
return function() { | ||
var ret = fn.apply(this, arguments); | ||
fn = noop; | ||
return ret; | ||
}; | ||
} |
{ | ||
"name": "wrapped", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -26,2 +26,2 @@ "description": "consistent interface for ", | ||
] | ||
} | ||
} |
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
5028
92