@reliverse/relinka 1.5.1 → 1.5.2

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 CHANGED
@@ -69,9 +69,20 @@ export async function main() {
69
69
  "verbose",
70
70
  "This SYNC verbose message can be seen only if verbose=true (in user config) AND config was loaded ",
71
71
  );
72
+
72
73
  // --- BOX LEVEL EXAMPLES ---
73
74
  relinka("box", "This is a boxed message using direct syntax!");
74
75
  relinka.box("This is a boxed message using method syntax!");
76
+
77
+ // --- MESSAGE LEVEL EXAMPLES ---
78
+ relinka("message", "This is a message using direct syntax!");
79
+ relinka.message("This is a message using method syntax!");
80
+
81
+ // --- STEP LEVEL EXAMPLES ---
82
+ relinka("step", "Step 1: Initialize application");
83
+ relinka.step("Step 2: Load configuration");
84
+ relinka.step("Step 3: Start services");
85
+
75
86
  // --- LOG LEVEL EXAMPLES ---
76
87
  relinka("log", "Hello! 👋");
77
88
  relinka("log", "Great to see you here!");
package/bin/impl.d.ts CHANGED
@@ -34,7 +34,7 @@ export type LogLevelConfig = {
34
34
  /** Configuration for all log levels. */
35
35
  export type LogLevelsConfig = Partial<Record<LogLevel, LogLevelConfig>>;
36
36
  /** Log level types used by the logger. */
37
- export type LogLevel = "error" | "fatal" | "info" | "success" | "verbose" | "warn" | "log" | "internal" | "null" | "step" | "box";
37
+ export type LogLevel = "error" | "fatal" | "info" | "success" | "verbose" | "warn" | "log" | "internal" | "null" | "step" | "box" | "message";
38
38
  /**
39
39
  * Configuration options for the Relinka logger.
40
40
  * All properties are optional to allow for partial configuration.
package/bin/impl.js CHANGED
@@ -86,6 +86,12 @@ const DEFAULT_RELINKA_CONFIG = {
86
86
  color: "whiteBright",
87
87
  spacing: 1
88
88
  },
89
+ message: {
90
+ symbol: "\u{1F7A0}",
91
+ fallbackSymbol: "[MSG]",
92
+ color: "cyan",
93
+ spacing: 3
94
+ },
89
95
  null: { symbol: "", fallbackSymbol: "", color: "dim", spacing: 0 }
90
96
  }
91
97
  };
@@ -301,6 +307,7 @@ const consoleMethodMap = {
301
307
  log: console.log,
302
308
  step: console.log,
303
309
  box: console.log,
310
+ message: console.log,
304
311
  null: console.log
305
312
  };
306
313
  function logToConsole(config, level, formattedMessage) {
@@ -602,7 +609,7 @@ relinka.null = (message, ...args) => relinka("null", message, ...args);
602
609
  relinka.step = (message, ...args) => relinka("step", message, ...args);
603
610
  relinka.box = (message, ...args) => relinka("box", message, ...args);
604
611
  relinka.clear = () => relinka("clear", "");
605
- relinka.message = (message, ...args) => relinka("log", message, ...args);
612
+ relinka.message = (message, ...args) => relinka("message", message, ...args);
606
613
  export async function relinkaAsync(type, message, ...args) {
607
614
  if (message === "") {
608
615
  console.log();
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "name": "@reliverse/relinka",
12
12
  "type": "module",
13
- "version": "1.5.1",
13
+ "version": "1.5.2",
14
14
  "keywords": [
15
15
  "logger",
16
16
  "consola",