@lichess-org/stockfish-web 0.0.12 → 0.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/stockfish-web",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "author": "T-bone Duplexus",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
package/stockfishWeb.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- declare module 'lila-stockfish-web' {
1
+ declare module "@lichess-org/stockfish-web" {
2
2
  interface StockfishWeb {
3
3
  uci(command: string): void; // send uci command, receive async response via listen
4
4
 
5
- listen: (data: string) => void; // attach listener here
6
-
7
5
  // index arguments are used for dual net sf builds, 0 for big, 1 for small, otherwise ignore
8
6
 
9
7
  setNnueBuffer(data: Uint8Array, index?: number): void; // load nnue as buffer
10
8
 
11
9
  getRecommendedNnue(index?: number): string; // returns a bare filename
12
10
 
11
+ listen: (data: string) => void; // attach listener here
12
+
13
13
  onError: (msg: string) => void; // attach error handler here
14
14
  }
15
15
  export default StockfishWeb;