Socket
Socket
Sign inDemoInstall

amplitude

Package Overview
Dependencies
2
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

6.0.0

Diff

Changelog

Source

v6.0.0

  • Update dependencies
  • Breaking: Drop support for Node 10.x. It may still work, but development tooling requires Node 12
geoffdutton
published 5.2.0 •

Changelog

Source

v5.2.0

  • Update dependencies
  • Fix export method to return a stream
  • Fix export options to convert Date objects to Amplitude string format of YYYYMMDDTHH
geoffdutton
published 5.1.7 •

Changelog

Source

v5.1.7

  • Security update for axios
  • Update all dev dependencies
geoffdutton
published 5.1.6 •

Changelog

Source

v5.1.6

  • Security update for lodash
geoffdutton
published 5.1.5 •

Changelog

Source

v5.1.5

  • Security update for y18n
geoffdutton
published 5.1.4 •

Changelog

Source

v5.1.4

  • Update axios to latest to fix the issue of missing ProgressEvent when using Typescript
geoffdutton
published 5.1.3 •

Changelog

Source

v5.1.3

  • Update axios and node-fetch
dutton
published 5.1.2 •

Changelog

Source

v5.1.2

  • Add LICENSE file
  • Update devDependencies
  • Use unknown in place of object | string
dutton
published 5.1.1 •

Changelog

Source

v5.1.1

As of 2020-05-30, Amplitude reported issues with their SSL certificate, so they set up an endpoint and alternate endpoint at https://api2.amplitude.com. Read about it on Amplitude's Status Page and affected devices here.

  • Add option to set token endpoint via an environment variable, i.e. AMPLITUDE_TOKEN_ENDPOINT="https://api2.amplitude.com"
  • Add option to set token endpoint via constructor options, i.e. https://api2.amplitude.com
dutton
published 5.0.2 •

Changelog

Source

v5.0.2

  • Convert to typescript (this shouldn't break anything as it's being exported just like before)
  • Implement the Amplitude HTTP V2 API

IMPORTANT: There aren't any breaking changes in the code, but the Amplitude V2 API has a few stricter validations server side. For example, in one project where I was using this, I was passing a timestamp generated from Swift, so it was a float. However, the time param only allows type of long, i.e. integer.

From Amplitude's docs:

  • Validation on Content-type header (must be set to application/json)
  • Validation on proper JSON request body
  • Validation on event_type name (cannot be event names that are reserved for Amplitude use)
  • Validation on device_id length (must be 5 or more characters unless overrided with min_id_length)
  • Validation on user_id length (must be 5 or more characters unless overrided with min_id_length)
  • Validation on time field in event payload (must be number of milliseconds since the start of epoch time)
234Next
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc