Comparing version 0.6.0 to 0.6.1
var p = require('p-promise'); | ||
var p = require('q'); | ||
@@ -16,3 +16,3 @@ var coros = []; | ||
try { | ||
val = error ? coro.generator.throw(error) : coro.generator.send(Array.prototype.slice.call(arguments, 1)); | ||
val = error ? coro.generator.throw(error) : coro.generator.next(Array.prototype.slice.call(arguments, 1)); | ||
} | ||
@@ -32,3 +32,3 @@ catch (e) { | ||
try { | ||
val = error ? coro.generator.throw(error) : coro.generator.send(res); | ||
val = error ? coro.generator.throw(error) : coro.generator.next(res); | ||
} | ||
@@ -48,3 +48,3 @@ catch (e) { | ||
try { | ||
val = error ? coro.generator.throw(error) : coro.generator.send(arguments[n]); | ||
val = error ? coro.generator.throw(error) : coro.generator.next(arguments[n]); | ||
} | ||
@@ -64,3 +64,3 @@ catch (e) { | ||
try { | ||
val = coro.generator.send(Array.prototype.slice.call(arguments, 0)); | ||
val = coro.generator.next(Array.prototype.slice.call(arguments, 0)); | ||
} | ||
@@ -80,3 +80,3 @@ catch (e) { | ||
try { | ||
val = coro.generator.send(first); | ||
val = coro.generator.next(first); | ||
} | ||
@@ -96,3 +96,3 @@ catch (e) { | ||
try { | ||
val = coro.generator.send(arguments[n]); | ||
val = coro.generator.next(arguments[n]); | ||
} | ||
@@ -156,3 +156,3 @@ catch (e) { | ||
try { | ||
val = coro.generator.send(value); | ||
val = coro.generator.next(value); | ||
} | ||
@@ -159,0 +159,0 @@ catch (e) { |
{ | ||
"name" : "coro", | ||
"version" : "0.6.0", | ||
"version" : "0.6.1", | ||
"main" : "lib/coro", | ||
@@ -12,5 +12,5 @@ "author": "Tom Yandell <tom@yandell.me.uk> (https://github.com/tomyan)", | ||
"dependencies" : { | ||
"p-promise" : ">= 0.2.4" | ||
"q" : ">= 0.9.6" | ||
}, | ||
"keywords" : [ "coroutine", "coroutines", "generator", "generators", "harmony", "async" ] | ||
} |
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
19614
+ Addedq@>= 0.9.6
+ Addedasap@2.0.6(transitive)
+ Addedpop-iterate@1.0.1(transitive)
+ Addedq@2.0.3(transitive)
+ Addedweak-map@1.0.8(transitive)
- Removedp-promise@>= 0.2.4
- Removedp-promise@0.5.0(transitive)