mod-build 3.7.12 → 3.7.13
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 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.7.13
|
|
4
|
+
|
|
5
|
+
- An enhancement has been added to the `getConsentCaptureLanguage()` function to replace the subdirectory path throughout the response object.
|
|
6
|
+
|
|
3
7
|
## 3.7.12
|
|
4
8
|
|
|
5
9
|
- Added the E-Sign Consent modal to be grabbed as part of the `grab-cdn` task.
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -342,10 +342,10 @@ 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('_', ' ')
|
|
346
|
-
|
|
345
|
+
service = templatesData.service ? templatesData.service.toLowerCase().replace('_', ' ') : templatesData.primary_trade.toLowerCase().replace('_', ' ');
|
|
346
|
+
let consentCaptureObject = responseJson;
|
|
347
347
|
|
|
348
|
-
consentCaptureObject
|
|
348
|
+
consentCaptureObject = JSON.parse(JSON.stringify(consentCaptureObject).replace(/\/resources/g, `${pathSubdirectory ? pathSubdirectory : '/'}resources`));
|
|
349
349
|
|
|
350
350
|
const brandedSiteIdentifiers = `https://${siteSettings.nodeEnv}/quote/resources/mod-site/data/branded-site-identifiers.json`;
|
|
351
351
|
const { xhr: brandedXhr, response: brandedResponse } = await requestPromise(brandedSiteIdentifiers);
|