Comparing version 7.12.3 to 7.13.0
@@ -74,3 +74,3 @@ 'use strict'; | ||
test: Joi.boolean(), | ||
test: [Joi.boolean(), Joi.object()], | ||
extended: Joi.any(), | ||
@@ -111,3 +111,3 @@ onConnect: Joi.func().default(Hoek.ignore), | ||
this._settings = Hoek.clone(Joi.attempt(options || {}, internals.schema.db, 'Invalid database options')); | ||
this._settings = Hoek.cloneWithShallow(Joi.attempt(options || {}, internals.schema.db, 'Invalid database options'), ['test']); | ||
this.name = name; | ||
@@ -528,2 +528,14 @@ this._connection = null; | ||
if (this._settings.test && | ||
typeof this._settings.test === 'object') { | ||
this._settings.test[table] = this._settings.test[table] || []; | ||
const track = { action }; | ||
if (inputs !== null) { | ||
track.inputs = inputs; | ||
} | ||
this._settings.test[table].push(track); | ||
} | ||
request.run(this._connection, options, (err, result) => { | ||
@@ -530,0 +542,0 @@ |
@@ -474,4 +474,4 @@ 'use strict'; | ||
const selection = (!isIds ? this.raw.filter(criteria) | ||
: (isBatch ? this.raw.getAll(RethinkDB.args(criteria)) | ||
: this.raw.get(criteria))); | ||
: (isBatch ? this.raw.getAll(RethinkDB.args(criteria)) | ||
: this.raw.get(criteria))); | ||
@@ -478,0 +478,0 @@ this._run(selection.delete(), 'remove', diag, (err, result) => { |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "7.12.3", | ||
"version": "7.13.0", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -18,3 +18,3 @@ "repository": "git://github.com/hueniverse/penseur", | ||
"items": "2.x.x", | ||
"joi": "10.x.x", | ||
"joi": "11.x.x", | ||
"radix62": "1.x.x", | ||
@@ -26,3 +26,3 @@ "rethinkdb": "2.3.x" | ||
"code": "4.x.x", | ||
"lab": "13.x.x" | ||
"lab": "14.x.x" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
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
75950
1749
+ Addedisemail@3.2.0(transitive)
+ Addedjoi@11.4.0(transitive)
+ Addedpunycode@2.3.1(transitive)
- Removedisemail@2.2.1(transitive)
- Removedjoi@10.6.0(transitive)
Updatedjoi@11.x.x