@scrabble-solver/types 2.15.12 → 2.15.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/build/Board.js +2 -2
- package/package.json +3 -3
- package/src/Board.ts +2 -2
package/build/Board.js
CHANGED
|
@@ -136,6 +136,6 @@ const getHorizontalWords = (cells) => {
|
|
|
136
136
|
}
|
|
137
137
|
return words;
|
|
138
138
|
};
|
|
139
|
-
const wordToString = (
|
|
140
|
-
return
|
|
139
|
+
const wordToString = (word) => {
|
|
140
|
+
return word.map((cell) => cell.tile.character).join('');
|
|
141
141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/types",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.13",
|
|
4
4
|
"description": "Scrabble Solver 2 - Types",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/constants": "^2.15.
|
|
26
|
+
"@scrabble-solver/constants": "^2.15.13"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "fd3e02f7051acdb8cc6dd138a959679bc00f1ed6"
|
|
29
29
|
}
|
package/src/Board.ts
CHANGED
|
@@ -177,6 +177,6 @@ const getHorizontalWords = (cells: Cell[][]): string[] => {
|
|
|
177
177
|
return words;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
const wordToString = (
|
|
181
|
-
return
|
|
180
|
+
const wordToString = (word: Cell[]): string => {
|
|
181
|
+
return word.map((cell) => cell.tile.character).join('');
|
|
182
182
|
};
|