@tracelog/lib 0.2.0 → 0.2.2

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.
@@ -2455,10 +2455,10 @@ const sr = async (r) => {
2455
2455
  }
2456
2456
  }, Ir = {
2457
2457
  WEB_VITALS_THRESHOLDS: Fe
2458
- // Umbrales de negocio para análisis de rendimiento
2458
+ // Business thresholds for performance analysis
2459
2459
  }, _r = {
2460
2460
  PII_PATTERNS: ze
2461
- // Patrones para protección de datos sensibles
2461
+ // Patterns for sensitive data protection
2462
2462
  }, wr = {
2463
2463
  LOW_ACTIVITY_EVENT_COUNT: 50,
2464
2464
  HIGH_ACTIVITY_EVENT_COUNT: 1e3,
@@ -2529,9 +2529,8 @@ const sr = async (r) => {
2529
2529
  MIN_EVENTS_FOR_ANOMALY_DETECTION: 50
2530
2530
  }, Or = {
2531
2531
  PAGE_URL_EXCLUDED: "excluded",
2532
- PAGE_URL_UNKNOWN: "unknown",
2533
- IPV6_IPV4_PREFIX: "::ffff:"
2534
- }, Dr = ["localhost", "127.0.0.1", "::1"], kr = {
2532
+ PAGE_URL_UNKNOWN: "unknown"
2533
+ }, Dr = {
2535
2534
  init: sr,
2536
2535
  event: ir,
2537
2536
  on: ar,
@@ -2749,16 +2748,15 @@ export {
2749
2748
  N as ErrorType,
2750
2749
  d as EventType,
2751
2750
  Rr as INSIGHT_THRESHOLDS,
2752
- Dr as LOCAL_IP_ADDRESSES,
2753
2751
  H as Mode,
2754
2752
  Ir as PERFORMANCE_CONFIG,
2755
2753
  Nr as SEGMENTATION_ANALYTICS,
2756
2754
  Ar as SESSION_ANALYTICS,
2757
- Or as SPECIAL_VALUES,
2755
+ Or as SPECIAL_PAGE_URLS,
2758
2756
  x as ScrollDirection,
2759
2757
  Lr as TEMPORAL_ANALYSIS,
2760
2758
  It as TagConditionOperator,
2761
2759
  Tt as TagConditionType,
2762
2760
  yt as TagLogicalOperator,
2763
- kr as tracelog
2761
+ Dr as tracelog
2764
2762
  };
@@ -72,9 +72,7 @@ export declare const ANOMALY_DETECTION: {
72
72
  readonly MIN_BASELINE_DAYS: 7;
73
73
  readonly MIN_EVENTS_FOR_ANOMALY_DETECTION: 50;
74
74
  };
75
- export declare const SPECIAL_VALUES: {
75
+ export declare const SPECIAL_PAGE_URLS: {
76
76
  readonly PAGE_URL_EXCLUDED: "excluded";
77
77
  readonly PAGE_URL_UNKNOWN: "unknown";
78
- readonly IPV6_IPV4_PREFIX: "::ffff:";
79
78
  };
80
- export declare const LOCAL_IP_ADDRESSES: readonly ["localhost", "127.0.0.1", "::1"];
@@ -1,20 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LOCAL_IP_ADDRESSES = exports.SPECIAL_VALUES = exports.ANOMALY_DETECTION = exports.ANALYTICS_QUERY_LIMITS = exports.SEGMENTATION_ANALYTICS = exports.TEMPORAL_ANALYSIS = exports.INSIGHT_THRESHOLDS = exports.CONTENT_ANALYTICS = exports.DEVICE_ANALYTICS = exports.SESSION_ANALYTICS = exports.ENGAGEMENT_THRESHOLDS = exports.DATA_PROTECTION = exports.PERFORMANCE_CONFIG = void 0;
4
- // Solo importamos constantes con valor analítico real
3
+ exports.SPECIAL_PAGE_URLS = exports.ANOMALY_DETECTION = exports.ANALYTICS_QUERY_LIMITS = exports.SEGMENTATION_ANALYTICS = exports.TEMPORAL_ANALYSIS = exports.INSIGHT_THRESHOLDS = exports.CONTENT_ANALYTICS = exports.DEVICE_ANALYTICS = exports.SESSION_ANALYTICS = exports.ENGAGEMENT_THRESHOLDS = exports.DATA_PROTECTION = exports.PERFORMANCE_CONFIG = void 0;
5
4
  const performance_constants_1 = require("./constants/performance.constants");
6
5
  const error_constants_1 = require("./constants/error.constants");
7
- // ============================================================================
8
- // PERFORMANCE ANALYTICS CONSTANTS
9
- // ============================================================================
10
6
  exports.PERFORMANCE_CONFIG = {
11
- WEB_VITALS_THRESHOLDS: performance_constants_1.WEB_VITALS_THRESHOLDS, // Umbrales de negocio para análisis de rendimiento
7
+ WEB_VITALS_THRESHOLDS: performance_constants_1.WEB_VITALS_THRESHOLDS, // Business thresholds for performance analysis
12
8
  };
13
- // ============================================================================
14
- // DATA PROTECTION CONSTANTS
15
- // ============================================================================
16
9
  exports.DATA_PROTECTION = {
17
- PII_PATTERNS: error_constants_1.PII_PATTERNS, // Patrones para protección de datos sensibles
10
+ PII_PATTERNS: error_constants_1.PII_PATTERNS, // Patterns for sensitive data protection
18
11
  };
19
12
  exports.ENGAGEMENT_THRESHOLDS = {
20
13
  LOW_ACTIVITY_EVENT_COUNT: 50,
@@ -84,9 +77,7 @@ exports.ANOMALY_DETECTION = {
84
77
  MIN_BASELINE_DAYS: 7,
85
78
  MIN_EVENTS_FOR_ANOMALY_DETECTION: 50,
86
79
  };
87
- exports.SPECIAL_VALUES = {
80
+ exports.SPECIAL_PAGE_URLS = {
88
81
  PAGE_URL_EXCLUDED: 'excluded',
89
82
  PAGE_URL_UNKNOWN: 'unknown',
90
- IPV6_IPV4_PREFIX: '::ffff:',
91
83
  };
92
- exports.LOCAL_IP_ADDRESSES = ['localhost', '127.0.0.1', '::1'];
@@ -72,9 +72,7 @@ export declare const ANOMALY_DETECTION: {
72
72
  readonly MIN_BASELINE_DAYS: 7;
73
73
  readonly MIN_EVENTS_FOR_ANOMALY_DETECTION: 50;
74
74
  };
75
- export declare const SPECIAL_VALUES: {
75
+ export declare const SPECIAL_PAGE_URLS: {
76
76
  readonly PAGE_URL_EXCLUDED: "excluded";
77
77
  readonly PAGE_URL_UNKNOWN: "unknown";
78
- readonly IPV6_IPV4_PREFIX: "::ffff:";
79
78
  };
80
- export declare const LOCAL_IP_ADDRESSES: readonly ["localhost", "127.0.0.1", "::1"];
@@ -1,17 +1,10 @@
1
- // Solo importamos constantes con valor analítico real
2
1
  import { WEB_VITALS_THRESHOLDS } from './constants/performance.constants';
3
2
  import { PII_PATTERNS } from './constants/error.constants';
4
- // ============================================================================
5
- // PERFORMANCE ANALYTICS CONSTANTS
6
- // ============================================================================
7
3
  export const PERFORMANCE_CONFIG = {
8
- WEB_VITALS_THRESHOLDS, // Umbrales de negocio para análisis de rendimiento
4
+ WEB_VITALS_THRESHOLDS, // Business thresholds for performance analysis
9
5
  };
10
- // ============================================================================
11
- // DATA PROTECTION CONSTANTS
12
- // ============================================================================
13
6
  export const DATA_PROTECTION = {
14
- PII_PATTERNS, // Patrones para protección de datos sensibles
7
+ PII_PATTERNS, // Patterns for sensitive data protection
15
8
  };
16
9
  export const ENGAGEMENT_THRESHOLDS = {
17
10
  LOW_ACTIVITY_EVENT_COUNT: 50,
@@ -81,9 +74,7 @@ export const ANOMALY_DETECTION = {
81
74
  MIN_BASELINE_DAYS: 7,
82
75
  MIN_EVENTS_FOR_ANOMALY_DETECTION: 50,
83
76
  };
84
- export const SPECIAL_VALUES = {
77
+ export const SPECIAL_PAGE_URLS = {
85
78
  PAGE_URL_EXCLUDED: 'excluded',
86
79
  PAGE_URL_UNKNOWN: 'unknown',
87
- IPV6_IPV4_PREFIX: '::ffff:',
88
80
  };
89
- export const LOCAL_IP_ADDRESSES = ['localhost', '127.0.0.1', '::1'];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracelog/lib",
3
3
  "description": "JavaScript library for web analytics and real-time event tracking",
4
4
  "license": "MIT",
5
- "version": "0.2.0",
5
+ "version": "0.2.2",
6
6
  "main": "./dist/cjs/public-api.js",
7
7
  "module": "./dist/esm/public-api.js",
8
8
  "types": "./dist/esm/public-api.d.ts",