bookshelf-modelbase
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -57,7 +57,8 @@ var _ = require('lodash'); | ||
* Naive findAll - fetches all data for `this` | ||
* @param {Object} filter (optional) | ||
* @param {Object} options (optional) | ||
* @return {Promise(bookshelf.Collection)} Bookshelf Collection of all Models | ||
* @return {Promise(bookshelf.Collection)} Bookshelf Collection of Models | ||
*/ | ||
findAll: function (options) { | ||
return bookshelf.Collection.forge([], { model: this }).fetch(options); | ||
findAll: function (filter, options) { | ||
return this.forge(filter).fetchAll(options); | ||
}, | ||
@@ -64,0 +65,0 @@ |
{ | ||
"name": "bookshelf-modelbase", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Extensible ModelBase for bookshelf-based model layers", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14949
265