mixpanel-nodexporter
Advanced tools
Comparing version 1.0.1 to 1.0.2
17
index.js
@@ -153,3 +153,3 @@ const crypto = require('crypto') | ||
const apiStub = (method === 'export') ? 'https://data.mixpanel.com/api/2.0/' : 'https://mixpanel.com/api/2.0/' | ||
return `${apiStub}${typeof method.join === 'function' ? method.join('/') : ''}/?${this._requestParameterString(parameters)}` | ||
return `${apiStub}${typeof method.join === 'function' ? method.join('/') : method}/?${this._requestParameterString(parameters)}` | ||
} | ||
@@ -167,9 +167,10 @@ | ||
// calculate sig only for deprecated key+secret auth | ||
let sig = '' | ||
if (this.api_key) { | ||
const sigKeys = keys.filter(key => key !== 'callback') | ||
sig = `&sig=${this._getSignature(sigKeys, connectionParams)}` | ||
} | ||
// let sig = '' | ||
// if (this.api_key) { | ||
// const sigKeys = keys.filter(key => key !== 'callback') | ||
// sig = `&sig=${this._getSignature(sigKeys, connectionParams)}` | ||
// } | ||
return this._getParameterString(keys, connectionParams) + sig | ||
return this._getParameterString(keys, connectionParams) | ||
} | ||
@@ -188,2 +189,3 @@ | ||
MixpanelExport.prototype._urlEncode = function __urlEncode(param) { | ||
return encodeURIComponent(this._stringifyIfArray(param)) | ||
@@ -196,3 +198,2 @@ } | ||
} | ||
return JSON.stringify(array) | ||
@@ -199,0 +200,0 @@ } |
{ | ||
"name": "mixpanel-nodexporter", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple and lightweight nodejs library for export data from Mixpanel", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
10310