co-rethinkdb
Advanced tools
Comparing version 0.1.0 to 0.1.1
16
index.js
@@ -29,4 +29,18 @@ var r = require('rethinkdb') | ||
var Cursor = require('rethinkdb/cursor').Cursor | ||
, toArray = Cursor.prototype.toArray | ||
var next = Cursor.prototype.next | ||
Cursor.prototype.next = function() { | ||
return next.bind(this) | ||
} | ||
var each = Cursor.prototype.each | ||
Cursor.prototype.each = function(cb) { | ||
this.next = next | ||
return each.bind(this, cb) | ||
} | ||
var toArray = Cursor.prototype.toArray | ||
Cursor.prototype.toArray = function() { | ||
this.each = each | ||
this.next = next | ||
return toArray.bind(this) | ||
@@ -33,0 +47,0 @@ } |
{ | ||
"name": "co-rethinkdb", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Markus Ast <npm.m@rkusa.st>", | ||
@@ -5,0 +5,0 @@ "description": "Generator based querying goodness for RethinkDB", |
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
4985
40