onix-chess
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -73,3 +73,3 @@ import { Squares, Colors } from '../types/Types'; | ||
get NonStandardStart(): boolean; | ||
anatysis: IGameAnalysis; | ||
Analysis: IGameAnalysis; | ||
/** | ||
@@ -76,0 +76,0 @@ * @constructor |
@@ -160,3 +160,3 @@ "use strict"; | ||
this.Result = GameResult_1.GameResult.Color.None; | ||
this.anatysis = {}; | ||
this.Analysis = {}; | ||
this.data = data || defaultGameData; | ||
@@ -206,3 +206,3 @@ this.Tags = new ChessTags(this); | ||
this.NoQueenPromotion = false; | ||
this.anatysis = {}; | ||
this.Analysis = {}; | ||
this.clearStandardTags(); | ||
@@ -282,8 +282,8 @@ this.clearExtraTags(); | ||
if (analysis) { | ||
this.anatysis.state = (_a = analysis.state) !== null && _a !== void 0 ? _a : "empty"; | ||
if ((this.anatysis.state == "inprogress") && (analysis.completed)) { | ||
this.anatysis.completed = analysis.completed; | ||
this.Analysis.state = (_a = analysis.state) !== null && _a !== void 0 ? _a : "empty"; | ||
if ((this.Analysis.state == "inprogress") && (analysis.completed)) { | ||
this.Analysis.completed = analysis.completed; | ||
} | ||
if (analysis.white) { | ||
this.anatysis.white = { | ||
this.Analysis.white = { | ||
blunder: toSafeInteger_1.default(analysis.white.blunder), | ||
@@ -296,3 +296,3 @@ mistake: toSafeInteger_1.default(analysis.white.mistake), | ||
if (analysis.black) { | ||
this.anatysis.black = { | ||
this.Analysis.black = { | ||
blunder: toSafeInteger_1.default(analysis.black.blunder), | ||
@@ -299,0 +299,0 @@ mistake: toSafeInteger_1.default(analysis.black.mistake), |
{ | ||
"name": "onix-chess", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Onix chess library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -223,3 +223,3 @@ import toSafeInteger from 'lodash-es/toSafeInteger'; | ||
public anatysis: IGameAnalysis = {}; | ||
public Analysis: IGameAnalysis = {}; | ||
@@ -257,3 +257,3 @@ /** | ||
this.anatysis = {}; | ||
this.Analysis = {}; | ||
@@ -346,9 +346,9 @@ this.clearStandardTags(); | ||
if (analysis) { | ||
this.anatysis.state = analysis.state ?? "empty"; | ||
if ((this.anatysis.state == "inprogress") && (analysis.completed)) { | ||
this.anatysis.completed = analysis.completed; | ||
this.Analysis.state = analysis.state ?? "empty"; | ||
if ((this.Analysis.state == "inprogress") && (analysis.completed)) { | ||
this.Analysis.completed = analysis.completed; | ||
} | ||
if (analysis.white) { | ||
this.anatysis.white = { | ||
this.Analysis.white = { | ||
blunder: toSafeInteger(analysis.white.blunder), | ||
@@ -362,3 +362,3 @@ mistake: toSafeInteger(analysis.white.mistake), | ||
if (analysis.black) { | ||
this.anatysis.black = { | ||
this.Analysis.black = { | ||
blunder: toSafeInteger(analysis.black.blunder), | ||
@@ -365,0 +365,0 @@ mistake: toSafeInteger(analysis.black.mistake), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package