Comparing version 1.3.0 to 1.3.1
@@ -43,3 +43,3 @@ // Load Modules | ||
if (result.length === 0) { | ||
if (!result) { | ||
return callback(null, null); | ||
@@ -198,3 +198,3 @@ } | ||
cursor.close(); | ||
return next(null, results); | ||
return next(null, results.length ? results : null); | ||
}); | ||
@@ -201,0 +201,0 @@ }); |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur", |
@@ -113,3 +113,3 @@ // Load modules | ||
expect(err).to.not.exist(); | ||
expect(result).to.deep.equal([]); | ||
expect(result).to.deep.equal(null); | ||
done(); | ||
@@ -116,0 +116,0 @@ }); |
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
40810