@rsbuild/core 2.1.5 → 2.1.7

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.
@@ -18,42 +18,35 @@ declare const color: {
18
18
 
19
19
  declare const LOG_TYPES: {
20
20
  error: {
21
- label: string;
21
+ readonly label: string;
22
22
  level: "error";
23
- color: ColorFn;
24
23
  };
25
24
  warn: {
26
- label: string;
25
+ readonly label: string;
27
26
  level: "warn";
28
- color: ColorFn;
29
27
  };
30
28
  info: {
31
- label: string;
29
+ readonly label: string;
32
30
  level: "info";
33
- color: ColorFn;
34
31
  };
35
32
  start: {
36
- label: string;
33
+ readonly label: string;
37
34
  level: "info";
38
- color: ColorFn;
39
35
  };
40
36
  ready: {
41
- label: string;
37
+ readonly label: string;
42
38
  level: "info";
43
- color: ColorFn;
44
39
  };
45
40
  success: {
46
- label: string;
41
+ readonly label: string;
47
42
  level: "info";
48
- color: ColorFn;
49
43
  };
50
44
  log: {
51
45
  level: "info";
52
46
  };
53
47
  debug: {
54
- label: string;
48
+ readonly label: string;
55
49
  level: "verbose";
56
- color: ColorFn;
57
50
  };
58
51
  };
59
52
 
@@ -81,6 +74,13 @@ interface Options {
81
74
  * @default globalThis.console
82
75
  */
83
76
  console?: Pick<Console, 'log' | 'warn' | 'error'>;
77
+ /**
78
+ * Aligns continuation lines of multi-line messages to the first line's
79
+ * content column (label + prefix). Error object stacks keep their original
80
+ * top-aligned formatting.
81
+ * @default false
82
+ */
83
+ alignMultiline?: boolean;
84
84
  }
85
85
  type LogMethods = keyof typeof LOG_TYPES;
86
86
  type Logger = Record<LogMethods, LogFunction> & {
@@ -1 +1 @@
1
- {"name":"rslog","version":"2.1.3","license":"MIT","types":"index.d.ts","type":"module"}
1
+ {"name":"rslog","version":"2.3.0","license":"MIT","types":"index.d.ts","type":"module"}