Skip to content

Commit

Permalink
Prep v1.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cpettitt committed Oct 29, 2014
1 parent f0cade1 commit 53b89c9
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphlib",
"version": "1.0.0",
"version": "1.0.1",
"main": [
"dist/graphlib.core.js",
"dist/graphlib.core.min.js"
Expand Down
27 changes: 18 additions & 9 deletions dist/graphlib.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,14 +923,9 @@ Graph.prototype.setPath = function(vs, value) {
* setEdge(v, w, [value, [name]])
* setEdge({ v, w, [name] }, [value])
*/
Graph.prototype.setEdge = function(v, w, value, name) {
var valueSpecified = arguments.length > 2;

v = String(v);
w = String(w);
if (!_.isUndefined(name)) {
name = String(name);
}
Graph.prototype.setEdge = function() {
var v, w, name, value,
valueSpecified = false;

if (_.isPlainObject(arguments[0])) {
v = arguments[0].v;
Expand All @@ -940,6 +935,20 @@ Graph.prototype.setEdge = function(v, w, value, name) {
value = arguments[1];
valueSpecified = true;
}
} else {
v = arguments[0];
w = arguments[1];
name = arguments[3];
if (arguments.length > 2) {
value = arguments[2];
valueSpecified = true;
}
}

v = "" + v;
w = "" + w;
if (!_.isUndefined(name)) {
name = "" + name;
}

var e = edgeArgsToId(this._isDirected, v, w, name);
Expand Down Expand Up @@ -1170,6 +1179,6 @@ if (!lodash) {
module.exports = lodash;

},{"lodash":undefined}],21:[function(require,module,exports){
module.exports = '1.0.0';
module.exports = '1.0.1';

},{}]},{},[1]);
2 changes: 1 addition & 1 deletion dist/graphlib.core.min.js

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions dist/graphlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,14 +923,9 @@ Graph.prototype.setPath = function(vs, value) {
* setEdge(v, w, [value, [name]])
* setEdge({ v, w, [name] }, [value])
*/
Graph.prototype.setEdge = function(v, w, value, name) {
var valueSpecified = arguments.length > 2;

v = String(v);
w = String(w);
if (!_.isUndefined(name)) {
name = String(name);
}
Graph.prototype.setEdge = function() {
var v, w, name, value,
valueSpecified = false;

if (_.isPlainObject(arguments[0])) {
v = arguments[0].v;
Expand All @@ -940,6 +935,20 @@ Graph.prototype.setEdge = function(v, w, value, name) {
value = arguments[1];
valueSpecified = true;
}
} else {
v = arguments[0];
w = arguments[1];
name = arguments[3];
if (arguments.length > 2) {
value = arguments[2];
valueSpecified = true;
}
}

v = "" + v;
w = "" + w;
if (!_.isUndefined(name)) {
name = "" + name;
}

var e = edgeArgsToId(this._isDirected, v, w, name);
Expand Down Expand Up @@ -1170,7 +1179,7 @@ if (!lodash) {
module.exports = lodash;

},{"lodash":22}],21:[function(require,module,exports){
module.exports = '1.0.0';
module.exports = '1.0.1';

},{}],22:[function(require,module,exports){
(function (global){
Expand Down
6 changes: 3 additions & 3 deletions dist/graphlib.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = '1.0.1-pre';
module.exports = '1.0.1';
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphlib",
"version": "1.0.1-pre",
"version": "1.0.1",
"description": "A directed and undirected multi-graph library",
"author": "Chris Pettitt <[email protected]>",
"main": "index.js",
Expand Down Expand Up @@ -35,4 +35,4 @@
"url": "https://github.com/cpettitt/graphlib.git"
},
"license": "MIT"
}
}

0 comments on commit 53b89c9

Please sign in to comment.