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 1.0.6 to 1.0.8

1

built/chess/Chess.d.ts

@@ -130,2 +130,3 @@ import { Position } from './Position';

moveLast(): void;
getResultName(mode: 'char' | 'short' | 'long' | 'html'): string;
}

@@ -475,2 +475,17 @@ "use strict";

};
Chess.prototype.getResultName = function (mode) {
if (mode === "char") {
return resultChar[this.Result];
}
else if (mode === "short") {
return resultShortString[this.Result];
}
else if (mode === "long") {
return resultLongStr[this.Result];
}
else if (mode === "html") {
return resultHtmlStr[this.Result];
}
return "?";
};
return Chess;

@@ -477,0 +492,0 @@ }());

2

package.json
{
"name": "onix-chess",
"version": "1.0.6",
"version": "1.0.8",
"description": "Onix chess library",

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

@@ -579,2 +579,16 @@ import { Hashtable } from 'onix-core/built/Hashtable';

}
public getResultName(mode: 'char' | 'short' | 'long' | 'html'): string {
if (mode === "char") {
return resultChar[this.Result];
} else if (mode === "short") {
return resultShortString[this.Result];
} else if (mode === "long") {
return resultLongStr[this.Result];
} else if (mode === "html") {
return resultHtmlStr[this.Result];
}
return "?";
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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