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

amplitude

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplitude - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

3

amplitude.js

@@ -11,2 +11,3 @@ 'use strict'

deviceId: 'device_id',
sessionId: 'session_id',
eventType: 'event_type',

@@ -36,2 +37,3 @@ eventProperties: 'event_properties',

this.deviceId = options.deviceId || options.device_id
this.sessionId = options.sessionId || options.session_id
}

@@ -54,2 +56,3 @@

transformedData.device_id = transformedData.device_id || this.deviceId
transformedData.session_id = transformedData.session_id || this.sessionId

@@ -56,0 +59,0 @@ return transformedData

11

package.json
{
"name": "amplitude",
"version": "3.4.0",
"version": "3.5.0",
"description": "A node wrapper for Amplitude analytics http api",

@@ -27,2 +27,7 @@ "author": "Blade Barringer <blade@crookedneighbor.com>",

"email": "matt.pardee@gmail.com"
},
{
"name": "Chase Seibert",
"email": "chase.seibert@gmail.com",
"url": "http://chase-seibert.github.io/blog/"
}

@@ -58,3 +63,3 @@ ],

"mocha": "^3.0.0",
"nock": "^9.0.2",
"nock": "9.0.2",
"publish-please": "^2.1.4",

@@ -64,3 +69,3 @@ "sinon": "^1.17.6",

"snazzy": "^6.0.0",
"standard": "^8.0.0"
"standard": "^10.0.0"
},

@@ -67,0 +72,0 @@ "license": "ISC",

@@ -5,3 +5,3 @@ # amplitude

Server side implimentation of [Amplitude](https://amplitude.com)'s http api.
Server side implementation of [Amplitude](https://amplitude.com)'s http api.

@@ -31,2 +31,3 @@ ## Install

device_id: 'some id', // only required if user id is not passed in
session_id: 1492789357923, // must be unix timestamp in ms, not required
event_properties: {

@@ -125,2 +126,3 @@ //...

deviceId: 'some id', // only required if user id is not passed in
sessionId: 1492789357923, // must be unix timestamp in ms, not required
eventProperties: {

@@ -141,2 +143,3 @@ //...

deviceId -> device_id
sessionId -> session_id
eventType -> event_type

@@ -155,5 +158,5 @@ eventProperties -> event_properties

### User/Device ID
### User/Device/Session ID
If the user/device id will always be the same, you can initialize the object with it. Passing a user id or device id in the `track` and `identify` methods will override the default value set at initialization.
If the user/device/session id will always be the same, you can initialize the object with it. Passing a user id or device id in the `track` and `identify` methods will override the default value set at initialization.

@@ -164,2 +167,4 @@ ```javascript

var amplitude = new Amplitude('api-token', { device_id: 'some-device-id' })
// or
var amplitude = new Amplitude('api-token', { session_id: 1492789357923 })

@@ -340,3 +345,4 @@ amplitude.track({

+ [Matthew Keesan](http://keesan.net)
+ [Geoff Dutton](undefined)
+ [Matt Pardee](undefined)
+ Geoff Dutton
+ Matt Pardee
+ [Chase Seibert](http://chase-seibert.github.io/blog/)
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