Socket
Socket
Sign inDemoInstall

cmbf-hapi-restmodel

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmbf-hapi-restmodel - npm Package Compare versions

Comparing version 0.6.11 to 0.6.12

13

lib/base-model.js

@@ -14,4 +14,10 @@ var Joi = require('joi'),

*/
var _parseFilter = P.method(function(model, filter) {
return filter;
var _parseFilter = P.method(function(model, options) {
if(options.filter) {
return options.filter;
}
else if(options.params && options.params.filter) {
return options.params.filter;
}
});

@@ -89,3 +95,2 @@

static list(options) {
var _this = this;
log.debug("list %s", this.constructor.name);

@@ -95,3 +100,3 @@ options = options || {};

return _parseFilter(this, options.filter).then(this.callStaticHandler('pre-list', options)).then((query) => {
return _parseFilter(this, options).then(this.callStaticHandler('pre-list', options)).then((query) => {

@@ -98,0 +103,0 @@ return coll.find(query).toArray().then((results) => {

{
"name": "cmbf-hapi-restmodel",
"version": "0.6.11",
"version": "0.6.12",
"author": "Joel Grenon <joelgrenon@covistra.com>",

@@ -5,0 +5,0 @@ "description": "Hapi plugin building a REST Api from Joi schema, backed by covistra-mongo plugin",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc