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 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.
@@ -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
- consentCaptureObject = responseJson;
345
+ service = templatesData.service ? templatesData.service.toLowerCase().replace('_', ' ') : templatesData.primary_trade.toLowerCase().replace('_', ' ');
346
+ let consentCaptureObject = responseJson;
347
347
 
348
- consentCaptureObject.consentCapturePrivacyAndTerms = consentCaptureObject.consentCapturePrivacyAndTerms.replace(/\/resources/g, `${pathSubdirectory ? pathSubdirectory : '/'}resources`);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.12",
3
+ "version": "3.7.13",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",