Comparing version 8.12.0 to 8.12.1
@@ -626,7 +626,11 @@ 'use strict'; | ||
this.tables[table].changes = function (criteria, each) { | ||
this.tables[table].changes = function (criteria, changesOptions) { | ||
if (typeof changesOptions !== 'object') { | ||
changesOptions = { handler: changesOptions }; | ||
} | ||
const error = Table.error(Boom.internal('Simulated database error'), { table, action: method }); | ||
error.flags = Hoek.applyToDefaults({ willReconnect: true, disconnected: true }, options.flags || {}); | ||
process.nextTick(() => each(error)); | ||
process.nextTick(() => changesOptions.handler(error)); | ||
return { close: Hoek.ignore }; | ||
@@ -633,0 +637,0 @@ }; |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "8.12.0", | ||
"version": "8.12.1", | ||
"repository": "git://github.com/hueniverse/penseur", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
76979
1897