hunspell-reader
Advanced tools
Comparing version 7.0.0-alpha.2 to 7.0.0
@@ -70,6 +70,4 @@ import * as GS from 'gensequence'; | ||
const r = affixRules | ||
.map((affix) => this.applyAffixToWord(affix, affWord, combinableSfx)) | ||
.reduce((a, b) => a.concat(b), []) | ||
.map((affWord) => this.applyRulesToWord(affWord, remainingDepth - 1)) | ||
.reduce((a, b) => a.concat(b), []); | ||
.flatMap((affix) => this.applyAffixToWord(affix, affWord, combinableSfx)) | ||
.flatMap((affWord) => this.applyRulesToWord(affWord, remainingDepth - 1)); | ||
return r; | ||
@@ -84,4 +82,3 @@ } | ||
return matchingSubstitutions | ||
.map((sub) => sub.substitutions) | ||
.reduce((a, b) => a.concat(b), []) | ||
.flatMap((sub) => sub.substitutions) | ||
.filter((sub) => sub.remove === '0' || sub.replace.test(word)) | ||
@@ -88,0 +85,0 @@ .map((sub) => this.substitute(affix, partialAffWord, sub)) |
{ | ||
"name": "hunspell-reader", | ||
"version": "7.0.0-alpha.2", | ||
"version": "7.0.0", | ||
"description": "A library for reading Hunspell Dictionary Files", | ||
@@ -46,11 +46,5 @@ "bin": "bin.js", | ||
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/hunspell-reader#readme", | ||
"devDependencies": { | ||
"@types/jest": "^29.5.1", | ||
"jest": "^29.5.0", | ||
"ts-jest": "^29.1.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@cspell/cspell-pipe": "^7.0.0-alpha.2", | ||
"@cspell/cspell-types": "^7.0.0-alpha.2", | ||
"@cspell/cspell-pipe": "^7.0.0", | ||
"@cspell/cspell-types": "^7.0.0", | ||
"commander": "^10.0.1", | ||
@@ -63,3 +57,3 @@ "gensequence": "^5.0.2", | ||
}, | ||
"gitHead": "a1b7c5daeef5afdb14d6444318f450b9fd9c035a" | ||
"gitHead": "52960d5ed75655978f9b633f44fd106937a63cd7" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
67310
1706
Updated@cspell/cspell-pipe@^7.0.0
Updated@cspell/cspell-types@^7.0.0