@cross-deck/web 1.5.6 → 1.5.7

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/vue.cjs CHANGED
@@ -92,7 +92,7 @@ function typeMapForStatus(status) {
92
92
  }
93
93
 
94
94
  // src/_version.ts
95
- var SDK_VERSION = "1.5.3";
95
+ var SDK_VERSION = "1.5.7";
96
96
  var SDK_NAME = "@cross-deck/web";
97
97
 
98
98
  // src/http.ts
@@ -2399,7 +2399,7 @@ var BreadcrumbBuffer = class {
2399
2399
  };
2400
2400
 
2401
2401
  // src/_diagnostic-telemetry.ts
2402
- var DIAGNOSTIC_TELEMETRY_ENDPOINT = "https://api.cross-deck.com/v1/sdk/diagnostic";
2402
+ var DIAGNOSTIC_TELEMETRY_ENDPOINT = "https://api.cross-deck.com/v1/events";
2403
2403
  var DIAGNOSTIC_TELEMETRY_PUBLISHABLE_KEY = "cd_pub_live_9490e7aa029c432abf";
2404
2404
  function isDiagnosticTelemetryEnabled() {
2405
2405
  return !DIAGNOSTIC_TELEMETRY_PUBLISHABLE_KEY.startsWith(
@@ -2437,7 +2437,15 @@ function sendDiagnosticTelemetry(payload) {
2437
2437
  if (!isDiagnosticTelemetryEnabled()) return;
2438
2438
  const filtered = filterDiagnosticPayload(payload);
2439
2439
  if (Object.keys(filtered).length === 0) return;
2440
- const body = JSON.stringify(filtered);
2440
+ const body = JSON.stringify({
2441
+ events: [
2442
+ {
2443
+ name: "crossdeck.contract_failed",
2444
+ timestamp: Date.now(),
2445
+ properties: filtered
2446
+ }
2447
+ ]
2448
+ });
2441
2449
  const f = globalThis.fetch;
2442
2450
  if (typeof f !== "function") return;
2443
2451
  try {
@@ -4737,7 +4745,7 @@ var CrossdeckClient = class {
4737
4745
  callerProperties: validation.properties,
4738
4746
  superProperties: supers,
4739
4747
  deviceProperties: s.deviceInfo,
4740
- mergedProperties: finalProperties
4748
+ mergedProperties: enriched
4741
4749
  });
4742
4750
  }
4743
4751
  if (!isError && !isWebVital) {