New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphology-shortest-path

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-shortest-path - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

16

dijkstra.js

@@ -87,4 +87,9 @@ /**

var getWeight = function(e) {
return graph.getEdgeAttribute(e, weightAttribute);
var getWeight = function(edge) {
var weight = graph.getEdgeAttribute(edge, weightAttribute);
if (typeof weight !== 'number' || isNaN(weight))
return 1;
return weight;
};

@@ -210,3 +215,8 @@

var getWeight = function(edge) {
return graph.getEdgeAttribute(edge, weightAttribute);
var weight = graph.getEdgeAttribute(edge, weightAttribute);
if (typeof weight !== 'number' || isNaN(weight))
return 1;
return weight;
};

@@ -213,0 +223,0 @@

14

package.json
{
"name": "graphology-shortest-path",
"version": "1.3.2",
"version": "1.3.3",
"description": "Shortest path functions for graphology.",

@@ -40,5 +40,5 @@ "main": "index.js",

"@yomguithereal/eslint-config": "^4.0.0",
"eslint": "^6.8.0",
"graphology": "0.16.1",
"mocha": "^7.1.0"
"eslint": "^7.2.0",
"graphology": "0.17.1",
"mocha": "^8.0.1"
},

@@ -55,8 +55,8 @@ "eslintConfig": {

"dependencies": {
"@yomguithereal/helpers": "^1.0.0",
"graphology-indices": "^0.3.0",
"@yomguithereal/helpers": "^1.0.1",
"graphology-indices": "^0.8.0",
"graphology-types": "^0.16.0",
"graphology-utils": "^1.7.0",
"mnemonist": "^0.33.1"
"mnemonist": "^0.36.1"
}
}
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