Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

union-find

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -31,8 +31,12 @@ "use strict"; "use restrict";

proto.find = function(x) {
var x0 = x
var roots = this.roots;
while(roots[x] !== x) {
var y = roots[x];
roots[x] = roots[y];
x = y;
x = roots[x]
}
while(roots[x0] !== x) {
var y = roots[x0]
roots[x0] = x
x0 = y
}
return x;

@@ -39,0 +43,0 @@ }

{
"name": "union-find",
"version": "1.0.1",
"version": "1.0.2",
"description": "A union-find data structure for maintaining disjoint sets.",

@@ -28,4 +28,4 @@ "main": "index.js",

"devDependencies": {
"tape": "^2.12.3"
"tape": "^3.5.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc