@tracelog/lib 3.2.0-rc.123.8 → 3.2.0-rc.123.9

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 CHANGED
@@ -162,7 +162,7 @@ await tracelog.init({
162
162
  // Privacy
163
163
  samplingRate: 1.0, // 100% (default)
164
164
  errorSampling: 1.0, // 100% (default)
165
- sensitiveQueryParams: ['token'], // Added to the 15-param default deny-list
165
+ sensitiveQueryParams: ['token'], // Added to the 19-param default deny-list
166
166
 
167
167
  // Throttles
168
168
  pageViewThrottleMs: 1000, // Min interval between page_view events
@@ -38,6 +38,11 @@ const b = "data-tlog", vt = [
38
38
  "auth",
39
39
  "key",
40
40
  "session",
41
+ "sessionid",
42
+ "session_id",
43
+ "jwt",
44
+ "bearer",
45
+ "oauth",
41
46
  "reset",
42
47
  "password",
43
48
  "api_key",
@@ -2615,9 +2620,9 @@ class Ds extends T {
2615
2620
  let s, r, i;
2616
2621
  if (e) {
2617
2622
  const o = this.loadStoredSession();
2618
- s = o?.referrer ?? fe(this.get("config")?.sensitiveQueryParams), r = o?.utm ?? ge(), i = o?.clickIds ?? he();
2623
+ s = o?.referrer ?? fe(this.get("config").sensitiveQueryParams), r = o?.utm ?? ge(), i = o?.clickIds ?? he();
2619
2624
  } else
2620
- s = fe(this.get("config")?.sensitiveQueryParams), r = ge(), i = he();
2625
+ s = fe(this.get("config").sensitiveQueryParams), r = ge(), i = he();
2621
2626
  a("debug", "Session tracking initialized", {
2622
2627
  data: {
2623
2628
  sessionId: t,
@@ -2689,7 +2694,7 @@ class Ds extends T {
2689
2694
  */
2690
2695
  renewSession() {
2691
2696
  this.needsRenewal = !1;
2692
- const e = this.generateSessionId(), t = fe(this.get("config")?.sensitiveQueryParams), s = ge(), r = he();
2697
+ const e = this.generateSessionId(), t = fe(this.get("config").sensitiveQueryParams), s = ge(), r = he();
2693
2698
  a("debug", "Renewing session after timeout", {
2694
2699
  data: { newSessionId: e }
2695
2700
  }), this.set("sessionId", e), this.set("sessionReferrer", t), this.set("sessionUtm", s), this.set("sessionClickIds", r), this.persistSession(e, Date.now(), t, s, r), this.cleanupCrossTabSync(), this.initCrossTabSync(), this.shareSession(e), this.eventManager.track({
@@ -3150,7 +3155,7 @@ class Vs extends T {
3150
3155
  };
3151
3156
  }
3152
3157
  generateClickData(e, t, s) {
3153
- const { x: r, y: i } = s, o = this.getRelevantText(e, t), c = t.getAttribute("href"), l = c ? D(c, this.get("config")?.sensitiveQueryParams) : void 0;
3158
+ const { x: r, y: i } = s, o = this.getRelevantText(e, t), c = t.getAttribute("href"), l = c ? D(c, this.get("config").sensitiveQueryParams) : void 0;
3154
3159
  return {
3155
3160
  x: r,
3156
3161
  y: i,