@tracelog/lib 2.7.0 → 2.7.1-rc.96.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/README.md +3 -3
- package/dist/browser/tracelog.esm.js +415 -394
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +2 -1
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +2 -2
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.d.mts +10 -5
- package/dist/public-api.d.ts +10 -5
- package/dist/public-api.js +2 -2
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
package/dist/public-api.d.mts
CHANGED
|
@@ -324,6 +324,8 @@ interface ErrorData {
|
|
|
324
324
|
line?: number;
|
|
325
325
|
/** Column number in source file */
|
|
326
326
|
column?: number;
|
|
327
|
+
/** Error stack trace (truncated to 2000 chars) */
|
|
328
|
+
stack?: string;
|
|
327
329
|
}
|
|
328
330
|
/**
|
|
329
331
|
* UTM campaign tracking parameters
|
|
@@ -1878,7 +1880,10 @@ declare class ErrorHandler extends StateManager {
|
|
|
1878
1880
|
private readonly handleRejection;
|
|
1879
1881
|
private extractRejectionMessage;
|
|
1880
1882
|
private sanitize;
|
|
1883
|
+
private sanitizePii;
|
|
1881
1884
|
private shouldSuppressError;
|
|
1885
|
+
private static readonly TRUNCATION_SUFFIX;
|
|
1886
|
+
private truncateStack;
|
|
1882
1887
|
private pruneOldErrors;
|
|
1883
1888
|
}
|
|
1884
1889
|
|
|
@@ -2485,12 +2490,12 @@ declare function setTransformer(hook: 'beforeBatch', fn: BeforeBatchTransformer)
|
|
|
2485
2490
|
declare const DEFAULT_SESSION_TIMEOUT: number;
|
|
2486
2491
|
declare const MAX_CUSTOM_EVENT_NAME_LENGTH = 120;
|
|
2487
2492
|
declare const MAX_CUSTOM_EVENT_STRING_SIZE: number;
|
|
2488
|
-
declare const MAX_CUSTOM_EVENT_KEYS =
|
|
2489
|
-
declare const MAX_CUSTOM_EVENT_ARRAY_SIZE =
|
|
2490
|
-
declare const MAX_NESTED_OBJECT_KEYS =
|
|
2493
|
+
declare const MAX_CUSTOM_EVENT_KEYS = 100;
|
|
2494
|
+
declare const MAX_CUSTOM_EVENT_ARRAY_SIZE = 500;
|
|
2495
|
+
declare const MAX_NESTED_OBJECT_KEYS = 200;
|
|
2491
2496
|
declare const MAX_STRING_LENGTH = 1000;
|
|
2492
2497
|
declare const MAX_STRING_LENGTH_IN_ARRAY = 500;
|
|
2493
|
-
declare const MAX_ARRAY_LENGTH =
|
|
2498
|
+
declare const MAX_ARRAY_LENGTH = 1000;
|
|
2494
2499
|
|
|
2495
2500
|
/**
|
|
2496
2501
|
* Error handling and PII sanitization constants for TraceLog
|
|
@@ -2500,7 +2505,7 @@ declare const MAX_ARRAY_LENGTH = 100;
|
|
|
2500
2505
|
* Regular expressions for detecting and sanitizing Personally Identifiable Information (PII)
|
|
2501
2506
|
* These patterns are used to replace sensitive information with [REDACTED] in error messages
|
|
2502
2507
|
*/
|
|
2503
|
-
declare const PII_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
2508
|
+
declare const PII_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
2504
2509
|
|
|
2505
2510
|
/**
|
|
2506
2511
|
* Performance monitoring and web vitals constants for TraceLog
|
package/dist/public-api.d.ts
CHANGED
|
@@ -324,6 +324,8 @@ interface ErrorData {
|
|
|
324
324
|
line?: number;
|
|
325
325
|
/** Column number in source file */
|
|
326
326
|
column?: number;
|
|
327
|
+
/** Error stack trace (truncated to 2000 chars) */
|
|
328
|
+
stack?: string;
|
|
327
329
|
}
|
|
328
330
|
/**
|
|
329
331
|
* UTM campaign tracking parameters
|
|
@@ -1878,7 +1880,10 @@ declare class ErrorHandler extends StateManager {
|
|
|
1878
1880
|
private readonly handleRejection;
|
|
1879
1881
|
private extractRejectionMessage;
|
|
1880
1882
|
private sanitize;
|
|
1883
|
+
private sanitizePii;
|
|
1881
1884
|
private shouldSuppressError;
|
|
1885
|
+
private static readonly TRUNCATION_SUFFIX;
|
|
1886
|
+
private truncateStack;
|
|
1882
1887
|
private pruneOldErrors;
|
|
1883
1888
|
}
|
|
1884
1889
|
|
|
@@ -2485,12 +2490,12 @@ declare function setTransformer(hook: 'beforeBatch', fn: BeforeBatchTransformer)
|
|
|
2485
2490
|
declare const DEFAULT_SESSION_TIMEOUT: number;
|
|
2486
2491
|
declare const MAX_CUSTOM_EVENT_NAME_LENGTH = 120;
|
|
2487
2492
|
declare const MAX_CUSTOM_EVENT_STRING_SIZE: number;
|
|
2488
|
-
declare const MAX_CUSTOM_EVENT_KEYS =
|
|
2489
|
-
declare const MAX_CUSTOM_EVENT_ARRAY_SIZE =
|
|
2490
|
-
declare const MAX_NESTED_OBJECT_KEYS =
|
|
2493
|
+
declare const MAX_CUSTOM_EVENT_KEYS = 100;
|
|
2494
|
+
declare const MAX_CUSTOM_EVENT_ARRAY_SIZE = 500;
|
|
2495
|
+
declare const MAX_NESTED_OBJECT_KEYS = 200;
|
|
2491
2496
|
declare const MAX_STRING_LENGTH = 1000;
|
|
2492
2497
|
declare const MAX_STRING_LENGTH_IN_ARRAY = 500;
|
|
2493
|
-
declare const MAX_ARRAY_LENGTH =
|
|
2498
|
+
declare const MAX_ARRAY_LENGTH = 1000;
|
|
2494
2499
|
|
|
2495
2500
|
/**
|
|
2496
2501
|
* Error handling and PII sanitization constants for TraceLog
|
|
@@ -2500,7 +2505,7 @@ declare const MAX_ARRAY_LENGTH = 100;
|
|
|
2500
2505
|
* Regular expressions for detecting and sanitizing Personally Identifiable Information (PII)
|
|
2501
2506
|
* These patterns are used to replace sensitive information with [REDACTED] in error messages
|
|
2502
2507
|
*/
|
|
2503
|
-
declare const PII_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
2508
|
+
declare const PII_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
2504
2509
|
|
|
2505
2510
|
/**
|
|
2506
2511
|
* Performance monitoring and web vitals constants for TraceLog
|