taraskevizer 10.3.2 → 10.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/README.md +2 -0
- package/dist/bin.js +1 -1
- package/dist/dict/wordlist.js +2 -2
- package/dist/lib/debug.d.ts +1 -1
- package/dist/lib/debug.js +3 -3
- package/dist/steps/taraskevize.js +2 -1
- package/package.json +7 -6
package/README.md
CHANGED
package/dist/bin.js
CHANGED
|
@@ -7,7 +7,7 @@ process.argv.splice(0, 2);
|
|
|
7
7
|
const firstArg = process.argv[0];
|
|
8
8
|
if (firstArg) {
|
|
9
9
|
if (firstArg === '-v' || firstArg === '--version') {
|
|
10
|
-
printWithPrefix("10.3.
|
|
10
|
+
printWithPrefix("10.3.3");
|
|
11
11
|
process.exit(0);
|
|
12
12
|
}
|
|
13
13
|
if (firstArg === '-h' || firstArg === '--help') {
|
package/dist/dict/wordlist.js
CHANGED
|
@@ -186,7 +186,6 @@ export const wordlist = callableDict([
|
|
|
186
186
|
[/афган/g, 'а(ў|ф)ган'],
|
|
187
187
|
|
|
188
188
|
[/вавілон/g, 'бабілён'],
|
|
189
|
-
[/ бабенберг/g, ' бабэнбэрґ'],
|
|
190
189
|
[/багг(?=[аі])/g, 'баг'],
|
|
191
190
|
[/базілік/g, 'базылік'],
|
|
192
191
|
[/ бакач/g, ' бакачч'],
|
|
@@ -239,6 +238,7 @@ export const wordlist = callableDict([
|
|
|
239
238
|
[/бенін/g, 'бэнін'],
|
|
240
239
|
[/бенедыкт /g, 'бэнэдыкт '],
|
|
241
240
|
[/бэрге(?=лі|ля)/g, 'бер\ue0ffге'], // вёска
|
|
241
|
+
[/ (баб|роз)енберг/g, ' $1энбэрґ'],
|
|
242
242
|
[/берг/g, 'бэрґ'],
|
|
243
243
|
[/ бёрдслі /g, ' бэрдсьлі '],
|
|
244
244
|
[/берклі/g, 'бэрклі'],
|
|
@@ -592,7 +592,6 @@ export const wordlist = callableDict([
|
|
|
592
592
|
[/лантан/g, 'лянтан'],
|
|
593
593
|
[/лапланд/g, 'ляплянд'],
|
|
594
594
|
[/ларынг/g, 'лярынг'],
|
|
595
|
-
[/ларэ(?=н|та)/g, 'лярэ'],
|
|
596
595
|
[/ласьён/g, 'лясьён'],
|
|
597
596
|
[/ залатарэн/g, ' зала\ue0ffтарэн'],
|
|
598
597
|
[/латар(?=[ыэ])/g, 'лятар'],
|
|
@@ -654,6 +653,7 @@ export const wordlist = callableDict([
|
|
|
654
653
|
[/мексі(?=[кц])/g, 'мэксы'],
|
|
655
654
|
[/ мекк/g, ' мэк'], // мэка
|
|
656
655
|
[/мела(?=драм|нізм|ном|рэн|танін|ні[нт]|нхол)/g, 'мэля'],
|
|
656
|
+
[/ларэ(?=н|та)/g, 'лярэ'],
|
|
657
657
|
[/меліяра/g, 'мэліяра'],
|
|
658
658
|
[/мелоды/g, 'мэлёды'],
|
|
659
659
|
[/мелады/g, 'мэляды'],
|
package/dist/lib/debug.d.ts
CHANGED
package/dist/lib/debug.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const prefix = '[debug]';
|
|
2
2
|
export const dict = (dict, regex) => {
|
|
3
3
|
const fn = (text) => fn.value.reduce((acc, item) => {
|
|
4
|
-
if (regex.test(
|
|
5
|
-
console.log(prefix, 'replaceWithDict:', item);
|
|
4
|
+
if (regex.test(acc)) {
|
|
5
|
+
console.log(prefix, 'replaceWithDict:', item, acc);
|
|
6
6
|
process.exit(1);
|
|
7
7
|
}
|
|
8
8
|
return acc.replace(item[0], item[1]);
|
|
@@ -10,7 +10,7 @@ export const dict = (dict, regex) => {
|
|
|
10
10
|
fn.value = dict.value;
|
|
11
11
|
return fn;
|
|
12
12
|
};
|
|
13
|
-
export const
|
|
13
|
+
export const trace = (...msgs) => {
|
|
14
14
|
console.log(prefix, ...msgs);
|
|
15
15
|
return msgs[0];
|
|
16
16
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { wordlist } from '../dict/index.js';
|
|
2
2
|
import { endZSoftenAndNiaBiaz, mutatingStep, soften } from '../lib/index.js';
|
|
3
|
-
|
|
3
|
+
import { dict } from '../lib/debug.js';
|
|
4
|
+
export const taraskevize = mutatingStep(({ text }) => endZSoftenAndNiaBiaz(soften(dict(wordlist, /меля/)(text))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taraskevizer",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.3",
|
|
4
4
|
"author": "GooseOb",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"module": "dist/index.js",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@digitak/esrun": "^3.2.26",
|
|
13
|
-
"@eslint/js": "^9.
|
|
14
|
-
"@types/node": "^20.17.
|
|
15
|
-
"bun-types": "^1.
|
|
16
|
-
"eslint": "^9.
|
|
13
|
+
"@eslint/js": "^9.19.0",
|
|
14
|
+
"@types/node": "^20.17.17",
|
|
15
|
+
"bun-types": "^1.2.2",
|
|
16
|
+
"eslint": "^9.19.0",
|
|
17
17
|
"husky": "^9.1.7",
|
|
18
18
|
"prettier": "^3.4.2",
|
|
19
19
|
"typedoc": "^0.26.11",
|
|
20
20
|
"typescript": "^5.7.3",
|
|
21
|
-
"typescript-eslint": "^8.
|
|
21
|
+
"typescript-eslint": "^8.23.0"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
24
|
"tarask": "dist/bin.js"
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"dev": "esrun --watch=src/*,test/* --send-code-mode=temporaryFile test",
|
|
46
46
|
"dev:bun": "bun test --watch",
|
|
47
47
|
"test": "bun ./test",
|
|
48
|
+
"json": "node ./generate-json.js",
|
|
48
49
|
"test-cli": "bun run build && bun run test",
|
|
49
50
|
"docs": "typedoc"
|
|
50
51
|
},
|