Socket
Socket
Sign inDemoInstall

cmbf-hapi-restmodel

Package Overview
Dependencies
10
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.16 to 0.6.17

10

lib/base-model.js

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

if(!(data instanceof this)) {
return new this(data);
if(_.isArray(data)) {
var _this = this;
return _.map(data, function(d){ return new _this(d)});
}
else {
return new this(data);
}
}

@@ -143,0 +151,0 @@ else

2

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc