@scrabble-solver/word-lists 2.15.20 → 2.15.22
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const transliterateDiacritics: (words: string[], options?:
|
|
1
|
+
import { transliterate } from 'transliteration';
|
|
2
|
+
export declare const transliterateDiacritics: (words: string[], options?: Parameters<typeof transliterate>[1]) => string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/word-lists",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.22",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word lists",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/types": "^2.15.
|
|
27
|
-
"cheerio": "^1.
|
|
26
|
+
"@scrabble-solver/types": "^2.15.22",
|
|
27
|
+
"cheerio": "^1.2.0",
|
|
28
28
|
"follow-redirects": "^1.15.11",
|
|
29
|
-
"transliteration": "^2.
|
|
29
|
+
"transliteration": "^2.6.1",
|
|
30
30
|
"unzipper": "^0.12.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/follow-redirects": "^1.14.4",
|
|
34
34
|
"@types/unzipper": "^0.10.11"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "6d8b6b51e3cad36844454d3564b90b1e14e9fcf8"
|
|
37
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { transliterate } from 'transliteration';
|
|
2
2
|
|
|
3
3
|
import { unique } from './unique';
|
|
4
4
|
|
|
5
|
-
export const transliterateDiacritics = (words: string[], options?:
|
|
5
|
+
export const transliterateDiacritics = (words: string[], options?: Parameters<typeof transliterate>[1]): string[] => {
|
|
6
6
|
return unique(words.map((word) => transliterate(word, options)));
|
|
7
7
|
};
|