@segment/analytics.js-integration-clevertap
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,6 @@ | ||
1.0.2 / 2017-08-30 | ||
================== | ||
* Fix region bug fix | ||
1.0.1 / 2017-08-24 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -35,4 +35,7 @@ 'use strict'; | ||
window.clevertap.account.push({ id: this.options.clevertap_account_id }); | ||
if (this.options.region) { | ||
window.clevertap.region = this.options.region; | ||
var region = this.options.region; | ||
if (region && is.string(region)) { | ||
// the hardcoded value actually returns 'in.' intentionally w the period because it is used for the direct integration | ||
// and since dealing with mongo is much more painful, we will strip here | ||
window.clevertap.region = region.replace('.', ''); | ||
} | ||
@@ -39,0 +42,0 @@ var protocol = useHttps() ? 'https': 'http'; |
{ | ||
"name": "@segment/analytics.js-integration-clevertap", | ||
"description": "The CleverTap analytics.js integration.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "analytics.js", |
@@ -63,2 +63,9 @@ 'use strict'; | ||
}); | ||
it('should strip periods in region', function() { | ||
var region = 'in.'; | ||
clevertap.options.region = region; | ||
analytics.initialize(); | ||
analytics.assert(window.clevertap.region === 'in'); | ||
}); | ||
}); | ||
@@ -65,0 +72,0 @@ }); |
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
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
20633
412