@reliverse/relinka 1.3.6 → 1.3.8

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.
Files changed (48) hide show
  1. package/README.md +115 -76
  2. package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.d.ts +13 -13
  3. package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.d.ts +19 -19
  4. package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.d.ts +19 -19
  5. package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.d.ts +2 -2
  6. package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.d.ts +5 -5
  7. package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.d.ts +20 -20
  8. package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.d.ts +140 -141
  9. package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.d.ts +1 -1
  10. package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.d.ts +11 -11
  11. package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.d.ts +10 -10
  12. package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.d.ts +10 -10
  13. package/bin/{relinka-impl → core-impl}/deprecated/utils/box.d.ts +114 -114
  14. package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.d.ts +69 -69
  15. package/bin/{relinka-impl → core-impl}/deprecated/utils/error.d.ts +6 -6
  16. package/bin/{relinka-impl → core-impl}/deprecated/utils/format.d.ts +14 -14
  17. package/bin/{relinka-impl → core-impl}/deprecated/utils/log.d.ts +13 -13
  18. package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.d.ts +14 -15
  19. package/bin/{relinka-impl → core-impl}/deprecated/utils/string.d.ts +50 -50
  20. package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.d.ts +41 -41
  21. package/bin/core-impl/impl-mod.d.ts +19 -0
  22. package/bin/core-impl/impl-mod.js +321 -0
  23. package/bin/{relinka-types.d.ts → core-types.d.ts} +193 -194
  24. package/bin/main.d.ts +22 -22
  25. package/bin/main.js +19 -19
  26. package/package.json +5 -5
  27. package/bin/relinka-impl/impl-mod.d.ts +0 -20
  28. package/bin/relinka-impl/impl-mod.js +0 -454
  29. /package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.js +0 -0
  30. /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.js +0 -0
  31. /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.js +0 -0
  32. /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.js +0 -0
  33. /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.js +0 -0
  34. /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.js +0 -0
  35. /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.js +0 -0
  36. /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.js +0 -0
  37. /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.js +0 -0
  38. /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.js +0 -0
  39. /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.js +0 -0
  40. /package/bin/{relinka-impl → core-impl}/deprecated/utils/box.js +0 -0
  41. /package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.js +0 -0
  42. /package/bin/{relinka-impl → core-impl}/deprecated/utils/error.js +0 -0
  43. /package/bin/{relinka-impl → core-impl}/deprecated/utils/format.js +0 -0
  44. /package/bin/{relinka-impl → core-impl}/deprecated/utils/log.js +0 -0
  45. /package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.js +0 -0
  46. /package/bin/{relinka-impl → core-impl}/deprecated/utils/string.js +0 -0
  47. /package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.js +0 -0
  48. /package/bin/{relinka-types.js → core-types.js} +0 -0
@@ -1,194 +1,193 @@
1
- /// <reference types="node" />
2
- /** Configuration for special directory handling. */
3
- export type RelinkaSpecialDirsConfig = {
4
- distDirNames?: string[];
5
- useParentConfigInDist?: boolean;
6
- };
7
- /** Configuration for directory-related settings. */
8
- export type RelinkaDirsConfig = {
9
- dailyLogs?: boolean;
10
- logDir?: string;
11
- maxLogFiles?: number;
12
- specialDirs?: RelinkaSpecialDirsConfig;
13
- };
14
- /**
15
- * Configuration options for the Relinka logger.
16
- * All properties are optional to allow for partial configuration.
17
- * Defaults will be applied during initialization.
18
- */
19
- export type RelinkaConfig = {
20
- debug?: boolean;
21
- dirs?: RelinkaDirsConfig;
22
- disableColors?: boolean;
23
- logFilePath?: string;
24
- saveLogsToFile?: boolean;
25
- withTimestamp?: boolean;
26
- };
27
- /** Represents information about a log file for cleanup purposes. */
28
- export type LogFileInfo = {
29
- path: string;
30
- mtime: number;
31
- };
32
- /** Log level types used by the logger. */
33
- export type LogLevel = "error" | "info" | "success" | "verbose" | "warn";
34
- /**
35
- * Defines the level of logs as specific numbers or special number types.
36
- *
37
- * @type {0 | 1 | 2 | 3 | 4 | 5 | (number & {})} LogLevelDeprecated - Represents the log level.
38
- * @default 0 - Represents the default log level.
39
- */
40
- export type LogLevelDeprecated = 0 | 1 | 2 | 3 | 4 | 5 | (number & {});
41
- /**
42
- * Lists the types of log messages supported by the system.
43
- *
44
- * @type {"silent" | "fatal" | "error" | "warn" | "log" | "info" | "success" | "fail" | "ready" | "start" | "box" | "debug" | "trace" | "verbose"} LogTypeDeprecated - Represents the specific type of log message.
45
- */
46
- export type LogTypeDeprecated = "silent" | "fatal" | "error" | "warn" | "log" | "info" | "success" | "fail" | "ready" | "start" | "box" | "debug" | "trace" | "verbose";
47
- export type RelinkaOptionsDeprecated = {
48
- /**
49
- * An array of RelinkaReporterDeprecated instances used to handle and output log messages.
50
- */
51
- reporters: RelinkaReporterDeprecated[];
52
- /**
53
- * A record mapping LogTypeDeprecated to InputLogObject, defining the log configuration for each log type.
54
- * See {@link LogTypeDeprecated} and {@link InputLogObject}.
55
- */
56
- types: Record<LogTypeDeprecated, InputLogObject>;
57
- /**
58
- * The minimum log level to output. See {@link LogLevelDeprecated}.
59
- */
60
- level: LogLevelDeprecated;
61
- /**
62
- * Default properties applied to all log messages unless overridden. See {@link InputLogObject}.
63
- */
64
- defaults: InputLogObject;
65
- /**
66
- * The maximum number of times a log message can be repeated within a given timeframe.
67
- */
68
- throttle: number;
69
- /**
70
- * The minimum time in milliseconds that must elapse before a throttled log message can be logged again.
71
- */
72
- throttleMin: number;
73
- /**
74
- * The Node.js writable stream for standard output. See {@link NodeJS.WriteStream}.
75
- * @optional
76
- */
77
- stdout?: NodeJS.WriteStream;
78
- /**
79
- * The Node.js writeable stream for standard error output. See {@link NodeJS.WriteStream}.
80
- * @optional
81
- */
82
- stderr?: NodeJS.WriteStream;
83
- /**
84
- * A function that allows you to mock log messages for testing purposes.
85
- * @optional
86
- */
87
- mockFn?: (type: LogTypeDeprecated, defaults: InputLogObject) => (...args: any) => void;
88
- /**
89
- * Configuration options for formatting log messages. See {@link FormatOptions}.
90
- */
91
- formatOptions: FormatOptions;
92
- };
93
- /**
94
- * @see https://nodejs.org/api/util.html#util_util_inspect_object_showhidden_depth_colors
95
- */
96
- export type FormatOptions = {
97
- /**
98
- * The maximum number of columns to output, affects formatting.
99
- * @optional
100
- */
101
- columns?: number;
102
- /**
103
- * Whether to include timestamp information in log messages.
104
- * @optional
105
- */
106
- date?: boolean;
107
- /**
108
- * Whether to use colors in the output.
109
- * @optional
110
- */
111
- colors?: boolean;
112
- /**
113
- * Specifies whether or not the output should be compact. Accepts a boolean or numeric level of compactness.
114
- * @optional
115
- */
116
- compact?: boolean | number;
117
- /**
118
- * Allows additional custom formatting options.
119
- */
120
- [key: string]: unknown;
121
- };
122
- export type InputLogObject = {
123
- /**
124
- * The logging level of the message. See {@link LogLevelDeprecated}.
125
- * @optional
126
- */
127
- level?: LogLevelDeprecated;
128
- /**
129
- * A string tag to categorize or identify the log message.
130
- * @optional
131
- */
132
- tag?: string;
133
- /**
134
- * The type of log message, which affects how it's processed and displayed. See {@link LogTypeDeprecated}.
135
- * @optional
136
- */
137
- type?: LogTypeDeprecated;
138
- /**
139
- * The main log message text.
140
- * @optional
141
- */
142
- message?: string;
143
- /**
144
- * Additional text or texts to be logged with the message.
145
- * @optional
146
- */
147
- additional?: string | string[];
148
- /**
149
- * Additional arguments to be logged with the message.
150
- * @optional
151
- */
152
- args?: any[];
153
- /**
154
- * The date and time when the log message was created.
155
- * @optional
156
- */
157
- date?: Date;
158
- };
159
- export type LogObject = {
160
- /**
161
- * The logging level of the message, overridden if required. See {@link LogLevelDeprecated}.
162
- */
163
- level: LogLevelDeprecated;
164
- /**
165
- * The type of log message, overridden if required. See {@link LogTypeDeprecated}.
166
- */
167
- type: LogTypeDeprecated;
168
- /**
169
- * A string tag to categorize or identify the log message, overridden if necessary.
170
- */
171
- tag: string;
172
- /**
173
- * Additional arguments to be logged with the message, overridden if necessary.
174
- */
175
- args: any[];
176
- /**
177
- * The date and time the log message was created, overridden if necessary.
178
- */
179
- date: Date;
180
- /**
181
- * Allows additional custom properties to be set on the log object.
182
- */
183
- [key: string]: unknown;
184
- } & InputLogObject;
185
- export type RelinkaReporterDeprecated = {
186
- /**
187
- * Defines how a log message is processed and displayed by this reporter.
188
- * @param logObj The LogObject containing the log information to process. See {@link LogObject}.
189
- * @param ctx An object containing context information such as options. See {@link RelinkaOptionsDeprecated}.
190
- */
191
- log: (logObj: LogObject, ctx: {
192
- options: RelinkaOptionsDeprecated;
193
- }) => void;
194
- };
1
+ /** Configuration for special directory handling. */
2
+ export type RelinkaSpecialDirsConfig = {
3
+ distDirNames?: string[];
4
+ useParentConfigInDist?: boolean;
5
+ };
6
+ /** Configuration for directory-related settings. */
7
+ export type RelinkaDirsConfig = {
8
+ dailyLogs?: boolean;
9
+ logDir?: string;
10
+ maxLogFiles?: number;
11
+ specialDirs?: RelinkaSpecialDirsConfig;
12
+ };
13
+ /**
14
+ * Configuration options for the Relinka logger.
15
+ * All properties are optional to allow for partial configuration.
16
+ * Defaults will be applied during initialization.
17
+ */
18
+ export type RelinkaConfig = {
19
+ debug?: boolean;
20
+ dirs?: RelinkaDirsConfig;
21
+ disableColors?: boolean;
22
+ logFilePath?: string;
23
+ saveLogsToFile?: boolean;
24
+ withTimestamp?: boolean;
25
+ };
26
+ /** Represents information about a log file for cleanup purposes. */
27
+ export type LogFileInfo = {
28
+ path: string;
29
+ mtime: number;
30
+ };
31
+ /** Log level types used by the logger. */
32
+ export type LogLevel = "error" | "info" | "success" | "verbose" | "warn";
33
+ /**
34
+ * Defines the level of logs as specific numbers or special number types.
35
+ *
36
+ * @type {0 | 1 | 2 | 3 | 4 | 5 | (number & {})} LogLevelDeprecated - Represents the log level.
37
+ * @default 0 - Represents the default log level.
38
+ */
39
+ export type LogLevelDeprecated = 0 | 1 | 2 | 3 | 4 | 5 | (number & {});
40
+ /**
41
+ * Lists the types of log messages supported by the system.
42
+ *
43
+ * @type {"silent" | "fatal" | "error" | "warn" | "log" | "info" | "success" | "fail" | "ready" | "start" | "box" | "debug" | "trace" | "verbose"} LogTypeDeprecated - Represents the specific type of log message.
44
+ */
45
+ export type LogTypeDeprecated = "silent" | "fatal" | "error" | "warn" | "log" | "info" | "success" | "fail" | "ready" | "start" | "box" | "debug" | "trace" | "verbose";
46
+ export type RelinkaOptionsDeprecated = {
47
+ /**
48
+ * An array of RelinkaReporterDeprecated instances used to handle and output log messages.
49
+ */
50
+ reporters: RelinkaReporterDeprecated[];
51
+ /**
52
+ * A record mapping LogTypeDeprecated to InputLogObject, defining the log configuration for each log type.
53
+ * See {@link LogTypeDeprecated} and {@link InputLogObject}.
54
+ */
55
+ types: Record<LogTypeDeprecated, InputLogObject>;
56
+ /**
57
+ * The minimum log level to output. See {@link LogLevelDeprecated}.
58
+ */
59
+ level: LogLevelDeprecated;
60
+ /**
61
+ * Default properties applied to all log messages unless overridden. See {@link InputLogObject}.
62
+ */
63
+ defaults: InputLogObject;
64
+ /**
65
+ * The maximum number of times a log message can be repeated within a given timeframe.
66
+ */
67
+ throttle: number;
68
+ /**
69
+ * The minimum time in milliseconds that must elapse before a throttled log message can be logged again.
70
+ */
71
+ throttleMin: number;
72
+ /**
73
+ * The Node.js writable stream for standard output. See {@link NodeJS.WriteStream}.
74
+ * @optional
75
+ */
76
+ stdout?: NodeJS.WriteStream;
77
+ /**
78
+ * The Node.js writeable stream for standard error output. See {@link NodeJS.WriteStream}.
79
+ * @optional
80
+ */
81
+ stderr?: NodeJS.WriteStream;
82
+ /**
83
+ * A function that allows you to mock log messages for testing purposes.
84
+ * @optional
85
+ */
86
+ mockFn?: (type: LogTypeDeprecated, defaults: InputLogObject) => (...args: any) => void;
87
+ /**
88
+ * Configuration options for formatting log messages. See {@link FormatOptions}.
89
+ */
90
+ formatOptions: FormatOptions;
91
+ };
92
+ /**
93
+ * @see https://nodejs.org/api/util.html#util_util_inspect_object_showhidden_depth_colors
94
+ */
95
+ export type FormatOptions = {
96
+ /**
97
+ * The maximum number of columns to output, affects formatting.
98
+ * @optional
99
+ */
100
+ columns?: number;
101
+ /**
102
+ * Whether to include timestamp information in log messages.
103
+ * @optional
104
+ */
105
+ date?: boolean;
106
+ /**
107
+ * Whether to use colors in the output.
108
+ * @optional
109
+ */
110
+ colors?: boolean;
111
+ /**
112
+ * Specifies whether or not the output should be compact. Accepts a boolean or numeric level of compactness.
113
+ * @optional
114
+ */
115
+ compact?: boolean | number;
116
+ /**
117
+ * Allows additional custom formatting options.
118
+ */
119
+ [key: string]: unknown;
120
+ };
121
+ export type InputLogObject = {
122
+ /**
123
+ * The logging level of the message. See {@link LogLevelDeprecated}.
124
+ * @optional
125
+ */
126
+ level?: LogLevelDeprecated;
127
+ /**
128
+ * A string tag to categorize or identify the log message.
129
+ * @optional
130
+ */
131
+ tag?: string;
132
+ /**
133
+ * The type of log message, which affects how it's processed and displayed. See {@link LogTypeDeprecated}.
134
+ * @optional
135
+ */
136
+ type?: LogTypeDeprecated;
137
+ /**
138
+ * The main log message text.
139
+ * @optional
140
+ */
141
+ message?: string;
142
+ /**
143
+ * Additional text or texts to be logged with the message.
144
+ * @optional
145
+ */
146
+ additional?: string | string[];
147
+ /**
148
+ * Additional arguments to be logged with the message.
149
+ * @optional
150
+ */
151
+ args?: any[];
152
+ /**
153
+ * The date and time when the log message was created.
154
+ * @optional
155
+ */
156
+ date?: Date;
157
+ };
158
+ export type LogObject = {
159
+ /**
160
+ * The logging level of the message, overridden if required. See {@link LogLevelDeprecated}.
161
+ */
162
+ level: LogLevelDeprecated;
163
+ /**
164
+ * The type of log message, overridden if required. See {@link LogTypeDeprecated}.
165
+ */
166
+ type: LogTypeDeprecated;
167
+ /**
168
+ * A string tag to categorize or identify the log message, overridden if necessary.
169
+ */
170
+ tag: string;
171
+ /**
172
+ * Additional arguments to be logged with the message, overridden if necessary.
173
+ */
174
+ args: any[];
175
+ /**
176
+ * The date and time the log message was created, overridden if necessary.
177
+ */
178
+ date: Date;
179
+ /**
180
+ * Allows additional custom properties to be set on the log object.
181
+ */
182
+ [key: string]: unknown;
183
+ } & InputLogObject;
184
+ export type RelinkaReporterDeprecated = {
185
+ /**
186
+ * Defines how a log message is processed and displayed by this reporter.
187
+ * @param logObj The LogObject containing the log information to process. See {@link LogObject}.
188
+ * @param ctx An object containing context information such as options. See {@link RelinkaOptionsDeprecated}.
189
+ */
190
+ log: (logObj: LogObject, ctx: {
191
+ options: RelinkaOptionsDeprecated;
192
+ }) => void;
193
+ };
package/bin/main.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export { LogLevelsDeprecated, LogTypesDeprecated, } from "./relinka-impl/deprecated/components/levels/levels.js";
2
- export { createRelinkaBaseDeprecated, relinkaBasicDeprecated, } from "./relinka-impl/deprecated/components/modes/basic.js";
3
- export { createRelinkaBrowserDeprecatedDeprecated, relinkaBrowserDeprecated, } from "./relinka-impl/deprecated/components/modes/browser.js";
4
- export { relinkaDeprecated } from "./relinka-impl/deprecated/components/relinka-deprecated/logger.js";
5
- export { createRelinkaSharedDeprecated, relinkaInstanceDeprecated, } from "./relinka-impl/deprecated/components/relinka-deprecated/mod.js";
6
- export type { LogFn, RelinkaInstanceDeprecated, } from "./relinka-impl/deprecated/components/relinka-deprecated/relinka.js";
7
- export { RelinkaInterface, createRelinkaDeprecated, } from "./relinka-impl/deprecated/components/relinka-deprecated/relinka.js";
8
- export { BasicReporter } from "./relinka-impl/deprecated/components/reporters/basic.js";
9
- export { BrowserReporter } from "./relinka-impl/deprecated/components/reporters/browser.js";
10
- export { TYPE_COLOR_MAP, LEVEL_COLOR_MAP, FancyReporter, } from "./relinka-impl/deprecated/components/reporters/fancy.js";
11
- export type { BoxBorderStyle, BoxStyle, BoxOpts, } from "./relinka-impl/deprecated/utils/box.js";
12
- export { box } from "./relinka-impl/deprecated/utils/box.js";
13
- export type { ColorName, ColorFunction, } from "./relinka-impl/deprecated/utils/deprecatedColors.js";
14
- export { colors, getColor, colorize, } from "./relinka-impl/deprecated/utils/deprecatedColors.js";
15
- export { parseStack } from "./relinka-impl/deprecated/utils/error.js";
16
- export { compileFormat, formatString, } from "./relinka-impl/deprecated/utils/format.js";
17
- export { isPlainObject, isLogObj, } from "./relinka-impl/deprecated/utils/log.js";
18
- export { writeStream } from "./relinka-impl/deprecated/utils/stream.js";
19
- export { stripAnsi, centerAlign, rightAlign, leftAlign, align, } from "./relinka-impl/deprecated/utils/string.js";
20
- export type { TreeItemObject, TreeItem, TreeOptions, } from "./relinka-impl/deprecated/utils/tree.js";
21
- export { formatTree } from "./relinka-impl/deprecated/utils/tree.js";
22
- export { configPromise, relinka, relinkaAsync, defineConfig, } from "./relinka-impl/impl-mod.js";
1
+ export { LogLevelsDeprecated, LogTypesDeprecated, } from "./core-impl/deprecated/components/levels/levels.js";
2
+ export { createRelinkaBaseDeprecated, relinkaBasicDeprecated, } from "./core-impl/deprecated/components/modes/basic.js";
3
+ export { createRelinkaBrowserDeprecatedDeprecated, relinkaBrowserDeprecated, } from "./core-impl/deprecated/components/modes/browser.js";
4
+ export { relinkaDeprecated } from "./core-impl/deprecated/components/relinka-deprecated/logger.js";
5
+ export { createRelinkaSharedDeprecated, relinkaInstanceDeprecated, } from "./core-impl/deprecated/components/relinka-deprecated/mod.js";
6
+ export type { LogFn, RelinkaInstanceDeprecated, } from "./core-impl/deprecated/components/relinka-deprecated/relinka.js";
7
+ export { RelinkaInterface, createRelinkaDeprecated, } from "./core-impl/deprecated/components/relinka-deprecated/relinka.js";
8
+ export { BasicReporter } from "./core-impl/deprecated/components/reporters/basic.js";
9
+ export { BrowserReporter } from "./core-impl/deprecated/components/reporters/browser.js";
10
+ export { TYPE_COLOR_MAP, LEVEL_COLOR_MAP, FancyReporter, } from "./core-impl/deprecated/components/reporters/fancy.js";
11
+ export type { BoxBorderStyle, BoxStyle, BoxOpts, } from "./core-impl/deprecated/utils/box.js";
12
+ export { box } from "./core-impl/deprecated/utils/box.js";
13
+ export type { ColorName, ColorFunction, } from "./core-impl/deprecated/utils/deprecatedColors.js";
14
+ export { colors, getColor, colorize, } from "./core-impl/deprecated/utils/deprecatedColors.js";
15
+ export { parseStack } from "./core-impl/deprecated/utils/error.js";
16
+ export { compileFormat, formatString, } from "./core-impl/deprecated/utils/format.js";
17
+ export { isPlainObject, isLogObj, } from "./core-impl/deprecated/utils/log.js";
18
+ export { writeStream } from "./core-impl/deprecated/utils/stream.js";
19
+ export { stripAnsi, centerAlign, rightAlign, leftAlign, align, } from "./core-impl/deprecated/utils/string.js";
20
+ export type { TreeItemObject, TreeItem, TreeOptions, } from "./core-impl/deprecated/utils/tree.js";
21
+ export { formatTree } from "./core-impl/deprecated/utils/tree.js";
22
+ export { relinkaConfig, relinka, relinkaAsync, defineConfig, } from "./core-impl/impl-mod.js";
package/bin/main.js CHANGED
@@ -1,58 +1,58 @@
1
1
  export {
2
2
  LogLevelsDeprecated,
3
3
  LogTypesDeprecated
4
- } from "./relinka-impl/deprecated/components/levels/levels.js";
4
+ } from "./core-impl/deprecated/components/levels/levels.js";
5
5
  export {
6
6
  createRelinkaBaseDeprecated,
7
7
  relinkaBasicDeprecated
8
- } from "./relinka-impl/deprecated/components/modes/basic.js";
8
+ } from "./core-impl/deprecated/components/modes/basic.js";
9
9
  export {
10
10
  createRelinkaBrowserDeprecatedDeprecated,
11
11
  relinkaBrowserDeprecated
12
- } from "./relinka-impl/deprecated/components/modes/browser.js";
13
- export { relinkaDeprecated } from "./relinka-impl/deprecated/components/relinka-deprecated/logger.js";
12
+ } from "./core-impl/deprecated/components/modes/browser.js";
13
+ export { relinkaDeprecated } from "./core-impl/deprecated/components/relinka-deprecated/logger.js";
14
14
  export {
15
15
  createRelinkaSharedDeprecated,
16
16
  relinkaInstanceDeprecated
17
- } from "./relinka-impl/deprecated/components/relinka-deprecated/mod.js";
17
+ } from "./core-impl/deprecated/components/relinka-deprecated/mod.js";
18
18
  export {
19
19
  RelinkaInterface,
20
20
  createRelinkaDeprecated
21
- } from "./relinka-impl/deprecated/components/relinka-deprecated/relinka.js";
22
- export { BasicReporter } from "./relinka-impl/deprecated/components/reporters/basic.js";
23
- export { BrowserReporter } from "./relinka-impl/deprecated/components/reporters/browser.js";
21
+ } from "./core-impl/deprecated/components/relinka-deprecated/relinka.js";
22
+ export { BasicReporter } from "./core-impl/deprecated/components/reporters/basic.js";
23
+ export { BrowserReporter } from "./core-impl/deprecated/components/reporters/browser.js";
24
24
  export {
25
25
  TYPE_COLOR_MAP,
26
26
  LEVEL_COLOR_MAP,
27
27
  FancyReporter
28
- } from "./relinka-impl/deprecated/components/reporters/fancy.js";
29
- export { box } from "./relinka-impl/deprecated/utils/box.js";
28
+ } from "./core-impl/deprecated/components/reporters/fancy.js";
29
+ export { box } from "./core-impl/deprecated/utils/box.js";
30
30
  export {
31
31
  colors,
32
32
  getColor,
33
33
  colorize
34
- } from "./relinka-impl/deprecated/utils/deprecatedColors.js";
35
- export { parseStack } from "./relinka-impl/deprecated/utils/error.js";
34
+ } from "./core-impl/deprecated/utils/deprecatedColors.js";
35
+ export { parseStack } from "./core-impl/deprecated/utils/error.js";
36
36
  export {
37
37
  compileFormat,
38
38
  formatString
39
- } from "./relinka-impl/deprecated/utils/format.js";
39
+ } from "./core-impl/deprecated/utils/format.js";
40
40
  export {
41
41
  isPlainObject,
42
42
  isLogObj
43
- } from "./relinka-impl/deprecated/utils/log.js";
44
- export { writeStream } from "./relinka-impl/deprecated/utils/stream.js";
43
+ } from "./core-impl/deprecated/utils/log.js";
44
+ export { writeStream } from "./core-impl/deprecated/utils/stream.js";
45
45
  export {
46
46
  stripAnsi,
47
47
  centerAlign,
48
48
  rightAlign,
49
49
  leftAlign,
50
50
  align
51
- } from "./relinka-impl/deprecated/utils/string.js";
52
- export { formatTree } from "./relinka-impl/deprecated/utils/tree.js";
51
+ } from "./core-impl/deprecated/utils/string.js";
52
+ export { formatTree } from "./core-impl/deprecated/utils/tree.js";
53
53
  export {
54
- configPromise,
54
+ relinkaConfig,
55
55
  relinka,
56
56
  relinkaAsync,
57
57
  defineConfig
58
- } from "./relinka-impl/impl-mod.js";
58
+ } from "./core-impl/impl-mod.js";
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "description": "@reliverse/relinka is a powerful logger for your terminal.",
2
+ "description": "@reliverse/relinka is your next favorite logging library — built to make your terminal (and browser console — soon) output look good, stay clean, and be actually helpful. It’s styled, structured, and smart. Oh, and it works with configs, files, and colors out of the box.",
3
3
  "license": "MIT",
4
4
  "name": "@reliverse/relinka",
5
5
  "type": "module",
6
- "version": "1.3.6",
6
+ "version": "1.3.8",
7
7
  "dependencies": {
8
- "@reliverse/relico": "^1.0.2",
8
+ "@reliverse/relico": "^1.1.0",
9
9
  "@reliverse/runtime": "^1.0.3",
10
- "c12": "^3.0.2",
10
+ "c12": "^3.0.3",
11
11
  "defu": "^6.1.4",
12
12
  "fs-extra": "^11.3.0",
13
13
  "pathe": "^2.0.3",
14
14
  "printj": "^1.3.1",
15
- "std-env": "^3.8.1",
15
+ "std-env": "^3.9.0",
16
16
  "string-width": "^7.2.0"
17
17
  },
18
18
  "devDependencies": {},
@@ -1,20 +0,0 @@
1
- /**
2
- * Promise that resolves when the Relinka config has been loaded and merged
3
- * from defaults, environment variables, and optionally config files.
4
- */
5
- export declare const configPromise: Promise<RelinkaConfig>;
6
- /**
7
- * Logs a message synchronously using the current config.
8
- * Skips debug-level logs unless `debug` is set to true in the config.
9
- */
10
- export declare const relinka: (type: LogLevel, message: string, ...args: unknown[]) => void;
11
- /**
12
- * Logs a message asynchronously, waiting for the config to be fully loaded.
13
- * Also handles file writing and log cleanup if enabled in the config.
14
- */
15
- export declare const relinkaAsync: (type: LogLevel, message: string, ...args: unknown[]) => Promise<void>;
16
- /**
17
- * Type helper for defining configuration in `relinka.config.ts` (or similar).
18
- * Provides autocompletion and type checking for the configuration object.
19
- */
20
- export declare const defineConfig: (config: RelinkaConfig) => RelinkaConfig;