@cross-deck/web 1.5.5 → 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/contracts.json +11 -11
- package/dist/crossdeck.umd.min.js +2 -2
- package/dist/crossdeck.umd.min.js.map +1 -1
- package/dist/error-codes.json +1 -1
- package/dist/index.cjs +22 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +22 -14
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +12 -4
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +12 -4
- package/dist/react.mjs.map +1 -1
- package/dist/vue.cjs +12 -4
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.mjs +12 -4
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -93,7 +93,7 @@ function typeMapForStatus(status) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// src/_version.ts
|
|
96
|
-
var SDK_VERSION = "1.5.
|
|
96
|
+
var SDK_VERSION = "1.5.7";
|
|
97
97
|
var SDK_NAME = "@cross-deck/web";
|
|
98
98
|
|
|
99
99
|
// src/http.ts
|
|
@@ -2400,7 +2400,7 @@ var BreadcrumbBuffer = class {
|
|
|
2400
2400
|
};
|
|
2401
2401
|
|
|
2402
2402
|
// src/_diagnostic-telemetry.ts
|
|
2403
|
-
var DIAGNOSTIC_TELEMETRY_ENDPOINT = "https://api.cross-deck.com/v1/
|
|
2403
|
+
var DIAGNOSTIC_TELEMETRY_ENDPOINT = "https://api.cross-deck.com/v1/events";
|
|
2404
2404
|
var DIAGNOSTIC_TELEMETRY_PUBLISHABLE_KEY = "cd_pub_live_9490e7aa029c432abf";
|
|
2405
2405
|
function isDiagnosticTelemetryEnabled() {
|
|
2406
2406
|
return !DIAGNOSTIC_TELEMETRY_PUBLISHABLE_KEY.startsWith(
|
|
@@ -2438,7 +2438,15 @@ function sendDiagnosticTelemetry(payload) {
|
|
|
2438
2438
|
if (!isDiagnosticTelemetryEnabled()) return;
|
|
2439
2439
|
const filtered = filterDiagnosticPayload(payload);
|
|
2440
2440
|
if (Object.keys(filtered).length === 0) return;
|
|
2441
|
-
const body = JSON.stringify(
|
|
2441
|
+
const body = JSON.stringify({
|
|
2442
|
+
events: [
|
|
2443
|
+
{
|
|
2444
|
+
name: "crossdeck.contract_failed",
|
|
2445
|
+
timestamp: Date.now(),
|
|
2446
|
+
properties: filtered
|
|
2447
|
+
}
|
|
2448
|
+
]
|
|
2449
|
+
});
|
|
2442
2450
|
const f = globalThis.fetch;
|
|
2443
2451
|
if (typeof f !== "function") return;
|
|
2444
2452
|
try {
|
|
@@ -4738,7 +4746,7 @@ var CrossdeckClient = class {
|
|
|
4738
4746
|
callerProperties: validation.properties,
|
|
4739
4747
|
superProperties: supers,
|
|
4740
4748
|
deviceProperties: s.deviceInfo,
|
|
4741
|
-
mergedProperties:
|
|
4749
|
+
mergedProperties: enriched
|
|
4742
4750
|
});
|
|
4743
4751
|
}
|
|
4744
4752
|
if (!isError && !isWebVital) {
|