mod-build 4.0.27 → 4.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
## 4.0.29
|
|
2
|
+
|
|
3
|
+
- Removing all the `!window.Modalytics.privacyPreferencesDetected` conditionals (as we are no longer moving forward with this integration).
|
|
4
|
+
|
|
5
|
+
## 4.0.28
|
|
6
|
+
|
|
7
|
+
- Updating the TCPA `nodeEnv` to be pulled from `defaultSettings` so the TCPA gets pulled from the correct environment.
|
|
2
8
|
|
|
3
9
|
## 4.0.27
|
|
4
10
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
if (window.Modalytics
|
|
1
|
+
if (window.Modalytics) {
|
|
2
2
|
var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
|
|
3
3
|
// dev env id "3986615799"
|
|
4
4
|
if (!heapIsDevEnv) {
|
|
@@ -20,7 +20,7 @@ _vis_opt_queue.push(function() {
|
|
|
20
20
|
// Use the _vis_data object created above to fetch the data,
|
|
21
21
|
// key of the object is the Test ID and the value is Variation Name
|
|
22
22
|
if (_vis_counter) {
|
|
23
|
-
if (window.Modalytics &&
|
|
23
|
+
if (window.Modalytics && window.heap && window.heap.appid) {
|
|
24
24
|
heap.addUserProperties(window._vis_data);
|
|
25
25
|
}
|
|
26
26
|
}
|
package/tasks/templates.js
CHANGED
|
@@ -77,7 +77,7 @@ const fetchTcpaFromSitegenie = async (config, tempConfig) => {
|
|
|
77
77
|
const c_level = config.cLevel || 'default';
|
|
78
78
|
const affiliateKey = config.affiliateKey || 0;
|
|
79
79
|
const service = config.service ? config.service.toLowerCase().replace(' ', '_') : config.primary_trade.toLowerCase().replace(' ', '_');
|
|
80
|
-
const apiEnv = 'https://' + (
|
|
80
|
+
const apiEnv = 'https://' + (defaultSettings.nodeEnv === 'modernize.com' ? 'hs.leadpost.net/' : 'hsleadpost1.quinstage.com/');
|
|
81
81
|
|
|
82
82
|
const url = `${apiEnv}coreg/getTCPAConsent?website=${website}&service=${service}&affiliateKey=${affiliateKey}&c_level=${c_level}`;
|
|
83
83
|
|