@dxos/log 0.8.4-main.fffef41 → 0.8.4-staging.ac66bdf99f
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/lib/browser/chunk-DTUPLFUN.mjs +311 -0
- package/dist/lib/browser/chunk-DTUPLFUN.mjs.map +7 -0
- package/dist/lib/browser/chunk-IEP6GGEX.mjs +23 -0
- package/dist/lib/browser/chunk-IEP6GGEX.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +187 -199
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/platform/browser/index.mjs +26 -0
- package/dist/lib/browser/platform/browser/index.mjs.map +7 -0
- package/dist/lib/browser/platform/node/index.mjs +21 -0
- package/dist/lib/browser/platform/node/index.mjs.map +7 -0
- package/dist/lib/browser/processors/console-processor.mjs +102 -0
- package/dist/lib/browser/processors/console-processor.mjs.map +7 -0
- package/dist/lib/browser/processors/console-stub.mjs +9 -0
- package/dist/lib/browser/processors/console-stub.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2SZHAWBN.mjs +24 -0
- package/dist/lib/node-esm/chunk-2SZHAWBN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KOTHKRYW.mjs +313 -0
- package/dist/lib/node-esm/chunk-KOTHKRYW.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +189 -288
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/platform/browser/index.mjs +27 -0
- package/dist/lib/node-esm/platform/browser/index.mjs.map +7 -0
- package/dist/lib/node-esm/platform/node/index.mjs +22 -0
- package/dist/lib/node-esm/platform/node/index.mjs.map +7 -0
- package/dist/lib/node-esm/processors/console-processor.mjs +103 -0
- package/dist/lib/node-esm/processors/console-processor.mjs.map +7 -0
- package/dist/lib/node-esm/processors/console-stub.mjs +10 -0
- package/dist/lib/node-esm/processors/console-stub.mjs.map +7 -0
- package/dist/types/src/context.d.ts +78 -2
- package/dist/types/src/context.d.ts.map +1 -1
- package/dist/types/src/dbg.d.ts +23 -0
- package/dist/types/src/dbg.d.ts.map +1 -0
- package/dist/types/src/decorators.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/log-buffer.d.ts +40 -0
- package/dist/types/src/log-buffer.d.ts.map +1 -0
- package/dist/types/src/log-buffer.test.d.ts +2 -0
- package/dist/types/src/log-buffer.test.d.ts.map +1 -0
- package/dist/types/src/log.d.ts +3 -1
- package/dist/types/src/log.d.ts.map +1 -1
- package/dist/types/src/options.d.ts.map +1 -1
- package/dist/types/src/platform/index.d.ts +1 -1
- package/dist/types/src/platform/index.d.ts.map +1 -1
- package/dist/types/src/platform/node/index.d.ts.map +1 -1
- package/dist/types/src/processors/browser-processor.d.ts.map +1 -1
- package/dist/types/src/processors/console-processor.d.ts.map +1 -1
- package/dist/types/src/processors/file-processor.d.ts.map +1 -1
- package/dist/types/src/processors/index.d.ts +3 -3
- package/dist/types/src/processors/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -12
- package/src/context.ts +242 -2
- package/src/dbg.ts +34 -0
- package/src/decorators.ts +1 -2
- package/src/experimental/classes.test.ts +0 -1
- package/src/index.ts +3 -3
- package/src/log-buffer.test.ts +158 -0
- package/src/log-buffer.ts +110 -0
- package/src/log.test.ts +0 -1
- package/src/log.ts +7 -12
- package/src/options.ts +3 -1
- package/src/platform/index.ts +1 -1
- package/src/platform/node/index.ts +1 -2
- package/src/processors/browser-processor.ts +27 -28
- package/src/processors/console-processor.ts +5 -13
- package/src/processors/file-processor.ts +7 -9
- package/src/processors/index.ts +3 -3
|
@@ -5,14 +5,84 @@ import { type CallMetadata } from './meta';
|
|
|
5
5
|
*/
|
|
6
6
|
export type LogContext = Record<string, any> | Error | any;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Normalized call-site metadata suitable for display and serialization.
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface ComputedLogMeta {
|
|
11
|
+
/** Relative filename (normalized via {@link getRelativeFilename}). */
|
|
12
|
+
filename?: string;
|
|
13
|
+
/** Line number within the file. */
|
|
14
|
+
line?: number;
|
|
15
|
+
/** Debug name of the enclosing scope (class instance), e.g. `MyClass#3`. */
|
|
16
|
+
context?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Fields required to construct a {@link LogEntry}.
|
|
20
|
+
*/
|
|
21
|
+
export interface LogEntryInit {
|
|
11
22
|
level: LogLevel;
|
|
12
23
|
message?: string;
|
|
13
24
|
context?: LogContext;
|
|
14
25
|
meta?: CallMetadata;
|
|
15
26
|
error?: Error;
|
|
27
|
+
/** Overrides the default timestamp ({@link Date.now}). */
|
|
28
|
+
timestamp?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Record for a single log line processed by the logging pipeline.
|
|
32
|
+
*
|
|
33
|
+
* Raw fields (`level`, `message`, `context`, `meta`, `error`) are preserved so processors
|
|
34
|
+
* can access unmodified inputs. Derived, lazily computed getters
|
|
35
|
+
* ({@link computedContext}, {@link computedError}, {@link computedMeta}) centralize
|
|
36
|
+
* the formatting logic shared across processors that write to serialized stores.
|
|
37
|
+
*/
|
|
38
|
+
export declare class LogEntry {
|
|
39
|
+
#private;
|
|
40
|
+
/** Severity of this entry. */
|
|
41
|
+
readonly level: LogLevel;
|
|
42
|
+
/** Human-readable log message, if any. */
|
|
43
|
+
readonly message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Raw context value passed at the call site. May be a record, an Error, a function
|
|
46
|
+
* returning either, or any other value. Processors that need the flattened /
|
|
47
|
+
* JSON-safe view should prefer {@link computedContext}.
|
|
48
|
+
*/
|
|
49
|
+
readonly context?: LogContext;
|
|
50
|
+
/** Raw call-site metadata injected by the log transform plugin. */
|
|
51
|
+
readonly meta?: CallMetadata;
|
|
52
|
+
/** Error passed to `log.catch()` / `log.error(err)`, if any. */
|
|
53
|
+
readonly error?: Error;
|
|
54
|
+
/** Unix timestamp in milliseconds of when the entry was created. */
|
|
55
|
+
readonly timestamp: number;
|
|
56
|
+
constructor(init: LogEntryInit);
|
|
57
|
+
/**
|
|
58
|
+
* Flattened, JSON-safe context intended for serialized stores.
|
|
59
|
+
*
|
|
60
|
+
* - Single-level key-value map.
|
|
61
|
+
* - Primitives (`boolean`, `number`, `string`, `null`, `undefined`) pass through.
|
|
62
|
+
* - Non-primitive values are stringified one level deep via `JSON.stringify` (no recursion).
|
|
63
|
+
* - The reserved `error` / `err` keys are stripped — use {@link computedError} instead.
|
|
64
|
+
* - Properties from `@logInfo`-decorated members of the scope (`meta.S`) are inlined.
|
|
65
|
+
*
|
|
66
|
+
* Lazily computed and memoized on first access.
|
|
67
|
+
*/
|
|
68
|
+
get computedContext(): Record<string, unknown>;
|
|
69
|
+
/**
|
|
70
|
+
* Stringified error for this entry, sourced (in priority order) from:
|
|
71
|
+
* 1. {@link error} (e.g. `log.catch(err)`),
|
|
72
|
+
* 2. {@link context} when the context itself is an {@link Error},
|
|
73
|
+
* 3. `context.error` or `context.err`.
|
|
74
|
+
*
|
|
75
|
+
* Formatted as `.stack` when available, falling back to `.message` or `String(err)`.
|
|
76
|
+
*
|
|
77
|
+
* Lazily computed and memoized on first access.
|
|
78
|
+
*/
|
|
79
|
+
get computedError(): string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Normalized call-site metadata suitable for display / serialization.
|
|
82
|
+
*
|
|
83
|
+
* Lazily computed and memoized on first access.
|
|
84
|
+
*/
|
|
85
|
+
get computedMeta(): ComputedLogMeta;
|
|
16
86
|
}
|
|
17
87
|
/**
|
|
18
88
|
* Processes (e.g., prints, forwards) log entries.
|
|
@@ -22,5 +92,11 @@ export type LogProcessor = (config: LogConfig, entry: LogEntry) => void;
|
|
|
22
92
|
* Determines if the current line should be logged (called by the processor).
|
|
23
93
|
*/
|
|
24
94
|
export declare const shouldLog: (entry: LogEntry, filters?: LogFilter[]) => boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Merges scope info, entry context, and error into a single record — preserving nested
|
|
97
|
+
* objects and Error instances so rich consumers (console inspect, devtools) can format them.
|
|
98
|
+
*
|
|
99
|
+
* Prefer {@link LogEntry.computedContext} for serialized / JSON outputs.
|
|
100
|
+
*/
|
|
25
101
|
export declare const getContextFromEntry: (entry: LogEntry) => Record<string, any> | undefined;
|
|
26
102
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/context.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,qBAAa,QAAQ;;IACnB,8BAA8B;IAC9B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAE9B,mEAAmE;IACnE,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;IAE7B,gEAAgE;IAChE,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAEvB,oEAAoE;IACpE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAUf,IAAI,EAAE,YAAY;IAqB9B;;;;;;;;;;OAUG;IACH,IAAI,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAM7C;IAED;;;;;;;;;OASG;IACH,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAMtC;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,eAAe,CAKlC;CACF;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;AA+BxE;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,QAAQ,EAAE,UAAU,SAAS,EAAE,KAAG,OAYlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,QAAQ,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SA0B3E,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type CallMetadata } from './meta';
|
|
2
|
+
/**
|
|
3
|
+
* Debug-log value to console.
|
|
4
|
+
* Log's the expression being evaluated.
|
|
5
|
+
*
|
|
6
|
+
* If only one argument is provided, it will also be returned.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* dbg(foo, bar);
|
|
11
|
+
* // foo = 1
|
|
12
|
+
* // bar = 2
|
|
13
|
+
*
|
|
14
|
+
* bar = dbg(foo * 2);
|
|
15
|
+
* // foo * 2 = 2
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* NOTE: The second argument is injected by the log transform plugin.
|
|
19
|
+
*/
|
|
20
|
+
export declare const dbg: {
|
|
21
|
+
<T>(value: T, _meta?: CallMetadata): T;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=dbg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dbg.d.ts","sourceRoot":"","sources":["../../../src/dbg.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,GAAG,EAAE;IAChB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC;CASxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/decorators.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,eAAO,MAAM,wBAAwB,GAClC,KAAK,UAAU,MACf,OAAO,KAAK,EAAE,OAAO,KAAK,EAAE,OAAO,YAAY,KAAG,eAwClD,CAAC;AAEJ,eAAO,MAAM,0BAA0B,GACpC,KAAK,UAAU,MACf,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAChC,MAAM,MAAM,EACZ,IAAI,CAAC,EACL,OAAM;IAAE,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;CAAO,KAC7E,CA6CF,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import omit from '
|
|
2
|
-
import { pick } from '@dxos/util';
|
|
1
|
+
import { omit, pick } from '@dxos/util';
|
|
3
2
|
export { omit, pick };
|
|
4
3
|
export * from './config';
|
|
5
4
|
export * from './context';
|
|
@@ -8,5 +7,7 @@ export { parseFilter } from './options';
|
|
|
8
7
|
export * from './processors';
|
|
9
8
|
export * from './scope';
|
|
10
9
|
export type * from './meta';
|
|
10
|
+
export { dbg } from './dbg';
|
|
11
|
+
export * from './log-buffer';
|
|
11
12
|
export { getCurrentOwnershipScope } from './experimental/ownership';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,mBAAmB,QAAQ,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type LogProcessor } from './context';
|
|
2
|
+
/**
|
|
3
|
+
* Compact log record with short property names for small serialized size.
|
|
4
|
+
*/
|
|
5
|
+
export type LogRecord = {
|
|
6
|
+
/** ISO timestamp. */
|
|
7
|
+
t: string;
|
|
8
|
+
/** Level letter (D, V, I, W, E). */
|
|
9
|
+
l: string;
|
|
10
|
+
/** Message. */
|
|
11
|
+
m: string;
|
|
12
|
+
/** File path. */
|
|
13
|
+
f?: string;
|
|
14
|
+
/** Line number. */
|
|
15
|
+
n?: number;
|
|
16
|
+
o?: string;
|
|
17
|
+
/** Error stack. */
|
|
18
|
+
e?: string;
|
|
19
|
+
/** Context JSON. */
|
|
20
|
+
c?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Captures recent log entries in a circular buffer for debug log dump.
|
|
24
|
+
*/
|
|
25
|
+
export declare class LogBuffer {
|
|
26
|
+
private readonly _buffer;
|
|
27
|
+
constructor(size?: number);
|
|
28
|
+
/**
|
|
29
|
+
* Log processor that can be registered with `log.runtimeConfig.processors`.
|
|
30
|
+
* Captures every level except TRACE (does not apply `shouldLog` / filter; use for full debug dumps).
|
|
31
|
+
*/
|
|
32
|
+
readonly logProcessor: LogProcessor;
|
|
33
|
+
/** Number of entries currently in the buffer. */
|
|
34
|
+
get size(): number;
|
|
35
|
+
/** Discard all buffered entries. */
|
|
36
|
+
clear(): void;
|
|
37
|
+
/** Serialize buffer contents as NDJSON (newline-delimited JSON). */
|
|
38
|
+
serialize(): string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=log-buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-buffer.d.ts","sourceRoot":"","sources":["../../../src/log-buffer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAK7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,qBAAqB;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,oCAAoC;IACpC,CAAC,EAAE,MAAM,CAAC;IACV,eAAe;IACf,CAAC,EAAE,MAAM,CAAC;IACV,iBAAiB;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;gBAExC,IAAI,SAAsB;IAItC;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAyCjC;IAEF,iDAAiD;IACjD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,oCAAoC;IACpC,KAAK,IAAI,IAAI;IAIb,oEAAoE;IACpE,SAAS,IAAI,MAAM;CAOpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-buffer.test.d.ts","sourceRoot":"","sources":["../../../src/log-buffer.test.ts"],"names":[],"mappings":""}
|
package/dist/types/src/log.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { type LogContext, type LogProcessor } from './context';
|
|
|
3
3
|
import { type CallMetadata } from './meta';
|
|
4
4
|
/**
|
|
5
5
|
* Accessible from browser console.
|
|
6
|
+
* Example: `DX_LOG.config({ filter: 'ERROR' })`
|
|
7
|
+
* NOTE: File level filtering isn't supported in storybooks.
|
|
6
8
|
*/
|
|
7
9
|
declare global {
|
|
8
10
|
const DX_LOG: Log;
|
|
@@ -15,7 +17,7 @@ type LogFunction = (message: string, context?: LogContext, meta?: CallMetadata)
|
|
|
15
17
|
* Logging methods.
|
|
16
18
|
*/
|
|
17
19
|
export interface LogMethods {
|
|
18
|
-
config: (options
|
|
20
|
+
config: (options?: LogOptions) => Log;
|
|
19
21
|
addProcessor: (processor: LogProcessor, addDefault?: boolean) => () => void;
|
|
20
22
|
trace: LogFunction;
|
|
21
23
|
debug: LogFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/log.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/log.ts"],"names":[],"mappings":"AAIA,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,KAAK,UAAU,EAAY,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C;;;;GAIG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,MAAM,EAAE,GAAG,CAAC;CACnB;AAED;;GAEG;AACH,KAAK,WAAW,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,KAAK,GAAG,CAAC;IACtC,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;IAE5E,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IAE/E,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,eAAe,CAAC;IAC7E,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC1C,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,EACL,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;KACjE,KACE,CAAC,CAAC;IAEP,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;CACzE;AAwGD;;GAEG;AACH,eAAO,MAAM,GAAG,EAAE,GAAkD,CAAC;AAKrE;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,QAAQ,GAAG,EAAE,OAAO,GAAG,SAU5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/options.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAInD,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/options.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAInD,CAAC;AAMF,eAAO,MAAM,kBAAkB,gBAAoD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '#platform';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/platform/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/platform/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/platform/node/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,KAAG,UAAU,GAAG,SAY5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/browser-processor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"browser-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/browser-processor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,YAAY,CAAC;AAmI/E,eAAO,MAAM,iBAAiB,EAAE,YAAuF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/console-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/console-processor.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,SAAS,EAAE,QAAQ,EAAkB,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,YAAY,CAAC;AAW/E,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,EAAE,eAAU,EAAE,eAAa,WAGhE,CAAC;AAIF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;AAE1F,eAAO,MAAM,iBAAiB,EAAE,SAkC/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAM7B,CAAC;AAKF,eAAO,MAAM,iBAAiB,EAAE,YA6B/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/file-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-processor.d.ts","sourceRoot":"","sources":["../../../../src/processors/file-processor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,YAAY,CAAC;AAK1D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,gCAIjC;IACD,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;CACvB,KAAG,YAsDH,CAAC;AAWF,eAAO,MAAM,cAAc,EAAE,YAG3B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './console-processor';
|
|
2
|
-
export * from './debug-processor';
|
|
3
1
|
export * from './browser-processor';
|
|
4
|
-
export * from './file-processor';
|
|
5
2
|
export * from './common';
|
|
3
|
+
export * from '#console-processor';
|
|
4
|
+
export * from './debug-processor';
|
|
5
|
+
export * from './file-processor';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/processors/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/processors/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|