@alepot55/chessboardjs 2.0.5 → 2.1.6

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/chessboard.js CHANGED
@@ -379,7 +379,6 @@ class Chessboard {
379
379
 
380
380
  executePieceTranslations(pendingTranslations, escapeFlags, animation) {
381
381
  for (let [_, sourceSquare, targetSquare] of pendingTranslations) {
382
- console.log('executing translation: ', sourceSquare.id, targetSquare.id);
383
382
  let removeTarget = !escapeFlags[targetSquare.id] && targetSquare.piece;
384
383
  let moveObj = new Move(sourceSquare, targetSquare);
385
384
  this.translatePiece(moveObj, removeTarget, animation);
@@ -22,7 +22,6 @@ class Move {
22
22
 
23
23
  check() {
24
24
  if (this.piece === null) {
25
- console.log(this);
26
25
  throw new Error("Invalid move: piece is null");
27
26
  }
28
27
  if (!(this.piece instanceof Piece)) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "chess.js": "^1.0.0"
4
4
  },
5
5
  "name": "@alepot55/chessboardjs",
6
- "version": "2.0.5",
6
+ "version": "2.1.6",
7
7
  "main": "chessboard.js",
8
8
  "type": "module",
9
9
  "scripts": {
@@ -27,8 +27,10 @@
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.26.8",
29
29
  "@babel/preset-env": "^7.26.8",
30
+ "@rollup/plugin-node-resolve": "^16.0.0",
30
31
  "babel-jest": "^29.7.0",
31
32
  "jest": "^29.7.0",
32
- "jest-environment-jsdom": "^29.7.0"
33
+ "jest-environment-jsdom": "^29.7.0",
34
+ "rollup": "^4.34.7"
33
35
  }
34
36
  }
@@ -0,0 +1,11 @@
1
+ import resolve from '@rollup/plugin-node-resolve';
2
+
3
+ export default {
4
+ input: 'chessboard.js', // entry point per la libreria
5
+ output: {
6
+ file: 'dist/chessboard.bundle.js', // percorso relativo per evitare errori di permessi
7
+ format: 'iife', // oppure "umd" per UMD
8
+ name: 'Chessboard'
9
+ },
10
+ plugins: [resolve()]
11
+ };