hunspell-reader
Advanced tools
Comparing version 7.3.9 to 8.0.0
@@ -9,5 +9,9 @@ import * as GS from 'gensequence'; | ||
export class Aff { | ||
affInfo; | ||
rules; | ||
_oConv; | ||
_iConv; | ||
_maxSuffixDepth = DefaultMaxDepth; | ||
constructor(affInfo) { | ||
this.affInfo = affInfo; | ||
this._maxSuffixDepth = DefaultMaxDepth; | ||
this.rules = processRules(affInfo); | ||
@@ -168,3 +172,2 @@ this._iConv = new Converter(affInfo.ICONV || []); | ||
.filter(([key, value]) => !!affFlag[key] && !!value) | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
.map(([key, value]) => ({ id: value, type: 'flag', flags: affFlag[key] })); | ||
@@ -171,0 +174,0 @@ const rules = sfxRules |
const regexSpecialCharacters = /[|\\{}()[\]^$+*?.]/g; | ||
export class Converter { | ||
_match; | ||
_map; | ||
constructor(convList) { | ||
@@ -4,0 +6,0 @@ const match = convList.map(({ from }) => from.replace(regexSpecialCharacters, '\\$&')).join('|'); |
@@ -9,2 +9,4 @@ import * as fs from 'fs/promises'; | ||
export class IterableHunspellReader { | ||
src; | ||
aff; | ||
constructor(src) { | ||
@@ -11,0 +13,0 @@ this.src = src; |
@@ -9,6 +9,8 @@ import * as stream from 'stream'; | ||
class ReadableObservableStream extends stream.Readable { | ||
_source; | ||
iter; | ||
done = false; | ||
constructor(_source, options) { | ||
super(options); | ||
this._source = _source; | ||
this.done = false; | ||
} | ||
@@ -15,0 +17,0 @@ _read() { |
{ | ||
"name": "hunspell-reader", | ||
"version": "7.3.9", | ||
"version": "8.0.0", | ||
"description": "A library for reading Hunspell Dictionary Files", | ||
@@ -45,4 +45,4 @@ "bin": "bin.js", | ||
"dependencies": { | ||
"@cspell/cspell-pipe": "^7.3.9", | ||
"@cspell/cspell-types": "^7.3.9", | ||
"@cspell/cspell-pipe": "^8.0.0", | ||
"@cspell/cspell-types": "^8.0.0", | ||
"commander": "^11.1.0", | ||
@@ -53,5 +53,5 @@ "gensequence": "^6.0.0", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
"gitHead": "77c7fb3ffd80a626ec07d704cefcaa21d62fd460" | ||
"gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67132
1715
+ Added@cspell/cspell-pipe@8.16.1(transitive)
+ Added@cspell/cspell-types@8.16.1(transitive)
- Removed@cspell/cspell-pipe@7.3.9(transitive)
- Removed@cspell/cspell-types@7.3.9(transitive)
Updated@cspell/cspell-pipe@^8.0.0
Updated@cspell/cspell-types@^8.0.0