@testrelic/maestro-analytics 1.2.0-next.52 → 1.2.0-next.54
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/dist/cli.cjs +70 -12
- package/dist/index.cjs +49 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +49 -49
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -309,8 +309,16 @@ declare function discoverFlowFiles(dir: string): string[];
|
|
|
309
309
|
* Also detects device/platform metadata from log content.
|
|
310
310
|
*/
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
/**
|
|
313
|
+
* @param defaultDate Either an ISO date string (`YYYY-MM-DD`) or a Date object.
|
|
314
|
+
* Used to anchor log lines that only carry a wall-clock time (`HH:MM:SS`).
|
|
315
|
+
* Callers should pass the log file's mtime as a Date so the local-zone
|
|
316
|
+
* conversion produces a correct UTC ISO timestamp for log entries. When a
|
|
317
|
+
* plain string is passed, the timestamp is constructed without TZ-shift
|
|
318
|
+
* compensation (legacy behaviour — may be off by the local UTC offset).
|
|
319
|
+
*/
|
|
320
|
+
declare function parseLogContent(content: string, defaultDate?: string | Date): MaestroLogEntry[];
|
|
321
|
+
declare function parseLogFile(filePath: string, defaultDate?: string | Date): MaestroLogEntry[];
|
|
314
322
|
declare function detectPlatformFromLogs(entries: MaestroLogEntry[]): MaestroPlatform;
|
|
315
323
|
declare function discoverLogFiles(dir: string): string[];
|
|
316
324
|
|
package/dist/index.d.ts
CHANGED
|
@@ -309,8 +309,16 @@ declare function discoverFlowFiles(dir: string): string[];
|
|
|
309
309
|
* Also detects device/platform metadata from log content.
|
|
310
310
|
*/
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
/**
|
|
313
|
+
* @param defaultDate Either an ISO date string (`YYYY-MM-DD`) or a Date object.
|
|
314
|
+
* Used to anchor log lines that only carry a wall-clock time (`HH:MM:SS`).
|
|
315
|
+
* Callers should pass the log file's mtime as a Date so the local-zone
|
|
316
|
+
* conversion produces a correct UTC ISO timestamp for log entries. When a
|
|
317
|
+
* plain string is passed, the timestamp is constructed without TZ-shift
|
|
318
|
+
* compensation (legacy behaviour — may be off by the local UTC offset).
|
|
319
|
+
*/
|
|
320
|
+
declare function parseLogContent(content: string, defaultDate?: string | Date): MaestroLogEntry[];
|
|
321
|
+
declare function parseLogFile(filePath: string, defaultDate?: string | Date): MaestroLogEntry[];
|
|
314
322
|
declare function detectPlatformFromLogs(entries: MaestroLogEntry[]): MaestroPlatform;
|
|
315
323
|
declare function discoverLogFiles(dir: string): string[];
|
|
316
324
|
|