mod-build 3.6.1--beta.14 → 3.6.1--beta.15

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.
@@ -68,20 +68,16 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
68
68
  },
69
69
  {
70
70
  name: 'makeSeasonalUpdates',
71
- fn: function(trade) {
71
+ fn: function(season) {
72
72
  var trade = siteData.primary_trade;
73
73
  const today = new Date();
74
74
  const year = today.getFullYear();
75
- if (trade === 'HVAC') {
75
+ if (season === 'coolerWeather') {
76
76
  /* Default Hightlight Cooling Services; Highlight Heating Services from September 25 to March 14 */
77
77
  const springDate = new Date(`03-14-${year}`);
78
78
  const fallDate = new Date(`09-25-${year}`);
79
79
 
80
- if (!(today > springDate && today < fallDate)) {
81
- return 'highlightHeating'
82
- } else {
83
- return 'highlightCooling'
84
- }
80
+ return !(today > springDate && today < fallDate);
85
81
  }
86
82
 
87
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.1--beta.14",
3
+ "version": "3.6.1--beta.15",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"