mod-build 3.7.2 → 3.7.3

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 3.7.2
3
+ ## 3.7.3
4
4
 
5
5
  - Added `grab-section-deals-components` and `grab-mhsadmin-data` tasks for section deals pages.
6
6
 
@@ -194,7 +194,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
194
194
  const _insertTrade = function(htmlString) {
195
195
  const markup = gulpPlugins.htmlParser.parse(htmlString);
196
196
  markup.querySelector('.btn--zip').setAttribute('data-service', trade.slug);
197
- markup.querySelector('.trade').textContent = trade;
197
+ markup.querySelector('.trade').textContent = trade.displayName;
198
198
  return markup;
199
199
  };
200
200
 
@@ -333,7 +333,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
333
333
 
334
334
  templateData.data.sponsoredContent = siteDetails.data.sponsoredContent.article;
335
335
 
336
- const zipCard = await getZipCardMarkup(templateData.data.trade.displayName, gulpPlugins);
336
+ const zipCard = await getZipCardMarkup(templateData.data.trade, gulpPlugins);
337
337
  const htmlContent = gulpPlugins.htmlParser.parse(templateData.data.content);
338
338
  const contentHeadings = htmlContent.querySelectorAll('h2[id]');
339
339
  if (zipCard) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",