backbone-sql
Advanced tools
Comparing version 0.5.1 to 0.5.2
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -5,0 +5,0 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) |
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -5,0 +5,0 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) |
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -472,3 +472,7 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) | ||
if (_.isNull(related_json.id)) { | ||
model_json[include_key] = null; | ||
if (this.model_type.relation(include_key).type === 'hasMany') { | ||
model_json[include_key] = []; | ||
} else { | ||
model_json[include_key] = null; | ||
} | ||
} else if (!_.isEmpty(related_json)) { | ||
@@ -475,0 +479,0 @@ reverse_relation_schema = this.model_type.relation(include_key).reverse_relation.model_type.schema(); |
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -5,0 +5,0 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) |
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -5,0 +5,0 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) |
// Generated by CoffeeScript 1.6.3 | ||
/* | ||
backbone-sql.js 0.5.0 | ||
backbone-sql.js 0.5.2 | ||
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-sql | ||
@@ -45,3 +45,3 @@ License: MIT (http://www.opensource.org/licenses/mit-license.php) | ||
module.exports = SqlSync = (function() { | ||
SqlSync = (function() { | ||
function SqlSync(model_type, options) { | ||
@@ -48,0 +48,0 @@ var key, value; |
{ | ||
"name": "backbone-sql", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "PostgreSQL, MySQL, and SQLite3 storage for BackboneORM", | ||
@@ -38,3 +38,3 @@ "main": "./lib/index.js", | ||
"backbone-orm": "0.5.x", | ||
"moment": "2.0.x", | ||
"moment": "2.4.x", | ||
"inflection": "1.2.x", | ||
@@ -41,0 +41,0 @@ "knex": "0.4.x" |
@@ -5,3 +5,3 @@ ![logo](https://github.com/vidigami/backbone-sql/raw/master/media/logo.png) | ||
[BackboneSQL](http://vidigami.github.io/backbone-orm/backbone-http.html) provides an interface for [BackboneORM](http://vidigami.github.io/backbone-orm) models to persist to SQL databases. | ||
[BackboneSQL](http://vidigami.github.io/backbone-orm/backbone-sql.html) provides an interface for [BackboneORM](http://vidigami.github.io/backbone-orm) models to persist to SQL databases. | ||
@@ -8,0 +8,0 @@ Please [checkout the website](http://vidigami.github.io/backbone-orm/) for examples, documentation, and community! |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
118732
27
1199
+ Addedmoment@2.4.0(transitive)
- Removedmoment@2.0.0(transitive)
Updatedmoment@2.4.x