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 +4 -0
- package/package.json +1 -1
- package/tasks/templates.js +3 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/tasks/templates.js
CHANGED
|
@@ -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
|
|