taraskevizer 9.3.1 → 9.3.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/bin.js CHANGED
@@ -6,7 +6,7 @@ const printWithPrefix = (msg) => {
6
6
  process.argv.splice(0, 2);
7
7
  const checkForOptions = (options) => process.argv[0] && options.includes(process.argv[0].toLowerCase());
8
8
  if (checkForOptions(['-v', '--version'])) {
9
- printWithPrefix("9.3.1");
9
+ printWithPrefix("9.3.3");
10
10
  process.exit(0);
11
11
  }
12
12
  if (checkForOptions(['-h', '--help'])) {
@@ -29,7 +29,7 @@ export const arabic = {
29
29
  [re.gi(presoft + '[іы]'), '$1$2\u0650'],
30
30
  [/ [Iі] /g, ' \u0627\u0650 '],
31
31
  [re.gi(presoft + '[оёую]'), '$1$2\u064F'],
32
- [/[ʼ]/g, 'ع'],
32
+ [/ʼ/g, 'ع'],
33
33
  [/[Ьь]/g, ''],
34
34
  // [/[ьʼ]/g, ''],
35
35
  [/[ЯяЕе]/g, 'ي\u064E'],
@@ -60,7 +60,7 @@ export const arabic = {
60
60
  [/[Цц]/g, 'ࢯ'],
61
61
  [/[Чч]/g, 'چ'],
62
62
  [/[Шш]/g, 'ش'],
63
- [/[,]/g, '،'],
63
+ [/,/g, '،'],
64
64
  [/\?/g, '؟'],
65
65
  ]),
66
66
  };
@@ -15,12 +15,6 @@
15
15
  * @module
16
16
  */
17
17
  import { type TaraskStep } from './steps';
18
- /**
19
- * Storage for the pipeline {@link abc}.
20
- */
21
- type AbcOnlyStorage = {
22
- doEscapeCapitalized: boolean;
23
- };
24
18
  export type Pipeline = TaraskStep<any>[];
25
19
  /**
26
20
  * Pipeline for changing only the alphabet.
@@ -29,11 +23,7 @@ export type Pipeline = TaraskStep<any>[];
29
23
  *
30
24
  * To see the full list of steps, check the source code.
31
25
  */
32
- export declare const abc: (TaraskStep<import("./steps").SpecialSyntaxStorage> | TaraskStep<import("./steps").WhiteSpaceStorage> | TaraskStep<import("./steps").TrimStorage> | (({ storage, cfg }: {
33
- text: string;
34
- storage: AbcOnlyStorage;
35
- cfg: import("./config").TaraskConfig;
36
- }) => void))[];
26
+ export declare const abc: (TaraskStep<import("./steps").SpecialSyntaxStorage> | TaraskStep<import("./steps").WhiteSpaceStorage> | TaraskStep<import("./steps").TrimStorage>)[];
37
27
  /**
38
28
  * For better tree-shaking instead of `Array.prototype.flatMap`
39
29
  *
@@ -51,4 +41,3 @@ export declare const tar: (TaraskStep<import("./steps").SplittedTextStorage> | T
51
41
  * @alpha
52
42
  */
53
43
  export declare const phonetic: (TaraskStep<import("./steps").SplittedTextStorage> | TaraskStep<import("./steps").SpecialSyntaxStorage> | TaraskStep<import("./steps").WhiteSpaceStorage> | TaraskStep<import("./steps").TrimStorage>)[];
54
- export {};
package/dist/pipelines.js CHANGED
@@ -2,10 +2,9 @@
2
2
  import { highlightDiffStep, applyNoFix, convertAlphabet, convertAlphabetLowerCase, joinSplittedText, prepare, replaceIbyJ, resolveSpecialSyntax, restoreCaseStep, restoreWhitespaces, storeSplittedAbcConvertedOrig, storeSplittedText, taraskevize, phonetize, whitespacesToSpaces, trim, finalize, toLowerCase, iotacizeJi, untrim, applyG, applyVariations, } from './steps/index.js';
3
3
 
4
4
  export const abc = [
5
- (({ storage, cfg }) => {
6
- storage.doEscapeCapitalized = cfg.doEscapeCapitalized;
7
- cfg.doEscapeCapitalized = false;
8
- }),
5
+ (ctx) => {
6
+ ctx.cfg = { ...ctx.cfg, doEscapeCapitalized: false };
7
+ },
9
8
  trim,
10
9
  resolveSpecialSyntax,
11
10
  prepare,
@@ -15,9 +14,6 @@ export const abc = [
15
14
  applyNoFix,
16
15
  finalize,
17
16
  untrim,
18
- (({ storage, cfg }) => {
19
- cfg.doEscapeCapitalized = storage.doEscapeCapitalized;
20
- }),
21
17
  ];
22
18
 
23
19
  export const _createPipeline = (subPipeline) => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taraskevizer",
3
- "version": "9.3.1",
3
+ "version": "9.3.3",
4
4
  "author": "GooseOb",
5
5
  "repository": {
6
6
  "type": "git",