New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hexcoord

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexcoord - npm Package Compare versions

Comparing version
0.1.8
to
0.1.9
+3
-3
lib.js

@@ -206,5 +206,5 @@ // Generated code -- http://www.redblobgames.com/grids/hexagons/

function indexOfHex(hexes, hex) {
function index_of_hex(hexes, hex) {
return hexes.reduce(function(cur, val, index) {
return cur === -1 && val.q === hex.q && val.r === hex.r && val.s === hex.s ? index : cur;
return cur === -1 && val.q === hex.q && val.r === hex.r ? index : cur;
}, -1);

@@ -214,3 +214,3 @@ }

function neighbors(hex1, hex2) {
return indexOfHex(hex_ring(hex1, 1), hex2) > -1;
return index_of_hex(hex_ring(hex1, 1), hex2) > -1;
}

@@ -217,0 +217,0 @@

@@ -5,3 +5,3 @@ {

"description": "",
"version": "0.1.8",
"version": "0.1.9",
"license": "MIT",

@@ -8,0 +8,0 @@ "homepage": "http://www.redblobgames.com/grids/hexagons/",