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

penseur

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

penseur - npm Package Compare versions

Comparing version 6.5.0 to 6.5.1

2

lib/db.js

@@ -472,3 +472,3 @@ 'use strict';

Items.parallel(Object.keys(this.tables), each, callback);
Items.serial(Object.keys(this.tables), each, callback);
}

@@ -475,0 +475,0 @@

{
"name": "penseur",
"description": "Lightweight RethinkDB wrapper",
"version": "6.5.0",
"version": "6.5.1",
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur",

@@ -8,2 +8,3 @@ 'use strict';

const Penseur = require('..');
const RethinkDB = require('rethinkdb');

@@ -125,3 +126,3 @@

it('generates keys', (done) => {
it('generates keys (same table)', (done) => {

@@ -141,2 +142,31 @@ const db = new Penseur.Db('penseurtest');

it('generates key (different tables)', (done) => {
const db = new Penseur.Db('penseurtest');
db.connect((err) => {
expect(err).to.not.exist();
RethinkDB.dbDrop(db.name).run(db._connection, (err, dropped) => {
expect(err).to.not.exist();
db.establish({ test1: { id: { type: 'increment', table: 'allocate' } }, test2: { id: { type: 'increment', table: 'allocate' } } }, (err) => {
expect(err).to.not.exist();
db.test1.insert({ a: 1 }, (err, keys1) => {
expect(err).to.not.exist();
expect(keys1).to.equal('1');
db.test2.insert({ a: 1 }, (err, keys2) => {
expect(err).to.not.exist();
expect(keys2).to.equal('1');
db.close(done);
});
});
});
});
});
});
it('completes an existing incomplete allocation record', (done) => {

@@ -143,0 +173,0 @@

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