taraskevizer 1.2.2 → 1.2.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/index.cjs CHANGED
@@ -2092,12 +2092,12 @@ function toTags(text, orig, abc, applyF) {
2092
2092
  continue;
2093
2093
  if (!/\(/.test(word)) {
2094
2094
  if (word.length === oWord.length) {
2095
- const LettersText = word.split("");
2096
- for (let x = 0; x < LettersText.length; x++) {
2097
- if (LettersText[x] !== oWord[x])
2098
- LettersText[x] = applyF(LettersText[x]);
2095
+ const wordLetters = word.split("");
2096
+ for (let j = 0; j < wordLetters.length; j++) {
2097
+ if (wordH[j] !== oWord[j])
2098
+ wordLetters[j] = applyF(wordLetters[j]);
2099
2099
  }
2100
- text[i] = LettersText.join("");
2100
+ text[i] = wordLetters.join("");
2101
2101
  continue;
2102
2102
  }
2103
2103
  if (abc === CYRILLIC) {
package/dist/index.d.ts CHANGED
@@ -1,39 +1,39 @@
1
- type Promisify<T> = T extends (...args: infer TArgs) => infer TReturn ? (...args: TArgs) => Promise<TReturn> : never;
2
- type DeepPartial<T> = T extends object ? {
3
- [P in keyof T]?: DeepPartial<T[P]>;
4
- } : T;
5
- type Alphabet = 0 | 1 | 2;
6
- type J = 0 | 1 | 2;
7
- type Variation = 0 | 1 | 2;
8
- type NonHtmlOptions = {
9
- nodeColors: boolean;
10
- h: boolean;
11
- variations: Variation;
12
- };
13
- type HtmlOptions = {
14
- g: boolean;
15
- };
16
- type TaraskOptions = DeepPartial<{
17
- abc: Alphabet;
18
- j: J;
19
- html: false | HtmlOptions;
20
- nonHtml: false | NonHtmlOptions;
21
- }>;
22
- type Tarask = (text: string, options?: TaraskOptions) => string;
23
- type TaraskAsync = Promisify<Tarask>;
24
- type Dict<T = RegExp> = [string, T][];
25
- type AlphabetDependentDict = {
26
- [key in Alphabet]?: Dict;
1
+ type Promisify<T> = T extends (...args: infer TArgs) => infer TReturn ? (...args: TArgs) => Promise<TReturn> : never;
2
+ type DeepPartial<T> = T extends object ? {
3
+ [P in keyof T]?: DeepPartial<T[P]>;
4
+ } : T;
5
+ type Alphabet = 0 | 1 | 2;
6
+ type J = 0 | 1 | 2;
7
+ type Variation = 0 | 1 | 2;
8
+ type NonHtmlOptions = {
9
+ nodeColors: boolean;
10
+ h: boolean;
11
+ variations: Variation;
12
+ };
13
+ type HtmlOptions = {
14
+ g: boolean;
15
+ };
16
+ type TaraskOptions = DeepPartial<{
17
+ abc: Alphabet;
18
+ j: J;
19
+ html: false | HtmlOptions;
20
+ nonHtml: false | NonHtmlOptions;
21
+ }>;
22
+ type Tarask = (text: string, options?: TaraskOptions) => string;
23
+ type TaraskAsync = Promisify<Tarask>;
24
+ type Dict<T = RegExp> = [string, T][];
25
+ type AlphabetDependentDict = {
26
+ [key in Alphabet]?: Dict;
27
27
  };
28
28
 
29
- declare const taraskSync: Tarask;
29
+ declare const taraskSync: Tarask;
30
30
  declare const tarask: TaraskAsync;
31
31
 
32
- declare const gobj: {
33
- readonly г: "ґ";
34
- readonly Г: "Ґ";
35
- readonly ґ: "г";
36
- readonly Ґ: "Г";
32
+ declare const gobj: {
33
+ readonly г: "ґ";
34
+ readonly Г: "Ґ";
35
+ readonly ґ: "г";
36
+ readonly Ґ: "Г";
37
37
  };
38
38
 
39
39
  export { AlphabetDependentDict, Dict, HtmlOptions, NonHtmlOptions, Tarask, TaraskAsync, TaraskOptions, gobj, tarask, taraskSync };
package/dist/index.js CHANGED
@@ -2065,12 +2065,12 @@ function toTags(text, orig, abc, applyF) {
2065
2065
  continue;
2066
2066
  if (!/\(/.test(word)) {
2067
2067
  if (word.length === oWord.length) {
2068
- const LettersText = word.split("");
2069
- for (let x = 0; x < LettersText.length; x++) {
2070
- if (LettersText[x] !== oWord[x])
2071
- LettersText[x] = applyF(LettersText[x]);
2068
+ const wordLetters = word.split("");
2069
+ for (let j = 0; j < wordLetters.length; j++) {
2070
+ if (wordH[j] !== oWord[j])
2071
+ wordLetters[j] = applyF(wordLetters[j]);
2072
2072
  }
2073
- text[i] = LettersText.join("");
2073
+ text[i] = wordLetters.join("");
2074
2074
  continue;
2075
2075
  }
2076
2076
  if (abc === CYRILLIC) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "taraskevizer",
3
3
  "author": "GooseOb",
4
4
  "license": "MIT",
5
- "version": "1.2.2",
5
+ "version": "1.2.3",
6
6
  "private": false,
7
7
  "homepage": "https://gooseob.github.io/taraskevizatar/",
8
8
  "main": "dist/index.js",
@@ -28,6 +28,7 @@
28
28
  "type": "git",
29
29
  "url": "git+https://github.com/GooseOb/taraskevizer.git"
30
30
  },
31
+ "description": "Канвэртацыя акадэмічнага правапісу ў клясычны",
31
32
  "keywords": [
32
33
  "taraskevizatar",
33
34
  "taraskevica",