Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

co

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

4

examples/redis.js

@@ -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 *(){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc