hof 20.0.0-beta.33 → 20.0.0-beta.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":61833,"argv":["/usr/local/bin/node","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/mohameduwais/UKHomeOffice/govukupdate/hof","time":1663868046745,"ppid":61831,"coverageFilename":"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/.nyc_output/77e30dc7-406e-405d-8b08-2e95188904d2.json","externalId":"","uuid":"77e30dc7-406e-405d-8b08-2e95188904d2","files":["/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/default-model.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/clear-session/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/fields.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/email-service.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/emailer.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/smtp.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/ses.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/stub.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/debug.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/summary/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/rate-limits.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/rate-limiter.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/hof-defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/notify.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/base-controller.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/validators.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/email.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation-error.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/inputs.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/test-data/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/countries.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/helpers/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/reqres/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/sanitisation-rules.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/formatters.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-hooks.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/controller.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/render.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/config.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/translations/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/gov-uk/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/validation.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/cookies.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/errors.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/not-found.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/deep-translate.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/markdown.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/router.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/complete.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/constants.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/health.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/serve-static.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/ga-tag.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/sessions.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/settings.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/logger.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/build/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/builder-defaults.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/compile.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/build.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/expand-dirs.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/aggregate.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/write-files.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/index.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/html-to-pdf-converter.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/model.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/back-links.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/helpers.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-complete.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-progress.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/csrf.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/fields.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/helpers/utilities.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/encryption.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session.js","/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session-model.js"]}
@@ -0,0 +1 @@
1
+ {"processes":{"77e30dc7-406e-405d-8b08-2e95188904d2":{"parent":null,"children":[]}},"files":{"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/default-model.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/address-lookup/defaults.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/clear-session/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/date/fields.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/email-service.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/emailer.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/smtp.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/ses.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/stub.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/emailer/transports/debug.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/summary/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/rate-limits.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/rate-limiter.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/hof-defaults.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/components/notify/notify.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/base-controller.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/validators.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation/email.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/validation-error.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/autofill/inputs.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/test-data/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/countries.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/helpers/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/utilities/reqres/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/sanitisation-rules.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/formatting/formatters.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-session.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/behaviour-hooks.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/controller/controller.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/country-select.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/template-mixins.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/render.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-mixins/mixins/helpers.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/govuk-template/build/config.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/template-partials/translations/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/themes/gov-uk/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/helpers.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/form-focus.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/validation.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/frontend/toolkit/assets/javascript/character-count.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/cookies.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/errors.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/not-found.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/middleware/deep-translate.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/markdown.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/router.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/behaviours/complete.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/constants.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/helpers.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/health.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/serve-static.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/ga-tag.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/sessions.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/settings.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/logger.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/build/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/config/builder-defaults.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/compile.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/build.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/expand-dirs.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/aggregate.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/transpiler/lib/write-files.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/index.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/model/apis/html-to-pdf-converter.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/model.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/back-links.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/util/helpers.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-complete.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-progress.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/check-session.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/csrf.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/fields.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/test/helpers/utilities.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/sandbox/apps/sandbox/behaviours/international-number.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/lib/encryption.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session.js":["77e30dc7-406e-405d-8b08-2e95188904d2"],"/Users/mohameduwais/UKHomeOffice/govukupdate/hof/wizard/middleware/session-model.js":["77e30dc7-406e-405d-8b08-2e95188904d2"]},"externalIds":{}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.0.0-beta.33",
4
+ "version": "20.0.0-beta.34",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -28,6 +28,41 @@ module.exports = (route, controller, steps, begin) => {
28
28
  return _.uniq(allSteps);
29
29
  };
30
30
 
31
+ // Gets all the possible routes
32
+ const walkAllPossibleSteps = (stepName, allStepsInService, allVisitedSteps) => {
33
+ const stepIncludingFieldsAndForks = allStepsInService[stepName];
34
+ if (!stepIncludingFieldsAndForks) { return; }
35
+
36
+ const forkTargets = _.map(stepIncludingFieldsAndForks.forks, 'target') || [];
37
+ const nextStep = stepIncludingFieldsAndForks.next || '';
38
+
39
+ // If there is no next step or fork, then we have reached the end of the journey
40
+ if (!forkTargets.length && !nextStep) {
41
+ allVisitedSteps.push(stepName);
42
+ // eslint-disable-next-line consistent-return
43
+ return _.uniq(allVisitedSteps);
44
+ }
45
+
46
+ const nextStepsAndForks = _.uniq(forkTargets.concat(nextStep));
47
+
48
+ // We need to transverse through all 'Next' and 'Forks' for this route
49
+ nextStepsAndForks.map(each => {
50
+ if (!allVisitedSteps.includes(each)) {
51
+ allVisitedSteps.push(each);
52
+ walkAllPossibleSteps(each, allStepsInService, allVisitedSteps);
53
+ }
54
+ });
55
+ };
56
+
57
+ // Create a list of all visited steps
58
+ const createAllVisitedSteps = (stepName, allStepsInService) => {
59
+ const allVisitedSteps = [stepName];
60
+ if (allStepsInService[stepName]) {
61
+ walkAllPossibleSteps(stepName, allStepsInService, allVisitedSteps);
62
+ }
63
+ return _.uniq(allVisitedSteps);
64
+ };
65
+
31
66
  const invalidateStep = (stepName, scopedSteps, sessionModel) => {
32
67
  debug('Invalidating', stepName);
33
68
  const step = scopedSteps[stepName] || {};
@@ -55,7 +90,7 @@ module.exports = (route, controller, steps, begin) => {
55
90
  debug('next', nextStep);
56
91
  debug('potential paths', potentialPaths);
57
92
  // if we're following a loop then allow the loop to be invalidated
58
- const whitelist = isLoop(nextStep, req.path) ? [route] : getAllPossibleSteps(nextStep, steps);
93
+ const whitelist = isLoop(nextStep, req.path) ? [route] : createAllVisitedSteps(nextStep, steps);
59
94
  // aggregate all potential journeys from the invalidating step
60
95
  const invalidateSteps = potentialPaths.reduce((arr, step) => arr.concat(getAllPossibleSteps(step, steps)), []);
61
96
 
@@ -1,203 +0,0 @@
1
- {
2
- "fields": {
3
- "landing-page-radio": {
4
- "legend": "Which form would you like to explore?",
5
- "hint": "Choose one of the options below and press continue.",
6
- "options": {
7
- "basic-form": {
8
- "label": "Basic form"
9
- },
10
- "complex-form": {
11
- "label": "Complex form"
12
- },
13
- "build-your-own-form": {
14
- "label": "Build your own form"
15
- }
16
- }
17
- },
18
- "name": {
19
- "label": "What is your full name?"
20
- },
21
- "dateOfBirth": {
22
- "legend": "What is your date of birth?",
23
- "hint": "For example, 31 10 1990"
24
- },
25
- "building": {
26
- "label": "Building and street"
27
- },
28
- "street": {
29
- "label": "Address line 2"
30
- },
31
- "townOrCity": {
32
- "label": "Town or city"
33
- },
34
- "postcode": {
35
- "label": "Postcode"
36
- },
37
- "incomeTypes": {
38
- "label": "Sources of income",
39
- "legend": "Select the options where you receive income from",
40
- "hint": "Select all options that apply to you.",
41
- "options": {
42
- "salary": {
43
- "label": "Salary"
44
- },
45
- "universal_credit": {
46
- "label": "Universal Credit"
47
- },
48
- "child_benefit": {
49
- "label": "Child Benefit"
50
- },
51
- "housing_benefit": {
52
- "label": "Housing Benefit"
53
- },
54
- "other": {
55
- "label": "Other"
56
- }
57
- }
58
- },
59
- "countryOfHearing": {
60
- "legend": "What country was the appeal lodged?",
61
- "options": {
62
- "englandAndWales": {
63
- "label": "England and Wales"
64
- },
65
- "scotland": {
66
- "label": "Scotland"
67
- },
68
- "northernIreland": {
69
- "label": "Northern Ireland"
70
- }
71
- }
72
- },
73
- "email": {
74
- "label": "Enter your email address"
75
- },
76
- "phone": {
77
- "label": "Phone number",
78
- "hint": "International phone numbers require the international dialling code, for example +33235066182"
79
- },
80
- "int-phone-number": {
81
- "legend": "International phone number"
82
- },
83
- "complaintDetails": {
84
- "label": "Complaint details",
85
- "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
86
- },
87
- "countrySelect": {
88
- "label": "Which country are you based in?",
89
- "hint": "Start to type the country name and options will appear"
90
- },
91
- "appealStages": {
92
- "label": "Appeal stage",
93
- "hint": "Choose an appeal stage from the drop down menu",
94
- "options": {
95
- "null": "Select..."
96
- }
97
- }
98
- },
99
- "journey": {
100
- "header": "HOF Bootstrap Sandbox Form",
101
- "confirmation": {
102
- "details": "Your reference number <br><strong>HDJ2123F</strong>"
103
- }
104
- },
105
- "pages": {
106
- "landing-page": {
107
- "header": "Landing page"
108
- },
109
- "build-your-own-form": {
110
- "title": "Build your own form",
111
- "subheader": "Access the build your own form guidance link"
112
- },
113
- "address": {
114
- "header": "What is your address in the UK?",
115
- "intro": "If you have no fixed address, enter an address where we can contact you."
116
- },
117
- "phone-number": {
118
- "header": "Enter your phone number"
119
- },
120
- "confirm": {
121
- "header": "Check your answers before submitting your application.",
122
- "sections": {
123
- "applicantsDetails": {
124
- "header": "Applicant's details"
125
- },
126
- "address": {
127
- "header": "Address"
128
- },
129
- "income": {
130
- "header": "Income"
131
- },
132
- "appealDetails": {
133
- "header": "Appeal details"
134
- },
135
- "countrySelect": {
136
- "header": "Country of residence"
137
- },
138
- "contactDetails": {
139
- "header": "Contact details"
140
- },
141
- "complaintDetails": {
142
- "header": "Complaint details"
143
- }
144
- }
145
- },
146
- "confirmation": {
147
- "title": "Application sent",
148
- "alert": "Application sent",
149
- "subheader": "What happens next",
150
- "content": "We’ll contact you with the decision of your application or if we need more information from you."
151
- }
152
- },
153
- "validation": {
154
- "landing-page-radio": {
155
- "required": "Select an option below and press continue"
156
- },
157
- "name": {
158
- "default": "Enter your full name"
159
- },
160
- "dateOfBirth": {
161
- "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
162
- "after": "Enter a date after 1 1 1900",
163
- "before": "Enter a date that is in the past"
164
- },
165
- "building": {
166
- "default": "Enter details of your building and street"
167
- },
168
- "townOrCity": {
169
- "default": "Enter a town or city",
170
- "regex": "Enter a town or city without including digits"
171
- },
172
- "postcode": {
173
- "default": "Enter your postcode"
174
- },
175
- "incomeTypes": {
176
- "default": "Select all options that apply to you."
177
- },
178
- "countryOfHearing": {
179
- "default": "Select where the appeal hearing is to be held"
180
- },
181
- "countrySelect": {
182
- "default": "Enter a valid country of residence",
183
- "required": "Enter your country of residence"
184
- },
185
- "email": {
186
- "default": "Enter your email address in the correct format"
187
- },
188
- "phone": {
189
- "default": "Enter your phone number"
190
- },
191
- "int-phone-number": {
192
- "required": "Enter an international phone number",
193
- "internationalPhoneNumber": "Enter a valid international phone number"
194
- },
195
- "complaintDetails": {
196
- "default": "Enter details about why you are making a complaint",
197
- "maxlength": "Keep to the {{maxlength}} character limit"
198
- },
199
- "appealStages": {
200
- "required": "Select an appeal stage from the list"
201
- }
202
- }
203
- }