Socket
Socket
Sign inDemoInstall

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 5.1.7 to 5.2.0

4

CHANGELOG.md
# Amplitude Change Log
## 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

@@ -3,0 +7,0 @@ ## v5.1.7

14

dist/amplitude.js

@@ -38,2 +38,9 @@ "use strict";

};
const formatExportDate = (input) => {
if (typeof input === 'string') {
return input;
}
const [dateParts, timeParts] = input.toISOString().split('T');
return `${dateParts.replace(/-/g, '')}T${timeParts.split(':')[0]}`;
};
class Amplitude {

@@ -116,5 +123,6 @@ constructor(token, options = {}) {

params: {
start: options.start,
end: options.end
}
start: formatExportDate(options.start),
end: formatExportDate(options.end)
},
responseType: 'stream'
});

@@ -121,0 +129,0 @@ return res;

@@ -196,4 +196,4 @@ export interface AmplitudeOptions {

export interface AmplitudeExportOptions {
start: Date;
end: Date;
start: Date | string;
end: Date | string;
}

@@ -200,0 +200,0 @@ export interface AmplitudeSegmentationOptions {

{
"name": "amplitude",
"version": "5.1.7",
"version": "5.2.0",
"description": "A node wrapper for Amplitude analytics http api",

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

"url": "http://chase-seibert.github.io/blog/"
},
{
"name": "filip",
"email": "filipbachul@gmail.com",
"url": "https://github.com/cymruu"
}

@@ -65,3 +70,3 @@ ],

"dependencies": {
"axios": "^0.21.4"
"axios": "^0.24.0"
},

@@ -86,3 +91,3 @@ "devDependencies": {

"lodash": "^4.17.21",
"mocha": "^9.1.1",
"mocha": "^9.1.3",
"nock": "^13.1.3",

@@ -89,0 +94,0 @@ "nyc": "^15.1.0",

# amplitude
![Build Status](https://travis-ci.org/geoffdutton/amplitude.svg?branch=master) ![npm version](https://badge.fury.io/js/amplitude.svg) [![Known Vulnerabilities](https://snyk.io/test/github/geoffdutton/amplitude/badge.svg?targetFile=package.json)](https://snyk.io/test/github/geoffdutton/amplitude?targetFile=package.json)
[![Node CI](https://github.com/geoffdutton/amplitude/actions/workflows/nodejs.yml/badge.svg)](https://github.com/geoffdutton/amplitude/actions/workflows/nodejs.yml) [![Known Vulnerabilities](https://snyk.io/test/github/geoffdutton/amplitude/badge.svg?targetFile=package.json)](https://snyk.io/test/github/geoffdutton/amplitude?targetFile=package.json)

@@ -429,6 +429,7 @@ Server side implementation of [Amplitude](https://amplitude.com)'s HTTP API.

- [Erki Esken](http://deekit.net/)
- [Matthew Keesan](http://keesan.net)
- [Geoff Dutton](https://github.com/geoffdutton)
- Matt Pardee
- [Chase Seibert](http://chase-seibert.github.io/blog/)
+ [Erki Esken](http://deekit.net/)
+ [Matthew Keesan](http://keesan.net)
+ [Geoff Dutton](https://github.com/geoffdutton)
+ Matt Pardee
+ [Chase Seibert](http://chase-seibert.github.io/blog/)
+ [filip](https://github.com/cymruu)

Sorry, the diff of this file is not supported yet

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