hof 20.3.11 → 20.4.1-minimatch-vulnerability-beta
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/.nyc_output/b17a72ab-43b9-4b04-87d3-4757aec739ab.json +1 -0
 - package/.nyc_output/processinfo/b17a72ab-43b9-4b04-87d3-4757aec739ab.json +1 -0
 - package/.nyc_output/processinfo/index.json +1 -1
 - package/components/date/templates/date.html +1 -1
 - package/config/hof-defaults.js +3 -5
 - package/frontend/govuk-template/build/govuk_template.html +17 -18
 - package/frontend/govuk-template/govuk_template_generated.html +17 -18
 - package/frontend/template-mixins/partials/forms/checkbox-group.html +1 -1
 - package/frontend/template-mixins/partials/forms/option-group.html +1 -1
 - package/frontend/template-mixins/partials/forms/textarea-group.html +3 -1
 - package/frontend/template-partials/views/layout.html +1 -1
 - package/frontend/template-partials/views/partials/cookie-banner.html +2 -2
 - package/frontend/template-partials/views/partials/gatag.html +0 -1
 - package/frontend/template-partials/views/partials/head.html +28 -0
 - package/lib/ga-tag.js +18 -1
 - package/lib/health.js +1 -1
 - package/lib/sessions.js +0 -2
 - package/middleware/cookies.js +2 -0
 - package/middleware/rate-limiter.js +1 -3
 - package/package.json +8 -6
 - package/sandbox/apps/sandbox/fields.js +0 -6
 - package/sandbox/apps/sandbox/translations/en/default.json +30 -26
 - package/sandbox/apps/sandbox/translations/src/en/fields.json +5 -5
 - package/sandbox/apps/sandbox/translations/src/en/pages.json +1 -1
 - package/sandbox/config.js +1 -2
 - package/sandbox/public/css/app.css +10 -6604
 - package/sandbox/public/js/bundle.js +24 -2800
 - package/sandbox/server.js +1 -4
 - package/sandbox/yarn.lock +3 -3
 - package/.nyc_output/b924df42-9cb6-4618-9a07-4f58f67ae28a.json +0 -1
 - package/.nyc_output/processinfo/b924df42-9cb6-4618-9a07-4f58f67ae28a.json +0 -1
 - package/sandbox/dump.rdb +0 -0
 
| 
         @@ -2,7 +2,6 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
              "fields": {
         
     | 
| 
       3 
3 
     | 
    
         
             
                "landing-page-radio": {
         
     | 
| 
       4 
4 
     | 
    
         
             
                  "legend": "Which form would you like to explore?",
         
     | 
| 
       5 
     | 
    
         
            -
                  "hint": "Choose one of the options below and press continue.",
         
     | 
| 
       6 
5 
     | 
    
         
             
                  "options": {
         
     | 
| 
       7 
6 
     | 
    
         
             
                    "basic-form": {
         
     | 
| 
       8 
7 
     | 
    
         
             
                      "label": "Basic form"
         
     | 
| 
         @@ -19,7 +18,7 @@ 
     | 
|
| 
       19 
18 
     | 
    
         
             
                  "label": "Full name"
         
     | 
| 
       20 
19 
     | 
    
         
             
                },
         
     | 
| 
       21 
20 
     | 
    
         
             
                "dateOfBirth": {
         
     | 
| 
       22 
     | 
    
         
            -
                  "legend": " 
     | 
| 
      
 21 
     | 
    
         
            +
                  "legend": "Date of birth",
         
     | 
| 
       23 
22 
     | 
    
         
             
                  "hint": "For example, 31 10 1990"
         
     | 
| 
       24 
23 
     | 
    
         
             
                },
         
     | 
| 
       25 
24 
     | 
    
         
             
                "building": {
         
     | 
| 
         @@ -57,7 +56,7 @@ 
     | 
|
| 
       57 
56 
     | 
    
         
             
                  }
         
     | 
| 
       58 
57 
     | 
    
         
             
                },
         
     | 
| 
       59 
58 
     | 
    
         
             
                "countryOfHearing": {
         
     | 
| 
       60 
     | 
    
         
            -
                  " 
     | 
| 
      
 59 
     | 
    
         
            +
                  "label": "Country of hearing",
         
     | 
| 
       61 
60 
     | 
    
         
             
                  "options": {
         
     | 
| 
       62 
61 
     | 
    
         
             
                    "englandAndWales": {
         
     | 
| 
       63 
62 
     | 
    
         
             
                      "label": "England and Wales"
         
     | 
| 
         @@ -81,45 +80,49 @@ 
     | 
|
| 
       81 
80 
     | 
    
         
             
                  "legend": "International phone number"
         
     | 
| 
       82 
81 
     | 
    
         
             
                },
         
     | 
| 
       83 
82 
     | 
    
         
             
                "complaintDetails": {
         
     | 
| 
       84 
     | 
    
         
            -
                  "label": "Complaint details" 
     | 
| 
       85 
     | 
    
         
            -
                  "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
         
     | 
| 
       86 
     | 
    
         
            -
                },
         
     | 
| 
       87 
     | 
    
         
            -
                "whatHappened": {
         
     | 
| 
       88 
     | 
    
         
            -
                  "label": "What happened",
         
     | 
| 
       89 
     | 
    
         
            -
                  "hint": "Briefly summarise what happened."
         
     | 
| 
      
 83 
     | 
    
         
            +
                  "label": "Complaint details"
         
     | 
| 
       90 
84 
     | 
    
         
             
                },
         
     | 
| 
       91 
85 
     | 
    
         
             
                "countrySelect": {
         
     | 
| 
       92 
     | 
    
         
            -
                  "label": " 
     | 
| 
      
 86 
     | 
    
         
            +
                  "label": "Select a country",
         
     | 
| 
       93 
87 
     | 
    
         
             
                  "hint": "Start to type the country name and options will appear"
         
     | 
| 
       94 
88 
     | 
    
         
             
                },
         
     | 
| 
       95 
89 
     | 
    
         
             
                "appealStages": {
         
     | 
| 
       96 
90 
     | 
    
         
             
                  "label": "Appeal stage",
         
     | 
| 
       97 
     | 
    
         
            -
                  "hint": "Choose an appeal stage from the drop down menu",
         
     | 
| 
       98 
91 
     | 
    
         
             
                  "options": {
         
     | 
| 
       99 
92 
     | 
    
         
             
                    "null": "Select..."
         
     | 
| 
       100 
93 
     | 
    
         
             
                  }
         
     | 
| 
       101 
94 
     | 
    
         
             
                }
         
     | 
| 
       102 
95 
     | 
    
         
             
              },
         
     | 
| 
       103 
96 
     | 
    
         
             
              "journey": {
         
     | 
| 
       104 
     | 
    
         
            -
                "header": "HOF Bootstrap Sandbox Form" 
     | 
| 
       105 
     | 
    
         
            -
                "confirmation": {
         
     | 
| 
       106 
     | 
    
         
            -
                  "details": "Your reference number <br><strong>HDJ2123F</strong>"
         
     | 
| 
       107 
     | 
    
         
            -
                }
         
     | 
| 
      
 97 
     | 
    
         
            +
                "header": "HOF Bootstrap Sandbox Form"
         
     | 
| 
       108 
98 
     | 
    
         
             
              },
         
     | 
| 
       109 
99 
     | 
    
         
             
              "pages": {
         
     | 
| 
       110 
100 
     | 
    
         
             
                "landing-page": {
         
     | 
| 
       111 
     | 
    
         
            -
                  "header": "Landing page"
         
     | 
| 
      
 101 
     | 
    
         
            +
                  "header": "Landing page",
         
     | 
| 
      
 102 
     | 
    
         
            +
                  "intro": "Choose one of the options below and press continue."
         
     | 
| 
       112 
103 
     | 
    
         
             
                },
         
     | 
| 
       113 
104 
     | 
    
         
             
                "build-your-own-form": {
         
     | 
| 
       114 
105 
     | 
    
         
             
                  "title": "Build your own form",
         
     | 
| 
       115 
106 
     | 
    
         
             
                  "subheader": "Access the build your own form guidance link"
         
     | 
| 
       116 
107 
     | 
    
         
             
                },
         
     | 
| 
      
 108 
     | 
    
         
            +
                "name": {
         
     | 
| 
      
 109 
     | 
    
         
            +
                  "header": "What is your full name?"
         
     | 
| 
      
 110 
     | 
    
         
            +
                },
         
     | 
| 
      
 111 
     | 
    
         
            +
                "dob": {
         
     | 
| 
      
 112 
     | 
    
         
            +
                  "header": "What is your date of birth?"
         
     | 
| 
      
 113 
     | 
    
         
            +
                },
         
     | 
| 
       117 
114 
     | 
    
         
             
                "address": {
         
     | 
| 
       118 
115 
     | 
    
         
             
                  "header": "What is your address in the UK?",
         
     | 
| 
       119 
116 
     | 
    
         
             
                  "intro": "If you have no fixed address, enter an address where we can contact you."
         
     | 
| 
       120 
117 
     | 
    
         
             
                },
         
     | 
| 
       121 
     | 
    
         
            -
                " 
     | 
| 
       122 
     | 
    
         
            -
                  "header": " 
     | 
| 
      
 118 
     | 
    
         
            +
                "checkboxes": {
         
     | 
| 
      
 119 
     | 
    
         
            +
                  "header": "Where does your money come from each month?"
         
     | 
| 
      
 120 
     | 
    
         
            +
                },
         
     | 
| 
      
 121 
     | 
    
         
            +
                "radio": {
         
     | 
| 
      
 122 
     | 
    
         
            +
                  "header": "What country was the appeal lodged?"
         
     | 
| 
      
 123 
     | 
    
         
            +
                },
         
     | 
| 
      
 124 
     | 
    
         
            +
                "country-select": {
         
     | 
| 
      
 125 
     | 
    
         
            +
                  "header": "What country is your address located?"
         
     | 
| 
       123 
126 
     | 
    
         
             
                },
         
     | 
| 
       124 
127 
     | 
    
         
             
                "email": {
         
     | 
| 
       125 
128 
     | 
    
         
             
                  "header": "Enter your email address"
         
     | 
| 
         @@ -127,6 +130,14 @@ 
     | 
|
| 
       127 
130 
     | 
    
         
             
                "phone-number": {
         
     | 
| 
       128 
131 
     | 
    
         
             
                  "header": "Enter your phone number"
         
     | 
| 
       129 
132 
     | 
    
         
             
                },
         
     | 
| 
      
 133 
     | 
    
         
            +
                "text-input-area": {
         
     | 
| 
      
 134 
     | 
    
         
            +
                  "header": "What are the details of your complaint?",
         
     | 
| 
      
 135 
     | 
    
         
            +
                  "intro": "Briefly summarise your complaint. Include anything that can help our investigation."
         
     | 
| 
      
 136 
     | 
    
         
            +
                },
         
     | 
| 
      
 137 
     | 
    
         
            +
                "select": {
         
     | 
| 
      
 138 
     | 
    
         
            +
                  "header": "What is the appeal stage?",
         
     | 
| 
      
 139 
     | 
    
         
            +
                  "intro": "Choose an appeal stage from the drop down menu"
         
     | 
| 
      
 140 
     | 
    
         
            +
                },
         
     | 
| 
       130 
141 
     | 
    
         
             
                "confirm": {
         
     | 
| 
       131 
142 
     | 
    
         
             
                  "header": "Check your answers before submitting your application.",
         
     | 
| 
       132 
143 
     | 
    
         
             
                  "sections": {
         
     | 
| 
         @@ -150,9 +161,6 @@ 
     | 
|
| 
       150 
161 
     | 
    
         
             
                    },
         
     | 
| 
       151 
162 
     | 
    
         
             
                    "complaintDetails": {
         
     | 
| 
       152 
163 
     | 
    
         
             
                      "header": "Complaint details"
         
     | 
| 
       153 
     | 
    
         
            -
                    },
         
     | 
| 
       154 
     | 
    
         
            -
                    "whatHappened": {
         
     | 
| 
       155 
     | 
    
         
            -
                      "header": "What happened"
         
     | 
| 
       156 
164 
     | 
    
         
             
                    }
         
     | 
| 
       157 
165 
     | 
    
         
             
                  }
         
     | 
| 
       158 
166 
     | 
    
         
             
                },
         
     | 
| 
         @@ -207,11 +215,7 @@ 
     | 
|
| 
       207 
215 
     | 
    
         
             
                },
         
     | 
| 
       208 
216 
     | 
    
         
             
                "complaintDetails": {
         
     | 
| 
       209 
217 
     | 
    
         
             
                  "default": "Enter details about why you are making a complaint",
         
     | 
| 
       210 
     | 
    
         
            -
                  "maxlength": "Keep to the  
     | 
| 
       211 
     | 
    
         
            -
                },
         
     | 
| 
       212 
     | 
    
         
            -
                "whatHappened": {
         
     | 
| 
       213 
     | 
    
         
            -
                  "default": "Enter details about what happened",
         
     | 
| 
       214 
     | 
    
         
            -
                  "maxword": "Keep to the {{maxword}} word limit"
         
     | 
| 
      
 218 
     | 
    
         
            +
                  "maxlength": "Keep to the 5000 character limit"
         
     | 
| 
       215 
219 
     | 
    
         
             
                },
         
     | 
| 
       216 
220 
     | 
    
         
             
                "appealStages": {
         
     | 
| 
       217 
221 
     | 
    
         
             
                  "required": "Select an appeal stage from the list"
         
     | 
| 
         @@ -18,7 +18,7 @@ 
     | 
|
| 
       18 
18 
     | 
    
         
             
                "label": "Full name"
         
     | 
| 
       19 
19 
     | 
    
         
             
              },
         
     | 
| 
       20 
20 
     | 
    
         
             
              "dateOfBirth": {
         
     | 
| 
       21 
     | 
    
         
            -
                "legend": " 
     | 
| 
      
 21 
     | 
    
         
            +
                "legend": "What is your date of birth?",
         
     | 
| 
       22 
22 
     | 
    
         
             
                "hint": "For example, 31 10 1990"
         
     | 
| 
       23 
23 
     | 
    
         
             
              },
         
     | 
| 
       24 
24 
     | 
    
         
             
              "building": {
         
     | 
| 
         @@ -29,8 +29,8 @@ 
     | 
|
| 
       29 
29 
     | 
    
         
             
              },
         
     | 
| 
       30 
30 
     | 
    
         
             
              "townOrCity": {
         
     | 
| 
       31 
31 
     | 
    
         
             
                "label": "Town or city"
         
     | 
| 
       32 
     | 
    
         
            -
               },
         
     | 
| 
       33 
     | 
    
         
            -
              "postcode": {
         
     | 
| 
      
 32 
     | 
    
         
            +
               }, 
         
     | 
| 
      
 33 
     | 
    
         
            +
              "postcode": { 
         
     | 
| 
       34 
34 
     | 
    
         
             
                "label": "Postcode"
         
     | 
| 
       35 
35 
     | 
    
         
             
              },
         
     | 
| 
       36 
36 
     | 
    
         
             
              "incomeTypes" : {
         
     | 
| 
         @@ -66,8 +66,8 @@ 
     | 
|
| 
       66 
66 
     | 
    
         
             
                  },
         
     | 
| 
       67 
67 
     | 
    
         
             
                  "northernIreland": {
         
     | 
| 
       68 
68 
     | 
    
         
             
                    "label": "Northern Ireland"
         
     | 
| 
       69 
     | 
    
         
            -
                  }
         
     | 
| 
       70 
     | 
    
         
            -
                }
         
     | 
| 
      
 69 
     | 
    
         
            +
                  } 
         
     | 
| 
      
 70 
     | 
    
         
            +
                } 
         
     | 
| 
       71 
71 
     | 
    
         
             
              },
         
     | 
| 
       72 
72 
     | 
    
         
             
              "email" : {
         
     | 
| 
       73 
73 
     | 
    
         
             
                "label": "Email address"
         
     | 
| 
         @@ -50,7 +50,7 @@ 
     | 
|
| 
       50 
50 
     | 
    
         
             
              },
         
     | 
| 
       51 
51 
     | 
    
         
             
              "confirmation": {
         
     | 
| 
       52 
52 
     | 
    
         
             
                "title": "Application sent",
         
     | 
| 
       53 
     | 
    
         
            -
                "alert": "Application sent",
         
     | 
| 
      
 53 
     | 
    
         
            +
                "alert": "Application sent", 
         
     | 
| 
       54 
54 
     | 
    
         
             
                "subheader": "What happens next",
         
     | 
| 
       55 
55 
     | 
    
         
             
                "content": "We’ll contact you with the decision of your application or if we need more information from you."
         
     | 
| 
       56 
56 
     | 
    
         
             
              }
         
     | 
    
        package/sandbox/config.js
    CHANGED
    
    | 
         @@ -2,7 +2,6 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            /* eslint no-process-env: 0 */
         
     | 
| 
       4 
4 
     | 
    
         
             
            module.exports = {
         
     | 
| 
       5 
     | 
    
         
            -
              port: 8082,
         
     | 
| 
       6 
5 
     | 
    
         
             
              email: {
         
     | 
| 
       7 
6 
     | 
    
         
             
                caseworker: process.env.CASEWORKER_EMAIL || '',
         
     | 
| 
       8 
7 
     | 
    
         
             
                from: process.env.FROM_ADDRESS || '',
         
     | 
| 
         @@ -13,6 +12,6 @@ module.exports = { 
     | 
|
| 
       13 
12 
     | 
    
         
             
                region: process.env.EMAIL_REGION || ''
         
     | 
| 
       14 
13 
     | 
    
         
             
              },
         
     | 
| 
       15 
14 
     | 
    
         
             
              hosts: {
         
     | 
| 
       16 
     | 
    
         
            -
                acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT ||  
     | 
| 
      
 15 
     | 
    
         
            +
                acceptanceTests: process.env.ACCEPTANCE_HOST_NAME || `http://localhost:${process.env.PORT || 8080}`
         
     | 
| 
       17 
16 
     | 
    
         
             
              }
         
     | 
| 
       18 
17 
     | 
    
         
             
            };
         
     |