Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jitsu-mixpanel-destination

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jitsu-mixpanel-destination - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

18

dist/mixpanel-destination.js

@@ -114,3 +114,3 @@ 'use strict';

const mustUpdateUserProfile = config.users_enabled &&
(user.internal_id || user.email || (config.anonymous_users_enabled && (user.anonymous_id || user.hashed_anonymous_id)));
(user.id || user.internal_id || user.email || (config.anonymous_users_enabled && (user.anonymous_id || user.hashed_anonymous_id)));
function getEventType($) {

@@ -137,3 +137,3 @@ switch ($.event_type) {

//create an alias user id -> anon id
if ((user.internal_id || user.email) &&
if ((user.id || user.internal_id || user.email) &&
(user.anonymous_id || user.hashed_anonymous_id)) {

@@ -151,3 +151,3 @@ envelops.push({

alias: user.anonymous_id || user.hashed_anonymous_id,
distinct_id: user.internal_id || user.email
distinct_id: user.id || user.internal_id || user.email
},

@@ -228,9 +228,9 @@ }])

$referring_domain: refDomain,
$identified_id: user.internal_id || user.email,
$identified_id: user.id || user.internal_id || user.email,
$anon_id: user.anonymous_id || user.hashed_anonymous_id,
$distinct_id: user.internal_id ||
$distinct_id: user.id || user.internal_id ||
user.email ||
user.anonymous_id ||
user.hashed_anonymous_id,
distinct_id: user.internal_id ||
distinct_id: user.id || user.internal_id ||
user.email ||

@@ -287,3 +287,3 @@ user.anonymous_id ||

$token: config.token,
$distinct_id: user.internal_id ||
$distinct_id: user.id || user.internal_id ||
user.email ||

@@ -320,3 +320,3 @@ user.anonymous_id ||

}).then(response => {
if (response.ok) {
if (response.headers?.get('Content-Type') === "application/json") {
return response.json();

@@ -383,2 +383,2 @@ }

exports.buildInfo = {sdkVersion: "0.5.1", sdkPackage: "@jitsu/cli", buildTimestamp: "2022-01-13T13:13:15.234Z"}
exports.buildInfo = {sdkVersion: "0.5.1", sdkPackage: "@jitsu/cli", buildTimestamp: "2022-01-13T14:39:21.111Z"}
{
"name": "jitsu-mixpanel-destination",
"version": "0.2.0",
"version": "0.2.1",
"description": "Mixpanel Destination for Jitsu (https://jitsu.com)",

@@ -22,4 +22,4 @@ "main": "dist/mixpanel-destination.js",

"dependencies": {
"@jitsu/pipeline-helpers": "^0.5.1",
"@jitsu/types": "^0.5.1",
"@jitsu/pipeline-helpers": "^0.5.1",
"tslib": "^2.3.1",

@@ -26,0 +26,0 @@ "typescript": "^4.5.2"

@@ -23,8 +23,15 @@ # Mixpanel Destination for Jitsu

If everything is ok - resulted destination file location
```shell
./dist/mixpanel-destination.js
```
```
Validate destination config:
with json string:
```shell
yarn validate-config -j '{"api_secret": "abc","token": "def", "project_id": "123"}'
```
with json file:
```shell
yarn validate-config -f config.json
```

@@ -14,3 +14,3 @@ import {jitsuMixpanel, MixpanelDestinationConfig} from "./jitsu-mixpanel";

}).then(response => {
if (response.ok) {
if (response.headers?.get('Content-Type') === "application/json") {
return response.json()

@@ -17,0 +17,0 @@ } else {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc