mod-build 3.6.61-beta.5 → 3.6.61-beta.6

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 3.6.61
4
4
 
5
- - Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration.
5
+ - Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration; As well as adding the ability to add an `{{else}}` block when using `{{#xif }}`;
6
6
 
7
7
  ## 3.6.60
8
8
 
@@ -64,21 +64,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
64
64
  {
65
65
  name: 'xif',
66
66
  fn: function(expression, options) {
67
- const result = handlebarsX(expression, this, options);
68
- if (result) {
69
- return options.fn(this);
70
- } else {
71
- return options.inverse(this);
72
- }
67
+ return handlebarsX(expression, this, options) ? options.fn(this) : options.inverse(this);
73
68
  },
74
- inverse: function(expression, options) {
75
- const result = handlebarsX(expression, this, options);
76
- if (result) {
77
- return options.inverse(this);
78
- } else {
79
- return options.fn(this);
80
- }
81
- }
82
69
  },
83
70
  // Reverse array
84
71
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.61-beta.5",
3
+ "version": "3.6.61-beta.6",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",