Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rethinkdbdash

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rethinkdbdash - npm Package Compare versions

Comparing version 2.1.4 to 2.1.6

1

lib/pool_master.js

@@ -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))) &&

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc