πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

onix-chess

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onix-chess - npm Package Compare versions

Comparing version

to
6.6.2

8

dist/chess/Chess.js

@@ -486,4 +486,8 @@ "use strict";

this.currentMove = this.moveList[key];
this.currentPos = new Position_1.Position(this.currentMove.fen);
this.currentMove = this.currentMove.Next;
if (!this.currentMove.isBegin()) {
this.currentPos = new Position_1.Position(this.currentMove.Prev.fen);
}
else {
this.currentPos.copyFrom(this.startPos);
}
}

@@ -490,0 +494,0 @@ this.supressEvents = false;

{
"name": "onix-chess",
"version": "6.6.1",
"version": "6.6.2",
"description": "Onix chess library",

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

@@ -575,4 +575,7 @@ import toSafeInteger from 'lodash-es/toSafeInteger';

this.currentMove = this.moveList[key];
this.currentPos = new Position(this.currentMove.fen);
this.currentMove = this.currentMove.Next!;
if (!this.currentMove.isBegin()) {
this.currentPos = new Position(this.currentMove.Prev.fen);
} else {
this.currentPos.copyFrom(this.startPos);
}
}

@@ -579,0 +582,0 @@

Sorry, the diff of this file is not supported yet