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.1.2 to 6.2.0

22

lib/db.js

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

exports = module.exports = class {
exports = module.exports = internals.Db = class {

@@ -478,3 +478,3 @@ constructor(name, options) {

or(values) {
static or(values) {

@@ -484,3 +484,3 @@ return internals.special('or', values);

contains(values, options) {
static contains(values, options) {

@@ -490,3 +490,3 @@ return internals.special('contains', values, options);

not(values) {
static not(values) {

@@ -498,3 +498,3 @@ return internals.special('or', [].concat(values), { not: true });

unset() {
static unset() {

@@ -506,3 +506,3 @@ return internals.special('unset');

increment(value) {
static increment(value) {

@@ -512,3 +512,3 @@ return internals.special('increment', value);

append(value, options) {
static append(value, options) {

@@ -520,2 +520,10 @@ return internals.special('append', value, options); // { single: false }

internals.Db.prototype.or = internals.Db.or;
internals.Db.prototype.contains = internals.Db.contains;
internals.Db.prototype.not = internals.Db.not;
internals.Db.prototype.unset = internals.Db.unset;
internals.Db.prototype.increment = internals.Db.increment;
internals.Db.prototype.append = internals.Db.append;
internals.difference = function (superset, subset) {

@@ -522,0 +530,0 @@

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

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

@@ -82,2 +82,13 @@ 'use strict';

it('decorates static methods', (done) => {
expect(Penseur.Db.or).to.exist();
expect(Penseur.Db.contains).to.exist();
expect(Penseur.Db.not).to.exist();
expect(Penseur.Db.unset).to.exist();
expect(Penseur.Db.append).to.exist();
expect(Penseur.Db.increment).to.exist();
done();
});
describe('connect()', () => {

@@ -84,0 +95,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