Skip to content

Commit ed2332d

Browse files
Merge pull request #28 from phillhood/master
Fixes broken package, adds multiseg
2 parents 7a00304 + 82526f1 commit ed2332d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"Base64": "^0.3.0",
1414
"amp-extend": "^1.0.1",
15-
"blueimp-md5": "^1.1.0",
15+
"js-md5": "^0.7.2",
1616
"q": "^1.1.2",
1717
"xmlhttprequest": ">=1.5.0"
1818
},

src/mixpanel_data_export.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var md5 = require("blueimp-md5").md5;
1+
var md5 = require("js-md5");
22
var Q = require("q");
33
var _ = {
44
extend: require('amp-extend'),
@@ -85,6 +85,11 @@ var MixpanelExport = (function() {
8585
MixpanelExport.prototype.segmentation = function(parameters, callback) {
8686
return this.get(["segmentation"], parameters, callback);
8787
};
88+
89+
MixpanelExport.prototype.multiseg = function(parameters, callback) {
90+
return this.get(["segmentation/multiseg"], parameters, callback);
91+
};
92+
8893

8994
MixpanelExport.prototype.numericSegmentation = function(parameters, callback) {
9095
return this.get(["segmentation", "numeric"], parameters, callback);

0 commit comments

Comments
 (0)