Comparing version 0.3.0 to 0.3.1
@@ -1001,3 +1001,6 @@ // FBP Graph | ||
json = JSON.stringify(this.toJSON(), null, 4); | ||
return require('fs').writeFile(`${file}.json`, json, "utf-8", function(err, data) { | ||
if (!file.match(/\.json$/)) { | ||
file = `${file}.json`; | ||
} | ||
return require('fs').writeFile(file, json, "utf-8", function(err, data) { | ||
if (err) { | ||
@@ -1004,0 +1007,0 @@ return callback(err); |
{ | ||
"name": "fbp-graph", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "JavaScript FBP graph library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132715
1766