mod-build 3.6.89-beta.3 → 3.6.90

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,8 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.90
4
+
5
+ - Updating `fetchTcpaFromSitegenie()` to no longer have any use-cases of QuinStreet as the company name; should be Modernize all the time.
6
+
3
7
  ## 3.6.89
4
8
 
5
9
  - Updated the `add-path-subdirectories` task to include path replacements for `../` or any variation of `../` in the attribute replacement values.
10
+ - Updated the `grab-shared-scripts` task to only add the `${pathSubdirectory}` inside the JS files; as the `add-path-subdirectories` task will handle replacement of everything else
6
11
 
7
12
  ## 3.6.88
8
13
 
@@ -59,7 +59,7 @@ function replaceAbandonmentJsCssSrc(gulp, gulpPlugins, siteSettings, siteData) {
59
59
  .pipe(gulp.dest(siteSettings.srcFolder + '/templates/abandonment'));
60
60
  }
61
61
  function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData) {
62
- if (siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
62
+ if (isQuotePageOrUseRelativePath) {
63
63
  return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/' + fileNames.footerComponentJsFileName)
64
64
  .pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/mod.*?)\)/, `concat("${pathSubdirectory}resources/styles/components/footer/` + fileNames.modFooterStylesFileName + '")'))
65
65
  .pipe(replace(/concat\((?:(?!concat\(|\))[\s\S])+(components\/footer\/qs.*?)\)/, `concat("${pathSubdirectory}resources/styles/components/footer/` + fileNames.qsFooterStylesFileName + '")'))
@@ -72,7 +72,7 @@ function replaceFooterStylesReference(gulp, gulpPlugins, siteSettings, siteData)
72
72
  }
73
73
  }
74
74
  function replaceFooterStylesReferenceInMap(gulp, gulpPlugins, siteSettings, siteData) {
75
- if (siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
75
+ if (isQuotePageOrUseRelativePath) {
76
76
  return gulp.src(siteSettings.srcFolder + '/resources/scripts/footer/footer-component.min.js.map')
77
77
  .pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`' + pathSubdirectory + 'resources/styles/components/footer/' + fileNames.modFooterStylesFileName + '`'))
78
78
  .pipe(replace(/\`(?:(?!\`|\`)[\s\S])+(components\/footer\/mod.*?)\`/, '`' + pathSubdirectory + 'resources/styles/components/footer/' + fileNames.qsFooterStylesFileName + '`'))
@@ -240,7 +240,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
240
240
  };
241
241
 
242
242
  var fetchTcpaFromSitegenie = async function() {
243
- const company = templatesData.company_name;
244
243
  const website = templatesData.website_name;
245
244
  const c_level = templatesData.cLevel ? templatesData.cLevel : 'default';
246
245
  const affiliateKey = templatesData.affiliateKey ? templatesData.affiliateKey : 0;
@@ -259,7 +258,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
259
258
  throw new Error(`${xhr.statusCode}: Error while fetching TCPA`);
260
259
  }
261
260
  const responseJson = await JSON.parse(response);
262
- let finalTCPA = await (company === 'Modernize' || templatesData.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
261
+ let finalTCPA = await responseJson.tcpa.replace(/QuinStreet/g, 'Modernize');
263
262
  const removeInlineStyleRegex = / style="[^"]*"/g;
264
263
  finalTCPA = finalTCPA.replace(removeInlineStyleRegex, '');
265
264
  templatesData.tcpaText = await finalTCPA;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.89-beta.3",
3
+ "version": "3.6.90",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",