@useblu/blu-lytics 1.0.8 → 1.0.10
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":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAehD;;GAEG;AACH,QAAA,MAAM,aAAa,EAAE,YAAY,EAA0B,CAAC;AAE5D;;;;GAIG;AACH,QAAA,MAAM,KAAK,aAAc,YAAY,KAAG,IAUvC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/providers/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
10
10
|
import SentryProvider from './setups/sentry/sentry';
|
|
11
11
|
import MixPanelProvider from './setups/mixpanel/mixpanel';
|
|
12
12
|
import FullStoryProvider from './setups/fullstory/fullstory';
|
|
13
|
+
import ClarityProvider from './setups/clarity/clarity';
|
|
13
14
|
/**
|
|
14
15
|
* An array containing the default provider(s).
|
|
15
16
|
*/
|
|
@@ -17,6 +18,7 @@ var providersDefault = [
|
|
|
17
18
|
SentryProvider,
|
|
18
19
|
MixPanelProvider,
|
|
19
20
|
FullStoryProvider,
|
|
21
|
+
ClarityProvider,
|
|
20
22
|
];
|
|
21
23
|
/**
|
|
22
24
|
* An array containing the list of providers, initialized with the default provider(s).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixpanel.d.ts","sourceRoot":"","sources":["../../../../src/providers/setups/mixpanel/mixpanel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mixpanel.d.ts","sourceRoot":"","sources":["../../../../src/providers/setups/mixpanel/mixpanel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAsDpD,QAAA,MAAM,gBAAgB,EAAE,YAKvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -34,10 +34,20 @@ var dispatchUserIdentification = function (id, userProperties) {
|
|
|
34
34
|
};
|
|
35
35
|
var dispatchCustomEvent = function (event, properties) {
|
|
36
36
|
var rest = __rest(properties, []);
|
|
37
|
-
|
|
37
|
+
try {
|
|
38
|
+
mixpanel.track(event, rest);
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.error('Error tracking screen event:', error);
|
|
42
|
+
}
|
|
38
43
|
};
|
|
39
44
|
var dispatchScreenEvent = function (screen) {
|
|
40
|
-
|
|
45
|
+
try {
|
|
46
|
+
mixpanel.track(screen);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
console.error('Error tracking screen event:', error);
|
|
50
|
+
}
|
|
41
51
|
};
|
|
42
52
|
var MixPanelProvider = {
|
|
43
53
|
name: 'MixPanel',
|