mod-build 3.7.9 → 3.7.10-beta.2
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/gulp-tasks/templates.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.7.10
|
|
4
|
+
|
|
5
|
+
- Included an option for `service` to be appended to the `brandedIncludeServiceConsentCapture` if it includes `"${service} request"`
|
|
6
|
+
|
|
3
7
|
## 3.7.9
|
|
4
8
|
|
|
5
9
|
- Updated `isBranded` sites to grab the display name from HS Form Service API to add to the `brandedConsentLanguage`.
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -342,6 +342,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
342
342
|
|
|
343
343
|
let brandedDisplayName = '';
|
|
344
344
|
const responseJson = JSON.parse(tcpaResponse),
|
|
345
|
+
service = templatesData.service ? templatesData.service.toLowerCase().replace('_', ' ') : templatesData.primary_trade.toLowerCase().replace('_', ' '),
|
|
345
346
|
consentCaptureObject = responseJson;
|
|
346
347
|
|
|
347
348
|
consentCaptureObject.consentCapturePrivacyAndTerms = consentCaptureObject.consentCapturePrivacyAndTerms.replace(/\/resources/g, `${pathSubdirectory ? pathSubdirectory : '/'}resources`);
|
|
@@ -371,6 +372,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
371
372
|
const displayNameResponseJson = JSON.parse(displayNameResponse);
|
|
372
373
|
brandedDisplayName = displayNameResponseJson.data[vendorPublicIdentifier];
|
|
373
374
|
consentCaptureObject.brandedConsentCapture.tcpaStart = responseJson.brandedConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`);
|
|
375
|
+
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart.replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`);
|
|
376
|
+
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart.replace(/<span data-service><\/span>/g, `<span data-service>${service}</span>`);
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
379
|
|