mod-build 4.0.16 → 4.0.17

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,3 +1,7 @@
1
+ ## 4.0.17
2
+
3
+ - Updating `fetchTcpaFromSitegenie()` to no longer have any use-cases of QuinStreet as the company name; should be Modernize all the time.
4
+
1
5
  ## 4.0.16
2
6
 
3
7
  - Tech Debt: Moving the `getDefaultTopRecommendedContent()` locally back to the bestcompany-top-recommended repo (as it is not needed as a global function)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -98,7 +98,7 @@ const fetchTcpaFromSitegenie = async (config, tempConfig) => {
98
98
  const responseJson = resp.data;
99
99
  console.log('SiteGenie TCPA response successful: ', responseJson);
100
100
 
101
- let finalTCPA = await (company === 'Modernize' || config.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
101
+ let finalTCPA = await responseJson.tcpa.replace(/QuinStreet/g, 'Modernize');
102
102
  const removeInlineStyleRegex = / style="[^"]*"/g;
103
103
  finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
104
104
  if (finalTCPA.includes(companyPlaceholder)) {