From 7ec4527d98fb04540de3ef4d754229bcdf6f1f34 Mon Sep 17 00:00:00 2001 From: Ryan Buccellato Date: Wed, 19 Dec 2018 22:01:59 +0000 Subject: [PATCH] v2.25.0 --- build/mixpanel.amd.js | 2 +- build/mixpanel.cjs.js | 2 +- build/mixpanel.globals.js | 2 +- build/mixpanel.umd.js | 2 +- examples/commonjs-browserify/bundle.js | 2 +- examples/es2015-babelify/bundle.js | 2 +- examples/umd-webpack/bundle.js | 2 +- examples/umd-webpack/package-lock.json | 469 +++++++++++++++++++++++++ mixpanel.min.js | 2 +- package.json | 2 +- src/config.js | 2 +- 11 files changed, 479 insertions(+), 10 deletions(-) diff --git a/build/mixpanel.amd.js b/build/mixpanel.amd.js index 303fd001..d509e820 100644 --- a/build/mixpanel.amd.js +++ b/build/mixpanel.amd.js @@ -2,7 +2,7 @@ define(function () { 'use strict'; var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/build/mixpanel.cjs.js b/build/mixpanel.cjs.js index c9ce56ff..d7580fe9 100644 --- a/build/mixpanel.cjs.js +++ b/build/mixpanel.cjs.js @@ -2,7 +2,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/build/mixpanel.globals.js b/build/mixpanel.globals.js index 6cb37fa1..4040e001 100644 --- a/build/mixpanel.globals.js +++ b/build/mixpanel.globals.js @@ -3,7 +3,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/build/mixpanel.umd.js b/build/mixpanel.umd.js index 1fb0abca..f8d3d8ba 100644 --- a/build/mixpanel.umd.js +++ b/build/mixpanel.umd.js @@ -6,7 +6,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/examples/commonjs-browserify/bundle.js b/examples/commonjs-browserify/bundle.js index 4627153c..853d5f1f 100644 --- a/examples/commonjs-browserify/bundle.js +++ b/examples/commonjs-browserify/bundle.js @@ -3,7 +3,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/examples/es2015-babelify/bundle.js b/examples/es2015-babelify/bundle.js index c61e8be2..fea6ee06 100644 --- a/examples/es2015-babelify/bundle.js +++ b/examples/es2015-babelify/bundle.js @@ -732,7 +732,7 @@ Object.defineProperty(exports, '__esModule', { }); var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; exports['default'] = Config; diff --git a/examples/umd-webpack/bundle.js b/examples/umd-webpack/bundle.js index d51a2576..741255a7 100644 --- a/examples/umd-webpack/bundle.js +++ b/examples/umd-webpack/bundle.js @@ -69,7 +69,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.24.0' + LIB_VERSION: '2.25.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file diff --git a/examples/umd-webpack/package-lock.json b/examples/umd-webpack/package-lock.json index ca108c43..b29ba52f 100644 --- a/examples/umd-webpack/package-lock.json +++ b/examples/umd-webpack/package-lock.json @@ -160,6 +160,7 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", + "fsevents": "1.2.4", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -328,6 +329,468 @@ "for-in": "1.0.2" } }, + "fsevents": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", + "optional": true, + "requires": { + "nan": "2.11.1", + "node-pre-gyp": "0.10.0" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.0.1", + "bundled": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.5.1", + "bundled": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "optional": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "optional": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.21", + "bundled": true, + "optional": true, + "requires": { + "safer-buffer": "2.1.2" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "optional": true, + "requires": { + "minimatch": "3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "optional": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true + }, + "minipass": { + "version": "2.2.4", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "minizlib": { + "version": "1.1.0", + "bundled": true, + "optional": true, + "requires": { + "minipass": "2.2.4" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "needle": { + "version": "2.2.0", + "bundled": true, + "optional": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.21", + "sax": "1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.0", + "bundled": true, + "optional": true, + "requires": { + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.2.0", + "nopt": "4.0.1", + "npm-packlist": "1.1.10", + "npmlog": "4.1.2", + "rc": "1.2.7", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "4.4.1" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "optional": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true, + "optional": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "optional": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "rc": { + "version": "1.2.7", + "bundled": true, + "optional": true, + "requires": { + "deep-extend": "0.5.1", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "optional": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "optional": true + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "optional": true + }, + "tar": { + "version": "4.4.1", + "bundled": true, + "optional": true, + "requires": { + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.1", + "yallist": "3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "optional": true + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true + } + } + }, "glob-base": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", @@ -539,6 +1002,12 @@ "minimist": "0.0.8" } }, + "nan": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", + "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", + "optional": true + }, "node-libs-browser": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-0.7.0.tgz", diff --git a/mixpanel.min.js b/mixpanel.min.js index fd9e2c8c..f06452e2 100644 --- a/mixpanel.min.js +++ b/mixpanel.min.js @@ -39,7 +39,7 @@ ha:function(a,b,d){return d||c.g(a," OPR/")?c.g(a,"Mini")?"Opera Mini":"Opera":/ "Konqueror":c.g(a,"Firefox")?"Firefox":c.g(a,"MSIE")||c.g(a,"Trident/")?"Internet Explorer":c.g(a,"Gecko")?"Mozilla":""},Mb:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/, Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ha(a,b,d)];if(b===l)return s;a=a.match(b);return!a?s:parseFloat(a[a.length-2])},qb:function(){return/Windows/i.test(x)?/Phone/.test(x)||/WPDesktop/.test(x)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(x)?"iOS":/Android/.test(x)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(x)?"BlackBerry":/Mac/i.test(x)? "Mac OS X":/Linux/.test(x)?"Linux":/CrOS/.test(x)?"Chrome OS":""},Vb:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},kc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},oa:function(){return c.extend(c.Ha({$os:c.info.qb(),$browser:c.info.ha(x,M.vendor,P),$referrer:o.referrer,$referring_domain:c.info.kc(o.referrer), -$device:c.info.Vb(x)}),{$current_url:t.location.href,$browser_version:c.info.Mb(x,M.vendor,P),$screen_height:Y.height,$screen_width:Y.width,mp_lib:"web",$lib_version:"2.24.0",time:c.timestamp()/1E3})},Ed:function(){return c.extend(c.Ha({$os:c.info.qb(),$browser:c.info.ha(x,M.vendor,P)}),{$browser_version:c.info.Mb(x,M.vendor,P)})},Dd:function(a){return c.Ha({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ha(x,M.vendor,P),mp_platform:c.info.qb()})}};c.toArray=c.pa;c.isObject=c.h;c.JSONEncode=c.aa; +$device:c.info.Vb(x)}),{$current_url:t.location.href,$browser_version:c.info.Mb(x,M.vendor,P),$screen_height:Y.height,$screen_width:Y.width,mp_lib:"web",$lib_version:"2.25.0",time:c.timestamp()/1E3})},Ed:function(){return c.extend(c.Ha({$os:c.info.qb(),$browser:c.info.ha(x,M.vendor,P)}),{$browser_version:c.info.Mb(x,M.vendor,P)})},Dd:function(a){return c.Ha({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ha(x,M.vendor,P),mp_platform:c.info.qb()})}};c.toArray=c.pa;c.isObject=c.h;c.JSONEncode=c.aa; c.JSONDecode=c.ua;c.isBlockedUA=c.ac;c.isEmptyObject=c.la;c.info=c.info;c.info.device=c.info.Vb;c.info.browser=c.info.ha;c.info.properties=c.info.oa;var N={Cb:[],ad:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a},Yc:function(a,b){var d=document.createElement("script");d.type="text/javascript";d.src=a;d.onload=b;var c=document.getElementsByTagName("script");0