Socket
Socket
Sign inDemoInstall

bookshelf-modelbase

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf-modelbase - npm Package Compare versions

Comparing version 2.6.4 to 2.6.5

2

lib/index.js

@@ -39,3 +39,3 @@ var extend = require('xtend')

// model is not new or update method explicitly set
if (!model.isNew() || (options.method === 'update' || options.patch === 'true')) {
if ((model && !model.isNew()) || (options && (options.method === 'update' || options.patch === 'true'))) {
var schemaKeys = this.validate._inner.children.map(function (child) {

@@ -42,0 +42,0 @@ return child.key

{
"name": "bookshelf-modelbase",
"version": "2.6.4",
"version": "2.6.5",
"description": "Extensible ModelBase for bookshelf-based model layers",

@@ -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