hof 20.0.0-beta.9 → 21.0.0-instrumentation-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
  2. package/.nyc_output/processinfo/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/components/date/index.js +1 -3
  5. package/components/date/templates/date.html +12 -15
  6. package/components/index.js +1 -0
  7. package/components/notify/index.js +60 -0
  8. package/components/notify/notify.js +25 -0
  9. package/config/sanitisation-rules.js +20 -17
  10. package/controller/base-controller.js +5 -3
  11. package/controller/controller.js +0 -39
  12. package/frontend/govuk-template/build/config.js +2 -2
  13. package/frontend/govuk-template/build/index.js +2 -2
  14. package/frontend/govuk-template/govuk_template.html +109 -0
  15. package/frontend/govuk-template/index.js +4 -4
  16. package/frontend/template-mixins/mixins/template-mixins.js +9 -20
  17. package/frontend/template-mixins/partials/forms/checkbox.html +4 -4
  18. package/frontend/template-mixins/partials/forms/input-submit.html +1 -1
  19. package/frontend/template-mixins/partials/forms/input-text-group.html +9 -12
  20. package/frontend/template-mixins/partials/forms/option-group.html +26 -33
  21. package/frontend/template-mixins/partials/forms/select.html +5 -10
  22. package/frontend/template-mixins/partials/forms/textarea-group.html +6 -15
  23. package/frontend/template-mixins/partials/mixins/panel.html +4 -3
  24. package/frontend/template-partials/views/accessibility.html +4 -4
  25. package/frontend/template-partials/views/cookies.html +1 -1
  26. package/frontend/template-partials/views/layout.html +22 -22
  27. package/frontend/template-partials/views/partials/back.html +1 -1
  28. package/frontend/template-partials/views/partials/bullet-list.html +1 -1
  29. package/frontend/template-partials/views/partials/confirmation-alert.html +3 -4
  30. package/frontend/template-partials/views/partials/continue.html +1 -1
  31. package/frontend/template-partials/views/partials/cookie-banner.html +24 -27
  32. package/frontend/template-partials/views/partials/cookie-settings-radio.html +6 -6
  33. package/frontend/template-partials/views/partials/external-link.html +1 -1
  34. package/frontend/template-partials/views/partials/form.html +1 -1
  35. package/frontend/template-partials/views/partials/maincontent-left.html +4 -4
  36. package/frontend/template-partials/views/partials/navigation.html +6 -7
  37. package/frontend/template-partials/views/partials/session-cookies-table.html +6 -6
  38. package/frontend/template-partials/views/partials/table.html +7 -7
  39. package/frontend/template-partials/views/partials/validation-list.html +2 -2
  40. package/frontend/template-partials/views/partials/validation-summary.html +13 -14
  41. package/frontend/template-partials/views/session-timeout.html +1 -1
  42. package/frontend/themes/gov-uk/client-js/cookieSettings.js +1 -1
  43. package/frontend/themes/gov-uk/client-js/index.js +1 -6
  44. package/frontend/themes/gov-uk/styles/_cookie-banner.scss +1 -51
  45. package/frontend/themes/gov-uk/styles/modules/_validation.scss +3 -3
  46. package/frontend/themes/gov-uk/views/partials/form.html +9 -0
  47. package/frontend/themes/gov-uk/views/partials/forms/option-group.html +28 -0
  48. package/frontend/themes/gov-uk/views/partials/mixins/panel.html +3 -0
  49. package/frontend/themes/gov-uk/views/partials/validation-summary.html +24 -0
  50. package/frontend/toolkit/assets/javascript/character-count.js +4 -4
  51. package/frontend/toolkit/assets/javascript/form-focus.js +10 -1
  52. package/frontend/toolkit/assets/javascript/validation.js +6 -1
  53. package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +3 -3
  54. package/index.js +1 -6
  55. package/lib/settings.js +2 -18
  56. package/middleware/errors.js +3 -0
  57. package/middleware/monitor.js +20 -0
  58. package/middleware/not-found.js +3 -0
  59. package/middleware/rate-limiter.js +0 -1
  60. package/package.json +5 -4
  61. package/sandbox/apps/sandbox/fields.js +11 -23
  62. package/sandbox/apps/sandbox/index.js +1 -5
  63. package/sandbox/apps/sandbox/translations/src/en/fields.json +6 -9
  64. package/sandbox/apps/sandbox/translations/src/en/journey.json +1 -4
  65. package/sandbox/apps/sandbox/translations/src/en/pages.json +29 -2
  66. package/sandbox/apps/sandbox/translations/src/en/validation.json +1 -1
  67. package/sandbox/apps/sandbox/views/confirmation.html +15 -0
  68. package/sandbox/assets/js/index.js +1 -1
  69. package/sandbox/assets/scss/app.scss +16 -68
  70. package/sandbox/package.json +1 -4
  71. package/sandbox/yarn.lock +0 -767
  72. package/wizard/index.js +13 -0
  73. package/.nyc_output/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  74. package/.nyc_output/processinfo/e2fdc3eb-4fd2-47e0-a392-fe5f665776a4.json +0 -1
  75. package/.vscode/settings.json +0 -6
  76. package/frontend/govuk-template/build/govuk_template.html +0 -104
  77. package/frontend/govuk-template/govuk_template_generated.html +0 -104
  78. package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -38
  79. package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
  80. package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
  81. package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
  82. package/sandbox/.env +0 -1
  83. package/sandbox/apps/sandbox/translations/en/default.json +0 -203
  84. package/sandbox/public/css/app.css +0 -9439
  85. package/sandbox/public/images/icons/icon-caret-left.png +0 -0
  86. package/sandbox/public/images/icons/icon-complete.png +0 -0
  87. package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
  88. package/sandbox/public/js/bundle.js +0 -35644
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":46392,"argv":["/usr/local/bin/node","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/mohameduwais/UKHomeOffice/instrumentation/hof","time":1661337293068,"ppid":46390,"coverageFilename":"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/.nyc_output/4d5a4574-78fc-4fcb-9412-3658f6ce33ff.json","externalId":"","uuid":"4d5a4574-78fc-4fcb-9412-3658f6ce33ff","files":["/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/default-model.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/clear-session/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/fields.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/email-service.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/emailer.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/smtp.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/ses.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/stub.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/debug.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/notify.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/summary/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/rate-limits.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/rate-limiter.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/hof-defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/base-controller.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/validators.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/email.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation-error.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/inputs.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/test-data/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/countries.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/helpers/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/reqres/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/sanitisation-rules.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/formatters.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-session.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-hooks.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/controller.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/render.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/config.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/translations/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/gov-uk/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/validation.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/cookies.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/errors.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/monitor.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/not-found.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/deep-translate.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/markdown.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/router.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/complete.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/constants.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/health.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/serve-static.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/ga-tag.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/sessions.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/settings.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/logger.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/build/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/builder-defaults.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/compile.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/build.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/expand-dirs.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/aggregate.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/write-files.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/index.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/html-to-pdf-converter.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/model.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/back-links.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/helpers.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-complete.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-progress.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-session.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/csrf.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/fields.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/helpers/utilities.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/encryption.js","/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/session.js"]}
@@ -1 +1 @@
1
- {"processes":{"e2fdc3eb-4fd2-47e0-a392-fe5f665776a4":{"parent":null,"children":[]}},"files":{"/Users/sulthan/development/HO/hof/model/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/default-model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/address-lookup/defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/clear-session/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/date/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/date/fields.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/email-service.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/emailer.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/smtp.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/ses.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/stub.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/emailer/transports/debug.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/components/summary/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/rate-limits.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/rate-limiter.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/hof-defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/base-controller.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/formatting/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/validators.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation/email.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/validation-error.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/autofill/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/autofill/inputs.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/test-data/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/countries.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/helpers/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/utilities/reqres/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/sanitisation-rules.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/formatting/formatters.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/behaviour-session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/behaviour-hooks.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/controller/controller.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/country-select.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/template-mixins.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/render.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-mixins/mixins/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/govuk-template/build/config.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-partials/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/template-partials/translations/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/themes/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/themes/gov-uk/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/form-focus.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/validation.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/frontend/toolkit/assets/javascript/character-count.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/cookies.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/errors.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/not-found.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/middleware/deep-translate.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/markdown.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/router.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/behaviours/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/behaviours/complete.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/util/constants.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/health.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/serve-static.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/ga-tag.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/sessions.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/settings.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/logger.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/build/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/config/builder-defaults.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/compile.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/build.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/expand-dirs.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/aggregate.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/transpiler/lib/write-files.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/model/apis/index.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/model/apis/html-to-pdf-converter.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/back-links.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/util/helpers.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-complete.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-progress.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/check-session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/csrf.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/fields.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/test/helpers/utilities.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/sandbox/apps/sandbox/behaviours/international-number.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/lib/encryption.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/session.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"],"/Users/sulthan/development/HO/hof/wizard/middleware/session-model.js":["e2fdc3eb-4fd2-47e0-a392-fe5f665776a4"]},"externalIds":{}}
1
+ {"processes":{"4d5a4574-78fc-4fcb-9412-3658f6ce33ff":{"parent":null,"children":[]}},"files":{"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/default-model.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/address-lookup/defaults.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/clear-session/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/date/fields.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/email-service.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/emailer.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/smtp.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/ses.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/stub.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/emailer/transports/debug.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/notify/notify.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/components/summary/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/rate-limits.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/rate-limiter.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/hof-defaults.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/base-controller.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/validators.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation/email.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/validation-error.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/autofill/inputs.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/test-data/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/countries.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/helpers/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/utilities/reqres/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/sanitisation-rules.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/formatting/formatters.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-session.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/behaviour-hooks.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/controller/controller.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/country-select.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/template-mixins.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/render.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-mixins/mixins/helpers.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/govuk-template/build/config.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/template-partials/translations/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/themes/gov-uk/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/helpers.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/form-focus.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/validation.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/frontend/toolkit/assets/javascript/character-count.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/cookies.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/errors.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/monitor.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/not-found.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/middleware/deep-translate.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/markdown.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/router.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/behaviours/complete.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/constants.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/helpers.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/health.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/serve-static.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/ga-tag.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/sessions.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/settings.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/logger.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/build/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/config/builder-defaults.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/compile.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/build.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/expand-dirs.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/aggregate.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/transpiler/lib/write-files.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/index.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/model/apis/html-to-pdf-converter.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/model.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/back-links.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/util/helpers.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-complete.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-progress.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/check-session.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/csrf.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/fields.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/test/helpers/utilities.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/sandbox/apps/sandbox/behaviours/international-number.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/lib/encryption.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"],"/Users/mohameduwais/UKHomeOffice/instrumentation/hof/wizard/middleware/session.js":["4d5a4574-78fc-4fcb-9412-3658f6ce33ff"]},"externalIds":{}}
@@ -40,7 +40,6 @@ const conditionalTranslate = (key, translate) => {
40
40
  };
41
41
 
42
42
  const getLegendClassName = field => field && field.legend && field.legend.className || '';
43
- const getIsPageHeading = field => field && field.isPageHeading || '';
44
43
 
45
44
  module.exports = (key, opts) => {
46
45
  if (!key) {
@@ -145,9 +144,8 @@ module.exports = (key, opts) => {
145
144
  const legend = conditionalTranslate(`fields.${key}.legend`, req.translate);
146
145
  const hint = conditionalTranslate(`fields.${key}.hint`, req.translate);
147
146
  const legendClassName = getLegendClassName(options);
148
- const isPageHeading = getIsPageHeading(options);
149
147
  const error = req.form.errors && req.form.errors[key];
150
- res.render(template, { key, legend, legendClassName, isPageHeading, hint, error }, (err, html) => {
148
+ res.render(template, { key, legend, legendClassName, hint, error }, (err, html) => {
151
149
  if (err) {
152
150
  next(err);
153
151
  } else {
@@ -1,20 +1,17 @@
1
- <div class="govuk-form-group {{#error}}govuk-form-group--error{{/error}}">
2
- <fieldset id="{{key}}-group" class="govuk-fieldset{{#className}} {{className}}{{/className}}" role="group">
3
- <legend class="govuk-fieldset__legend {{#isPageHeading}}govuk-fieldset__legend--l{{/isPageHeading}}{{#legendClassName}} {{legendClassName}}{{/legendClassName}}">
4
- {{#isPageHeading}}<h1 class="govuk-fieldset__heading">{{/isPageHeading}}
5
- {{legend}}
6
- {{#isPageHeading}}</h1>{{/isPageHeading}}
7
- </legend>
8
- {{#hint}}
9
- <span id="{{key}}-hint" class="govuk-hint">{{hint}}</span>
10
- {{/hint}}
1
+ <fieldset id="{{key}}-group" class="{{#className}}{{className}}{{/className}} {{#error}}validation-error{{/error}}">
2
+ <legend>
11
3
  {{#error}}
12
- <p id="{{key}}-error" class="govuk-error-message">
13
- <span class="govuk-visually-hidden">Error:</span> {{error.message}}
14
- </p>
4
+ <span id="{{key}}-error" class="error-message">{{error.message}}</span>
15
5
  {{/error}}
16
- <div class="govuk-date-input">
6
+ <span{{#legendClassName}} class="{{legendClassName}}"{{/legendClassName}}>{{legend}}</span>
7
+ {{#hint}}
8
+ <span id="{{key}}-hint" class="form-hint">{{hint}}</span>
9
+ {{/hint}}
10
+ </legend>
11
+
12
+ <input type="hidden" name="{{key}}" />
13
+
14
+ <div class="form-group form-date">
17
15
  {{#input-date}}{{key}}{{/input-date}}
18
16
  </div>
19
17
  </fieldset>
20
- </div>
@@ -5,5 +5,6 @@ module.exports = {
5
5
  clearSession: require('./clear-session'),
6
6
  date: require('./date'),
7
7
  emailer: require('./emailer'),
8
+ notify: require('./notify'),
8
9
  summary: require('./summary')
9
10
  };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ const Notify = require('./notify');
4
+ const Hogan = require('hogan.js');
5
+ const fs = require('fs');
6
+
7
+ module.exports = config => {
8
+ const notify = new Notify(config);
9
+ config.parse = config.parse || (data => data);
10
+
11
+ if (!config.recipient) {
12
+ throw new Error('Email recipient must be defined');
13
+ }
14
+ if (typeof config.template !== 'string') {
15
+ throw new Error('Email template must be defined');
16
+ }
17
+
18
+ return superclass => class NotifyBehaviour extends superclass {
19
+ successHandler(req, res, next) {
20
+ Promise.resolve()
21
+ .then(() => {
22
+ return new Promise((resolve, reject) => {
23
+ fs.readFile(config.template, (err, template) => err ? reject(err) : resolve(template.toString('utf8')));
24
+ });
25
+ })
26
+ .then(template => {
27
+ const data = config.parse(req.sessionModel.toJSON(), req.translate);
28
+ return Hogan.compile(template).render(data);
29
+ })
30
+ .then(body => {
31
+ const settings = { body };
32
+
33
+ if (typeof config.recipient === 'function') {
34
+ settings.recipient = config.recipient(req.sessionModel.toJSON());
35
+ } else {
36
+ settings.recipient = req.sessionModel.get(config.recipient) || config.recipient;
37
+ }
38
+ if (typeof settings.recipient !== 'string' || !settings.recipient.includes('@')) {
39
+ throw new Error('hof-behaviour-emailer: invalid recipient');
40
+ }
41
+
42
+ if (typeof config.subject === 'function') {
43
+ settings.subject = config.subject(req.sessionModel.toJSON(), req.translate);
44
+ } else {
45
+ settings.subject = config.subject;
46
+ }
47
+
48
+ return settings;
49
+ })
50
+ .then(settings => {
51
+ return notify.send(settings);
52
+ })
53
+ .then(() => {
54
+ super.successHandler(req, res, next);
55
+ }, next);
56
+ }
57
+ };
58
+ };
59
+
60
+ module.exports.Notify = Notify;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+ const NotifyClient = require('notifications-node-client').NotifyClient;
3
+ const uuid = require('uuid');
4
+
5
+ module.exports = class Notify {
6
+ constructor(opts) {
7
+ const options = opts || {};
8
+ this.options = options;
9
+ this.notifyClient = new NotifyClient(options.notifyApiKey);
10
+ this.notifyTemplate = options.notifyTemplate;
11
+ }
12
+
13
+ send(email) {
14
+ const reference = uuid.v1();
15
+
16
+ return this.notifyClient.sendEmail(this.notifyTemplate, email.recipient, {
17
+ personalisation: {
18
+ 'email-subject': email.subject,
19
+ 'email-body': email.body
20
+ },
21
+ reference });
22
+ }
23
+ };
24
+
25
+ module.exports.NotifyClient = NotifyClient;
@@ -3,27 +3,30 @@
3
3
 
4
4
  const sanitisationBlacklistArray = {
5
5
  // Input will be sanitised using the below rules
6
+ // Each one is an array which will run sequentially
7
+ // Some have multiple steps which allow us to remove dups then append the suffix
8
+ // Useful for ensuring we're not re-sanitising the same input multiple times (and appending extra hypens each time)
6
9
  // The key is what we're sanitising out
7
10
  // The regex is the rule we used to find them (note some dictate repeating characters)
8
11
  // And the replace is what we're replacing that pattern with. Usually nothing sometimes a
9
12
  // single character or sometimes a single character followed by a "-"
10
- '/*': { regex: '\/\\*', replace: '-' },
11
- '*/': { regex: '\\*\\/', replace: '-' },
12
- '|': { regex: '\\|', replace: '-' },
13
- '&&': { regex: '&&+', replace: '&' },
14
- '@@': { regex: '@@+', replace: '@' },
15
- '/..;/': { regex: '/\\.\\.;/', replace: '-' }, // Purposely input before ".." as they conflict
16
- // '..': { regex: '\\.\\.+', replace: '.' }, // Agreed to disable this rule for now unless its specifically required
17
- '/etc/passwd': { regex: '\/etc\/passwd', replace: '-' },
18
- 'c:\\': { regex: 'c:\\\\', replace: '-' },
19
- 'cmd.exe': { regex: 'cmd\\.exe', replace: '-' },
20
- '<': { regex: '<', replace: '<-' },
21
- '>': { regex: '>', replace: '>-' },
22
- '[': { regex: '\\[+', replace: '[-' },
23
- ']': { regex: '\\]+', replace: ']-' },
24
- '~': { regex: '~', replace: '~-' },
25
- '&#': { regex: '&#', replace: '-' },
26
- '%U': { regex: '%U', replace: '-' }
13
+ '/*': [{ regex: '\/\\*', replace: '-' }],
14
+ '*/': [{ regex: '\\*\\/', replace: '-' }],
15
+ '|': [{ regex: '\\|', replace: '-' }],
16
+ '&&': [{ regex: '&&+', replace: '&' }],
17
+ '@@': [{ regex: '@@+', replace: '@' }],
18
+ '/..;/': [{ regex: '/\\.\\.;/', replace: '-' }], // Purposely input before ".." as they conflict
19
+ // '..': [{ regex: '\\.\\.+', replace: '.' }], // Agreed to disable this rule for now unless its specifically required
20
+ '/etc/passwd': [{ regex: '\/etc\/passwd', replace: '-' }],
21
+ 'c:\\': [{ regex: 'c:\\\\', replace: '-' }],
22
+ 'cmd.exe': [{ regex: 'cmd\\.exe', replace: '-' }],
23
+ '<': [{ regex: '<+', replace: '<' }, { regex: '<(?!-)', replace: '<-' }],
24
+ '>': [{ regex: '>+', replace: '>' }, { regex: '>(?!-)', replace: '>-' }],
25
+ '[': [{ regex: '\\[+', replace: '[' }, { regex: '\\[(?!-)', replace: '[-' }],
26
+ ']': [{ regex: '\\]+', replace: ']-' }, { regex: '\\](?!-)', replace: ']-' }],
27
+ '~': [{ regex: '~+', replace: '~' }, { regex: '~(?!-)', replace: '~-' }],
28
+ '&#': [{ regex: '&#', replace: '-' }],
29
+ '%U': [{ regex: '%U', replace: '-' }]
27
30
  };
28
31
 
29
32
  module.exports = sanitisationBlacklistArray;
@@ -177,9 +177,11 @@ module.exports = class BaseController extends EventEmitter {
177
177
  // For each property in our form data
178
178
  Object.keys(sanitisationBlacklistArray).forEach(function (blacklisted, blacklistedIndex) {
179
179
  const blacklistedDetail = sanitisationBlacklistArray[blacklisted];
180
- const regexQuery = new RegExp(blacklistedDetail.regex, 'gi');
181
- // Will perform the required replace based on our passed in regex and the replace string
182
- req.form.values[property] = req.form.values[property].replace(regexQuery, blacklistedDetail.replace);
180
+ blacklistedDetail.forEach(step => {
181
+ const regexQuery = new RegExp(step.regex, 'gi');
182
+ // Will perform the required replace based on our passed in regex and the replace string
183
+ req.form.values[property] = req.form.values[property].replace(regexQuery, step.replace);
184
+ });
183
185
  });
184
186
  }
185
187
  });
@@ -111,11 +111,7 @@ module.exports = class Controller extends BaseController {
111
111
  fields,
112
112
  route,
113
113
  baseUrl: req.baseUrl,
114
- skipToMain: this.getFirstFormItem(req.form.options.fields),
115
114
  title: this.getTitle(route, lookup, req.form.options.fields, res.locals),
116
- header: this.getHeader(route, lookup, res.locals),
117
- captionHeading: this.getCaptionHeading(route, lookup, res.locals),
118
- subHeading: this.getSubHeading(route, lookup, res.locals),
119
115
  intro: this.getIntro(route, lookup, res.locals),
120
116
  backLink: this.getBackLink(req, res),
121
117
  nextPage: this.getNextStep(req, res),
@@ -123,26 +119,6 @@ module.exports = class Controller extends BaseController {
123
119
  }, stepLocals);
124
120
  }
125
121
 
126
- getFirstFormItem(fields) {
127
- let firstFieldKey;
128
- if (_.size(fields)) {
129
- firstFieldKey = Object.keys(fields)[0];
130
- }
131
- return firstFieldKey | 'main-content';
132
- }
133
-
134
- getHeader(route, lookup, locals) {
135
- return lookup(`pages.${route}.header`, locals);
136
- }
137
-
138
- getCaptionHeading(route, lookup, locals) {
139
- return lookup(`pages.${route}.captionHeading`, locals);
140
- }
141
-
142
- getSubHeading(route, lookup, locals) {
143
- return lookup(`pages.${route}.subHeading`, locals);
144
- }
145
-
146
122
  getTitle(route, lookup, fields, locals) {
147
123
  let fieldName = '';
148
124
  if (_.size(fields)) {
@@ -164,21 +140,6 @@ module.exports = class Controller extends BaseController {
164
140
  _getErrors(req, res, callback) {
165
141
  super._getErrors(req, res, () => {
166
142
  Object.keys(req.form.errors).forEach(key => {
167
- if (req.form && req.form.options && req.form.options.fields) {
168
- const field = req.form.options.fields[key];
169
- // get first option for radios
170
- if (field.mixin === 'radio-group') {
171
- req.form.errors[key].errorLinkId = key + '-' + field.options[0];
172
- // eslint-disable-next-line brace-style
173
- }
174
- // get first field for date input control
175
- else if (field && field.controlType === 'date-input') {
176
- req.form.errors[key].errorLinkId = key + '-day';
177
- } else {
178
- req.form.errors[key].errorLinkId = key;
179
- }
180
- }
181
-
182
143
  req.form.errors[key].message = this.getErrorMessage(req.form.errors[key], req, res);
183
144
  });
184
145
  callback();
@@ -5,7 +5,6 @@ module.exports = {
5
5
  assetPath: '{{govukAssetPath}}',
6
6
  afterHeader: '{{$afterHeader}}{{/afterHeader}}',
7
7
  bodyClasses: '{{$bodyClasses}}{{/bodyClasses}}',
8
- bodyStart: '{{$bodyStart}}{{/bodyStart}}',
9
8
  bodyEnd: '{{$bodyEnd}}{{/bodyEnd}}',
10
9
  content: '{{$main}}{{/main}}',
11
10
  cookieMessage: '{{$cookieMessage}}{{/cookieMessage}}',
@@ -18,7 +17,8 @@ module.exports = {
18
17
  insideHeader: '{{$insideHeader}}{{/insideHeader}}',
19
18
  pageTitle: '{{$pageTitle}}{{/pageTitle}}',
20
19
  propositionHeader: '{{$propositionHeader}}{{/propositionHeader}}',
20
+ skipLinkMessage: '{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}',
21
21
  globalHeaderText: '{{$globalHeaderText}}GOV.UK{{/globalHeaderText}}',
22
- licenceMessage: '{{$licenceMessage}}All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" id="open-government-licence" class="govuk-footer__link" target="_blank" rel="license">Open Government Licence v3.0</a>, except where otherwise stated{{/licenceMessage}}',
22
+ licenceMessage: '{{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}',
23
23
  crownCopyrightMessage: '{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}'
24
24
  };
@@ -12,12 +12,12 @@ function addNonceValueAttributeToInlineScripts(compiledTemplateString) {
12
12
  }
13
13
 
14
14
  module.exports = () => {
15
- const template = require.resolve('./govuk_template.html');
15
+ const template = require.resolve('govuk_template_mustache/views/layouts/govuk_template.html');
16
16
 
17
17
  const govukTemplate = fs.readFileSync(template, { encoding: 'utf-8' });
18
18
  const compiledTemplate = Hogan.compile(govukTemplate).render(govukConfig);
19
19
  const parsedTemplate = addNonceValueAttributeToInlineScripts(compiledTemplate);
20
- const output = path.resolve(__dirname, '../govuk_template_generated.html');
20
+ const output = path.resolve(__dirname, '../govuk_template.html');
21
21
 
22
22
  fs.writeFileSync(output, parsedTemplate, { encoding: 'utf-8' });
23
23
  };
@@ -0,0 +1,109 @@
1
+
2
+ <!DOCTYPE html>
3
+ <!--[if lt IE 9]><html class="lte-ie8" lang="{{htmlLang}}"><![endif]-->
4
+ <!--[if gt IE 8]><!--><html lang="{{htmlLang}}"><!--<![endif]-->
5
+ <head>
6
+ <meta charset="utf-8" />
7
+ <title>{{$pageTitle}}{{/pageTitle}}</title>
8
+
9
+ <!--[if gt IE 8]><!--><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template.css?0.26.0"/><!--<![endif]-->
10
+ <!--[if IE 6]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie6.css?0.26.0"/><![endif]-->
11
+ <!--[if IE 7]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie7.css?0.26.0"/><![endif]-->
12
+ <!--[if IE 8]><link rel="stylesheet" media="screen" href="{{govukAssetPath}}stylesheets/govuk-template-ie8.css?0.26.0"/><![endif]-->
13
+ <link rel="stylesheet" media="print" href="{{govukAssetPath}}stylesheets/govuk-template-print.css?0.26.0"/>
14
+
15
+ <link rel="stylesheet" media="all" href="{{govukAssetPath}}stylesheets/fonts.css?0.26.0"/>
16
+ <!--[if lt IE 9]><script src="{{govukAssetPath}}javascripts/ie.js?0.26.0"></script><![endif]-->
17
+
18
+ <link rel="shortcut icon" href="{{govukAssetPath}}images/favicon.ico?0.26.0" type="image/x-icon" />
19
+
20
+ <link rel="mask-icon" href="{{govukAssetPath}}images/gov.uk_logotype_crown.svg?0.26.0" color="#0b0c0c">
21
+ <link rel="apple-touch-icon" sizes="180x180" href="{{govukAssetPath}}images/apple-touch-icon-180x180.png?0.26.0">
22
+ <link rel="apple-touch-icon" sizes="167x167" href="{{govukAssetPath}}images/apple-touch-icon-167x167.png?0.26.0">
23
+ <link rel="apple-touch-icon" sizes="152x152" href="{{govukAssetPath}}images/apple-touch-icon-152x152.png?0.26.0">
24
+ <link rel="apple-touch-icon" href="{{govukAssetPath}}images/apple-touch-icon.png?0.26.0">
25
+
26
+
27
+ <meta name="theme-color" content="#0b0c0c" />
28
+
29
+ <meta name="viewport" content="width=device-width, initial-scale=1">
30
+
31
+ {{$head}}{{/head}}
32
+
33
+
34
+ <meta property="og:image" content="{{govukAssetPath}}images/opengraph-image.png?0.26.0">
35
+ </head>
36
+
37
+ <body class="{{$bodyClasses}}{{/bodyClasses}}">
38
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
39
+
40
+
41
+
42
+ <div id="skiplink-container">
43
+ <div>
44
+ <a href="#content" class="skiplink">{{$skipLinkMessage}}Skip to main content{{/skipLinkMessage}}</a>
45
+ </div>
46
+ </div>
47
+
48
+ <div id="global-cookie-message">
49
+
50
+ {{$cookieMessage}}{{/cookieMessage}}
51
+
52
+ </div>
53
+
54
+
55
+ <header role="banner" id="global-header" class="{{$headerClass}}{{/headerClass}}">
56
+ <div class="header-wrapper">
57
+ <div class="header-global">
58
+ <div class="header-logo">
59
+ <a href="{{$homepageUrl}}https://www.gov.uk{{/homepageUrl}}" title="{{$logoLinkTitle}}Go to the GOV.UK homepage{{/logoLinkTitle}}" id="logo" class="content" data-module="track-click" data-track-category="homeLinkClicked" data-track-action="homeHeader">
60
+ <img src="{{govukAssetPath}}images/gov.uk_logotype_crown_invert_trans.png?0.26.0" width="36" height="32" alt=""> {{$globalHeaderText}}GOV.UK{{/globalHeaderText}}
61
+ </a>
62
+ </div>
63
+ {{$insideHeader}}{{/insideHeader}}
64
+ </div>
65
+ {{$propositionHeader}}{{/propositionHeader}}
66
+ </div>
67
+ </header>
68
+
69
+
70
+ {{$afterHeader}}{{/afterHeader}}
71
+
72
+ <div id="global-header-bar"></div>
73
+
74
+ {{$main}}{{/main}}
75
+
76
+ <footer class="group js-footer" id="footer" role="contentinfo">
77
+
78
+ <div class="footer-wrapper">
79
+ {{$footerTop}}{{/footerTop}}
80
+
81
+ <div class="footer-meta">
82
+ <div class="footer-meta-inner">
83
+ {{$footerSupportLinks}}{{/footerSupportLinks}}
84
+
85
+ <div class="open-government-licence">
86
+ <p class="logo"><a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a></p>
87
+
88
+ {{$licenceMessage}}<p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>{{/licenceMessage}}
89
+
90
+ </div>
91
+ </div>
92
+
93
+ <div class="copyright">
94
+ <a href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">{{$crownCopyrightMessage}}© Crown copyright{{/crownCopyrightMessage}}</a>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </footer>
99
+
100
+ <div id="global-app-error" class="app-error hidden"></div>
101
+
102
+ <script src="{{govukAssetPath}}javascripts/govuk-template.js?0.26.0"></script>
103
+
104
+ {{$bodyEnd}}{{/bodyEnd}}
105
+
106
+
107
+ <script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
108
+ </body>
109
+ </html>
@@ -5,18 +5,18 @@ const servestatic = require('serve-static');
5
5
  const Router = require('express').Router;
6
6
  const buildTemplateLayout = require('./build');
7
7
 
8
- const basedir = path.dirname(require.resolve('govuk-frontend/package.json'));
8
+ const basedir = path.dirname(require.resolve('govuk_template_mustache/package.json'));
9
9
 
10
10
  const setup = (opts, router) => {
11
11
  buildTemplateLayout();
12
12
  const options = opts || {};
13
- options.path = options.path || '/assets';
13
+ options.path = options.path || '/govuk-assets';
14
14
 
15
- router.use(options.path, servestatic(path.join(basedir, './govuk/assets'), options));
15
+ router.use(options.path, servestatic(path.join(basedir, './assets'), options));
16
16
  router.use((req, res, next) => {
17
17
  res.locals.govukAssetPath = req.baseUrl + options.path + '/';
18
18
  res.locals.partials = res.locals.partials || {};
19
- res.locals.partials['govuk-template'] = path.resolve(__dirname, './govuk_template_generated');
19
+ res.locals.partials['govuk-template'] = path.resolve(__dirname, './govuk_template');
20
20
  next();
21
21
  });
22
22