Comparing version 2.7.4 to 2.7.5
@@ -100,3 +100,3 @@ var _ = require("underscore")._; | ||
var where = {pkQuery: false}; | ||
if(_.isFunction(conditions) || conditions == "*") { | ||
if(_.isFunction(conditions) || conditions === "*") { | ||
// no criteria provided - treat like select * | ||
@@ -103,0 +103,0 @@ where.where = ""; |
@@ -8,3 +8,3 @@ var _ = require("underscore")._; | ||
this.only = args.only || false; | ||
this.order = args.order || (object.hasOwnProperty("pk") && !!object.pk ? util.format('"%s"', object.pk) : "1"); | ||
this.order = args.order || (Object.prototype.hasOwnProperty.call(object, "pk") && !!object.pk ? util.format('"%s"', object.pk) : "1"); | ||
this.orderBody = args.orderBody || false; | ||
@@ -11,0 +11,0 @@ this.offset = args.offset; |
@@ -15,3 +15,4 @@ var _ = require("underscore")._; | ||
this.pk = args.pk; | ||
this.insertable = args.hasOwnProperty('is_insertable') ? args.is_insertable : true; | ||
this.insertable = Object.prototype.hasOwnProperty.call(args, 'is_insertable') ? args.is_insertable : true; | ||
@@ -18,0 +19,0 @@ _.extend(this,DocumentTable); |
{ | ||
"name": "massive", | ||
"version": "2.7.4", | ||
"version": "2.7.5", | ||
"description": "A small query tool for Postgres that embraces json and makes life simpler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
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
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
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
Sorry, the diff of this file is not supported yet
715174
80
2200