Comparing version 2.4.3 to 2.5.0
@@ -68,2 +68,13 @@ var q = require('q'); | ||
Cursor.prototype.serialForEach = function (iterator) { | ||
var iterWrapper = function () { | ||
return this.next().then(function (item) { | ||
if(!item){ return; } | ||
return q(iterator(item)).then(iterWrapper); | ||
}.bind(this)); | ||
}.bind(this); | ||
return iterWrapper(); | ||
}; | ||
Cursor.prototype.skip = function (value) { | ||
@@ -70,0 +81,0 @@ this._cursor.skip(value); |
{ | ||
"name": "cosa", | ||
"version": "2.4.3", | ||
"version": "2.5.0", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
89066
2547