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

toposource

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toposource - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "toposource",
"version": "1.0.1",
"version": "1.0.2",
"description": "Directed graphs analyzer for parallel traversals",

@@ -5,0 +5,0 @@ "main": "./target/cjs/index.js",

@@ -65,13 +65,12 @@ "use strict";

const prev = /* @__PURE__ */ new Map();
for (const [from, to] of edges) {
if (next.has(from)) {
next.get(from).push(to);
const pushHop = (deps, a, b) => {
if (deps.has(a)) {
deps.get(a).push(b);
} else {
next.set(from, [to]);
deps.set(a, [b]);
}
if (prev.has(to)) {
prev.get(to).push(from);
} else {
prev.set(to, [from]);
}
};
for (const [from, to] of edges) {
pushHop(next, from, to);
pushHop(prev, to, from);
}

@@ -78,0 +77,0 @@ return { next, prev };

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