Comparing version 6.1.2 to 6.2.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190940
4558