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.10.0 to 2.10.1

4

lib/index.js

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

options = extend({ patch: true, require: true }, options)
return this.forge({ id: options.id }).fetch(options)
return this.forge({ [this.prototype.idAttribute]: options.id }).fetch(options)
.then(function (model) {

@@ -130,3 +130,3 @@ return model ? model.save(data, options) : undefined

options = extend({ require: true }, options)
return this.forge({ id: options.id })
return this.forge({ [this.prototype.idAttribute]: options.id })
.destroy(options)

@@ -133,0 +133,0 @@ },

{
"name": "bookshelf-modelbase",
"version": "2.10.0",
"version": "2.10.1",
"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