Comparing version 0.6.6 to 0.6.7
@@ -0,1 +1,4 @@ | ||
## 0.6.7 | ||
- Fix stringification issues with arrays and booleans | ||
## 0.6.6 | ||
@@ -2,0 +5,0 @@ - Handle stringification of nested objects |
{ | ||
"name": "grex", | ||
"description": "Client for Rexster Graph Server", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "database", |
@@ -36,2 +36,18 @@ /*jslint node: true */ | ||
if (_.isArray(argument)) { | ||
var parsedArray = _.map(argument, function(element) { | ||
if (_.isString(element)) { | ||
return "'" + element + "'"; | ||
} | ||
return element; | ||
}); | ||
return parsedArray.toString(); | ||
} | ||
if (_.isBoolean(argument)) { | ||
return argument.toString(); | ||
} | ||
return "'"+ argument +"'"; | ||
@@ -52,2 +68,2 @@ }; | ||
return Argument; | ||
})(); | ||
})(); |
756351
100
18038