@scrabble-solver/word-lists 2.13.10 → 2.13.11
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.
|
@@ -7,7 +7,7 @@ exports.getWordList = void 0;
|
|
|
7
7
|
const types_1 = require("@scrabble-solver/types");
|
|
8
8
|
const latinize_1 = __importDefault(require("latinize"));
|
|
9
9
|
const lib_1 = require("../lib");
|
|
10
|
-
const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/master/spanish/
|
|
10
|
+
const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/master/spanish/file-2017.txt';
|
|
11
11
|
const N_PLACEHOLDER = '---n---';
|
|
12
12
|
const getWordList = async () => {
|
|
13
13
|
const words = await (0, lib_1.getTxtWordList)(FILE_URL, types_1.Locale.ES_ES);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/word-lists",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.11",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word lists",
|
|
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/types": "^2.13.
|
|
26
|
+
"@scrabble-solver/types": "^2.13.11",
|
|
27
27
|
"cheerio": "^1.0.0-rc.12",
|
|
28
28
|
"follow-redirects": "^1.15.6",
|
|
29
29
|
"latinize": "^1.0.0",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@types/latinize": "^0.2.18",
|
|
35
35
|
"@types/unzipper": "^0.10.9"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1b418c5dadc1ff365839cd7825f57eb6d182a815"
|
|
38
38
|
}
|
package/src/languages/spanish.ts
CHANGED
|
@@ -3,7 +3,7 @@ import latinize from 'latinize';
|
|
|
3
3
|
|
|
4
4
|
import { getTxtWordList } from '../lib';
|
|
5
5
|
|
|
6
|
-
const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/master/spanish/
|
|
6
|
+
const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/master/spanish/file-2017.txt';
|
|
7
7
|
const N_PLACEHOLDER = '---n---';
|
|
8
8
|
|
|
9
9
|
export const getWordList = async (): Promise<string[]> => {
|