rethinkdbdash
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -265,3 +265,3 @@ var Promise = require('bluebird'); | ||
var resolve = function(data) { | ||
return callback(null, data).then(function() { | ||
return callback(data).then(function() { | ||
if (self._closed === false) { | ||
@@ -279,3 +279,3 @@ return self._next().then(resolve).error(function(error) { | ||
self._next().then(resolve).error(function(error) { | ||
return self._next().then(resolve).error(function(error) { | ||
// We can silence error when the cursor is closed as this | ||
@@ -282,0 +282,0 @@ if ((error.message !== 'You cannot retrieve data from a cursor that is closed.') && |
{ | ||
"name": "rethinkdbdash", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -111,3 +111,3 @@ var config = require('./config.js'); | ||
var promisesWait = 0; | ||
cursor.eachAsync(function(err, result) { | ||
cursor.eachAsync(function(result) { | ||
history.push(count); | ||
@@ -127,10 +127,7 @@ count++; | ||
assert.deepEqual(history, expected) | ||
done(); | ||
} | ||
resolve(); | ||
}, 1); | ||
}); | ||
}) | ||
}).then(done); | ||
} | ||
@@ -137,0 +134,0 @@ catch(e) { |
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
819064
24993