mod-build 4.0.35 → 4.0.36

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,3 +1,7 @@
1
+ ## 4.0.36
2
+
3
+ - Included an option for `service` to be appended to the `brandedIncludeServiceConsentCapture` for consent capture.
4
+
1
5
  ## 4.0.35
2
6
 
3
7
  - Updating the `grab-shared-scripts` task to include the source map files for troubleshooting purposes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.35",
3
+ "version": "4.0.36",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -157,7 +157,8 @@ const getConsentCaptureLanguage = async function(config, tempConfig) {
157
157
  }
158
158
 
159
159
  let brandedDisplayName = '',
160
- consentCaptureObject = resp.data;
160
+ consentCaptureObject = resp.data,
161
+ service = config.service ? config.service.toLowerCase().replace('_', ' ') : config.primary_trade.toLowerCase().replace('_', ' ');
161
162
 
162
163
  const brandedSiteIdentifiers = await axios.get(`https://${defaultSettings.nodeEnv}/quote/resources/mod-site/data/branded-site-identifiers.json`);
163
164
  if (brandedSiteIdentifiers.status !== 200) {
@@ -178,6 +179,7 @@ const getConsentCaptureLanguage = async function(config, tempConfig) {
178
179
 
179
180
  brandedDisplayName = getBrandedDisplayName.data.data[vendorPublicIdentifier];
180
181
  consentCaptureObject.brandedConsentCapture.tcpaStart = resp.data.brandedConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`);
182
+ consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = resp.data.brandedIncludeServiceConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`).replace(/<span data-service><\/span>/g, `<span data-service>${service}</span>`);
181
183
  }
182
184
  }
183
185