taraskevizer 9.2.3 → 9.2.4
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 +2 -2
- package/dist/lib/mutating-step.d.ts +1 -1
- package/dist/lib/replace-g.js +1 -1
- package/dist/lib/replace-with-dict.js +1 -3
- package/dist/lib/tools.debug.d.ts +1 -1
- package/dist/lib/tools.debug.js +1 -3
- package/dist/lib/types.d.ts +5 -0
- package/dist/steps/apply-variations.d.ts +1 -1
- package/dist/steps/convert-alphabet.d.ts +2 -2
- package/dist/steps/finalize.d.ts +1 -1
- package/dist/steps/iotacize-ji.d.ts +1 -1
- package/dist/steps/phonetize.d.ts +1 -1
- package/dist/steps/prepare.d.ts +1 -1
- package/dist/steps/taraskevize.d.ts +1 -1
- package/dist/steps/to-lower-case.d.ts +1 -1
- package/dist/steps/types.d.ts +1 -1
- package/package.json +10 -5
package/dist/bin.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { dicts, TaraskConfig, tarask, pipelines, htmlConfigOptions, wrappers, } from './index.js';
|
|
3
3
|
const printWithPrefix = (msg) => {
|
|
4
|
-
process.stdout.write("[34m[taraskevizer][0m" + msg + '\n');
|
|
4
|
+
process.stdout.write("[34m[taraskevizer][0m" + ' ' + msg + '\n');
|
|
5
5
|
};
|
|
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.2.
|
|
9
|
+
printWithPrefix("9.2.4");
|
|
10
10
|
process.exit(0);
|
|
11
11
|
}
|
|
12
12
|
if (checkForOptions(['-h', '--help'])) {
|
|
@@ -18,4 +18,4 @@ import type { TaraskStep } from '../steps/types';
|
|
|
18
18
|
* );
|
|
19
19
|
* };
|
|
20
20
|
*/
|
|
21
|
-
export declare const mutatingStep: <T extends object =
|
|
21
|
+
export declare const mutatingStep: <T extends object = object>(callback: (...args: Parameters<TaraskStep<T>>) => string) => TaraskStep<T>;
|
package/dist/lib/replace-g.js
CHANGED
package/dist/lib/tools.debug.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export const replaceWithDict = (text, dict, regex) => {
|
|
2
2
|
for (const item of dict) {
|
|
3
3
|
const [pattern, result] = item;
|
|
4
|
-
text = text.replace(pattern,
|
|
5
|
-
//@ts-ignore
|
|
6
|
-
result);
|
|
4
|
+
text = text.replace(pattern, result);
|
|
7
5
|
if (regex.test(text)) {
|
|
8
6
|
log('replaceWithDict:', item);
|
|
9
7
|
process.exit(1);
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const applyVariations: import("./types").TaraskStep<
|
|
1
|
+
export declare const applyVariations: import("./types").TaraskStep<object>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const convertAlphabet: import("./types").TaraskStep<
|
|
2
|
-
export declare const convertAlphabetLowerCase: import("./types").TaraskStep<
|
|
1
|
+
export declare const convertAlphabet: import("./types").TaraskStep<object>;
|
|
2
|
+
export declare const convertAlphabetLowerCase: import("./types").TaraskStep<object>;
|
package/dist/steps/finalize.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iotacizeJi: import("./types").TaraskStep<
|
|
1
|
+
export declare const iotacizeJi: import("./types").TaraskStep<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const phonetize: import("./types").TaraskStep<
|
|
1
|
+
export declare const phonetize: import("./types").TaraskStep<object>;
|
package/dist/steps/prepare.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const taraskevize: import("./types").TaraskStep<
|
|
1
|
+
export declare const taraskevize: import("./types").TaraskStep<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const toLowerCase: import("./types").TaraskStep<
|
|
1
|
+
export declare const toLowerCase: import("./types").TaraskStep<object>;
|
package/dist/steps/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taraskevizer",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.4",
|
|
4
4
|
"author": "GooseOb",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,12 +10,16 @@
|
|
|
10
10
|
"module": "dist/index.js",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@digitak/esrun": "^3.2.26",
|
|
13
|
-
"@
|
|
14
|
-
"
|
|
13
|
+
"@eslint/js": "^9.13.0",
|
|
14
|
+
"@types/node": "^20.16.12",
|
|
15
|
+
"bun-types": "^1.1.31",
|
|
16
|
+
"eslint": "^9.13.0",
|
|
17
|
+
"globals": "^15.11.0",
|
|
15
18
|
"husky": "^9.1.6",
|
|
16
19
|
"prettier": "^3.3.3",
|
|
17
|
-
"typedoc": "^0.26.
|
|
18
|
-
"typescript": "^5.6.3"
|
|
20
|
+
"typedoc": "^0.26.10",
|
|
21
|
+
"typescript": "^5.6.3",
|
|
22
|
+
"typescript-eslint": "^8.11.0"
|
|
19
23
|
},
|
|
20
24
|
"bin": {
|
|
21
25
|
"tarask": "dist/bin.js"
|
|
@@ -38,6 +42,7 @@
|
|
|
38
42
|
"scripts": {
|
|
39
43
|
"build": "bun ./build.ts",
|
|
40
44
|
"prettier": "prettier --write .",
|
|
45
|
+
"lint": "eslint .",
|
|
41
46
|
"dev": "esrun --watch=src/*,test/* --send-code-mode=temporaryFile test",
|
|
42
47
|
"dev:bun": "bun test --watch",
|
|
43
48
|
"test": "esrun --send-code-mode=temporaryFile test",
|