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

quoridor

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quoridor - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

10

lib/utils.js

@@ -284,6 +284,5 @@ "use strict";

// TODO: Surely this must be wrong, or?
if (letterToNumber(exports.getHorizontalCoordinate(currentPosition)) -
letterToNumber(exports.getHorizontalCoordinate(move)) ===
-2 &&
exports.getHorizontalCoordinate(currentPosition) === exports.getHorizontalCoordinate(move)) {
if (exports.getVerticalCoordinate(move) - exports.getVerticalCoordinate(currentPosition) ===
2 &&
exports.getHorizontalCoordinate(move) === exports.getHorizontalCoordinate(currentPosition)) {
return true;

@@ -502,4 +501,5 @@ }

y: incrementVerticalPiecePosition(y),
})))
}))) {
return false;
}
return true;

@@ -506,0 +506,0 @@ }

{
"name": "quoridor",
"version": "1.4.0",
"version": "1.4.1",
"description": "A JavaScipt Quoridor library for move validation etc.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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