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

bookshelf

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf - npm Package Compare versions

Comparing version 0.7.4 to 0.7.5

4

bookshelf.js

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

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