Skip to content

Commit e47820d

Browse files
committed
Prep v1.0.2 release
1 parent 505be2a commit e47820d

7 files changed

Lines changed: 15 additions & 11 deletions

File tree

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.1",
3+
"version": "1.0.2",
44
"main": [
55
"dist/graphlib.core.js",
66
"dist/graphlib.core.min.js"

dist/graphlib.core.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ Graph.prototype.setParent = function(v, parent) {
817817
if (_.isUndefined(parent)) {
818818
parent = GRAPH_NODE;
819819
} else {
820+
// Coerce parent to string
821+
parent += "";
820822
for (var ancestor = parent;
821823
!_.isUndefined(ancestor);
822824
ancestor = this.parent(ancestor)) {
@@ -1166,7 +1168,7 @@ function read(json) {
11661168

11671169
var lodash;
11681170

1169-
if (require) {
1171+
if (typeof require === "function") {
11701172
try {
11711173
lodash = require("lodash");
11721174
} catch (e) {}
@@ -1179,6 +1181,6 @@ if (!lodash) {
11791181
module.exports = lodash;
11801182

11811183
},{"lodash":undefined}],21:[function(require,module,exports){
1182-
module.exports = '1.0.1';
1184+
module.exports = '1.0.2';
11831185

11841186
},{}]},{},[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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ Graph.prototype.setParent = function(v, parent) {
817817
if (_.isUndefined(parent)) {
818818
parent = GRAPH_NODE;
819819
} else {
820+
// Coerce parent to string
821+
parent += "";
820822
for (var ancestor = parent;
821823
!_.isUndefined(ancestor);
822824
ancestor = this.parent(ancestor)) {
@@ -1166,7 +1168,7 @@ function read(json) {
11661168

11671169
var lodash;
11681170

1169-
if (require) {
1171+
if (typeof require === "function") {
11701172
try {
11711173
lodash = require("lodash");
11721174
} catch (e) {}
@@ -1179,7 +1181,7 @@ if (!lodash) {
11791181
module.exports = lodash;
11801182

11811183
},{"lodash":22}],21:[function(require,module,exports){
1182-
module.exports = '1.0.1';
1184+
module.exports = '1.0.2';
11831185

11841186
},{}],22:[function(require,module,exports){
11851187
(function (global){

dist/graphlib.min.js

Lines changed: 2 additions & 2 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.2-pre';
1+
module.exports = '1.0.2';

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.2-pre",
3+
"version": "1.0.2",
44
"description": "A directed and undirected multi-graph library",
55
"author": "Chris Pettitt <cpettitt@gmail.com>",
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)