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.3 to 1.1.0

12

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

@@ -44,10 +44,10 @@ "main": "./target/cjs/index.js",

"devDependencies": {
"@types/node": "^18.14.0",
"@types/node": "^18.14.1",
"@types/toposort": "^2.0.3",
"benchmark": "^2.1.4",
"c8": "^7.12.0",
"c8": "^7.13.0",
"concurrently": "^7.6.0",
"esbuild": "^0.17.8",
"esbuild": "^0.17.10",
"esbuild-node-externals": "^1.6.0",
"eslint": "^8.32.0",
"eslint": "^8.34.0",
"eslint-config-qiwi": "^2.0.8",

@@ -57,3 +57,3 @@ "toposort": "^2.0.2",

"typedoc": "^0.23.25",
"typescript": "^4.9.4",
"typescript": "^4.9.5",
"uvu": "^0.5.6"

@@ -60,0 +60,0 @@ },

@@ -34,3 +34,3 @@ "use strict";

const sources = getSources(_edges);
const graphs = opts.graphs ? getGraphs(_edges, sources, next) : void 0;
const graphs = opts.graphs ? getGraphs(sources, next) : void 0;
const queue = opts.queue ? getQueue(sources, next, prev) : void 0;

@@ -56,4 +56,6 @@ return {

for (const [from, to] of edges) {
pushHop(next, from, to);
pushHop(prev, to, from);
if (to) {
pushHop(next, from, to);
pushHop(prev, to, from);
}
}

@@ -81,3 +83,3 @@ return { next, prev };

};
var getGraphs = (edges, sources, next) => {
var getGraphs = (sources, next) => {
const graphs = [];

@@ -84,0 +86,0 @@ for (const source of sources) {

@@ -13,3 +13,3 @@ export type TDepMap = Map<string, string[]>;

export type TAnalyze = {
<O extends TAnalyzeOptions = TAnalyzeOptions>(edges: [string, string][], opts: O): {
<O extends TAnalyzeOptions = TAnalyzeOptions>(edges: [string, string?][], opts: O): {
next: TDepMap;

@@ -25,3 +25,3 @@ prev: TDepMap;

};
(edges: [string, string][]): {
(edges: [string, string?][]): {
next: TDepMap;

@@ -28,0 +28,0 @@ prev: TDepMap;

Sorry, the diff of this file is not supported yet

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