@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.
- package/README.md +115 -76
- package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.d.ts +13 -13
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.d.ts +19 -19
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.d.ts +19 -19
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.d.ts +2 -2
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.d.ts +5 -5
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.d.ts +20 -20
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.d.ts +140 -141
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.d.ts +1 -1
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.d.ts +11 -11
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.d.ts +10 -10
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.d.ts +10 -10
- package/bin/{relinka-impl → core-impl}/deprecated/utils/box.d.ts +114 -114
- package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.d.ts +69 -69
- package/bin/{relinka-impl → core-impl}/deprecated/utils/error.d.ts +6 -6
- package/bin/{relinka-impl → core-impl}/deprecated/utils/format.d.ts +14 -14
- package/bin/{relinka-impl → core-impl}/deprecated/utils/log.d.ts +13 -13
- package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.d.ts +14 -15
- package/bin/{relinka-impl → core-impl}/deprecated/utils/string.d.ts +50 -50
- package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.d.ts +41 -41
- package/bin/core-impl/impl-mod.d.ts +19 -0
- package/bin/core-impl/impl-mod.js +321 -0
- package/bin/{relinka-types.d.ts → core-types.d.ts} +193 -194
- package/bin/main.d.ts +22 -22
- package/bin/main.js +19 -19
- package/package.json +5 -5
- package/bin/relinka-impl/impl-mod.d.ts +0 -20
- package/bin/relinka-impl/impl-mod.js +0 -454
- /package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/box.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/error.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/format.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/log.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/string.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.js +0 -0
- /package/bin/{relinka-types.js → core-types.js} +0 -0
|
@@ -1,194 +1,193 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export type
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
*
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
*
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*
|
|
188
|
-
* @param
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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 "./
|
|
2
|
-
export { createRelinkaBaseDeprecated, relinkaBasicDeprecated, } from "./
|
|
3
|
-
export { createRelinkaBrowserDeprecatedDeprecated, relinkaBrowserDeprecated, } from "./
|
|
4
|
-
export { relinkaDeprecated } from "./
|
|
5
|
-
export { createRelinkaSharedDeprecated, relinkaInstanceDeprecated, } from "./
|
|
6
|
-
export type { LogFn, RelinkaInstanceDeprecated, } from "./
|
|
7
|
-
export { RelinkaInterface, createRelinkaDeprecated, } from "./
|
|
8
|
-
export { BasicReporter } from "./
|
|
9
|
-
export { BrowserReporter } from "./
|
|
10
|
-
export { TYPE_COLOR_MAP, LEVEL_COLOR_MAP, FancyReporter, } from "./
|
|
11
|
-
export type { BoxBorderStyle, BoxStyle, BoxOpts, } from "./
|
|
12
|
-
export { box } from "./
|
|
13
|
-
export type { ColorName, ColorFunction, } from "./
|
|
14
|
-
export { colors, getColor, colorize, } from "./
|
|
15
|
-
export { parseStack } from "./
|
|
16
|
-
export { compileFormat, formatString, } from "./
|
|
17
|
-
export { isPlainObject, isLogObj, } from "./
|
|
18
|
-
export { writeStream } from "./
|
|
19
|
-
export { stripAnsi, centerAlign, rightAlign, leftAlign, align, } from "./
|
|
20
|
-
export type { TreeItemObject, TreeItem, TreeOptions, } from "./
|
|
21
|
-
export { formatTree } from "./
|
|
22
|
-
export {
|
|
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 "./
|
|
4
|
+
} from "./core-impl/deprecated/components/levels/levels.js";
|
|
5
5
|
export {
|
|
6
6
|
createRelinkaBaseDeprecated,
|
|
7
7
|
relinkaBasicDeprecated
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./core-impl/deprecated/components/modes/basic.js";
|
|
9
9
|
export {
|
|
10
10
|
createRelinkaBrowserDeprecatedDeprecated,
|
|
11
11
|
relinkaBrowserDeprecated
|
|
12
|
-
} from "./
|
|
13
|
-
export { relinkaDeprecated } from "./
|
|
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 "./
|
|
17
|
+
} from "./core-impl/deprecated/components/relinka-deprecated/mod.js";
|
|
18
18
|
export {
|
|
19
19
|
RelinkaInterface,
|
|
20
20
|
createRelinkaDeprecated
|
|
21
|
-
} from "./
|
|
22
|
-
export { BasicReporter } from "./
|
|
23
|
-
export { BrowserReporter } from "./
|
|
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 "./
|
|
29
|
-
export { box } from "./
|
|
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 "./
|
|
35
|
-
export { parseStack } from "./
|
|
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 "./
|
|
39
|
+
} from "./core-impl/deprecated/utils/format.js";
|
|
40
40
|
export {
|
|
41
41
|
isPlainObject,
|
|
42
42
|
isLogObj
|
|
43
|
-
} from "./
|
|
44
|
-
export { writeStream } from "./
|
|
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 "./
|
|
52
|
-
export { formatTree } from "./
|
|
51
|
+
} from "./core-impl/deprecated/utils/string.js";
|
|
52
|
+
export { formatTree } from "./core-impl/deprecated/utils/tree.js";
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
relinkaConfig,
|
|
55
55
|
relinka,
|
|
56
56
|
relinkaAsync,
|
|
57
57
|
defineConfig
|
|
58
|
-
} from "./
|
|
58
|
+
} from "./core-impl/impl-mod.js";
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "@reliverse/relinka is
|
|
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
|
+
"version": "1.3.8",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@reliverse/relico": "^1.0
|
|
8
|
+
"@reliverse/relico": "^1.1.0",
|
|
9
9
|
"@reliverse/runtime": "^1.0.3",
|
|
10
|
-
"c12": "^3.0.
|
|
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.
|
|
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;
|