mod-build 3.6.17 → 3.6.19

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.6.15 & 3.6.16
3
+ ## 3.6.15 & 3.6.16 & 3.6.17 & 3.6.18
4
4
 
5
5
  - `grab-shared-scripts` task code refactoring changes.
6
6
 
@@ -132,8 +132,9 @@ function getResourceMap(url, config = {}, fn) {
132
132
  }
133
133
 
134
134
  module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
135
- const data = siteData.siteData ? siteData.siteData : siteData;
136
- isQuotePageOrUseRelativePath = data && data.isQuotePage === true || data.useRelativePathForResources === true;
135
+ const isQuotePage = siteData?.siteData?.isQuotePage || siteData?.isQuotePage;
136
+ const useRelativePathForResources = siteData?.siteData?.useRelativePathForResources || siteData?.useRelativePathForResources;
137
+ isQuotePageOrUseRelativePath = isQuotePage === true || useRelativePathForResources === true;
137
138
  resourceURL = `https://${siteSettings.nodeEnv}/quote/resources`;
138
139
 
139
140
  const TASKS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.17",
3
+ "version": "3.6.19",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"