@brainfish-ai/widgets-initiator 1.4.0-alpha.11 → 1.4.0-alpha.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/dist/web.cjs.js +2 -2
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.js +4 -4
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -31,10 +31,10 @@ var _, $;
|
|
|
31
31
|
(function() {
|
|
32
32
|
try {
|
|
33
33
|
var r = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, t = new r.Error().stack;
|
|
34
|
-
t && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[t] = "
|
|
34
|
+
t && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[t] = "c0852980-6c03-4f27-bb61-9792c93e20c1", r._sentryDebugIdIdentifier = "sentry-dbid-c0852980-6c03-4f27-bb61-9792c93e20c1");
|
|
35
35
|
} catch (n) {
|
|
36
36
|
}
|
|
37
|
-
})(), (typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}).SENTRY_RELEASE = { id: "
|
|
37
|
+
})(), (typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}).SENTRY_RELEASE = { id: "f302202eb9a42053715ffe1d7bd47452ac9e99f0" }, function(r) {
|
|
38
38
|
r.Sidebar = "sidebar", r.Searchbar = "searchbar";
|
|
39
39
|
}(_ || (_ = {})), _.Sidebar, _.Searchbar;
|
|
40
40
|
class ae extends Error {
|
|
@@ -62,7 +62,7 @@ const w = (r, t, n, l) => {
|
|
|
62
62
|
((e, d, s) => {
|
|
63
63
|
if (!navigator || navigator.userAgent.toLowerCase().includes("headless")) return;
|
|
64
64
|
const i = d.toJSON();
|
|
65
|
-
fetch(`${e || "https://app.brainfi.sh"}/api/trackError.widget.create`, { method: "POST", headers: { "Content-Type": "application/json", "api-key": s }, body: JSON.stringify({ error: `WebWidgetVersion: 1.4.0-alpha.
|
|
65
|
+
fetch(`${e || "https://app.brainfi.sh"}/api/trackError.widget.create`, { method: "POST", headers: { "Content-Type": "application/json", "api-key": s }, body: JSON.stringify({ error: `WebWidgetVersion: 1.4.0-alpha.9. ${d.message}`, stack: d.stack, cause: { message: i.message, stack: i.stack, cause: i.cause } }) });
|
|
66
66
|
})(r, new ae(o, { cause: a }), l);
|
|
67
67
|
}, $e = (r) => m(void 0, null, function* () {
|
|
68
68
|
let { widgetKey: t, apiHost: n } = r;
|
|
@@ -144,7 +144,7 @@ const ze = function(l, o, a) {
|
|
|
144
144
|
window.BrainfishAnalytics("init", { apiUrl: e, accessKey: t, trackScreenViews: !0, trackAttributes: !0, trackOutgoingLinks: !0, enableRecording: d }), ge = !0, yield ((s, i) => m(this, null, function* () {
|
|
145
145
|
if (document.getElementById("brainfish-analytics")) return window.BrainfishAnalytics;
|
|
146
146
|
const u = document.createElement("script");
|
|
147
|
-
u.id = "brainfish-analytics", u.src = "https://cdn.jsdelivr.net/npm/@brainfish-ai/web-tracker@
|
|
147
|
+
u.id = "brainfish-analytics", u.src = "https://cdn.jsdelivr.net/npm/@brainfish-ai/web-tracker@alpha/dist/tracker.js", u.type = "module", u.async = !0, u.crossOrigin = "anonymous", u.onerror = () => {
|
|
148
148
|
w(s, new Error(`Failed to load script: ${u.src}`), `Failed to load script: ${u.src}`, i);
|
|
149
149
|
}, document.head.appendChild(u);
|
|
150
150
|
}))(n, r);
|