New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.3.4 to 2.3.5

10

lib/utils.js

@@ -360,12 +360,2 @@ "use strict";

var isValidNormalMove = function (game, currentPosition, move) {
// TODO: I might no longer need this now that this is properly typed
// If move is outside board, but it seems like the getNorthWestMove etc. are a
// bit incorrectly typed.
if (letterToNumber((0, exports.getHorizontalCoordinate)(move)) < 1 ||
letterToNumber((0, exports.getHorizontalCoordinate)(move)) > 9) {
return false;
}
if ((0, exports.getVerticalCoordinate)(move) < 1 || (0, exports.getVerticalCoordinate)(move) > 9) {
return false;
}
// If the move lands on top of the opponent

@@ -372,0 +362,0 @@ if (game.board[move] === (0, exports.getOppositePlayer)((0, getTurn_1.getTurn)(game))) {

2

package.json
{
"name": "quoridor",
"version": "2.3.4",
"version": "2.3.5",
"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