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

graphology-traversal

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-traversal - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

bfs.d.ts

@@ -1,5 +0,5 @@

import Graph, {Attributes, NodeKey} from 'graphology-types';
import Graph, {Attributes} from 'graphology-types';
import {TraversalCallback} from './types';
export function bfs<N extends Attributes = Attributes>(graph: Graph<N>, callback: TraversalCallback<N>): void;
export function bfsFromNode<N extends Attributes = Attributes>(graph: Graph<N>, node: NodeKey, callback: TraversalCallback<N>): void;
export function bfsFromNode<N extends Attributes = Attributes>(graph: Graph<N>, node: unknown, callback: TraversalCallback<N>): void;

@@ -1,5 +0,5 @@

import Graph, {Attributes, NodeKey} from 'graphology-types';
import Graph, {Attributes} from 'graphology-types';
import {TraversalCallback} from './types';
export function dfs<N extends Attributes = Attributes>(graph: Graph<N>, callback: TraversalCallback<N>): void;
export function dfsFromNode<N extends Attributes = Attributes>(graph: Graph<N>, node: NodeKey, callback: TraversalCallback<N>): void;
export function dfsFromNode<N extends Attributes = Attributes>(graph: Graph<N>, node: unknown, callback: TraversalCallback<N>): void;
The MIT License (MIT)
Copyright (c) 2020 Guillaume Plique (Yomguithereal)
Copyright (c) 2020-2021 Guillaume Plique (Yomguithereal)

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "graphology-traversal",
"version": "0.2.1",
"version": "0.2.2",
"description": "Traversal functions for graphology.",

@@ -17,3 +17,2 @@ "main": "index.js",

"prepublishOnly": "npm run lint && npm test",
"prepare": "npm run prepublishOnly",
"test": "mocha test.js"

@@ -43,18 +42,7 @@ },

"homepage": "https://github.com/graphology/graphology-traversal#readme",
"devDependencies": {
"@yomguithereal/eslint-config": "^4.0.0",
"eslint": "^7.22.0",
"graphology": "^0.19.3",
"graphology-generators": "^0.11.0",
"graphology-types": "0.19.2",
"mocha": "^8.3.2"
},
"eslintConfig": {
"extends": "@yomguithereal/eslint-config",
"globals": {
"Set": true
}
"extends": "@yomguithereal/eslint-config"
},
"peerDependencies": {
"graphology-types": ">=0.19.0"
"graphology-types": ">=0.20.0"
},

@@ -61,0 +49,0 @@ "dependencies": {

@@ -1,3 +0,3 @@

import {NodeKey, Attributes} from 'graphology-types';
import {Attributes} from 'graphology-types';
export type TraversalCallback<N extends Attributes = Attributes> = (key: NodeKey, attributes: N, depth: number) => void;
export type TraversalCallback<N extends Attributes = Attributes> = (key: string, attributes: N, depth: number) => void;
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