mod-build 3.7.30 → 3.7.31-beta.2
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 +4 -0
- package/gulp-tasks/templates.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.7.30
|
|
4
4
|
|
|
5
|
+
- Avoided overriding the control's step configuration during the merge with the variation's steps and the default form config.
|
|
6
|
+
|
|
7
|
+
## 3.7.30
|
|
8
|
+
|
|
5
9
|
- Removed the `addVwoTestAttribute` flag. The `data-vwo-test` attribute will now always be added to the `body` tag if the current session is a variation.
|
|
6
10
|
|
|
7
11
|
## 3.7.29
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* globals Promise */
|
|
2
2
|
var merge = require('lodash.merge');
|
|
3
|
+
var cloneDeep = require('lodash/cloneDeep');
|
|
3
4
|
var request = require('request');
|
|
4
5
|
|
|
5
6
|
module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
@@ -281,7 +282,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
281
282
|
if (item.stepContent.fields) {
|
|
282
283
|
item.stepContent.fields = item.stepContent.fields.map(field => {
|
|
283
284
|
if (field.attributes && field.attributes.name && defaultConfig[field.attributes.name]) {
|
|
284
|
-
field = merge(defaultConfig[field.attributes.name], field);
|
|
285
|
+
field = merge(cloneDeep(defaultConfig[field.attributes.name]), field);
|
|
285
286
|
}
|
|
286
287
|
return field;
|
|
287
288
|
});
|
|
@@ -292,7 +293,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
292
293
|
if (item.fields) {
|
|
293
294
|
item.fields = item.fields.map(field => {
|
|
294
295
|
if (field.name && defaultConfig[field.name]) {
|
|
295
|
-
field = Object.assign(defaultConfig[field.name], field);
|
|
296
|
+
field = Object.assign(cloneDeep(defaultConfig[field.name]), field);
|
|
296
297
|
}
|
|
297
298
|
return field;
|
|
298
299
|
});
|