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

bookshelf-modelbase-plus

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf-modelbase-plus - npm Package Compare versions

Comparing version 2.11.2 to 2.11.3

5

lib/index.js

@@ -374,4 +374,5 @@ const _ = require('lodash');

// validate both to ensure they are both coerced to their types (i.e. 0 vs false)
existing = model.validateSave(null, existing, { method: 'update', patch: true }); // coerce values
toSave = model.validateSave(null, toSave, { method: 'update', patch: true });
const clone = model.clone();
existing = clone.validateSave(null, existing, { method: 'update', patch: true }); // coerce values
toSave = clone.validateSave(null, toSave, { method: 'update', patch: true });
} catch (validationError) {

@@ -378,0 +379,0 @@ throw Object.assign(new Error(`Validation error: ${validationError}`), { name: this.VALIDATION_ERROR });

2

package.json
{
"name": "bookshelf-modelbase-plus",
"version": "2.11.2",
"version": "2.11.3",
"description": "Extended functionality for REST operations with validation, filtering, ordering, importing records.",

@@ -5,0 +5,0 @@ "main": "./lib",

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