mixpanel-browser
Advanced tools
Comparing version 2.26.0 to 2.27.0
@@ -0,1 +1,6 @@ | ||
**2.27.0** (7 Mar 2019) | ||
- Support cross-subdomain tracking on TLDs longer than 6 chars (thanks @danielbaker) | ||
- Support configurable network protocol for inapp resources (thanks @mkdai) | ||
- Allow inapp links to open in new window/tab via config option (thanks @mkdai) | ||
**2.26.0** (9 Jan 2019) | ||
@@ -2,0 +7,0 @@ - Fix minification issue with DoNotTrack browser setting |
{ | ||
"name": "mixpanel-browser", | ||
"version": "2.26.0", | ||
"version": "2.27.0", | ||
"description": "The official Mixpanel JavaScript browser client library", | ||
@@ -5,0 +5,0 @@ "main": "build/mixpanel.cjs.js", |
@@ -71,2 +71,2 @@ # Mixpanel JavaScript Library | ||
## Thanks | ||
For patches and support: @bohanyang, @dehau, @drubin, @D1plo1d, @feychenie, @mogstad, @pfhayes, @sandorfr, @stefansedich, @gfx, @pkaminski, @austince | ||
For patches and support: @bohanyang, @dehau, @drubin, @D1plo1d, @feychenie, @mogstad, @pfhayes, @sandorfr, @stefansedich, @gfx, @pkaminski, @austince, @danielbaker, @mkdai |
var Config = { | ||
DEBUG: false, | ||
LIB_VERSION: '2.26.0' | ||
LIB_VERSION: '2.27.0' | ||
}; | ||
export default Config; |
@@ -47,2 +47,4 @@ /* eslint camelcase: "off", eqeqeq: "off" */ | ||
var DOMAIN_MATCH_REGEX = /[a-z0-9][a-z0-9\-]+\.[a-z\.]+$/i; | ||
var _ = { | ||
@@ -989,3 +991,3 @@ trim: function(str) { | ||
if (cross_subdomain) { | ||
var matches = document.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i), | ||
var matches = document.location.hostname.match(DOMAIN_MATCH_REGEX), | ||
domain = matches ? matches[0] : ''; | ||
@@ -1013,3 +1015,3 @@ | ||
if (cross_subdomain) { | ||
var matches = document.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i), | ||
var matches = document.location.hostname.match(DOMAIN_MATCH_REGEX), | ||
domain = matches ? matches[0] : ''; | ||
@@ -1016,0 +1018,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1358753
30679
1