Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ampersand-chess-state

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-chess-state - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

ampersand-chess.js

@@ -413,3 +413,3 @@ var raf = require('raf');

if (valid) {
if (valid || pgn === '') {
if (!fromEngine) {

@@ -416,0 +416,0 @@ nextMoves = this._diffPgn(pgn);

{
"name": "ampersand-chess-state",
"description": "An evented chess library for movement, validation and result detection built on Ampersand.js.",
"version": "0.1.2",
"version": "0.1.3",
"author": "Luke Karrys <luke@lukekarrys.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/lukekarrys/ampersand-chess-state/issues",

@@ -486,1 +486,15 @@ var test = require('tape');

});
test('Clear pgn with empty string', function (t) {
var chess = new Chess({pgn: '1. f4 d6 2. e4 b5 3. g4 c6 4. a3 a6'});
t.equal(chess.pgnArray.length, 4);
chess.pgn = '';
t.equal(chess.pgn, '');
t.equal(chess.fen, 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1');
t.equal(chess.start, true);
t.end();
});
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