bant-compact
Advanced tools
Comparing version 0.1.0 to 0.1.1
10
index.js
var toposort = require('toposort'); | ||
module.exports = function (tree) { | ||
return sort(tree.map(traverse.bind(null))).map(function (name) { | ||
var tree = sort(tree.map(traverse.bind(null))).map(function (name) { | ||
return tree[find(tree, name, true)]; | ||
}).reduce(function (a, b, i) { | ||
}); | ||
if (tree.length == 1) return tree; | ||
tree = tree.reduce(function (a, b, i) { | ||
var arr = [].concat(a); | ||
@@ -13,2 +17,4 @@ if (distance(arr, b) !== 1) | ||
return tree; | ||
function traverse (branch) { | ||
@@ -15,0 +21,0 @@ branch.locals = [].concat(branch.locals) |
{ | ||
"name": "bant-compact", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4396
5
125
1
5