New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mixpanel

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

.github/workflows/tests.yml

4

history.md

@@ -0,1 +1,5 @@

0.14.0 / 2021-10-29
==================
* support $latitude and $longitude in profile operations (thanks wneild)
0.13.0 / 2020-09-04

@@ -2,0 +6,0 @@ ==================

@@ -30,2 +30,4 @@ declare const mixpanel: mixpanel.Mixpanel;

$ignore_alias?: boolean;
$latitude?: number;
$longitude?: number;
}

@@ -32,0 +34,0 @@

@@ -22,2 +22,6 @@ /**

}
if (modifiers.hasOwnProperty("$latitude") && modifiers.hasOwnProperty('$longitude')) {
data.$latitude = modifiers.$latitude;
data.$longitude = modifiers.$longitude;
}
}

@@ -24,0 +28,0 @@ return data;

2

package.json

@@ -10,3 +10,3 @@ {

],
"version": "0.13.0",
"version": "0.14.0",
"homepage": "https://github.com/mixpanel/mixpanel-node",

@@ -13,0 +13,0 @@ "author": "Carl Sverre",

Mixpanel-node
=============
[![Build Status](https://travis-ci.org/mixpanel/mixpanel-node.svg?branch=master)](https://travis-ci.org/mixpanel/mixpanel-node)
![Build Status](https://github.com/mixpanel/mixpanel-node/actions/workflows/tests.yml/badge.svg)

@@ -71,2 +71,11 @@ This library provides many of the features in the official JavaScript mixpanel library. It is easy to use, and fully async. It is intended to be used on the server (it is not a client module). The in-browser client library is available

// set a user profile's latitude and longitude to get automatic geolocation info
mixpanel.people.set('billybob', {
plan: 'premium',
games_played: 1
}, {
$latitude: 40.7127753,
$longitude: -74.0059728
});
// set a single property on a user

@@ -214,3 +223,3 @@ mixpanel.people.set('billybob', 'plan', 'free');

Copyright (c) 2014-18 Mixpanel
Copyright (c) 2014-21 Mixpanel
Original Library Copyright (c) 2012-14 Carl Sverre

@@ -244,2 +253,3 @@

- [veerabio](https://github.com/veerabio)
- [Will Neild](https://github.com/wneild)

@@ -246,0 +256,0 @@ License

@@ -17,3 +17,5 @@ const Mixpanel = require('../lib/mixpanel-node');

'$ip': '1.2.3.4',
'$time': 1234567890
'$time': 1234567890,
'$latitude': 40.7127753,
'$longitude': -74.0059728,
};

@@ -20,0 +22,0 @@ Object.assign(expected_data, modifiers);

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