@reliverse/relinka 1.3.0 → 1.3.1

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.
@@ -40,6 +40,7 @@ export type FmtMsgOptions = {
40
40
  symbol?: SymbolName;
41
41
  customSymbol?: string;
42
42
  symbolColor?: ColorName;
43
+ noNewLine?: boolean;
43
44
  };
44
45
  export declare const symbols: {
45
46
  readonly pointer: string;
@@ -278,8 +278,16 @@ ${borderTwoSpaces}` : "",
278
278
  }
279
279
  const printedLineStack = [];
280
280
  export function msg(opts) {
281
- const { text } = fmt(opts);
282
- process.stdout.write(text);
281
+ const { text, lineCount } = fmt(opts);
282
+ if (opts.type === "M_BAR" && opts.noNewLine) {
283
+ process.stdout.write(text);
284
+ } else {
285
+ process.stdout.write(`${text}
286
+ `);
287
+ }
288
+ printedLineStack.push(
289
+ opts.type === "M_BAR" && opts.noNewLine ? lineCount : lineCount + 1
290
+ );
283
291
  }
284
292
  export function msgUndo(count = 1) {
285
293
  for (let i = 0; i < count; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reliverse/relinka",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "blefnk",
5
5
  "type": "module",
6
6
  "description": "@reliverse/relinka is a powerful logger for your terminal.",