hunspell-reader 5.12.4 → 5.12.5
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.
|
@@ -60,6 +60,12 @@ export declare class IterableHunspellReader implements Iterable<string> {
|
|
|
60
60
|
* @internal
|
|
61
61
|
*/
|
|
62
62
|
seqRootWords(): Sequence<string>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @param affFile - path to aff file.
|
|
66
|
+
* @param dicFile - path to dic file.
|
|
67
|
+
* @returns IterableHunspellReader
|
|
68
|
+
*/
|
|
63
69
|
static createFromFiles(affFile: string, dicFile: string): Promise<IterableHunspellReader>;
|
|
64
70
|
}
|
|
65
71
|
export declare function createMatchingWordsFilter(): (t: string) => boolean;
|
|
@@ -117,6 +117,12 @@ class IterableHunspellReader {
|
|
|
117
117
|
seqRootWords() {
|
|
118
118
|
return this.dicWordsSeq().map((w) => w.word);
|
|
119
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @param affFile - path to aff file.
|
|
123
|
+
* @param dicFile - path to dic file.
|
|
124
|
+
* @returns IterableHunspellReader
|
|
125
|
+
*/
|
|
120
126
|
static async createFromFiles(affFile, dicFile) {
|
|
121
127
|
const aff = await (0, affReader_1.parseAffFileToAff)(affFile, defaultEncoding);
|
|
122
128
|
const buffer = await fs.readFile(dicFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hunspell-reader",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.5",
|
|
4
4
|
"description": "A library for reading Hunspell Dictionary Files",
|
|
5
5
|
"bin": "bin.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=12.13.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "84a21d1f7cbd17cc9633aafdff6dce19d6de35b5"
|
|
76
76
|
}
|