rethinkdbdash
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -163,2 +163,3 @@ var util = require('util'); | ||
if (((server.network.canonical_addresses[k].host === pool.options.connection.host) || | ||
(server.network.hostname === pool.options.connection.host) || | ||
(helper.localhostAliases.hasOwnProperty(server.network.canonical_addresses[k].host) && | ||
@@ -165,0 +166,0 @@ helper.localhostAliases.hasOwnProperty(pool.options.connection.host))) && |
{ | ||
"name": "rethinkdbdash", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -122,1 +122,35 @@ var config = require(__dirname+'/config.js'); | ||
/* | ||
Frames: | ||
[ 1, 1, 1, 'adult', 1 ] | ||
Error: | ||
Cannot convert `NaN` to JSON in: | ||
r.db("aa802b7a7ec470632ddb3c515e7ab30b").table("fe82af2d2203e8fbed96e0cbbc29e936") | ||
.merge(function(var_1) { | ||
return r.branch(var_1("location").eq("US"), { | ||
adult: var_1("age").gt(NaN) | ||
^^^ | ||
}, { | ||
radult: var_1("age").gt(18) | ||
}) | ||
}) | ||
*/ | ||
It('Test backtrace for r.db(dbName).table(tableName).merge(function(user) { return r.branch( user("location").eq("US"), { adult: user("age").gt(NaN) }, {radult: user("age").gt(18) }) })', function* (done) { | ||
try { | ||
r.nextVarId=1; | ||
yield r.db(dbName).table(tableName).merge(function(user) { return r.branch( user("location").eq("US"), { adult: user("age").gt(NaN) }, {radult: user("age").gt(18) }) }).run() | ||
done(new Error("Should have thrown an error")) | ||
} | ||
catch(e) { | ||
if (e.message === "Cannot convert `NaN` to JSON in:\nr.db(\""+dbName+"\").table(\""+tableName+"\")\n .merge(function(var_1) {\n return r.branch(var_1(\"location\").eq(\"US\"), {\n adult: var_1(\"age\").gt(NaN)\n ^^^ \n }, {\n radult: var_1(\"age\").gt(18)\n })\n })\n") { | ||
done() | ||
} | ||
else { | ||
done(e); | ||
} | ||
} | ||
}) | ||
Sorry, the diff of this file is too big to display
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
821518
24875