mod-build 3.6.67-beta.1 → 3.6.68-beta.1
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.67
|
|
4
|
+
|
|
5
|
+
- Adjusting the `grab-theme-json` task conditional to also check for `opts.siteData.page` to exist as well as the `themeFile` before running the task!
|
|
6
|
+
|
|
3
7
|
## 3.6.66
|
|
4
8
|
|
|
5
9
|
- Adjusting the `mergeDefaultFormFieldConfig()` for the accessible configuration so it merges the values correctly.
|
package/gulp-tasks/settings.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = function() {
|
|
|
6
6
|
return {
|
|
7
7
|
tmpFolder: '.tmp',
|
|
8
8
|
srcFolder: 'src',
|
|
9
|
-
browserSyncServeFolders: ['.tmp', 'src', 'node_modules/mod-style-bootstrap/src'
|
|
9
|
+
browserSyncServeFolders: ['.tmp', 'src', 'node_modules/mod-style-bootstrap/src'],
|
|
10
10
|
distFolder: 'dist',
|
|
11
11
|
fontsSubfolder: 'fonts',
|
|
12
12
|
imagesSubfolder: 'images',
|
package/gulp-tasks/tasks.js
CHANGED
|
@@ -402,7 +402,7 @@ module.exports = function() {
|
|
|
402
402
|
opts.gulpTasksFolderPath = '.';
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
if (opts.siteData.page.themeFile) {
|
|
405
|
+
if (opts.siteData.page && opts.siteData.page.themeFile) {
|
|
406
406
|
return require(opts.gulpTasksFolderPath + '/grab-theme-json')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
|
|
407
407
|
}
|
|
408
408
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
if (window.Modalytics && !window.Modalytics.privacyPreferencesDetected) {
|
|
2
|
-
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
|
|
3
|
-
|
|
4
2
|
var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
|
|
3
|
+
// dev env id "3986615799"
|
|
4
|
+
if (!heapIsDevEnv) {
|
|
5
|
+
window.heap = window.heap || [], heap.load = function(e, t) { window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r ? "https:" : "http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function(e) { return function() { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) } }, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "resetIdentity", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++)heap[p[c]] = o(p[c]) };
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
heap.load("3246578271"); // dynamic tracker ID based on env
|
|
8
|
+
}
|
|
7
9
|
}
|