Skip to content

Commit 53b89c9

Browse files
committed
Prep v1.0.1 release
1 parent f0cade1 commit 53b89c9

File tree

7 files changed

+44
-26
lines changed

7 files changed

+44
-26
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphlib",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"main": [
55
"dist/graphlib.core.js",
66
"dist/graphlib.core.min.js"

dist/graphlib.core.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -923,14 +923,9 @@ Graph.prototype.setPath = function(vs, value) {
923923
* setEdge(v, w, [value, [name]])
924924
* setEdge({ v, w, [name] }, [value])
925925
*/
926-
Graph.prototype.setEdge = function(v, w, value, name) {
927-
var valueSpecified = arguments.length > 2;
928-
929-
v = String(v);
930-
w = String(w);
931-
if (!_.isUndefined(name)) {
932-
name = String(name);
933-
}
926+
Graph.prototype.setEdge = function() {
927+
var v, w, name, value,
928+
valueSpecified = false;
934929

935930
if (_.isPlainObject(arguments[0])) {
936931
v = arguments[0].v;
@@ -940,6 +935,20 @@ Graph.prototype.setEdge = function(v, w, value, name) {
940935
value = arguments[1];
941936
valueSpecified = true;
942937
}
938+
} else {
939+
v = arguments[0];
940+
w = arguments[1];
941+
name = arguments[3];
942+
if (arguments.length > 2) {
943+
value = arguments[2];
944+
valueSpecified = true;
945+
}
946+
}
947+
948+
v = "" + v;
949+
w = "" + w;
950+
if (!_.isUndefined(name)) {
951+
name = "" + name;
943952
}
944953

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

11721181
},{"lodash":undefined}],21:[function(require,module,exports){
1173-
module.exports = '1.0.0';
1182+
module.exports = '1.0.1';
11741183

11751184
},{}]},{},[1]);

dist/graphlib.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/graphlib.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -923,14 +923,9 @@ Graph.prototype.setPath = function(vs, value) {
923923
* setEdge(v, w, [value, [name]])
924924
* setEdge({ v, w, [name] }, [value])
925925
*/
926-
Graph.prototype.setEdge = function(v, w, value, name) {
927-
var valueSpecified = arguments.length > 2;
928-
929-
v = String(v);
930-
w = String(w);
931-
if (!_.isUndefined(name)) {
932-
name = String(name);
933-
}
926+
Graph.prototype.setEdge = function() {
927+
var v, w, name, value,
928+
valueSpecified = false;
934929

935930
if (_.isPlainObject(arguments[0])) {
936931
v = arguments[0].v;
@@ -940,6 +935,20 @@ Graph.prototype.setEdge = function(v, w, value, name) {
940935
value = arguments[1];
941936
valueSpecified = true;
942937
}
938+
} else {
939+
v = arguments[0];
940+
w = arguments[1];
941+
name = arguments[3];
942+
if (arguments.length > 2) {
943+
value = arguments[2];
944+
valueSpecified = true;
945+
}
946+
}
947+
948+
v = "" + v;
949+
w = "" + w;
950+
if (!_.isUndefined(name)) {
951+
name = "" + name;
943952
}
944953

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

11721181
},{"lodash":22}],21:[function(require,module,exports){
1173-
module.exports = '1.0.0';
1182+
module.exports = '1.0.1';
11741183

11751184
},{}],22:[function(require,module,exports){
11761185
(function (global){

dist/graphlib.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '1.0.1-pre';
1+
module.exports = '1.0.1';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphlib",
3-
"version": "1.0.1-pre",
3+
"version": "1.0.1",
44
"description": "A directed and undirected multi-graph library",
55
"author": "Chris Pettitt <[email protected]>",
66
"main": "index.js",
@@ -35,4 +35,4 @@
3535
"url": "https://github.com/cpettitt/graphlib.git"
3636
},
3737
"license": "MIT"
38-
}
38+
}

0 commit comments

Comments
 (0)