Comparing version 8.1.0 to 8.1.1
@@ -577,3 +577,3 @@ 'use strict'; | ||
const error = Boom.internal('Simulated database error'); | ||
const error = Table.error(Boom.internal('Simulated database error'), { table, action: method }); | ||
error.flags = Hoek.applyToDefaults({ willReconnect: true, disconnected: true }, options.flags || {}); | ||
@@ -587,7 +587,7 @@ process.nextTick(() => each(error)); | ||
this.tables[table][method] = internals.disabled(options); | ||
this.tables[table][method] = internals.disabled(table, method, options); | ||
}; | ||
internals.disabled = function (options) { | ||
internals.disabled = function (table, method, options) { | ||
@@ -606,3 +606,3 @@ const value = options.value; | ||
return Promise.reject(Boom.internal('Simulated database error')); | ||
return Promise.reject(Table.error(Boom.internal('Simulated database error'), { table, action: method })); | ||
}; | ||
@@ -609,0 +609,0 @@ }; |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur", |
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
67207