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

backbone-sql

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-sql - npm Package Compare versions

Comparing version 0.5.7 to 0.5.8

12

lib/cursor.js

@@ -92,8 +92,14 @@ // Generated by CoffeeScript 1.7.1

_appendConditionalWhere = function(query, key, condition, table, compound) {
var whereMethod;
whereMethod = compound ? 'andWhere' : 'where';
if (condition.operator === '!=') {
return query[compound ? 'andWhere' : 'where'](function() {
return this.where(_columnName(key, table), condition.operator, condition.value).orWhereNull(_columnName(key, table));
return query[whereMethod](function() {
if (_.isNull(condition.value)) {
return this.whereNotNull(_columnName(key, table));
} else {
return this.where(_columnName(key, table), condition.operator, condition.value).orWhereNull(_columnName(key, table));
}
});
} else {
return query[compound ? 'andWhere' : 'where'](_columnName(key, table), condition.operator, condition.value);
return query[whereMethod](_columnName(key, table), condition.operator, condition.value);
}

@@ -100,0 +106,0 @@ };

{
"name": "backbone-sql",
"version": "0.5.7",
"version": "0.5.8",
"description": "PostgreSQL, MySQL, and SQLite3 storage for BackboneORM",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Please refer to the following release notes when upgrading your version of BackboneSQL.
### 0.5.8
* Fix for $ne: null in find queries
### 0.5.7

@@ -4,0 +7,0 @@ * Compatability fix for Backbone 1.1.1

Sorry, the diff of this file is not supported yet

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