make-mp-data 2.1.3 → 2.1.4

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.
@@ -168,6 +168,8 @@ export async function makeEvent(
168
168
  const distinctId = eventTemplate.user_id || eventTemplate.device_id || eventTemplate.distinct_id || distinct_id;
169
169
  const tuple = `${eventTemplate.event}-${eventTemplate.time}-${distinctId}`;
170
170
  eventTemplate.insert_id = u.quickHash(tuple);
171
+ //v2 compat
172
+ eventTemplate.distinct_id = distinctId;
171
173
 
172
174
  // Call hook if configured (before returning the event)
173
175
  const { hook } = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-mp-data",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "builds all mixpanel primitives for a given project",
5
5
  "type": "module",
6
6
  "main": "index.js",