@grest-ts/logger-console 0.0.5
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/LICENSE +21 -0
- package/dist/src/GGLoggerConsole.d.ts +79 -0
- package/dist/src/GGLoggerConsole.d.ts.map +1 -0
- package/dist/src/GGLoggerConsole.js +264 -0
- package/dist/src/GGLoggerConsole.js.map +1 -0
- package/dist/src/index-node.d.ts +2 -0
- package/dist/src/index-node.d.ts.map +1 -0
- package/dist/src/index-node.js +2 -0
- package/dist/src/index-node.js.map +1 -0
- package/dist/src/tsconfig.json +16 -0
- package/dist/tsconfig.publish.tsbuildinfo +1 -0
- package/package.json +54 -0
- package/src/GGLoggerConsole.ts +314 -0
- package/src/index-node.ts +1 -0
- package/src/tsconfig.json +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Grest Games OÜ
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { GGLogger, LogEntry, LogLevel } from "@grest-ts/logger";
|
|
2
|
+
export declare const LOG_LEVELS: string[];
|
|
3
|
+
/**
|
|
4
|
+
* ANSI color codes for beautiful terminal output
|
|
5
|
+
*/
|
|
6
|
+
export declare const LOG_COLORS: {
|
|
7
|
+
reset: string;
|
|
8
|
+
bright: string;
|
|
9
|
+
dim: string;
|
|
10
|
+
underline: string;
|
|
11
|
+
black: string;
|
|
12
|
+
red: string;
|
|
13
|
+
green: string;
|
|
14
|
+
yellow: string;
|
|
15
|
+
blue: string;
|
|
16
|
+
magenta: string;
|
|
17
|
+
cyan: string;
|
|
18
|
+
white: string;
|
|
19
|
+
gray: string;
|
|
20
|
+
orange: string;
|
|
21
|
+
brightBlack: string;
|
|
22
|
+
brightRed: string;
|
|
23
|
+
brightGreen: string;
|
|
24
|
+
brightYellow: string;
|
|
25
|
+
brightBlue: string;
|
|
26
|
+
brightMagenta: string;
|
|
27
|
+
brightCyan: string;
|
|
28
|
+
brightWhite: string;
|
|
29
|
+
bgBlack: string;
|
|
30
|
+
bgRed: string;
|
|
31
|
+
bgGreen: string;
|
|
32
|
+
bgYellow: string;
|
|
33
|
+
bgBlue: string;
|
|
34
|
+
bgMagenta: string;
|
|
35
|
+
bgCyan: string;
|
|
36
|
+
bgWhite: string;
|
|
37
|
+
bgGray: string;
|
|
38
|
+
bgOrange: string;
|
|
39
|
+
bgBrightBlack: string;
|
|
40
|
+
bgBrightRed: string;
|
|
41
|
+
bgBrightGreen: string;
|
|
42
|
+
bgBrightYellow: string;
|
|
43
|
+
bgBrightBlue: string;
|
|
44
|
+
bgBrightMagenta: string;
|
|
45
|
+
bgBrightCyan: string;
|
|
46
|
+
bgBrightWhite: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Console logger with beautiful colored output
|
|
50
|
+
*/
|
|
51
|
+
export declare class GGLoggerConsole implements GGLogger {
|
|
52
|
+
readonly minLevel: LogLevel;
|
|
53
|
+
private readonly showData;
|
|
54
|
+
private readonly timestampFormat;
|
|
55
|
+
private readonly contextProviders;
|
|
56
|
+
constructor(options?: {
|
|
57
|
+
minLevel?: LogLevel;
|
|
58
|
+
showData?: boolean;
|
|
59
|
+
timestampFormat?: 'full' | 'time';
|
|
60
|
+
});
|
|
61
|
+
addContext(provider: (parts: string[]) => void): this;
|
|
62
|
+
log(entry: LogEntry): void;
|
|
63
|
+
/**
|
|
64
|
+
* Format a log entry to a string without printing it.
|
|
65
|
+
* Returns null if the entry is below the minimum log level.
|
|
66
|
+
*/
|
|
67
|
+
format(entry: LogEntry): string | null;
|
|
68
|
+
private formatTimestamp;
|
|
69
|
+
private getLevelColor;
|
|
70
|
+
private formatData;
|
|
71
|
+
/**
|
|
72
|
+
* Sanitize data for logging - replace large buffers and files with summaries
|
|
73
|
+
*/
|
|
74
|
+
private sanitizeForLogging;
|
|
75
|
+
private formatError;
|
|
76
|
+
private tabData;
|
|
77
|
+
private extractValidationErrors;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=GGLoggerConsole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGLoggerConsole.d.ts","sourceRoot":"","sources":["../../src/GGLoggerConsole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAI9D,eAAO,MAAM,UAAU,UAA4D,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDtB,CAAC;AAQF;;GAEG;AACH,qBAAa,eAAgB,YAAW,QAAQ;IAC5C,SAAgB,QAAQ,EAAE,QAAQ,CAAA;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAGlD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAqC;gBAE1D,OAAO,CAAC,EAAE;QAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACrC;IAMM,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,IAAI;IAKrD,GAAG,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IASjC;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI;IAuC7C,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,UAAU;IAkBlB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA4C1B,OAAO,CAAC,WAAW;IAgDnB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,uBAAuB;CAclC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { LogLevel } from "@grest-ts/logger";
|
|
2
|
+
import { ERROR, VALIDATION_ERROR } from "@grest-ts/schema";
|
|
3
|
+
import { GGFile } from "@grest-ts/file";
|
|
4
|
+
export const LOG_LEVELS = [undefined, "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL"];
|
|
5
|
+
/**
|
|
6
|
+
* ANSI color codes for beautiful terminal output
|
|
7
|
+
*/
|
|
8
|
+
export const LOG_COLORS = {
|
|
9
|
+
reset: '\x1b[0m',
|
|
10
|
+
// Text styles
|
|
11
|
+
bright: '\x1b[1m',
|
|
12
|
+
dim: '\x1b[2m',
|
|
13
|
+
underline: '\x1b[4m',
|
|
14
|
+
// Foreground colors (text)
|
|
15
|
+
black: '\x1b[30m',
|
|
16
|
+
red: '\x1b[31m',
|
|
17
|
+
green: '\x1b[32m',
|
|
18
|
+
yellow: '\x1b[33m',
|
|
19
|
+
blue: '\x1b[34m',
|
|
20
|
+
magenta: '\x1b[35m',
|
|
21
|
+
cyan: '\x1b[36m',
|
|
22
|
+
white: '\x1b[37m',
|
|
23
|
+
gray: '\x1b[90m',
|
|
24
|
+
orange: '\x1b[38;5;208m', // 256-color orange
|
|
25
|
+
// Bright foreground colors
|
|
26
|
+
brightBlack: '\x1b[90m',
|
|
27
|
+
brightRed: '\x1b[91m',
|
|
28
|
+
brightGreen: '\x1b[92m',
|
|
29
|
+
brightYellow: '\x1b[93m',
|
|
30
|
+
brightBlue: '\x1b[94m',
|
|
31
|
+
brightMagenta: '\x1b[95m',
|
|
32
|
+
brightCyan: '\x1b[96m',
|
|
33
|
+
brightWhite: '\x1b[97m',
|
|
34
|
+
// Background colors
|
|
35
|
+
bgBlack: '\x1b[40m',
|
|
36
|
+
bgRed: '\x1b[41m',
|
|
37
|
+
bgGreen: '\x1b[42m',
|
|
38
|
+
bgYellow: '\x1b[43m',
|
|
39
|
+
bgBlue: '\x1b[44m',
|
|
40
|
+
bgMagenta: '\x1b[45m',
|
|
41
|
+
bgCyan: '\x1b[46m',
|
|
42
|
+
bgWhite: '\x1b[47m',
|
|
43
|
+
bgGray: '\x1b[100m',
|
|
44
|
+
bgOrange: '\x1b[48;5;208m', // 256-color orange background
|
|
45
|
+
// Bright background colors
|
|
46
|
+
bgBrightBlack: '\x1b[100m',
|
|
47
|
+
bgBrightRed: '\x1b[101m',
|
|
48
|
+
bgBrightGreen: '\x1b[102m',
|
|
49
|
+
bgBrightYellow: '\x1b[103m',
|
|
50
|
+
bgBrightBlue: '\x1b[104m',
|
|
51
|
+
bgBrightMagenta: '\x1b[105m',
|
|
52
|
+
bgBrightCyan: '\x1b[106m',
|
|
53
|
+
bgBrightWhite: '\x1b[107m',
|
|
54
|
+
};
|
|
55
|
+
function parseLogLevel(value) {
|
|
56
|
+
if (!value)
|
|
57
|
+
return undefined;
|
|
58
|
+
const index = LOG_LEVELS.indexOf(value.toUpperCase());
|
|
59
|
+
return index > 0 ? index : undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Console logger with beautiful colored output
|
|
63
|
+
*/
|
|
64
|
+
export class GGLoggerConsole {
|
|
65
|
+
minLevel;
|
|
66
|
+
showData;
|
|
67
|
+
timestampFormat;
|
|
68
|
+
// private readonly useConsoleLog: boolean;
|
|
69
|
+
contextProviders = [];
|
|
70
|
+
constructor(options) {
|
|
71
|
+
this.minLevel = options?.minLevel ?? parseLogLevel(process.env.LOG_LEVEL) ?? LogLevel.DEBUG;
|
|
72
|
+
this.showData = options?.showData ?? true;
|
|
73
|
+
this.timestampFormat = options?.timestampFormat ?? 'time';
|
|
74
|
+
}
|
|
75
|
+
addContext(provider) {
|
|
76
|
+
this.contextProviders.push(provider);
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
log(entry) {
|
|
80
|
+
const msg = this.format(entry);
|
|
81
|
+
if (msg === null) {
|
|
82
|
+
return; // Below min level
|
|
83
|
+
}
|
|
84
|
+
console.log(msg);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Format a log entry to a string without printing it.
|
|
88
|
+
* Returns null if the entry is below the minimum log level.
|
|
89
|
+
*/
|
|
90
|
+
format(entry) {
|
|
91
|
+
if (entry.level < this.minLevel) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
const parts = [];
|
|
95
|
+
parts.push(LOG_COLORS.gray + this.formatTimestamp(entry.timestamp));
|
|
96
|
+
parts.push(LOG_COLORS.white + process.pid);
|
|
97
|
+
const levelColor = this.getLevelColor(entry.level);
|
|
98
|
+
parts.push(levelColor + (LOG_LEVELS[entry.level].padEnd(5) ?? "?????"));
|
|
99
|
+
parts.push(LOG_COLORS.cyan + entry.contextName + LOG_COLORS.reset);
|
|
100
|
+
for (let i = 0; i < this.contextProviders.length; i++) {
|
|
101
|
+
this.contextProviders[i](parts);
|
|
102
|
+
}
|
|
103
|
+
if (entry.message !== undefined) {
|
|
104
|
+
parts.push(levelColor + entry.message);
|
|
105
|
+
}
|
|
106
|
+
if (entry.error !== undefined && entry.error !== null) {
|
|
107
|
+
parts.push(this.formatError(levelColor, entry.error));
|
|
108
|
+
}
|
|
109
|
+
if (this.showData && entry.data !== undefined && entry.data !== null) {
|
|
110
|
+
const dataColor = entry.level === LogLevel.INFO ? LOG_COLORS.gray : levelColor;
|
|
111
|
+
parts.push(dataColor + this.formatData(entry.data));
|
|
112
|
+
}
|
|
113
|
+
// let originalError = "";
|
|
114
|
+
// if (entry?.data?.debugData) {
|
|
115
|
+
// originalError += "\n\tDebug data: " + JSON.stringify(entry.data.debugData, null, 2).split("\n").join("\n\t");
|
|
116
|
+
// }
|
|
117
|
+
return parts.join(' ') + LOG_COLORS.reset;
|
|
118
|
+
}
|
|
119
|
+
formatTimestamp(date) {
|
|
120
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
121
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
122
|
+
const seconds = String(date.getSeconds()).padStart(2, '0');
|
|
123
|
+
// const ms = String(date.getMilliseconds()).padStart(3, '0');
|
|
124
|
+
const timeString = hours + ':' + minutes + ':' + seconds;
|
|
125
|
+
if (this.timestampFormat === 'full') {
|
|
126
|
+
const year = date.getFullYear();
|
|
127
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
128
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
129
|
+
return year + '-' + month + '-' + day + ' ' + timeString;
|
|
130
|
+
}
|
|
131
|
+
return timeString;
|
|
132
|
+
}
|
|
133
|
+
getLevelColor(level) {
|
|
134
|
+
switch (level) {
|
|
135
|
+
case LogLevel.CRITICAL:
|
|
136
|
+
return LOG_COLORS.red;
|
|
137
|
+
case LogLevel.ERROR:
|
|
138
|
+
return LOG_COLORS.red;
|
|
139
|
+
case LogLevel.WARN:
|
|
140
|
+
return LOG_COLORS.yellow;
|
|
141
|
+
case LogLevel.INFO:
|
|
142
|
+
return LOG_COLORS.green;
|
|
143
|
+
case LogLevel.DEBUG:
|
|
144
|
+
return LOG_COLORS.gray;
|
|
145
|
+
default:
|
|
146
|
+
return LOG_COLORS.gray;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
formatData(data) {
|
|
150
|
+
if (typeof data === 'string') {
|
|
151
|
+
return data;
|
|
152
|
+
}
|
|
153
|
+
try {
|
|
154
|
+
const sanitized = this.sanitizeForLogging(data);
|
|
155
|
+
const json = JSON.stringify(sanitized);
|
|
156
|
+
// Truncate if too long
|
|
157
|
+
if (json.length > 2000) {
|
|
158
|
+
return json.substring(0, 2000) + '... [truncated]';
|
|
159
|
+
}
|
|
160
|
+
// Indent each line
|
|
161
|
+
return json.split('\n').join('\n ');
|
|
162
|
+
}
|
|
163
|
+
catch {
|
|
164
|
+
return String(data);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Sanitize data for logging - replace large buffers and files with summaries
|
|
169
|
+
*/
|
|
170
|
+
sanitizeForLogging(data, depth = 0) {
|
|
171
|
+
if (depth > 10)
|
|
172
|
+
return '[max depth]';
|
|
173
|
+
if (data === null || data === undefined)
|
|
174
|
+
return data;
|
|
175
|
+
// Handle Uint8Array/Buffer - show summary instead of all bytes
|
|
176
|
+
if (data instanceof Uint8Array || (typeof Buffer !== 'undefined' && Buffer.isBuffer(data))) {
|
|
177
|
+
return `[Buffer: ${data.length} bytes]`;
|
|
178
|
+
}
|
|
179
|
+
// Handle ArrayBuffer
|
|
180
|
+
if (data instanceof ArrayBuffer) {
|
|
181
|
+
return `[ArrayBuffer: ${data.byteLength} bytes]`;
|
|
182
|
+
}
|
|
183
|
+
// Handle GGFile-like objects (duck typing)
|
|
184
|
+
if (data instanceof GGFile) {
|
|
185
|
+
const file = data;
|
|
186
|
+
return `[GGFile: ${file.name} (${file.mimeType}, ${file.size} bytes)]`;
|
|
187
|
+
}
|
|
188
|
+
// Handle arrays
|
|
189
|
+
if (Array.isArray(data)) {
|
|
190
|
+
if (data.length > 100) {
|
|
191
|
+
return `[Array: ${data.length} items]`;
|
|
192
|
+
}
|
|
193
|
+
return data.map(item => this.sanitizeForLogging(item, depth + 1));
|
|
194
|
+
}
|
|
195
|
+
// Handle objects
|
|
196
|
+
if (typeof data === 'object') {
|
|
197
|
+
const keys = Object.keys(data);
|
|
198
|
+
if (keys.length > 50) {
|
|
199
|
+
return `[Object: ${keys.length} keys]`;
|
|
200
|
+
}
|
|
201
|
+
const result = {};
|
|
202
|
+
for (const key of keys) {
|
|
203
|
+
result[key] = this.sanitizeForLogging(data[key], depth + 1);
|
|
204
|
+
}
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
return data;
|
|
208
|
+
}
|
|
209
|
+
formatError(levelColor, error) {
|
|
210
|
+
if (typeof error === 'string') {
|
|
211
|
+
return error;
|
|
212
|
+
}
|
|
213
|
+
if (error instanceof ERROR) {
|
|
214
|
+
const debugData = error.getDebugContext();
|
|
215
|
+
const baseMsg = levelColor + "" + error.message + (debugData.debugMessage ? " " + debugData.debugMessage : "");
|
|
216
|
+
let extra = "";
|
|
217
|
+
if (VALIDATION_ERROR.is(error)) {
|
|
218
|
+
extra = LOG_COLORS.gray + "(" + this.extractValidationErrors(error.data, "", 10).join(" | ") + ")";
|
|
219
|
+
}
|
|
220
|
+
else if (error.data) {
|
|
221
|
+
extra = "[" + error.type + "]" + (error.data ? " " + LOG_COLORS.gray + JSON.stringify(error.data) : "");
|
|
222
|
+
}
|
|
223
|
+
let originalError = "";
|
|
224
|
+
if (debugData.originalError) {
|
|
225
|
+
originalError += "\n\tOriginal error: " + this.tabData(1, this.formatError(levelColor, debugData.originalError));
|
|
226
|
+
}
|
|
227
|
+
let debugDataStr = "";
|
|
228
|
+
if (debugData.debugMessage) {
|
|
229
|
+
debugDataStr += "\n\tDebug message: " + debugData.debugMessage;
|
|
230
|
+
}
|
|
231
|
+
if (debugData.debugData) {
|
|
232
|
+
debugDataStr += "\n\tDebug data: " + this.tabData(1, JSON.stringify(debugData.debugData, null, 2));
|
|
233
|
+
}
|
|
234
|
+
let stack = "";
|
|
235
|
+
if (error.stack) {
|
|
236
|
+
const stackLines = error.stack.split('\n');
|
|
237
|
+
stackLines.shift();
|
|
238
|
+
stack = stackLines.join("\n");
|
|
239
|
+
stack = "\n" + stack;
|
|
240
|
+
}
|
|
241
|
+
return baseMsg + (extra ? " " + extra : "") + stack + debugDataStr + originalError;
|
|
242
|
+
}
|
|
243
|
+
else if (error instanceof Error) {
|
|
244
|
+
return levelColor + error.stack;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return levelColor + String(error);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
tabData(tabs, data) {
|
|
251
|
+
const tabsStr = "\t".repeat(tabs);
|
|
252
|
+
return data.split('\n').join('\n' + tabsStr);
|
|
253
|
+
}
|
|
254
|
+
extractValidationErrors(issues, currentPath, maxErrors) {
|
|
255
|
+
const errors = [];
|
|
256
|
+
const length = Math.min(issues?.length ?? 0, maxErrors);
|
|
257
|
+
for (let i = 0; i < length; i++) {
|
|
258
|
+
const issue = issues[i];
|
|
259
|
+
errors.push((currentPath ? currentPath + ": " : "") + issue.message);
|
|
260
|
+
}
|
|
261
|
+
return errors;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=GGLoggerConsole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGLoggerConsole.js","sourceRoot":"","sources":["../../src/GGLoggerConsole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAE,gBAAgB,EAAsB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,M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EpC,CAAC;aAAM,CAAC;YACJ,OAAO,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;IAEO,OAAO,CAAC,IAAY,EAAE,IAAY;QACtC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;IACjD,CAAC;IAEO,uBAAuB,CAC3B,MAA6B,EAC7B,WAAmB,EACnB,SAAiB;QAEjB,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;QACxD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACzE,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CAEJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.js","sourceRoot":"","sources":["../../src/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../locator/src/gglocator.ts","../../../locator/src/gglocatorkey.ts","../../../locator/src/gglocatorscopedebug.ts","../../../locator/src/gglocatorscope.ts","../../../common/src/deepfreeze.ts","../../../common/src/deepclone.ts","../../../common/src/withtimeout.ts","../../../common/src/ggerror.ts","../../../common/src/unreachablecode.ts","../../../common/src/types.ts","../../../common/src/http.ts","../../../common/src/secret.ts","../../../common/src/sleep.ts","../../../common/src/environment.ts","../../../common/src/ggasyncstorage.ts","../../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@nodelib/fs.stat/out/types/index.d.ts","../../../../node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts","../../../../node_modules/@nodelib/fs.stat/out/settings.d.ts","../../../../node_modules/@nodelib/fs.stat/out/providers/async.d.ts","../../../../node_modules/@nodelib/fs.stat/out/index.d.ts","../../../../node_modules/@nodelib/fs.scandir/out/types/index.d.ts","../../../../node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts","../../../../node_modules/@nodelib/fs.scandir/out/settings.d.ts","../../../../node_modules/@nodelib/fs.scandir/out/providers/async.d.ts","../../../../node_modules/@nodelib/fs.scandir/out/index.d.ts","../../../../node_modules/@nodelib/fs.walk/out/types/index.d.ts","../../../../node_modules/@nodelib/fs.walk/out/settings.d.ts","../../../../node_modules/@nodelib/fs.walk/out/readers/reader.d.ts","../../../../node_modules/@nodelib/fs.walk/out/readers/async.d.ts","../../../../node_modules/@nodelib/fs.walk/out/providers/async.d.ts","../../../../node_modules/@nodelib/fs.walk/out/index.d.ts","../../../../node_modules/fast-glob/out/types/index.d.ts","../../../../node_modules/fast-glob/out/settings.d.ts","../../../../node_modules/fast-glob/out/managers/tasks.d.ts","../../../../node_modules/fast-glob/out/index.d.ts","../../../common/src/ggextensiondiscovery.ts","../../../common/src/index-node.ts","../../../locator/src/gglocatorstorage.ts","../../../locator/src/index-node.ts","../../logger/src/types.ts","../../logger/src/gglogger.ts","../../logger/src/gglog.ts","../../logger/src/iasynclocalstorage.ts","../../logger/src/index-node.ts","../../../schema/schema/src/issue/ggissueregistry.ts","../../../schema/schema/src/issue/ggissuekey.ts","../../../schema/schema/src/issue/ggissueslist.ts","../../../schema/schema/src/executor/aot/utils/compilerstate.ts","../../../schema/schema/src/executor/aot/utils/helpers.ts","../../../schema/schema/src/executor/standard/impl/code_is.ts","../../../schema/schema/src/executor/aot/impl/aot_is.ts","../../../schema/schema/src/executor/aot/impl/aot_clean.ts","../../../schema/schema/src/executor/aot/impl/aot_stringify.ts","../../../schema/schema/src/issue/issues/ggissueinvalid.ts","../../../schema/schema/src/issue/issues/ggrangeissue.ts","../../../schema/schema/src/errors.ts","../../../schema/schema/src/executor/aot/impl/aot_validate.ts","../../../schema/schema/src/executor/aot/impl/aot_coerce.ts","../../../schema/schema/src/executor/aot/impl/aot_parse.ts","../../../schema/schema/src/executor/aot/aotexecutor.ts","../../../schema/schema/src/issue/types.ts","../../../schema/schema/src/contract/ok.ts","../../../schema/schema/src/contract/error.ts","../../../schema/schema/src/ggtransform.ts","../../../schema/schema/src/ggcodec.ts","../../../schema/schema/src/ggschema.ts","../../../schema/schema/src/definition.ts","../../../schema/schema/src/executor/executorstrategy.ts","../../../schema/schema/src/executor/standard/impl/code_clean.ts","../../../schema/schema/src/executor/standard/impl/code_validate.ts","../../../schema/schema/src/executor/standard/impl/code_parse.ts","../../../schema/schema/src/executor/standard/impl/code_stringify.ts","../../../schema/schema/src/executor/standard/standardexecutor.ts","../../../schema/schema/src/schemas/isarray.ts","../../../schema/schema/src/schemas/isliteral.ts","../../../schema/schema/src/schemas/isobject.ts","../../../schema/schema/src/schemas/isstring.ts","../../../schema/schema/src/schemas/isany.ts","../../../schema/schema/src/contract/standarderrors.ts","../../../schema/schema/src/contract/ggpromise.ts","../../../schema/schema/src/contract/ggcontractexecutor.ts","../../../schema/schema/src/contract/ggcontractclass.ts","../../../schema/schema/src/contract/ggcontractfunction.ts","../../../schema/schema/src/executor/aot/typecompiler.ts","../../../schema/schema/src/schemas/isnumber.ts","../../../schema/schema/src/schemas/isboolean.ts","../../../schema/schema/src/schemas/isbit.ts","../../../schema/schema/src/schemas/isunion.ts","../../../schema/schema/src/schemas/isunknown.ts","../../../schema/schema/src/schemas/isenum.ts","../../../schema/schema/src/schemas/isdiscriminated.ts","../../../schema/schema/src/schemas/isrecord.ts","../../../schema/schema/src/schemas/istuple.ts","../../../schema/schema/src/custom/isdate.ts","../../../schema/schema/src/custom/isdatetime.ts","../../../schema/schema/src/custom/isint.ts","../../../schema/schema/src/custom/islatitude.ts","../../../schema/schema/src/custom/islongitude.ts","../../../schema/schema/src/custom/isemail.ts","../../../schema/schema/src/custom/ispassword.ts","../../../schema/schema/src/custom/islanguage.ts","../../../schema/schema/src/custom/iscountry.ts","../../../schema/schema/src/custom/islocale.ts","../../../schema/schema/src/index-node.ts","../../../schema/file/src/ggfile.ts","../../../schema/file/src/isfile.ts","../../../schema/file/src/index.ts","../src/ggloggerconsole.ts","../src/index-node.ts"],"fileIdsList":[[78,127,144,145,182,183],[78,127,144,145,183,184,185,186],[78,127,144,145,177,183,185],[78,127,144,145,182,184],[78,127,139,144,145,177],[78,127,139,144,145,177,178],[78,127,144,145,178,179,180,181],[78,127,144,145,178,180],[78,127,144,145,179],[78,127,144,145,159,177,187,188,189,192],[78,127,144,145,188,189,191],[78,127,138,144,145,177,187,188,189,190],[78,127,144,145,189],[78,127,144,145,187,188],[78,127,144,145,177,187],[78,124,125,127,144,145],[78,126,127,144,145],[127,144,145],[78,127,132,144,145,162],[78,127,128,133,138,144,145,147,159,170],[78,127,128,129,138,144,145,147],[78,127,144,145],[73,74,75,78,127,144,145],[78,127,130,144,145,171],[78,127,131,132,139,144,145,148],[78,127,132,144,145,159,167],[78,127,133,135,138,144,145,147],[78,126,127,134,144,145],[78,127,135,136,144,145],[78,127,137,138,144,145],[78,126,127,138,144,145],[78,127,138,139,140,144,145,159,170],[78,127,138,139,140,144,145,154,159,162],[78,120,127,135,138,141,144,145,147,159,170],[78,127,138,139,141,142,144,145,147,159,167,170],[78,127,141,143,144,145,159,167,170],[76,77,78,79,80,81,82,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],[78,127,138,144,145],[78,127,144,145,146,170],[78,127,135,138,144,145,147,159],[78,127,144,145,148],[78,127,144,145,149],[78,126,127,144,145,150],[78,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],[78,127,144,145,152],[78,127,144,145,153],[78,127,138,144,145,154,155],[78,127,144,145,154,156,171,173],[78,127,139,144,145],[78,127,138,144,145,159,160,162],[78,127,144,145,161,162],[78,127,144,145,159,160],[78,127,144,145,162],[78,127,144,145,163],[78,124,127,144,145,159,164,170],[78,127,138,144,145,165,166],[78,127,144,145,165,166],[78,127,132,144,145,147,159,167],[78,127,144,145,168],[78,127,144,145,147,169],[78,127,141,144,145,153,170],[78,127,132,144,145,171],[78,127,144,145,159,172],[78,127,144,145,146,173],[78,127,144,145,174],[78,120,127,144,145],[78,120,127,138,140,144,145,150,159,162,170,172,173,175],[78,127,144,145,159,176],[78,127,144,145,177,194,195,196],[78,127,144,145,194,195],[78,127,144,145,194],[78,127,144,145,177,193],[78,92,96,127,144,145,170],[78,92,127,144,145,159,170],[78,87,127,144,145],[78,89,92,127,144,145,167,170],[78,127,144,145,147,167],[78,127,144,145,177],[78,87,127,144,145,177],[78,89,92,127,144,145,147,170],[78,84,85,88,91,127,138,144,145,159,170],[78,92,99,127,144,145],[78,84,90,127,144,145],[78,92,113,114,127,144,145],[78,88,92,127,144,145,162,170,177],[78,113,127,144,145,177],[78,86,87,127,144,145,177],[78,92,127,144,145],[78,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,127,144,145],[78,92,107,127,144,145],[78,92,99,100,127,144,145],[78,90,92,100,101,127,144,145],[78,91,127,144,145],[78,84,87,92,127,144,145],[78,92,96,100,101,127,144,145],[78,96,127,144,145],[78,90,92,95,127,144,145,170],[78,84,89,92,99,127,144,145],[78,127,144,145,159],[78,87,92,113,127,144,145,175,177],[78,127,139,144,145,149,170,197],[62,63,64,65,66,67,68,69,70,71,72,78,127,144,145,198],[61,78,127,144,145,200],[58,78,127,144,145],[59,60,78,127,144,145,200],[61,78,127,144,145,199],[58,59,61,78,126,127,144,145,200],[78,127,144,145,206,266,269],[78,127,144,145,270],[78,127,144,145,201,202,203],[78,127,144,145,202],[78,127,144,145,202,203,204,205],[78,127,144,145,267,268],[78,127,144,145,266,267],[78,127,144,145,224,228],[78,127,144,145,225,228,241,242,243],[78,127,144,145,224,225,228,241,242,244],[78,127,144,145,242,243,244],[78,127,144,145,224,225],[78,127,144,145,225,236,238,239,240],[78,127,144,145,216,239],[78,127,144,145,247],[78,127,144,145,209,216,228,229],[78,127,144,145,208,209,228],[78,127,144,145,216,217],[78,127,144,145,213,214,215,221,230],[78,127,144,145,210,211,228,229],[78,127,144,145,210,211,212,228,229],[78,127,144,145,209,213,214,219,220,228,229],[78,127,144,145,208,209,210,211,212,218,228,229],[78,127,139,144,145,213,214,215,219,228],[78,127,144,145,228],[78,127,144,145,209,228,229],[78,127,144,145,212,229],[78,127,144,145,229],[78,127,144,145,208,209,229,231,232],[78,127,144,145,229,231],[78,127,144,145,208,209,212,218,229],[78,127,144,145,212,229,230,231,233,234],[78,127,144,145,226,228],[78,127,144,145,208,209,222,223,226,227,229,230],[78,127,144,145,223,225,228],[78,127,144,145,207,208,209,216,217,222,223,224,225,226,227,228,229,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265],[78,127,144,145,207,209],[78,127,144,145,208],[78,127,144,145,216],[78,127,144,145,228,229],[78,127,144,145,237],[78,127,144,145,228,229,237],[78,127,144,145,216,228,229]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"17be926233fbcdc26fafc190963670783b6fd0d6599514e6da7dafa36a9f303c","c6578a2cfbf3805f6fa3678a2c4ba87531de73b21b44ebf9b28363f7443ab9b7","6b2576b1abe55752930c6bd60816269ae86cc98926c40dd275cc92b5cc6cb144","f2d12830e127ca729fda42a8cf802501c76d1edf75034cefa1e3404c2d3d2d04","472816436c6db76434485c6257583dc150a2017733cd2e9aca9d91904584c040","fa5a1bbd7930a3aa8dbbd8ce19e89603df3daca14f080e1b7ad815d3f42408d3","e4542756b59d74ff2c036478942546e5937d35808eae08b6ae934164a7f2b97e","f369191ac0c4224b491791d2b711e0d8a29eaae730578a13c63016ee71feddb0","6fc71745fb086db4de247f9f62c7e1932d5c7c6f9d6a593feee7d76f0f2a5010","1f083bc5e8f2791b54ae5ebf69380dace5da834ecb9d37864dbe046aff3796cd","af392737db53a482cfda4c6ad3c013a62a806fe7be9e31c3b00ba3977ac39f75","565b2d44f499b7041ab79933ac8a041bdad5629dd4aec003bea4ba02a5ca1098","a527c423aeb061ecf2d971a6e3bf624880c0408bcf72a97dacf82013235e6731","ade68182d7a12c48e460596b96462aa18372bd505e8c21577445b0dc2343b6ee","04a4003ab34c3db124058179940c00f366f871d87ff1d318f13720c0b6269499",{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bc7425ef40526650d6db7e072c1ff4a51101c3ac2cc4b666623b19496a6e27","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"0dba70b3fb0dcd713fda33c2df64fa6751fff6460e536971cee917260fb17882","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"46324183533e34fad2461b51174132e8e0e4b3ac1ceb5032e4952992739d1eab","impliedFormat":1},{"version":"d3fa0530dfb1df408f0abd76486de39def69ca47683d4a3529b2d22fce27c693","impliedFormat":1},{"version":"d9be977c415df16e4defe4995caeca96e637eeef9d216d0d90cdba6fc617e97e","impliedFormat":1},{"version":"98e0c2b48d855a844099123e8ec20fe383ecd1c5877f3895b048656befe268d0","impliedFormat":1},{"version":"ff53802a97b7d11ab3c4395aa052baa14cd12d2b1ed236b520a833fdd2a15003","impliedFormat":1},{"version":"fce9262f840a74118112caf685b725e1cc86cd2b0927311511113d90d87cc61e","impliedFormat":1},{"version":"d7a7cac49af2a3bfc208fe68831fbfa569864f74a7f31cc3a607f641e6c583fd","impliedFormat":1},{"version":"9a80e3322d08274f0e41b77923c91fe67b2c8a5134a5278c2cb60a330441554e","impliedFormat":1},{"version":"2460af41191009298d931c592fb6d4151beea320f1f25b73605e2211e53e4e88","impliedFormat":1},{"version":"2f87ea988d84d1c617afdeba9d151435473ab24cd5fc456510c8db26d8bd1581","impliedFormat":1},{"version":"b7336c1c536e3deaedbda956739c6250ac2d0dd171730c42cb57b10368f38a14","impliedFormat":1},{"version":"6fb67d664aaab2f1d1ad4613b58548aecb4b4703b9e4c5dba6b865b31bd14722","impliedFormat":1},{"version":"4414644199b1a047b4234965e07d189781a92b578707c79c3933918d67cd9d85","impliedFormat":1},{"version":"04a4b38c6a1682059eac00e7d0948d99c46642b57003d61d0fe9ccc9df442887","impliedFormat":1},{"version":"f12ea658b060da1752c65ae4f1e4c248587f6cd4cb4acabbf79a110b6b02ff75","impliedFormat":1},{"version":"011b2857871a878d5eae463bedc4b3dd14755dc3a67d5d10f8fbb7823d119294","impliedFormat":1},{"version":"d406b797d7b2aff9f8bd6c023acfaa5a5fc415bfbf01975e23d415d3f54857af","impliedFormat":1},{"version":"7d71b2d1a537fe41760a16441cd95d98fcb59ddf9c714aba2fecba961ab253b6","impliedFormat":1},{"version":"a9bd8a2bbd03a72054cbdf0cd2a77fabea4e3ae591dd02b8f58bda0c34e50c1c","impliedFormat":1},{"version":"386cc88a3bdee8bc651ead59f8afc9dc5729fc933549bbd217409eabad05ba3e","impliedFormat":1},"3db191719d15341432d04b4bec0767f2e52c3bf7a3b10c1869604b312ec167b3","1c558f5e6f4eeab86fff25eaa83643725ae793810f98aaf0513ed187e0157231","0f4ef1eb9f2d2e445dbc75bc2b48151006e0ece965e2443bf2da9416da5b4b2b","7d4e17170c6bcf5175fba2a917c55a7ef8c3c5ccb78edaefe65ccb679d46033c","a05355e1d9cb4d38cb6a0b160f66e5f63fdbef4891ff32ffaccfbcd97e929d05","8c6ce5c3558af5061ddd8c13f90aec6247ce3319dc997f17969a9a9eb25701e9","9dc0addfdf70a744f13ad96f68034eb65ca4fa1da2f22b7aad9f9273a4e2b6f7","1ca67d95e78d178426521e07f979c6b61b15802229a53c74ac574eefc2f1dccb","2a5cc2e143e023edd913fd53855e1e3dc9a4a4b13efc39096a97939a3f7aa803","6dda9ed335e808d3e6c6c7913580d52cfe7b83ad7a407c30707a84ce09dbbc8d","e4f962359a5de05815e5514290f8395064286792e6797ec6d9640fa264a96816","c1cbe74128ce47317c607d3d37acdedd34517129ba52466a1f9be9e91126a153","71f6312bca202aeecf96fce2be0b540bce15ef57344cf3ca6d6b2f944bb78f76","c5d9678a302aa17e65268bf175dde4351c67a4efc63a004037852f56ee0d9537","55ab129057e401989e77e23e594c7db73d53bbfc16a89f5f9d89779976c2350d","e4b823394a10cc111c315a09b5597cb7a6411f9453ad94002a20c0033bedce6d","4af14b11b64207604b6436bfb69ea48f1c06ec49c416e07c2929a4498348f35d","ee60d55c961fe4a8fe611b264724751135a2d10f64a545a168b2ea31ec9a2710","b86c3de7f1457e96e2647f5bad29fe02165bfb48d45195912e340ce850e4b825","9614071786bdbaab336355260b20dcb079c98a4d2bdf4c7b93b971de5442f55a","fd1c37e48ed750d9b732614bec90c00c1bad40b82290dce1b399e2ef629a8ff9","78af30bd752fdc6a380c34a7d265628cf005a485c63ac07461d9f474be60cf04","c997d867e37f77fbe74923a7da826b110ef3622434fb78a16e42ebbc0e9dd5d3","7fcbd87fdac44071981d53dfd3c9486dec3e8e681faa0e8b242eb02e697505b3","eef5d49efa58f87fc8adf58af6a973229ccbf15d02c41c9c36abdd8e1acde27a","58b32bad22d6299f71b97f88711785722bb9ac07aa322b0f79b5dfb7c938cdf9","d0f90e162407dbdfb8972aaff199aff270701d2ef379822fe3d03b0137716154","3d02fb0fa562d47079043b4ce46f3f6a45c27484e19368cc79b536c9d669a3d4","cf50774c14be53de14f7e4d911fe69b87ec7648d1192f9a08f3add88a7e3959f","668de9ba46248ff77c8c42f0348c20869aff68b6914496462297fad61d83cda7","0ee6b2fad2a4ca64df11f45b9df701d7c64e742e1a72ccb9803aa7dd744c01f5","a7f5400a5c42d5c7acfd8ddd6c0d4667c7f49da74d3248b73ba9fe62920dfd86","6f55f7f113a67ae113fc7d998712bb21358e1377c7cf5927b76132f8cafd9f63","d743e9a3d80a405c55e249202037f7f462cbffb7c88074ecd2b22fc413f654e1","35104d0632ad6d2bcdea723ff70ee6aaa98b26c4edbdd1d932a61ba0caa40bd7","1eba2f2bab1412fa111c23280faa78a7e48c6c8dbf3ffc69efce33f80d81579f","760a6e6528fe846a7d6886f22c6cb6562a2749ce21649adda208f3bd50d1681f","6d6b50963f410f5ae1a3c8acd5f26a6243c4fd20c1108c2c39fcd29c924615b4","0d71d05f34f326f74f9e80035024874fb2248d35ec0dc2566a23c13b35be08b2","35b7415675495780cc215f86364ff7cb3cc7f6ccda935d0cb12fb24e40ae0b19","973ca4c71f41c7b69a1b96e0baed13d5a672f3b567ed72a993a64d04325cc47b","9caf37688cb1bf9c6ba02914afd3f8a362386eacfed3643d85544e957e8e5220","06f0c719153c13f3b5402828c27d2b06b768d0d018ee212121ba7bff104606d9","79b5337a12f42549a8434edb08ee2c519c9b38d1fa4615a25b00aab03d58340a","63f63054c8763e1f2eeff9f968d326f61582390b5b10d0f00a6d4451857b59b2","781eb690d5fe95b306ae404c36fb7729096f7de38f99b656d6669e921fcde4e9","1b9370a466bb1c2463a87fd017195959769994c02abf9c0f84eee56300b93b45","6634f2625deba5d4c035686fbbb6f41f05a8126d493e000ff494b463174b366e","c1d6d7b43436f5bff3dbc5b0b7e44dc499be5ea0b3dda5039a4be11ca698b494","da5239dff4eb02eb436ff45bc5bd7d2ddf606f22f7695c930df30b1c30fc45db","561790d37729ad9fcbda96cb56aa6b3e61ea1ba252f5e180b842b6243dc3f280","33f445524ca27f21c97501361ca8de8510028d8aca61a1bf969fcdab900f26f2","dbc92439171fb41df4c1f17e5d2b320942a7841db3bce2fae6c65c61d6c77ab5","51d9d9249aa7a5f70b80964125dac09e16831d632b55cb5463df1c4a2e00b7e8","c4f1819b3684e55a1d95cddbba72290a001823b2fdd5270a08a89ad32264bd0a","f8036ce871bd1365c6a062691c8f4ceeb421542e1338295482b6a87fbdb0d6ed","4efe99bfb1cb83d27367383d1a5172452d0443213bca41fe353ae8d50d6eece8","42a989d547ed70afb6f1087a11d5c22f91d73ce8633b6cb1a1ed2cb229c982a2","0a0c4cd99890dffd0c1b218f330c4ef39fd73354799147f832ad9ce2bf6d54c3","53095cb747500235b66215127e40722d137e5da07074e3d9cf5171e2c3058082","0569c219196e3b2b5995a3011be70f2005f4c412c73da9f01d7990c7cf32763a","04d001bf26b5faa883b2e94c9f24d81e7b40fe1f4dad9f34e91441d483a1d408","a922c76e71ae3873d4f61352f91fbfb184444bf46e68760323e3a6d546fdef4c","b4531771b1b3e3780d0b32dab9a734a538a77a1dc634e97a06aec2393655a709","b7b3395362937b230c2c2dfc7b2d7563070a832cd764d2c0ddf11119657f0469","bb4a632288522e1da530da4990d6e3e01c9a8d2aa68f307f120adb435b9a340a","6a3a277d27350eeea0c263905a156f67e894011bebccf9cb39cf30fd493b638f","8c2912684c31e117d0c249add0f5b2717046249653db137053e2dca56204a046","0422f739f406d5387be11ae697b7026042de1394d0cb00ef6de49f8a74f46f8c","a25e5e05aaebac81ea88de4ac83c7721bf895ebcf6b2e5b5597ec8e48e86c114","e9aa789ee108be937728cea21087f85300aef5c215ca6a0a4eae455fadb43663","a665fbe43ed6aaac5a89a3b97bea6c594300006faa55452884a055467599ecf2",{"version":"0b0723af00639bd8039173ef7874ddf5adf2c20b7ed25f4e1784e1b16043f404","signature":"cebbd437a7f295d5f947fa593a9937ae67dff18700b331b515d91e5908db5012"},{"version":"b2bb6a9a61e9ebd28320f370a1348cb1b5eb23e878e7bbece1ca81e0cca32238","signature":"c520cd67d4f83d1fa1fc30dc57a63c36266ace05e76deffd0b85bcc8184d47ff"}],"root":[270,271],"options":{"allowJs":false,"checkJs":false,"composite":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":false,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"target":9},"referencedMap":[[184,1],[187,2],[186,3],[185,4],[183,5],[179,6],[182,7],[181,8],[180,9],[178,5],[193,10],[192,11],[191,12],[190,13],[189,14],[188,15],[124,16],[125,16],[126,17],[78,18],[127,19],[128,20],[129,21],[73,22],[76,23],[74,22],[75,22],[130,24],[131,25],[132,26],[133,27],[134,28],[135,29],[136,29],[137,30],[138,31],[139,32],[140,33],[79,22],[77,22],[141,34],[142,35],[143,36],[177,37],[144,38],[145,22],[146,39],[147,40],[148,41],[149,42],[150,43],[151,44],[152,45],[153,46],[154,47],[155,47],[156,48],[157,22],[158,49],[159,50],[161,51],[160,52],[162,53],[163,54],[164,55],[165,56],[166,57],[167,58],[168,59],[169,60],[170,61],[171,62],[172,63],[173,64],[174,65],[80,22],[81,22],[82,22],[121,66],[122,22],[123,22],[175,67],[176,68],[83,22],[197,69],[196,70],[195,71],[194,72],[56,22],[57,22],[11,22],[10,22],[2,22],[12,22],[13,22],[14,22],[15,22],[16,22],[17,22],[18,22],[19,22],[3,22],[20,22],[21,22],[4,22],[22,22],[26,22],[23,22],[24,22],[25,22],[27,22],[28,22],[29,22],[5,22],[30,22],[31,22],[32,22],[33,22],[6,22],[37,22],[34,22],[35,22],[36,22],[38,22],[7,22],[39,22],[44,22],[45,22],[40,22],[41,22],[42,22],[43,22],[8,22],[49,22],[46,22],[47,22],[48,22],[50,22],[9,22],[51,22],[52,22],[53,22],[55,22],[54,22],[1,22],[99,73],[109,74],[98,73],[119,75],[90,76],[89,77],[118,78],[112,79],[117,80],[92,81],[106,82],[91,83],[115,84],[87,85],[86,78],[116,86],[88,87],[93,88],[94,22],[97,88],[84,22],[120,89],[110,90],[101,91],[102,92],[104,93],[100,94],[103,95],[113,78],[95,96],[96,97],[105,98],[85,99],[108,90],[107,88],[111,22],[114,100],[63,22],[62,22],[71,22],[72,22],[65,22],[198,101],[68,22],[199,102],[69,22],[70,22],[67,22],[66,22],[64,22],[58,103],[59,104],[61,105],[60,22],[200,106],[201,107],[270,108],[271,109],[204,110],[203,111],[205,17],[206,112],[202,22],[267,22],[269,113],[268,114],[225,115],[244,116],[243,117],[245,118],[242,119],[224,22],[241,120],[264,121],[256,121],[257,121],[261,121],[258,122],[263,121],[259,122],[265,121],[260,122],[262,123],[229,124],[218,125],[222,126],[214,127],[220,128],[213,128],[221,129],[215,127],[219,130],[246,131],[210,132],[211,22],[230,133],[231,134],[212,135],[233,136],[234,137],[232,138],[235,139],[227,140],[228,141],[226,142],[266,143],[208,144],[207,145],[209,145],[216,145],[217,146],[223,22],[240,147],[236,147],[249,147],[248,147],[253,147],[252,148],[237,147],[247,147],[238,149],[254,147],[239,150],[255,147],[250,147],[251,147]],"semanticDiagnosticsPerFile":[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,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,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271],"checkPending":true,"version":"5.9.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@grest-ts/logger-console",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Console logger implementation for @grest-ts/logger",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/src/index-node.d.ts",
|
|
10
|
+
"import": "./dist/src/index-node.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"src"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"typecheck": "tsc --noEmit -p src"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/grest-ts/grest-ts.git",
|
|
26
|
+
"directory": "packages/logger/logger-console"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/grest-ts/grest-ts/tree/master/packages/logger/logger-console",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/grest-ts/grest-ts/issues"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"typescript",
|
|
34
|
+
"framework",
|
|
35
|
+
"contract",
|
|
36
|
+
"api",
|
|
37
|
+
"microservices",
|
|
38
|
+
"testing",
|
|
39
|
+
"logging",
|
|
40
|
+
"console",
|
|
41
|
+
"logger"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@grest-ts/file": "0.0.5",
|
|
48
|
+
"@grest-ts/logger": "0.0.5",
|
|
49
|
+
"@grest-ts/schema": "0.0.5"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@grest-ts/x-packager": "0.0.5"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import {GGLogger, LogEntry, LogLevel} from "@grest-ts/logger";
|
|
2
|
+
import {ERROR, VALIDATION_ERROR, ValidationIssueJson} from "@grest-ts/schema";
|
|
3
|
+
import {GGFile} from "@grest-ts/file";
|
|
4
|
+
|
|
5
|
+
export const LOG_LEVELS = [undefined, "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL"]
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* ANSI color codes for beautiful terminal output
|
|
9
|
+
*/
|
|
10
|
+
export const LOG_COLORS = {
|
|
11
|
+
reset: '\x1b[0m',
|
|
12
|
+
|
|
13
|
+
// Text styles
|
|
14
|
+
bright: '\x1b[1m',
|
|
15
|
+
dim: '\x1b[2m',
|
|
16
|
+
underline: '\x1b[4m',
|
|
17
|
+
|
|
18
|
+
// Foreground colors (text)
|
|
19
|
+
black: '\x1b[30m',
|
|
20
|
+
red: '\x1b[31m',
|
|
21
|
+
green: '\x1b[32m',
|
|
22
|
+
yellow: '\x1b[33m',
|
|
23
|
+
blue: '\x1b[34m',
|
|
24
|
+
magenta: '\x1b[35m',
|
|
25
|
+
cyan: '\x1b[36m',
|
|
26
|
+
white: '\x1b[37m',
|
|
27
|
+
gray: '\x1b[90m',
|
|
28
|
+
orange: '\x1b[38;5;208m', // 256-color orange
|
|
29
|
+
|
|
30
|
+
// Bright foreground colors
|
|
31
|
+
brightBlack: '\x1b[90m',
|
|
32
|
+
brightRed: '\x1b[91m',
|
|
33
|
+
brightGreen: '\x1b[92m',
|
|
34
|
+
brightYellow: '\x1b[93m',
|
|
35
|
+
brightBlue: '\x1b[94m',
|
|
36
|
+
brightMagenta: '\x1b[95m',
|
|
37
|
+
brightCyan: '\x1b[96m',
|
|
38
|
+
brightWhite: '\x1b[97m',
|
|
39
|
+
|
|
40
|
+
// Background colors
|
|
41
|
+
bgBlack: '\x1b[40m',
|
|
42
|
+
bgRed: '\x1b[41m',
|
|
43
|
+
bgGreen: '\x1b[42m',
|
|
44
|
+
bgYellow: '\x1b[43m',
|
|
45
|
+
bgBlue: '\x1b[44m',
|
|
46
|
+
bgMagenta: '\x1b[45m',
|
|
47
|
+
bgCyan: '\x1b[46m',
|
|
48
|
+
bgWhite: '\x1b[47m',
|
|
49
|
+
bgGray: '\x1b[100m',
|
|
50
|
+
bgOrange: '\x1b[48;5;208m', // 256-color orange background
|
|
51
|
+
|
|
52
|
+
// Bright background colors
|
|
53
|
+
bgBrightBlack: '\x1b[100m',
|
|
54
|
+
bgBrightRed: '\x1b[101m',
|
|
55
|
+
bgBrightGreen: '\x1b[102m',
|
|
56
|
+
bgBrightYellow: '\x1b[103m',
|
|
57
|
+
bgBrightBlue: '\x1b[104m',
|
|
58
|
+
bgBrightMagenta: '\x1b[105m',
|
|
59
|
+
bgBrightCyan: '\x1b[106m',
|
|
60
|
+
bgBrightWhite: '\x1b[107m',
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
function parseLogLevel(value: string | undefined): LogLevel | undefined {
|
|
64
|
+
if (!value) return undefined;
|
|
65
|
+
const index = LOG_LEVELS.indexOf(value.toUpperCase());
|
|
66
|
+
return index > 0 ? index as LogLevel : undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Console logger with beautiful colored output
|
|
71
|
+
*/
|
|
72
|
+
export class GGLoggerConsole implements GGLogger {
|
|
73
|
+
public readonly minLevel: LogLevel
|
|
74
|
+
private readonly showData: boolean;
|
|
75
|
+
private readonly timestampFormat: 'full' | 'time';
|
|
76
|
+
|
|
77
|
+
// private readonly useConsoleLog: boolean;
|
|
78
|
+
private readonly contextProviders: ((parts: string[]) => void)[] = [];
|
|
79
|
+
|
|
80
|
+
constructor(options?: {
|
|
81
|
+
minLevel?: LogLevel;
|
|
82
|
+
showData?: boolean;
|
|
83
|
+
timestampFormat?: 'full' | 'time';
|
|
84
|
+
}) {
|
|
85
|
+
this.minLevel = options?.minLevel ?? parseLogLevel(process.env.LOG_LEVEL) ?? LogLevel.DEBUG;
|
|
86
|
+
this.showData = options?.showData ?? true;
|
|
87
|
+
this.timestampFormat = options?.timestampFormat ?? 'time';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public addContext(provider: (parts: string[]) => void): this {
|
|
91
|
+
this.contextProviders.push(provider);
|
|
92
|
+
return this;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public log(entry: LogEntry): void {
|
|
96
|
+
const msg = this.format(entry);
|
|
97
|
+
if (msg === null) {
|
|
98
|
+
return; // Below min level
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
console.log(msg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Format a log entry to a string without printing it.
|
|
106
|
+
* Returns null if the entry is below the minimum log level.
|
|
107
|
+
*/
|
|
108
|
+
public format(entry: LogEntry): string | null {
|
|
109
|
+
if (entry.level < this.minLevel) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
const parts: string[] = [];
|
|
113
|
+
parts.push(LOG_COLORS.gray + this.formatTimestamp(entry.timestamp));
|
|
114
|
+
parts.push(LOG_COLORS.white + process.pid);
|
|
115
|
+
|
|
116
|
+
const levelColor = this.getLevelColor(entry.level);
|
|
117
|
+
parts.push(levelColor + (LOG_LEVELS[entry.level].padEnd(5) ?? "?????"));
|
|
118
|
+
|
|
119
|
+
parts.push(LOG_COLORS.cyan + entry.contextName + LOG_COLORS.reset);
|
|
120
|
+
|
|
121
|
+
for (let i = 0; i < this.contextProviders.length; i++) {
|
|
122
|
+
this.contextProviders[i](parts);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (entry.message !== undefined) {
|
|
126
|
+
parts.push(levelColor + entry.message);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (entry.error !== undefined && entry.error !== null) {
|
|
130
|
+
parts.push(this.formatError(levelColor, entry.error));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (this.showData && entry.data !== undefined && entry.data !== null) {
|
|
134
|
+
const dataColor = entry.level === LogLevel.INFO ? LOG_COLORS.gray : levelColor;
|
|
135
|
+
parts.push(dataColor + this.formatData(entry.data));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
// let originalError = "";
|
|
140
|
+
// if (entry?.data?.debugData) {
|
|
141
|
+
// originalError += "\n\tDebug data: " + JSON.stringify(entry.data.debugData, null, 2).split("\n").join("\n\t");
|
|
142
|
+
// }
|
|
143
|
+
|
|
144
|
+
return parts.join(' ') + LOG_COLORS.reset;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
private formatTimestamp(date: Date): string {
|
|
148
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
149
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
150
|
+
const seconds = String(date.getSeconds()).padStart(2, '0');
|
|
151
|
+
// const ms = String(date.getMilliseconds()).padStart(3, '0');
|
|
152
|
+
|
|
153
|
+
const timeString = hours + ':' + minutes + ':' + seconds;
|
|
154
|
+
|
|
155
|
+
if (this.timestampFormat === 'full') {
|
|
156
|
+
const year = date.getFullYear();
|
|
157
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
158
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
159
|
+
return year + '-' + month + '-' + day + ' ' + timeString;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return timeString;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
private getLevelColor(level: LogLevel): string {
|
|
166
|
+
switch (level) {
|
|
167
|
+
case LogLevel.CRITICAL:
|
|
168
|
+
return LOG_COLORS.red;
|
|
169
|
+
case LogLevel.ERROR:
|
|
170
|
+
return LOG_COLORS.red;
|
|
171
|
+
case LogLevel.WARN:
|
|
172
|
+
return LOG_COLORS.yellow;
|
|
173
|
+
case LogLevel.INFO:
|
|
174
|
+
return LOG_COLORS.green;
|
|
175
|
+
case LogLevel.DEBUG:
|
|
176
|
+
return LOG_COLORS.gray;
|
|
177
|
+
default:
|
|
178
|
+
return LOG_COLORS.gray;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
private formatData(data: unknown): string {
|
|
183
|
+
if (typeof data === 'string') {
|
|
184
|
+
return data;
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
const sanitized = this.sanitizeForLogging(data);
|
|
188
|
+
const json = JSON.stringify(sanitized);
|
|
189
|
+
// Truncate if too long
|
|
190
|
+
if (json.length > 2000) {
|
|
191
|
+
return json.substring(0, 2000) + '... [truncated]';
|
|
192
|
+
}
|
|
193
|
+
// Indent each line
|
|
194
|
+
return json.split('\n').join('\n ');
|
|
195
|
+
} catch {
|
|
196
|
+
return String(data);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Sanitize data for logging - replace large buffers and files with summaries
|
|
202
|
+
*/
|
|
203
|
+
private sanitizeForLogging(data: unknown, depth: number = 0): unknown {
|
|
204
|
+
if (depth > 10) return '[max depth]';
|
|
205
|
+
if (data === null || data === undefined) return data;
|
|
206
|
+
|
|
207
|
+
// Handle Uint8Array/Buffer - show summary instead of all bytes
|
|
208
|
+
if (data instanceof Uint8Array || (typeof Buffer !== 'undefined' && Buffer.isBuffer(data))) {
|
|
209
|
+
return `[Buffer: ${data.length} bytes]`;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// Handle ArrayBuffer
|
|
213
|
+
if (data instanceof ArrayBuffer) {
|
|
214
|
+
return `[ArrayBuffer: ${data.byteLength} bytes]`;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Handle GGFile-like objects (duck typing)
|
|
218
|
+
if (data instanceof GGFile) {
|
|
219
|
+
const file = data as { name: string, mimeType: string, size: number };
|
|
220
|
+
return `[GGFile: ${file.name} (${file.mimeType}, ${file.size} bytes)]`;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Handle arrays
|
|
224
|
+
if (Array.isArray(data)) {
|
|
225
|
+
if (data.length > 100) {
|
|
226
|
+
return `[Array: ${data.length} items]`;
|
|
227
|
+
}
|
|
228
|
+
return data.map(item => this.sanitizeForLogging(item, depth + 1));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Handle objects
|
|
232
|
+
if (typeof data === 'object') {
|
|
233
|
+
const keys = Object.keys(data);
|
|
234
|
+
if (keys.length > 50) {
|
|
235
|
+
return `[Object: ${keys.length} keys]`;
|
|
236
|
+
}
|
|
237
|
+
const result: Record<string, unknown> = {};
|
|
238
|
+
for (const key of keys) {
|
|
239
|
+
result[key] = this.sanitizeForLogging((data as any)[key], depth + 1);
|
|
240
|
+
}
|
|
241
|
+
return result;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return data;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
private formatError(levelColor: string, error: unknown): string {
|
|
248
|
+
|
|
249
|
+
if (typeof error === 'string') {
|
|
250
|
+
return error;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (error instanceof ERROR) {
|
|
254
|
+
const debugData = error.getDebugContext()
|
|
255
|
+
const baseMsg = levelColor + "" + error.message + (debugData.debugMessage ? " " + debugData.debugMessage : "");
|
|
256
|
+
|
|
257
|
+
let extra = "";
|
|
258
|
+
if (VALIDATION_ERROR.is(error)) {
|
|
259
|
+
extra = LOG_COLORS.gray + "(" + this.extractValidationErrors(error.data, "", 10).join(" | ") + ")"
|
|
260
|
+
} else if (error.data) {
|
|
261
|
+
extra = "[" + error.type + "]" + (error.data ? " " + LOG_COLORS.gray + JSON.stringify(error.data) : "")
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
let originalError = "";
|
|
265
|
+
if (debugData.originalError) {
|
|
266
|
+
originalError += "\n\tOriginal error: " + this.tabData(1, this.formatError(levelColor, debugData.originalError));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
let debugDataStr = "";
|
|
270
|
+
if (debugData.debugMessage) {
|
|
271
|
+
debugDataStr += "\n\tDebug message: " + debugData.debugMessage;
|
|
272
|
+
}
|
|
273
|
+
if (debugData.debugData) {
|
|
274
|
+
debugDataStr += "\n\tDebug data: " + this.tabData(1, JSON.stringify(debugData.debugData, null, 2));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
let stack = "";
|
|
278
|
+
if (error.stack) {
|
|
279
|
+
const stackLines = error.stack.split('\n');
|
|
280
|
+
stackLines.shift();
|
|
281
|
+
stack = stackLines.join("\n");
|
|
282
|
+
stack = "\n" + stack
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return baseMsg + (extra ? " " + extra : "") + stack + debugDataStr + originalError;
|
|
286
|
+
|
|
287
|
+
} else if (error instanceof Error) {
|
|
288
|
+
return levelColor + error.stack;
|
|
289
|
+
|
|
290
|
+
} else {
|
|
291
|
+
return levelColor + String(error);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
private tabData(tabs: number, data: string) {
|
|
296
|
+
const tabsStr = "\t".repeat(tabs);
|
|
297
|
+
return data.split('\n').join('\n' + tabsStr);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
private extractValidationErrors(
|
|
301
|
+
issues: ValidationIssueJson[],
|
|
302
|
+
currentPath: string,
|
|
303
|
+
maxErrors: number
|
|
304
|
+
): string[] {
|
|
305
|
+
const errors: string[] = [];
|
|
306
|
+
const length = Math.min(issues?.length ?? 0, maxErrors);
|
|
307
|
+
for (let i = 0; i < length; i++) {
|
|
308
|
+
const issue = issues[i];
|
|
309
|
+
errors.push((currentPath ? currentPath + ": " : "") + issue.message);
|
|
310
|
+
}
|
|
311
|
+
return errors;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GGLoggerConsole'
|