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 1.12.3 to 1.12.4

2

package.json
{
"name": "rethinkdbdash",
"version": "1.12.3",
"version": "1.12.4",
"description": "A Node.js driver for RethinkDB with promises and a connection pool",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -162,4 +162,14 @@ var config = require(__dirname+'/config.js');

})
It("`insert` work with dates", function* (done) {
It("`insert` work with dates - 1", function* (done) {
try {
result = yield r.db(dbName).table(tableName).insert({name: "Michel", age: 27, birthdate: new Date()}).run()
assert.deepEqual(result.inserted, 1);
done();
}
catch(e) {
done(e);
}
})
It("`insert` work with dates - 2", function* (done) {
try {
result = yield r.db(dbName).table(tableName).insert([{name: "Michel", age: 27, birthdate: new Date()}, {name: "Sophie", age: 23}]).run()

@@ -173,2 +183,30 @@ assert.deepEqual(result.inserted, 2);

})
It("`insert` work with dates - 3", function* (done) {
try {
result = yield r.db(dbName).table(tableName).insert({
field: 'test',
field2: { nested: 'test' },
date: new Date()
}).run()
assert.deepEqual(result.inserted, 1);
done();
}
catch(e) {
done(e);
}
})
It("`insert` work with dates - 4", function* (done) {
try {
result = yield r.db(dbName).table(tableName).insert({
field: 'test',
field2: { nested: 'test' },
date: r.now()
}).run()
assert.deepEqual(result.inserted, 1);
done();
}
catch(e) {
done(e);
}
})

@@ -175,0 +213,0 @@ It("`insert` should throw if non valid option", function* (done) {

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