Comparing version 0.7.4 to 0.7.5
@@ -1,2 +0,2 @@ | ||
// Bookshelf.js 0.7.4 | ||
// Bookshelf.js 0.7.5 | ||
// --------------- | ||
@@ -18,3 +18,3 @@ | ||
var bookshelf = { | ||
VERSION: '0.7.4' | ||
VERSION: '0.7.5' | ||
}; | ||
@@ -21,0 +21,0 @@ |
@@ -11,3 +11,3 @@ var gulp = require('gulp'); | ||
var externals = ['lodash', 'bluebird', 'knex', 'backbone', 'trigger-then', | ||
var externals = ['events', 'buffer', 'lodash', 'bluebird', 'knex', 'backbone', 'trigger-then', | ||
'create-error', 'inflection', 'inherits', 'simple-extend', 'semver']; | ||
@@ -14,0 +14,0 @@ var alwaysExcluded = []; |
@@ -19,4 +19,6 @@ // Collection | ||
_.extend(BookshelfCollection.prototype, Errors, { | ||
BookshelfCollection.EmptyError = Errors.EmptyError; | ||
_.extend(BookshelfCollection.prototype, { | ||
// Used to define passthrough relationships - `hasOne`, `hasMany`, | ||
@@ -23,0 +25,0 @@ // `belongsTo` or `belongsToMany`, "through" a `Interim` model or collection. |
@@ -19,2 +19,4 @@ // Model | ||
BookshelfModel.NotFoundError = Errors.NotFoundError; | ||
_.extend(BookshelfModel.prototype, { | ||
@@ -21,0 +23,0 @@ |
{ | ||
"name": "bookshelf", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "A lightweight ORM for PostgreSQL, MySQL, and SQLite3", | ||
@@ -5,0 +5,0 @@ "main": "bookshelf.js", |
@@ -166,10 +166,12 @@ var Promise = global.testPromise; | ||
it('can require items in the response', function() { | ||
return expect(bookshelf.Collection.extend({tableName: 'posts'}) | ||
return bookshelf.Collection.extend({tableName: 'posts'}) | ||
.query('where', {id: '1000'}) | ||
.fetch({require: true}) | ||
.catch(function(err) { | ||
expect(err.message).to.equal('EmptyError'); | ||
expect(err.message).to.equal('EmptyResponse'); | ||
throw err; | ||
})) | ||
.to.be.rejectedWith(bookshelf.Collection.EmptyError); | ||
}) | ||
.catch(bookshelf.Collection.EmptyError, function(err) { | ||
expect(err.message).to.equal('EmptyResponse'); | ||
}); | ||
}); | ||
@@ -176,0 +178,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1156247
31346