UNPKG

validate-reql

Version:

allows validation of rethinkdb reql queries using a whitelist of reql validators. this was specifically designed to work w/ rethinkdb-primus.

10 lines (7 loc) 203 B
var UnexpectedError = require('./unexpected.js') module.exports = assertUnexpected function assertUnexpected (statement, msg, data) { if (!statement) { throw new UnexpectedError(msg, data) } }