Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deps-sort

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-sort - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

test/dedupe-deps-of-deps.js

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc