Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 7.1.0 to 7.1.1

2

dist/chess/Chess.d.ts

@@ -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),

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