hunspell-reader 6.14.2 → 6.14.3
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/dist/aff.d.ts +1 -1
- package/dist/affDef.d.ts +1 -1
- package/dist/affReader.d.ts +1 -1
- package/dist/iterableToStream.d.ts +2 -2
- package/dist/types.d.ts +3 -3
- package/package.json +4 -4
package/dist/aff.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AffInfo, AffWord, AffWordFlags, Fx, Rule, Substitution } from './affDef';
|
|
2
2
|
import { Converter } from './converter';
|
|
3
3
|
/** The `word` field in a Converted AffWord has been converted using the OCONV mapping */
|
|
4
|
-
export
|
|
4
|
+
export type ConvertedAffWord = AffWord;
|
|
5
5
|
export declare class Aff {
|
|
6
6
|
affInfo: AffInfo;
|
|
7
7
|
protected rules: Map<string, Rule>;
|
package/dist/affDef.d.ts
CHANGED
package/dist/affReader.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface AffLine {
|
|
|
26
26
|
option: string;
|
|
27
27
|
value: string | undefined;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
type Afx = Map<string, Fx>;
|
|
30
30
|
export declare const testing: {
|
|
31
31
|
parseAffixRule: typeof parseAffixRule;
|
|
32
32
|
tablePfxOrSfx: typeof tablePfxOrSfx;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import * as stream from 'stream';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type Streamable = string | Buffer;
|
|
5
|
+
export type IterableLike<T> = Iterable<T> | IterableIterator<T>;
|
|
6
6
|
/**
|
|
7
7
|
* Transform an iterable into a node readable stream.
|
|
8
8
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ export interface WordInfo {
|
|
|
2
2
|
word: string;
|
|
3
3
|
rules: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type Dictionary<T, K extends string | number = string> = {
|
|
6
6
|
[index in K]: T;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type Filter<T, U> = T extends U ? T : never;
|
|
9
|
+
export type Mapping<F, T> = keyof F extends string ? Dictionary<T, Filter<keyof F, string>> : never;
|
|
10
10
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hunspell-reader",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.3",
|
|
4
4
|
"description": "A library for reading Hunspell Dictionary Files",
|
|
5
5
|
"bin": "bin.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"homepage": "https://github.com/Jason-Rev/hunspell-reader#readme",
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/fs-extra": "^9.0.13",
|
|
41
|
-
"@types/jest": "^29.2.
|
|
41
|
+
"@types/jest": "^29.2.3",
|
|
42
42
|
"@types/node": "^18.11.9",
|
|
43
43
|
"jest": "^29.3.1",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"ts-jest": "^29.0.3",
|
|
46
|
-
"typescript": "^4.
|
|
46
|
+
"typescript": "^4.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"commander": "^9.4.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "df0efdbb0dc7b084579130ba5fe97441c0ab67ca"
|
|
58
58
|
}
|