@useblu/blu-lytics 1.1.0 → 1.2.0
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/dispatchers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,cAAe,SAAS,KAAG,IAkClE,CAAC;AAOF,QAAA,MAAM,eAAe,WAAY,MAAM,KAAG,IAMzC,CAAC;AAeF,QAAA,MAAM,oBAAoB,eAAgB,cAAc,KAAG,IAG1D,CAAC;AAEF,QAAA,MAAM,eAAe,UAAW,MAAM,cAAc,cAAc,KAAG,IAyBpE,CAAC;AAEF,QAAA,MAAM,sBAAsB,OACtB,MAAM,kBACM,kBAAkB,KACjC,IAUF,CAAC;AAEF,QAAA,MAAM,aAAa,QAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dispatchers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,cAAe,SAAS,KAAG,IAkClE,CAAC;AAOF,QAAA,MAAM,eAAe,WAAY,MAAM,KAAG,IAMzC,CAAC;AAeF,QAAA,MAAM,oBAAoB,eAAgB,cAAc,KAAG,IAG1D,CAAC;AAEF,QAAA,MAAM,eAAe,UAAW,MAAM,cAAc,cAAc,KAAG,IAyBpE,CAAC;AAEF,QAAA,MAAM,sBAAsB,OACtB,MAAM,kBACM,kBAAkB,KACjC,IAUF,CAAC;AAEF,QAAA,MAAM,aAAa,QAAO,IAUzB,CAAC;AAEF,OAAO,EACL,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,GACd,CAAC"}
|
package/lib/dispatchers/index.js
CHANGED
|
@@ -102,10 +102,15 @@ var sendUserIdentification = function (id, userProperties) {
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
var resetMixpanel = function () {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if (getIsDevelopment()) {
|
|
106
|
+
console.log('[blu-lytics]: Resetting Mixpanel');
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
var provider = providersList.find(function (item) { return item.name === 'MixPanel'; });
|
|
110
|
+
if (provider === null || provider === void 0 ? void 0 : provider.reset) {
|
|
111
|
+
checkIfMixPanelIsInitialized(provider.name);
|
|
112
|
+
provider.reset();
|
|
113
|
+
}
|
|
109
114
|
}
|
|
110
115
|
};
|
|
111
116
|
export { sendCustomEvent, sendScreenEvent, sendUserIdentification, setDefaultProperties, resetMixpanel, };
|