hunspell-reader 5.12.3 → 5.13.0

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",
3
+ "version": "5.13.0",
4
4
  "description": "A library for reading Hunspell Dictionary Files",
5
5
  "bin": "bin.js",
6
6
  "main": "dist/index.js",
@@ -40,15 +40,15 @@
40
40
  "devDependencies": {
41
41
  "@types/fs-extra": "^9.0.13",
42
42
  "@types/jest": "^27.0.2",
43
- "@types/node": "^16.10.3",
44
- "jest": "^27.2.5",
43
+ "@types/node": "^16.11.7",
44
+ "jest": "^27.3.1",
45
45
  "prettier": "^2.4.1",
46
46
  "rimraf": "^3.0.2",
47
- "ts-jest": "^27.0.5",
48
- "typescript": "^4.4.3"
47
+ "ts-jest": "^27.0.7",
48
+ "typescript": "^4.4.4"
49
49
  },
50
50
  "dependencies": {
51
- "commander": "^8.2.0",
51
+ "commander": "^8.3.0",
52
52
  "fs-extra": "^10.0.0",
53
53
  "gensequence": "^3.1.1",
54
54
  "iconv-lite": "^0.6.3"
@@ -72,5 +72,5 @@
72
72
  "engines": {
73
73
  "node": ">=12.13.0"
74
74
  },
75
- "gitHead": "6c424aed933adb8d983ab09dd45042d63d7a5cd8"
75
+ "gitHead": "4cd5431b084824e172798ae97f2f520dbad4a8ac"
76
76
  }