hof 21.1.0-deindex-toggle-beta → 21.1.0-deindex-toggle-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/deindex.js +3 -1
  2. package/package.json +1 -1
package/lib/deindex.js CHANGED
@@ -1,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = (app, config) => {
4
- const deIndex = config.deIndexForm;
4
+ // Ensure the value of deIndex is evaluated as a boolean regardless of if single quotes are used
5
+ // to have the expected conditional behaviour in the Mustache template
6
+ const deIndex = (config.deIndexForm === 'true' || config.deIndexForm === true);
5
7
 
6
8
  app.use((req, res, next) => {
7
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "21.1.0-deindex-toggle-beta",
4
+ "version": "21.1.0-deindex-toggle-beta.1",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",