@eliumhq/elium-mixpanel
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.4.1"></a> | ||
## [2.4.1](https://gitlab.com/elium/product/elium-mixpanel/compare/v2.4.0...v2.4.1) (2018-11-02) | ||
### Bug Fixes | ||
* Don't encode /decide payload ([476e0c8](https://gitlab.com/elium/product/elium-mixpanel/commit/476e0c8)) | ||
<a name="2.4.0"></a> | ||
@@ -7,0 +17,0 @@ # [2.4.0](https://gitlab.com/elium/product/elium-mixpanel/compare/v2.3.4...v2.4.0) (2018-11-02) |
@@ -51,7 +51,3 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread"; | ||
export function decide(token, userId) { | ||
var event = { | ||
$token: token, | ||
$distinct_id: userId | ||
}; | ||
return axios.get("".concat(DECIDE_ENDPOINT, "?data=").concat(encodeEvent(event))).then(function (response) { | ||
return axios.get("".concat(DECIDE_ENDPOINT, "?token=").concat(token, "&distinct_id=").concat(userId)).then(function (response) { | ||
if (response.data === 0) { | ||
@@ -58,0 +54,0 @@ throw new Error('Error sending mixpanel event'); |
{ | ||
"name": "@eliumhq/elium-mixpanel", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Mixpanel integration for elium projects", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
20283
364