Comparing version 1.3.4 to 1.3.5
17
index.js
@@ -35,10 +35,15 @@ var through = require('through2'); | ||
sameDeps.add(row, h); | ||
if (hashes[h]) { | ||
row.dedupe = hashes[h].id; | ||
row.sameDeps = sameDeps.cmp(row.deps, hashes[h].deps); | ||
deduped[row.id] = hashes[h].id; | ||
hashes[h].push(row); | ||
} else { | ||
hashes[h] = [row]; | ||
} | ||
else { | ||
hashes[h] = row; | ||
}); | ||
Object.keys(hashes).forEach(function (h) { | ||
var rows = hashes[h]; | ||
while (rows.length > 1) { | ||
var row = rows.pop(); | ||
row.dedupe = rows[0].id; | ||
row.sameDeps = sameDeps.cmp(rows[0].deps, row.deps); | ||
deduped[row.id] = rows[0].id; | ||
} | ||
@@ -45,0 +50,0 @@ }); |
{ | ||
"name": "deps-sort", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "sort module-deps output for deterministic browserify bundles", | ||
@@ -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
17126
15
451