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 3.3.1 to 3.3.2

6

dist/chess/Color.d.ts

@@ -10,5 +10,5 @@ import { Colors } from './Types';

function flip(c: Colors.BW): Colors.BW;
function isBW(c: number): c is Colors.BW;
function isName(c: string): c is Colors.Name;
function isChar(c: string): c is Colors.Char;
function isBW(c?: number): c is Colors.BW;
function isName(c?: string): c is Colors.Name;
function isChar(c?: string): c is Colors.Char;
function toName(c: Colors.BW): Colors.Name;

@@ -15,0 +15,0 @@ function fromName(c: Colors.Name): Colors.BW;

{
"name": "onix-chess",
"version": "3.3.1",
"version": "3.3.2",
"description": "Onix chess library",

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

@@ -26,11 +26,11 @@ import { Colors } from './Types';

export function isBW(c: number): c is Colors.BW {
export function isBW(c?: number): c is Colors.BW {
return c === White || c === Black;
}
export function isName(c: string): c is Colors.Name {
export function isName(c?: string): c is Colors.Name {
return c === "white" || c === "black";
}
export function isChar(c: string): c is Colors.Char {
export function isChar(c?: string): c is Colors.Char {
return c === "w" || c === "b";

@@ -37,0 +37,0 @@ }

Sorry, the diff of this file is not supported yet

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