@reliverse/relinka 1.2.10 → 1.3.0
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.
|
@@ -82,6 +82,7 @@ export declare function msgUndoAll(): void;
|
|
|
82
82
|
/**
|
|
83
83
|
* Prints: "│ <text>" (two spaces after the bar).
|
|
84
84
|
* If text is empty, it just prints "│".
|
|
85
|
-
* If indent is 1, it prints "│ <text>"
|
|
85
|
+
* If indent is 1, it prints "│ <text>" (one space).
|
|
86
|
+
* If indent is 2, it prints "│ <text>" (two spaces), etc.
|
|
86
87
|
*/
|
|
87
88
|
export declare function printLineBar(text: string, indent?: number): void;
|
|
@@ -258,7 +258,7 @@ ${borderTwoSpaces}` : "",
|
|
|
258
258
|
}
|
|
259
259
|
if (opts.type === "M_END" && opts.border && index === 0) {
|
|
260
260
|
if (!opts.title) return "";
|
|
261
|
-
return `${bar({ borderColor: opts.borderColor })} ${line}`;
|
|
261
|
+
return `${bar({ borderColor: opts.borderColor ?? "dim" })} ${line}`;
|
|
262
262
|
}
|
|
263
263
|
if (!line.trim() || line.includes(symbols.middle)) {
|
|
264
264
|
return line;
|
|
@@ -278,9 +278,8 @@ ${borderTwoSpaces}` : "",
|
|
|
278
278
|
}
|
|
279
279
|
const printedLineStack = [];
|
|
280
280
|
export function msg(opts) {
|
|
281
|
-
const { text
|
|
282
|
-
process.stdout.write(text
|
|
283
|
-
printedLineStack.push(lineCount + 1);
|
|
281
|
+
const { text } = fmt(opts);
|
|
282
|
+
process.stdout.write(text);
|
|
284
283
|
}
|
|
285
284
|
export function msgUndo(count = 1) {
|
|
286
285
|
for (let i = 0; i < count; i++) {
|
|
@@ -301,7 +300,7 @@ export function msgUndoAll() {
|
|
|
301
300
|
export function printLineBar(text, indent = 2) {
|
|
302
301
|
if (text === "") {
|
|
303
302
|
console.log(re.dim("\u2502"));
|
|
304
|
-
|
|
303
|
+
} else {
|
|
304
|
+
console.log(`${re.dim("\u2502")}${" ".repeat(indent)}${text}`);
|
|
305
305
|
}
|
|
306
|
-
console.log(`${re.dim("\u2502")}${" ".repeat(indent)}${text}`);
|
|
307
306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reliverse/relinka",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "blefnk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "@reliverse/relinka is a powerful logger for your terminal.",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@figliolia/chalk-animation": "^1.0.4",
|
|
59
|
-
"@reliverse/relico": "^1.0.
|
|
60
|
-
"@reliverse/runtime": "^1.0.
|
|
59
|
+
"@reliverse/relico": "^1.0.1",
|
|
60
|
+
"@reliverse/runtime": "^1.0.2",
|
|
61
61
|
"@sinclair/typebox": "^0.34.14",
|
|
62
62
|
"ansi-diff-stream": "^1.2.1",
|
|
63
63
|
"ansi-escapes": "^7.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@eslint/js": "^9.19.0",
|
|
104
104
|
"@eslint/json": "^0.10.0",
|
|
105
105
|
"@eslint/markdown": "^6.2.2",
|
|
106
|
-
"@stylistic/eslint-plugin": "^
|
|
106
|
+
"@stylistic/eslint-plugin": "^3.0.0",
|
|
107
107
|
"@types/ansi-diff-stream": "^1.2.3",
|
|
108
108
|
"@types/bun": "^1.2.0",
|
|
109
109
|
"@types/chalk-animation": "^1.6.3",
|