Comparing version 0.6.1 to 0.7.0
@@ -1,2 +0,2 @@ | ||
var Promise = require('../node_modules/promise/lib/es6-extensions'); | ||
var Promise = require('promise/lib/es6-extensions'); | ||
@@ -27,5 +27,5 @@ /** | ||
*/ | ||
suspend.async = function async(generator) { | ||
suspend.callback = function callback(generator) { | ||
if (!isGeneratorFunction(generator)) { | ||
throw new Error('First .async() argument must be a GeneratorFunction.'); | ||
throw new Error('First .callback() argument must be a GeneratorFunction.'); | ||
} | ||
@@ -217,7 +217,2 @@ | ||
} | ||
// check if a thunk was yielded | ||
if (typeof ret.value === 'function') { | ||
ret.value(this.resume.bind(this)); | ||
} | ||
}; | ||
@@ -224,0 +219,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"keywords": ["async", "generator", "yield", "callback", "promise", "flow", "control", "suspend"], | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"repository": { | ||
@@ -14,3 +14,3 @@ "type": "git", | ||
"scripts": { | ||
"test": "node ./node_modules/mocha/bin/mocha --harmony-generators --reporter list", | ||
"test": "node ./node_modules/mocha/bin/mocha --harmony --reporter list", | ||
"test-es5": "node test-es5/run.js" | ||
@@ -17,0 +17,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
51698
14
1193