hof 22.0.0-timeout-warning-beta.7 → 22.0.0-timeout-warning-beta.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":50690,"argv":["/Users/user/.nvm/versions/node/v20.9.0/bin/node","/Users/user/Documents/HO/HOF/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/user/Documents/HO/HOF/hof","time":1722526316175,"ppid":50686,"coverageFilename":"/Users/user/Documents/HO/HOF/hof/.nyc_output/d41844f9-ad28-4f7b-a7c8-6bbb74011485.json","externalId":"","uuid":"d41844f9-ad28-4f7b-a7c8-6bbb74011485","files":["/Users/user/Documents/HO/HOF/hof/model/index.js","/Users/user/Documents/HO/HOF/hof/model/apis/axios-settings.js","/Users/user/Documents/HO/HOF/hof/components/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js","/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js","/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js","/Users/user/Documents/HO/HOF/hof/components/date/index.js","/Users/user/Documents/HO/HOF/hof/components/date/fields.js","/Users/user/Documents/HO/HOF/hof/components/emailer/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js","/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js","/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js","/Users/user/Documents/HO/HOF/hof/config/component-defaults.js","/Users/user/Documents/HO/HOF/hof/components/notify/index.js","/Users/user/Documents/HO/HOF/hof/components/notify/notify.js","/Users/user/Documents/HO/HOF/hof/components/summary/index.js","/Users/user/Documents/HO/HOF/hof/config/rate-limits.js","/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js","/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js","/Users/user/Documents/HO/HOF/hof/components/session-timeout-warning/index.js","/Users/user/Documents/HO/HOF/hof/controller/base-controller.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js","/Users/user/Documents/HO/HOF/hof/controller/validation/email.js","/Users/user/Documents/HO/HOF/hof/controller/validation-error.js","/Users/user/Documents/HO/HOF/hof/utilities/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js","/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js","/Users/user/Documents/HO/HOF/hof/utilities/countries.js","/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js","/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js","/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js","/Users/user/Documents/HO/HOF/hof/controller/index.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js","/Users/user/Documents/HO/HOF/hof/controller/controller.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js","/Users/user/Documents/HO/HOF/hof/index.js","/Users/user/Documents/HO/HOF/hof/frontend/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/user/Documents/HO/HOF/hof/middleware/index.js","/Users/user/Documents/HO/HOF/hof/middleware/cookies.js","/Users/user/Documents/HO/HOF/hof/middleware/errors.js","/Users/user/Documents/HO/HOF/hof/middleware/not-found.js","/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js","/Users/user/Documents/HO/HOF/hof/lib/markdown.js","/Users/user/Documents/HO/HOF/hof/lib/router.js","/Users/user/Documents/HO/HOF/hof/wizard/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js","/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js","/Users/user/Documents/HO/HOF/hof/lib/helpers.js","/Users/user/Documents/HO/HOF/hof/lib/health.js","/Users/user/Documents/HO/HOF/hof/lib/serve-static.js","/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js","/Users/user/Documents/HO/HOF/hof/lib/sessions.js","/Users/user/Documents/HO/HOF/hof/lib/settings.js","/Users/user/Documents/HO/HOF/hof/lib/logger.js","/Users/user/Documents/HO/HOF/hof/build/index.js","/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js","/Users/user/Documents/HO/HOF/hof/transpiler/index.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js","/Users/user/Documents/HO/HOF/hof/model/apis/index.js","/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js","/Users/user/Documents/HO/HOF/hof/wizard/model.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js","/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/user/Documents/HO/HOF/hof/lib/encryption.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js"]}
@@ -1 +1 @@
1
- {"processes":{"3971586e-d34a-49de-8cd7-964103fb3317":{"parent":null,"children":[]}},"files":{"/Users/user/Documents/HO/HOF/hof/model/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/model/apis/axios-settings.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/date/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/date/fields.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/config/component-defaults.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/notify/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/notify/notify.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/components/summary/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/config/rate-limits.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/base-controller.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/validation/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/validation/email.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/validation-error.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/countries.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/controller/controller.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/cookies.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/errors.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/not-found.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/markdown.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/router.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/helpers.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/health.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/serve-static.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/sessions.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/settings.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/logger.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/build/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/model/apis/index.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/model.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/lib/encryption.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js":["3971586e-d34a-49de-8cd7-964103fb3317"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["3971586e-d34a-49de-8cd7-964103fb3317"]},"externalIds":{}}
1
+ {"processes":{"d41844f9-ad28-4f7b-a7c8-6bbb74011485":{"parent":null,"children":[]}},"files":{"/Users/user/Documents/HO/HOF/hof/model/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/model/apis/axios-settings.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/date/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/date/fields.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/config/component-defaults.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/notify/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/notify/notify.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/summary/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/config/rate-limits.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/components/session-timeout-warning/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/base-controller.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/validation/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/validation/email.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/validation-error.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/countries.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/controller/controller.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/cookies.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/errors.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/not-found.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/markdown.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/router.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/helpers.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/health.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/serve-static.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/sessions.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/settings.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/logger.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/build/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/model/apis/index.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/model.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/lib/encryption.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["d41844f9-ad28-4f7b-a7c8-6bbb74011485"]},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 2024, Version 22.0.0, @Rhodine-orleans-lindsay
2
2
  * Adds session timeout warning
3
+ - user can stay on page or exit form
4
+ - adds exit html
5
+ - updates confirmation html to a static page
3
6
  * Fixes accessibility issues
4
7
  * Sandbox area for testing hof changes
5
8
  * Updates patch and minor dependency versions
@@ -8,5 +8,6 @@ module.exports = {
8
8
  emailer: require('./emailer'),
9
9
  homeOfficeCountries: require('./homeoffice-countries'),
10
10
  notify: require('./notify'),
11
- summary: require('./summary')
11
+ summary: require('./summary'),
12
+ sessionTimeoutWarning: require('./session-timeout-warning')
12
13
  };
@@ -0,0 +1,25 @@
1
+
2
+ 'use strict';
3
+ const config = require('../../config/hof-defaults');
4
+
5
+ module.exports = superclass => class extends superclass {
6
+ configure(req, res, next) {
7
+ // reset the session if user chooses to exit on session timeout warning
8
+ if (req.form.options.route === '/exit') {
9
+ req.sessionModel.reset();
10
+ }
11
+ return super.configure(req, res, next);
12
+ }
13
+
14
+ locals(req, res) {
15
+ // set the default session dialog message
16
+ const superLocals = super.locals(req, res);
17
+ if (config.sessionTimeoutWarningContent === true) {
18
+ superLocals.dialogTitle = true;
19
+ superLocals.dialogText = true;
20
+ superLocals.timeoutContinueButton = true;
21
+ superLocals.dialogExitLink = true;
22
+ }
23
+ return superLocals;
24
+ }
25
+ };
@@ -14,6 +14,8 @@ const defaults = {
14
14
  getCookies: true,
15
15
  getTerms: true,
16
16
  getAccessibility: false,
17
+ sessionTimeoutWarningContent: true,
18
+ getExit: true,
17
19
  viewEngine: 'html',
18
20
  protocol: process.env.PROTOCOL || 'http',
19
21
  noCache: process.env.NO_CACHE || false,
@@ -0,0 +1,5 @@
1
+ {
2
+ "header": "You have left this form",
3
+ "title": "You have left this form",
4
+ "message": "We have cleared your information to keep it secure. Your information has not been saved."
5
+ }
@@ -1,6 +1,19 @@
1
- {{<partials-page}}
2
- {{$page-content}}
1
+ {{<layout}}
2
+ {{$journeyHeader}}
3
+ {{#t}}journey.header{{/t}}
4
+ {{/journeyHeader}}
5
+
6
+ {{$propositionHeader}}
7
+ {{> partials-navigation}}
8
+ {{/propositionHeader}}
9
+
10
+ {{$header}}
11
+ {{header}}
12
+ {{/header}}
13
+
14
+ {{$content}}
3
15
  {{>partials-confirmation-alert}}
4
16
  {{#markdown}}what-happens-next{{/markdown}}
5
- {{/page-content}}
6
- {{/partials-page}}
17
+ {{/content}}
18
+ {{/layout}}
19
+
@@ -0,0 +1,9 @@
1
+ {{<layout}}
2
+ {{$header}}
3
+ {{header}}
4
+ {{/header}}
5
+ {{$content}}
6
+ <h2 class="govuk-heading-m">{{^message}}{{#t}}pages.exit.message{{/t}}{{/message}}{{#message}}{{message}}{{/message}}</h2>
7
+ <a href="/" class="govuk-button" role="button">{{#t}}buttons.start-again{{/t}}</a>
8
+ {{/content}}
9
+ {{/layout}}
@@ -2,16 +2,15 @@
2
2
  data-url-redirect="/session-timeout" class="modal-dialog dialog" role="dialog"
3
3
  aria-live="polite" aria-labelledby="dialog-title" aria-describedby="at-timer">
4
4
  <div class="modal-dialog__inner">
5
- <h2 id="dialog-title" class="govuk-heading-m">
6
- Your page will time out soon
7
- </h2>
8
- <div class="modal-dialog__inner__text">
5
+ <h1 id="dialog-title" class="govuk-heading-l">
6
+ {{#dialogTitle}}Your page will time out soon {{/dialogTitle}}{{^dialogTitle}}{{#t}}pages.session-timeout-warning.dialog-title{{/t}}{{/dialogTitle}}
7
+ </h1>
8
+ <div class="modal-dialog__inner__text govuk-body">
9
9
  <div id="timer" class="timer" aria-hidden="true" aria-relevant="additions"></div>
10
10
  <div id="at-timer" class="at-timer govuk-visually-hidden" role="status"></div>
11
- <p class="dialog-text">If that happens, your progress will not be saved.</p>
12
- </div>
13
- <div class="modal-dialog__inner__block">
14
- <button class="govuk-button dialog-button modal-dialog__inner__button js-dialog-close" id="timeout-continue-button">Stay on this page</button>
11
+ <p class="dialog-text">{{#dialogText}}If that happens, your progress will not be saved.{{/dialogText}}{{^dialogText}}{{#t}}pages.session-timeout-warning.dialog-text{{/t}}{{/dialogText}}</p>
15
12
  </div>
13
+ <button class="govuk-button dialog-button modal-dialog__inner__button js-dialog-close" id="timeout-continue-button" data-module="govuk-button">{{#timeoutContinueButton}}Stay on this page{{/timeoutContinueButton}}{{^timeoutContinueButton}}{{#t}}pages.session-timeout-warning.timeout-continue-button{{/t}}{{/timeoutContinueButton}}</button>
14
+ <a href="/exit" class="govuk-link dialog-exit-link" role="button">{{#dialogExitLink}}Exit this form{{/dialogExitLink}}{{^dialogExitLink}}{{#t}}pages.session-timeout-warning.dialog-exit-link{{/t}}{{/dialogExitLink}}</a>
16
15
  </div>
17
16
  </dialog>
package/index.js CHANGED
@@ -128,6 +128,7 @@ const getContentSecurityPolicy = (config, res) => {
128
128
  * @param options.markdown {object} Optional markdown options
129
129
  * @param options.getTerms {boolean} Optional boolean - whether to mount the /terms endpoint
130
130
  * @param options.getCookies {boolean} Optional boolean - whether to mount the /cookies endpoint
131
+ * @param options.getExit {boolean} Optional boolean - whether to mount the /exit endpoint
131
132
  * @param options.noCache {boolean} Optional boolean - whether to disable caching
132
133
  * @param options.getAccessibilityStatement {boolean} Optional boolean - whether to mount the
133
134
  * /accessibility-statement endpoint
@@ -151,6 +152,7 @@ function bootstrap(options) {
151
152
  // session timeout warning configs
152
153
  res.locals.sessionTimeOut = config.session.ttl;
153
154
  res.locals.sessionTimeOutWarning = config.sessionTimeOutWarning;
155
+ res.locals.sessionTimeoutWarningContent = config.sessionTimeoutWarningContent;
154
156
  next();
155
157
  });
156
158
 
@@ -246,6 +248,17 @@ function bootstrap(options) {
246
248
  res.render('cookies', locals);
247
249
  });
248
250
  }
251
+ // setting default exit page content
252
+ // if (config.getExit === true) {
253
+ // deprecate(
254
+ // '`getExit` option is deprecated and may be removed in future versions.',
255
+ // 'Use `pages` to define static cookies page.'
256
+ // );
257
+ // app.get('/exit', (req, res) => {
258
+ // const locals = Object.assign({}, req.translate('exit'));
259
+ // res.render('exit', locals);
260
+ // });
261
+ // }
249
262
  if (config.getTerms === true) {
250
263
  deprecate(
251
264
  '`getTerms` option is deprecated and may be removed in future versions.',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "22.0.0-timeout-warning-beta.7",
4
+ "version": "22.0.0-timeout-warning-beta.8",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -91,6 +91,7 @@ module.exports = {
91
91
  ],
92
92
  next: '/confirm'
93
93
  },
94
- '/session-timeout': {}
94
+ '/session-timeout': {},
95
+ '/exit': {}
95
96
  }
96
97
  };
@@ -161,6 +161,17 @@
161
161
  "alert": "Application sent",
162
162
  "subheader": "What happens next",
163
163
  "content": "We’ll contact you with the decision of your application or if we need more information from you."
164
+ },
165
+ "exit": {
166
+ "header": "You have left this form",
167
+ "title": "You have left this form",
168
+ "message": "We have cleared your information to keep it secure. Your information has not been saved."
169
+ },
170
+ "session-timeout-warning": {
171
+ "dialog-title": "Your page will time out soon",
172
+ "dialog-text": "If that happens, your progress will not be saved.",
173
+ "timeout-continue-button": "Stay on this page",
174
+ "dialog-exit-link": "Exit this form"
164
175
  }
165
176
  },
166
177
  "validation": {
@@ -50,8 +50,19 @@
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
+ },
57
+ "exit": {
58
+ "header": "You have left this form",
59
+ "title": "You have left this form",
60
+ "message": "We have cleared your information to keep it secure. Your information has not been saved."
61
+ },
62
+ "session-timeout-warning": {
63
+ "dialog-title": "Your page will time out soon",
64
+ "dialog-text": "If that happens, your progress will not be saved.",
65
+ "timeout-continue-button": "Stay on this page",
66
+ "dialog-exit-link": "Exit this form"
56
67
  }
57
68
  }
package/sandbox/server.js CHANGED
@@ -8,6 +8,9 @@ bootstrap({
8
8
  routes: [
9
9
  require('./apps/sandbox')
10
10
  ],
11
+ behaviours: [
12
+ require('../').components.exit
13
+ ],
11
14
  rateLimits: {
12
15
  requests: {
13
16
  active: true