Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "grex", | ||
"description": "Client for Rexster Graph Server", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "database", |
@@ -15,10 +15,12 @@ var http = require('http'); | ||
var defaultOptions = { | ||
'host': 'localhost', | ||
'port': 8182, | ||
'graph': 'tinkergraph', | ||
'idRegex': false // OrientDB id regex -> /^[0-9]+:[0-9]+$/ | ||
}; | ||
module.exports = (function(){ | ||
function Grex(options) { | ||
this.options = _.defaults(options || { | ||
'host': 'localhost', | ||
'port': 8182, | ||
'graph': 'tinkergraph', | ||
'idRegex': false // OrientDB id regex -> /^[0-9]+:[0-9]+$/ | ||
}); | ||
this.options = _.defaults(options, defaultOptions); | ||
@@ -36,2 +38,7 @@ this.resultFormatter = new ResultFormatter(); | ||
options = undefined; | ||
} else if (typeof options === 'object') { | ||
this.options = _.defaults(options, this.options); | ||
} else { | ||
// Set options to previously setup options or switch back to the defaults | ||
this.options = this.options || defaultOptions; | ||
} | ||
@@ -38,0 +45,0 @@ |
@@ -16,3 +16,3 @@ var Gremlin = require('./gremlin'); | ||
*/ | ||
Pipeline.prototype.get = function(callback) { | ||
Pipeline.prototype.exec = function(callback) { | ||
return this.gremlin.exec(callback); | ||
@@ -19,0 +19,0 @@ }; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
705940
32
16776
5