Comparing version 1.5.1 to 1.5.2
@@ -6,4 +6,4 @@ | ||
db.set = co.wrap(db.set, db); | ||
db.get = co.wrap(db.get, db); | ||
db.set = co.wrap(db.set); | ||
db.get = co.wrap(db.get); | ||
@@ -10,0 +10,0 @@ co(function *(){ |
1.5.2 / 2013-09-02 | ||
================== | ||
* fix: preserve receiver with co.wrap() | ||
1.5.1 / 2013-08-11 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -100,5 +99,6 @@ * toString reference. | ||
var args = [].slice.call(arguments); | ||
ctx = ctx || this; | ||
return function(done){ | ||
args.push(done); | ||
fn.apply(ctx || this, args); | ||
fn.apply(ctx, args); | ||
} | ||
@@ -105,0 +105,0 @@ } |
{ | ||
"name": "co", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "generator async flow control goodness", | ||
@@ -14,7 +14,11 @@ "keywords": [ | ||
"should": "~1.2.2", | ||
"mocha": "~1.10.0", | ||
"mocha": "~1.12.0", | ||
"q": "~0.9.4", | ||
"bench": "~0.3.5" | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/visionmedia/co.git" | ||
} | ||
} |
@@ -29,2 +29,5 @@ # Co | ||
- [level-co](https://github.com/juliangruber/level-co) - levelup wrapper | ||
- [mysql-co](https://github.com/sidorares/mysql-co) - mysql wrapper | ||
- [co-each](https://github.com/juliangruber/co-each) - parallel foreach | ||
- [co-wait](https://github.com/juliangruber/co-wait) - setTimeout wrapper | ||
@@ -255,3 +258,3 @@ ## Example | ||
Optionally you may pass the `fn`'s receiver as the `ctx` as shown here: | ||
An example with redis: | ||
@@ -264,4 +267,4 @@ ```js | ||
db.set = co.wrap(db.set, db) | ||
db.get = co.wrap(db.get, db) | ||
db.set = co.wrap(db.set) | ||
db.get = co.wrap(db.get) | ||
@@ -268,0 +271,0 @@ co(function *(){ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
34449
998
352
8