cm-chess 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +3 -3
- package/postinstall.js +3 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# cm-chess
|
|
2
2
|
|
|
3
|
-
It is like [chess.js](https://github.com/jhlywa/chess.js),
|
|
4
|
-
but
|
|
3
|
+
It is like [chess.js](https://github.com/jhlywa/chess.js) (and uses chess.js),
|
|
4
|
+
but can handle history variations (tree-structured move history),
|
|
5
5
|
PGN header values, Nags and Comments.
|
|
6
6
|
|
|
7
7
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cm-chess",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Like chess.js, but in ES6 and can handle variations (tree-structured move history)",
|
|
5
5
|
"main": "./src/cm-chess/Chess.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"homepage": "https://github.com/shaack/cm-chess#readme",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"chess.mjs": "^1.3.1",
|
|
28
|
-
"cm-pgn": "^2.1.
|
|
29
|
-
"
|
|
28
|
+
"cm-pgn": "^2.1.11",
|
|
29
|
+
"modlib": "^1.2.10"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"teevi": "^2.2.2"
|
package/postinstall.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* License: MIT, see file 'LICENSE'
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
const modrator = new Modrator()
|
|
6
|
+
const modLib = new (require("modlib"))
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
modLib.add("cm-pgn")
|
|
9
|
+
modLib.add("chess.mjs")
|