Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hunspell-reader

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hunspell-reader - npm Package Compare versions

Comparing version 7.3.9 to 8.0.0

7

dist/aff.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc