Comparing version 0.11.1 to 0.11.2
0.11.2 / 2016-02-11 | ||
=================== | ||
* adding debug output | ||
0.11.1 / 2016-02-11 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -195,2 +195,3 @@ | ||
static fromString(input, tree) { | ||
debug('creating file from string'); | ||
let o = JSON.parse(input, reviver); | ||
@@ -200,2 +201,3 @@ let file = new File(o.path, null, o.entry); | ||
file.tree = tree; | ||
debug('done creating file from string'); | ||
return file; | ||
@@ -202,0 +204,0 @@ } |
@@ -386,2 +386,3 @@ | ||
toString(space) { | ||
debug('stringify tree'); | ||
return JSON.stringify(this, null, space); | ||
@@ -398,2 +399,3 @@ } | ||
static fromString(input) { | ||
debug('creating from string'); | ||
let tree = new Tree(); | ||
@@ -403,8 +405,11 @@ let parsed = JSON.parse(input); | ||
parsed.vertices.forEach(v => { | ||
debug('file from cache', v[0]); | ||
tree.graph.addNewVertex(v[0], File.fromString(v[1], tree)); | ||
}); | ||
parsed.edges.forEach(e => { | ||
debug('dependency from cache: %s', e.join(' ')); | ||
tree.graph.addNewEdge(e[0], e[1]); | ||
}); | ||
debug('done creating tree from string'); | ||
return tree; | ||
@@ -411,0 +416,0 @@ } |
{ | ||
"name": "mako-tree", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"main": "./lib/tree", | ||
@@ -5,0 +5,0 @@ "description": "The build tree structure used internally by mako", |
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
64067
1473