mod-build 3.6.75-beta.1a → 3.6.75

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,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.75
4
+
5
+ - Update grab-shared-scripts task to consider isPathSubdirectory flag for modalytics script path
6
+
3
7
  ## 3.6.74
4
8
 
5
9
  - Updating the `add-path-subdirectories` task to update paths that also start with `accessible-components`
@@ -22,7 +22,8 @@ var pathSubdirectory = '';
22
22
  var componentFolderPath = '';
23
23
 
24
24
  function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
25
- const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}{{#if this.src}}{{this.src}}{{/if}}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
25
+ const doNotIncludeSrc = siteData.siteData && siteData.siteData.isPathSubdirectory || siteData && siteData.isPathSubdirectory;
26
+ const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}${doNotIncludeSrc ? '' : '{{#if this.src}}{{this.src}}{{/if}}'}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
26
27
  return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/head/head.html`)
27
28
  .pipe(replace(/".*(modalytics).*"/, `"${resourcePath}${fileNames.modAlyticsFileName}"`))
28
29
  .pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.75-beta.1a",
3
+ "version": "3.6.75",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -357,7 +357,6 @@ modForm.formatContractorDataForModApi = function(formData, currentStep) {
357
357
  buysLeads: formData.buysLeads,
358
358
  crmInUse: formData.crmInUse,
359
359
  whoCallsLeads: formData.whoCallsLeads,
360
- ein: formData.ein,
361
360
  websiteUrl: formData.websiteUrl,
362
361
  companyZip: formData.companyZip
363
362
  }