mod-build 3.7.15 → 3.7.16-beta.1
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 +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/gulp-tasks/templates.js
CHANGED
|
@@ -371,9 +371,14 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
371
371
|
|
|
372
372
|
const displayNameResponseJson = JSON.parse(displayNameResponse);
|
|
373
373
|
brandedDisplayName = displayNameResponseJson.data[vendorPublicIdentifier];
|
|
374
|
-
consentCaptureObject.brandedConsentCapture.tcpaStart = responseJson.brandedConsentCapture.tcpaStart
|
|
375
|
-
consentCaptureObject.brandedIncludeExclusivelyConsentCapture.tcpaStart = responseJson.brandedIncludeExclusivelyConsentCapture.tcpaStart
|
|
376
|
-
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart
|
|
374
|
+
consentCaptureObject.brandedConsentCapture.tcpaStart = responseJson.brandedConsentCapture.tcpaStart;
|
|
375
|
+
consentCaptureObject.brandedIncludeExclusivelyConsentCapture.tcpaStart = responseJson.brandedIncludeExclusivelyConsentCapture.tcpaStart;
|
|
376
|
+
consentCaptureObject.brandedIncludeServiceConsentCapture.tcpaStart = responseJson.brandedIncludeServiceConsentCapture.tcpaStart;
|
|
377
|
+
|
|
378
|
+
// replacing data-branded-consent and data-service
|
|
379
|
+
consentCaptureObject = JSON.parse(
|
|
380
|
+
JSON.stringify(consentCaptureObject).replace(/<span data-branded-consent><\/span>/g, `<span data-branded-consent>${brandedDisplayName}</span>`).replace(/<span data-service><\/span>/g, `<span data-service>${service}</span>`)
|
|
381
|
+
);
|
|
377
382
|
}
|
|
378
383
|
}
|
|
379
384
|
|