@nexly/web 0.15.1 → 0.15.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.
@@ -1 +1 @@
1
- {"version":3,"file":"browser-meta.d.ts","sourceRoot":"","sources":["../src/browser-meta.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,4EAA4E;AAC5E,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmE5D;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAW1D;AAED,8DAA8D;AAC9D,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE5D"}
1
+ {"version":3,"file":"browser-meta.d.ts","sourceRoot":"","sources":["../src/browser-meta.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,4EAA4E;AAC5E,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmE5D;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgB1D;AAED,8DAA8D;AAC9D,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE5D"}
@@ -89,7 +89,12 @@ export function collectEventMeta() {
89
89
  out.visitor_id = safe(() => getVisitorId());
90
90
  out.session_id = safe(() => getSessionId());
91
91
  out.url = safe(() => window.location.href);
92
- out.pathname = safe(() => window.location.pathname);
92
+ const pathname = safe(() => window.location.pathname);
93
+ out.pathname = pathname;
94
+ // Engagement/lifecycle events dispatch directly via sendBeaconCollect and
95
+ // bypass NexlyBase.dispatch (which adds `path` from getDefaultPath). Include
96
+ // `path` here so every event carries it.
97
+ out.path = pathname;
93
98
  return filterEmpty(out);
94
99
  }
95
100
  /** Legacy: full browser metadata (session + event merged). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexly/web",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Nexly browser ingest SDK: sendBeacon transport, DOM metadata, engagement listeners on top of @nexly/core",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "node": ">=20"
39
39
  },
40
40
  "dependencies": {
41
- "@nexly/core": "0.15.1"
41
+ "@nexly/core": "0.15.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "~6.0.2"