mod-build 4.0.27 → 4.0.28

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,6 @@
1
- #
1
+ ## 4.0.28
2
+
3
+ - Updating the TCPA `nodeEnv` to be pulled from `defaultSettings` so the TCPA gets pulled from the correct environment.
2
4
 
3
5
  ## 4.0.27
4
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -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://' + (config.nodeEnv === 'modernize.com' ? 'hs.leadpost.net/' : 'hsleadpost1.quinstage.com/');
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