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 2.0.0 to 2.0.1

.mversionrc

4

CHANGELOG.md

@@ -5,4 +5,8 @@ # Change Log

## [2.0.1] - 2015-10-27
### Fixed
- Include polyfill to support node version < 4.0.0
## [2.0.0] - 2015-08-20
### Changed
- Use promises instead of callbacks

2

gulpfile.js

@@ -1,3 +0,3 @@

require('babel/register');
require('babel-core/register');
require('glob').sync('./tasks/gulp-*').forEach(require);
require('gulp').task('default', ['build:watch']);

@@ -9,9 +9,15 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var request = require('superagent');
var _superagent = require('superagent');
var _superagent2 = _interopRequireDefault(_superagent);
require('babel-core/polyfill');
var Amplitude = (function () {
function Amplitude(token) {
var options = arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

@@ -48,3 +54,3 @@ _classCallCheck(this, Amplitude);

function _postToApi(token, data, resolve, reject) {
request.post('https://api.amplitude.com/httpapi').query({
_superagent2['default'].post('https://api.amplitude.com/httpapi').query({
api_key: token,

@@ -51,0 +57,0 @@ event: JSON.stringify(data)

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

@@ -14,3 +14,3 @@ "author": "Blade Barringer <blade@crookedneighbor.com>",

"scripts": {
"compile": "node_modules/.bin/gulp build",
"compile": "gulp build",
"prepublish": "npm run compile",

@@ -32,6 +32,6 @@ "test": "mocha"

"dependencies": {
"babel-core": "^5.8.29",
"superagent": "^1.2.0"
},
"devDependencies": {
"babel": "^5.6.4",
"chai": "^3.0.0",

@@ -41,3 +41,3 @@ "chai-as-promised": "^5.1.0",

"gulp": "^3.9.0",
"gulp-babel": "^5.1.0",
"gulp-babel": "^5.3.0",
"mocha": "^2.2.5",

@@ -44,0 +44,0 @@ "nock": "^2.6.0",

# amplitude
![Build Status](https://travis-ci.org/crookedneighbor/amplitude.svg?branch=master) ![npm version](https://badge.fury.io/js/amplitude.svg)
Server side implimentation of [Amplitude](https://amplitude.com)'s http api.

@@ -4,0 +6,0 @@

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