co-assert-timeout
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,3 +7,3 @@ var co = require('co') | ||
if (isGenerator(fn) || isGeneratorFunction(fn)) | ||
fn = co.call(this, fn) | ||
fn = co(fn) | ||
if (typeof timeout === 'string') | ||
@@ -26,3 +26,3 @@ timeout = ms(timeout) | ||
fn(function () { | ||
fn.call(this, function () { | ||
if (called) | ||
@@ -29,0 +29,0 @@ return logger && logger.apply(ctx, arguments) |
{ | ||
"name": "co-assert-timeout", | ||
"description": "Assert a thunk or generator's timeout co-style", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -21,6 +21,6 @@ "name": "Jonathan Ong", | ||
"dependencies": { | ||
"ms": "~0.6.1", | ||
"co": "~2.3.0" | ||
"ms": "~0.6.1" | ||
}, | ||
"devDependencies": { | ||
"co": ">= 3.0.1", | ||
"mocha": "*", | ||
@@ -27,0 +27,0 @@ "should": "*" |
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
4804
1
3