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 8.0.1 to 8.0.2

7

lib/db.js

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

const Boom = require('boom');
const Bounce = require('bounce');
const Hoek = require('hoek');

@@ -186,2 +187,3 @@ const Joi = require('joi');

catch (err) {
Bounce.rethrow(err, 'system');
await loop(err);

@@ -195,2 +197,3 @@ }

catch (err) {
Bounce.rethrow(err, 'system');
await loop(err);

@@ -446,3 +449,3 @@ }

if (!this._connection) {
throw new Error('Database disconnected');
throw new Boom('Database disconnected');
}

@@ -464,3 +467,3 @@

if (result.errors) {
throw new Error(result.first_error);
throw new Boom(result.first_error);
}

@@ -467,0 +470,0 @@

@@ -36,7 +36,7 @@ 'use strict';

if (!allowArray) {
throw new Error('Array of ids not supported');
throw new Boom('Array of ids not supported');
}
if (!ids.length) {
throw new Error('Empty array of ids not supported');
throw new Boom('Empty array of ids not supported');
}

@@ -60,3 +60,3 @@

if (id.id === undefined) {
throw new Error('Invalid object id');
throw new Boom('Invalid object id');
}

@@ -70,3 +70,3 @@

throw new Error('Invalid null or undefined id');
throw new Boom('Invalid null or undefined id');
}

@@ -77,3 +77,3 @@

throw new Error(`Invalid id length: ${id}`);
throw new Boom(`Invalid id length: ${id}`);
}

@@ -80,0 +80,0 @@

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

if (result.length !== 1) {
throw new Error('Found multiple items');
throw new Boom('Found multiple items');
}

@@ -350,3 +350,3 @@

if (!result.replaced) {
throw new Error('No item found to update');
throw new Boom('No item found to update');
}

@@ -382,3 +382,3 @@

throw new Error('No item found to remove');
throw new Boom('No item found to remove');
}

@@ -410,3 +410,3 @@ }

if (!this._db._connection) {
throw new Error('Database disconnected');
throw new Boom('Database disconnected');
}

@@ -460,3 +460,3 @@

if (!this._db._connection) {
throw internals.Table.error(new Error('Database disconnected'), track);
throw internals.Table.error(new Boom('Database disconnected'), track);
}

@@ -463,0 +463,0 @@

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

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

"engines": {
"node": ">=8.8.0"
"node": ">=8.9.0"
},
"dependencies": {
"boom": "6.x.x",
"boom": "7.x.x",
"bounce": "1.x.x",
"hoek": "5.x.x",

@@ -25,3 +26,3 @@ "joi": "13.x.x",

"lab": "15.x.x",
"teamwork": "2.x.x"
"teamwork": "3.x.x"
},

@@ -28,0 +29,0 @@ "scripts": {

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