taraskevizer 9.1.7 → 9.1.9

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
@@ -7,7 +7,7 @@ const printWithPrefix = (msg) => {
7
7
  process.argv.splice(0, 2);
8
8
  const checkForOptions = (options) => process.argv[0] && options.includes(process.argv[0].toLowerCase());
9
9
  if (checkForOptions(['-v', '--version'])) {
10
- printWithPrefix("9.1.7");
10
+ printWithPrefix("9.1.9");
11
11
  process.exit(0);
12
12
  }
13
13
  if (checkForOptions(['-h', '--help'])) {
@@ -1,6 +1,7 @@
1
1
  import { toOneLine } from './lib.js';
2
2
 
3
- export const iwords = toOneLine(`біс
3
+ export const iwords = toOneLine(`\u0301
4
+ біс
4
5
  бсэн
5
6
  в[аеоы]
6
7
  верс
@@ -4,5 +4,18 @@ import type { TaraskStep } from '../steps/types';
4
4
  *
5
5
  * > Not recommended to use if
6
6
  * a step doesn't ALWAYS change the text.
7
+ *
8
+ * @example
9
+ * type TextWrapperStorage = { wrapText: (text: string) => string };
10
+ *
11
+ * const trimStep = mutatingStep<TextWrapperStorage>(
12
+ * ({ text, storage: { wrapText } }) => wrapText(text.trim())
13
+ * );
14
+ * // is equivalent to
15
+ * const trimStep: TaraskStep<TextWrapperStorage> = (options) => {
16
+ * options.text = options.storage.wrapText(
17
+ * options.text.trim()
18
+ * );
19
+ * };
7
20
  */
8
21
  export declare const mutatingStep: <T extends object = {}>(callback: (...args: Parameters<TaraskStep<T>>) => string) => TaraskStep<T>;
@@ -3,7 +3,7 @@ import { dictFrom, mutatingStep, replaceWithDict } from '../lib/index.js';
3
3
  const iDict = dictFrom.raw([
4
4
  [/([аеёіоуыэюя] )і ў/, '$1й у'],
5
5
  [/([аеёіоуыэюя] )і /, '$1й '],
6
- [/([аеёіоуыэюя] ?)і/, '$1йі'],
6
+ [/([аеёіоуыэюя\u0301] ?)і/, '$1йі'],
7
7
  [` і(?=${iwords})`, ' йі'],
8
8
  ]);
9
9
  export const iotacizeJi = mutatingStep(({ text }) => replaceWithDict(text, iDict));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taraskevizer",
3
- "version": "9.1.7",
3
+ "version": "9.1.9",
4
4
  "author": "GooseOb",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,8 +10,8 @@
10
10
  "module": "dist/index.js",
11
11
  "devDependencies": {
12
12
  "@digitak/esrun": "^3.2.26",
13
- "@types/node": "^20.14.14",
14
- "bun-types": "^1.1.21",
13
+ "@types/node": "^20.14.15",
14
+ "bun-types": "^1.1.22",
15
15
  "husky": "^9.1.4",
16
16
  "prettier": "^3.3.3",
17
17
  "typedoc": "^0.25.13",