Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.5 to 0.6.6

10

lib/base-model.js

@@ -216,3 +216,3 @@ var Joi = require('joi'),

var service = _this.constructor.handlers[key];
if(service) {
if(_.isObject(service)) {
service.model = _this;

@@ -224,2 +224,10 @@ service.Model = _this.constructor;

}
else if(_.isFunction(service)) {
return service({
model: _this,
Model: _this.constructor,
data: result,
credentials: options.credentials
});
}
else {

@@ -226,0 +234,0 @@ return result

2

package.json
{
"name": "cmbf-hapi-restmodel",
"version": "0.6.5",
"version": "0.6.6",
"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