backbone-db
Advanced tools
Comparing version 0.4.21 to 0.4.22
@@ -335,6 +335,9 @@ var Backbone = require('backbone'); | ||
var elapsed = Date.now() - start; | ||
var syncInfo = {method: method, type: model.type, elapsed: elapsed, model: model.toJSON(options), options: JSON.stringify(options), res: res, response: resp}; | ||
var syncInfo = {method: method, type: model.type, elapsed: elapsed, model: model.toJSON(options), res: JSON.stringify(res)}; | ||
if(err) { | ||
syncInfo.error = err; | ||
} | ||
if(options && options.where) { | ||
syncInfo.where = options.where; | ||
} | ||
self.trigger('sync_info', syncInfo); | ||
@@ -341,0 +344,0 @@ if ((err && options.error) || (!err && !res && options.error)) { |
{ | ||
"name": "backbone-db", | ||
"version": "0.4.21", | ||
"version": "0.4.22", | ||
"description": "Key-Value database storage interface, localStorage and in-process implementations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
164682
977