hof 20.2.21 → 20.2.23
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/d2b4c954-b643-4d6f-b10c-2d4820791842.json +1 -0
- package/.nyc_output/processinfo/{d496bcf1-1eff-4531-9dfc-fe8c156a6fef.json → d2b4c954-b643-4d6f-b10c-2d4820791842.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/frontend/template-partials/views/partials/gatag.html +6 -6
- package/lib/ga-tag.js +17 -5
- package/package.json +1 -1
- package/.nyc_output/d496bcf1-1eff-4531-9dfc-fe8c156a6fef.json +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"parent":null,"pid":
|
1
|
+
{"parent":null,"pid":14213,"argv":["/Users/chisomoguibe/.nvm/versions/node/v18.17.1/bin/node","/Users/chisomoguibe/Projects/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/chisomoguibe/Projects/hof","time":1696594312982,"ppid":14211,"coverageFilename":"/Users/chisomoguibe/Projects/hof/.nyc_output/d2b4c954-b643-4d6f-b10c-2d4820791842.json","externalId":"","uuid":"d2b4c954-b643-4d6f-b10c-2d4820791842","files":["/Users/chisomoguibe/Projects/hof/model/index.js","/Users/chisomoguibe/Projects/hof/components/index.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js","/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js","/Users/chisomoguibe/Projects/hof/components/clear-session/index.js","/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js","/Users/chisomoguibe/Projects/hof/components/date/index.js","/Users/chisomoguibe/Projects/hof/components/date/fields.js","/Users/chisomoguibe/Projects/hof/components/emailer/index.js","/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js","/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js","/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js","/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js","/Users/chisomoguibe/Projects/hof/config/component-defaults.js","/Users/chisomoguibe/Projects/hof/components/notify/index.js","/Users/chisomoguibe/Projects/hof/components/notify/notify.js","/Users/chisomoguibe/Projects/hof/components/summary/index.js","/Users/chisomoguibe/Projects/hof/config/rate-limits.js","/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js","/Users/chisomoguibe/Projects/hof/config/hof-defaults.js","/Users/chisomoguibe/Projects/hof/controller/base-controller.js","/Users/chisomoguibe/Projects/hof/controller/formatting/index.js","/Users/chisomoguibe/Projects/hof/controller/validation/index.js","/Users/chisomoguibe/Projects/hof/controller/validation/validators.js","/Users/chisomoguibe/Projects/hof/controller/validation/email.js","/Users/chisomoguibe/Projects/hof/controller/validation-error.js","/Users/chisomoguibe/Projects/hof/utilities/index.js","/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js","/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js","/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js","/Users/chisomoguibe/Projects/hof/utilities/countries.js","/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js","/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js","/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js","/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js","/Users/chisomoguibe/Projects/hof/controller/index.js","/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js","/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js","/Users/chisomoguibe/Projects/hof/controller/controller.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js","/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js","/Users/chisomoguibe/Projects/hof/index.js","/Users/chisomoguibe/Projects/hof/frontend/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js","/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js","/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js","/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js","/Users/chisomoguibe/Projects/hof/frontend/themes/index.js","/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js","/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/chisomoguibe/Projects/hof/middleware/index.js","/Users/chisomoguibe/Projects/hof/middleware/cookies.js","/Users/chisomoguibe/Projects/hof/middleware/errors.js","/Users/chisomoguibe/Projects/hof/middleware/not-found.js","/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js","/Users/chisomoguibe/Projects/hof/lib/markdown.js","/Users/chisomoguibe/Projects/hof/lib/router.js","/Users/chisomoguibe/Projects/hof/wizard/index.js","/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js","/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js","/Users/chisomoguibe/Projects/hof/wizard/util/constants.js","/Users/chisomoguibe/Projects/hof/lib/helpers.js","/Users/chisomoguibe/Projects/hof/lib/health.js","/Users/chisomoguibe/Projects/hof/lib/serve-static.js","/Users/chisomoguibe/Projects/hof/lib/ga-tag.js","/Users/chisomoguibe/Projects/hof/lib/sessions.js","/Users/chisomoguibe/Projects/hof/lib/settings.js","/Users/chisomoguibe/Projects/hof/lib/logger.js","/Users/chisomoguibe/Projects/hof/build/index.js","/Users/chisomoguibe/Projects/hof/config/builder-defaults.js","/Users/chisomoguibe/Projects/hof/transpiler/index.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js","/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js","/Users/chisomoguibe/Projects/hof/model/apis/index.js","/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js","/Users/chisomoguibe/Projects/hof/wizard/model.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js","/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js","/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js","/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js","/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/chisomoguibe/Projects/hof/lib/encryption.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js","/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"processes":{"d496bcf1-1eff-4531-9dfc-fe8c156a6fef":{"parent":null,"children":[]}},"files":{"/Users/chisomoguibe/Projects/hof/model/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/clear-session/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/date/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/date/fields.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/config/component-defaults.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/notify/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/notify/notify.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/components/summary/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/config/rate-limits.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/config/hof-defaults.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/base-controller.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/formatting/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/validation/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/validation/validators.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/validation/email.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/validation-error.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/countries.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/controller/controller.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/themes/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/cookies.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/errors.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/not-found.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/markdown.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/router.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/util/constants.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/helpers.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/health.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/serve-static.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/ga-tag.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/sessions.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/settings.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/logger.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/build/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/config/builder-defaults.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/model/apis/index.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/model.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/lib/encryption.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js":["d496bcf1-1eff-4531-9dfc-fe8c156a6fef"]},"externalIds":{}}
|
1
|
+
{"processes":{"d2b4c954-b643-4d6f-b10c-2d4820791842":{"parent":null,"children":[]}},"files":{"/Users/chisomoguibe/Projects/hof/model/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/default-model.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/address-lookup/defaults.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/clear-session/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/combine-and-loop-fields/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/date/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/date/fields.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/email-service.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/emailer.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/smtp.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/ses.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/stub.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/emailer/transports/debug.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/homeoffice-countries/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/config/component-defaults.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/notify/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/notify/notify.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/components/summary/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/config/rate-limits.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/rate-limiter.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/config/hof-defaults.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/base-controller.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/formatting/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/validation/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/validation/validators.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/validation/email.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/validation-error.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/autofill/inputs.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/test-data/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/countries.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/helpers/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/utilities/reqres/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/config/sanitisation-rules.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/formatting/formatters.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-session.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/behaviour-hooks.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/controller/controller.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/country-select.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/template-mixins.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/render.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-mixins/mixins/helpers.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/govuk-template/build/config.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/template-partials/translations/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/themes/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/themes/gov-uk/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/helpers.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/form-focus.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/validation.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/frontend/toolkit/assets/javascript/character-count.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/cookies.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/errors.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/not-found.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/middleware/deep-translate.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/markdown.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/router.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/behaviours/complete.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/util/constants.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/helpers.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/health.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/serve-static.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/ga-tag.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/sessions.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/settings.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/logger.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/build/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/config/builder-defaults.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/compile.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/build.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/expand-dirs.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/aggregate.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/transpiler/lib/write-files.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/model/apis/index.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/model/apis/html-to-pdf-converter.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/model.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/back-links.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/util/helpers.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-complete.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-progress.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/check-session.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/csrf.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/fields.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/test/helpers/utilities.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/sandbox/apps/sandbox/behaviours/international-number.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/lib/encryption.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"],"/Users/chisomoguibe/Projects/hof/wizard/middleware/session-model.js":["d2b4c954-b643-4d6f-b10c-2d4820791842"]},"externalIds":{}}
|
@@ -62,19 +62,19 @@
|
|
62
62
|
|
63
63
|
{{#gtmTagId}}
|
64
64
|
<!-- Data Layer -->
|
65
|
-
<script {{#nonce}}
|
66
|
-
|
67
|
-
|
65
|
+
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
66
|
+
window.dataLayer = window.dataLayer || [];
|
67
|
+
dataLayer.push({
|
68
68
|
'event': 'pageLoad',
|
69
|
-
'pageName': 'ETA | Customer Contact Webform | {{
|
69
|
+
'pageName': 'ETA | Customer Contact Webform | {{gtm-page}}',
|
70
70
|
'applicationType': 'ETA | Customer Contact',
|
71
|
-
'environmentType':
|
71
|
+
'environmentType': '{{environmentType}}'
|
72
72
|
});
|
73
73
|
</script>
|
74
74
|
<!-- End Data Layer -->
|
75
75
|
|
76
76
|
<!-- Google Tag Manager for ETA -->
|
77
|
-
<script {{#nonce}}
|
77
|
+
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
78
78
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
79
79
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
80
80
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
package/lib/ga-tag.js
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
const _ = require('lodash');
|
4
4
|
|
5
|
+
const convertToGTMPage = text => {
|
6
|
+
// Remove leading and trailing slashes
|
7
|
+
let str = text.replace(/^\/|\/$/g, '');
|
8
|
+
// Replace hyphens with spaces and capitalize each word
|
9
|
+
str = str.replace(/-+/g, ' ').replace(/(^|\s)\S/g, function (match) {
|
10
|
+
return match.toUpperCase();
|
11
|
+
});
|
12
|
+
return str;
|
13
|
+
};
|
14
|
+
|
5
15
|
const pageView = (path, pageMap) => pageMap.get(path) || path;
|
6
16
|
|
7
17
|
const createUris = routes => {
|
@@ -39,11 +49,11 @@ const setupPageMap = routes => {
|
|
39
49
|
return pageMap;
|
40
50
|
};
|
41
51
|
|
42
|
-
|
52
|
+
module.exports = (app, config) => {
|
43
53
|
const gaTagId = config.gaTagId;
|
44
54
|
const ga4TagId = config.ga4TagId;
|
45
55
|
const gtmTagId = config.gtmTagId;
|
46
|
-
const
|
56
|
+
const environmentType = config.environmentType ? config.environmentType : 'dev';
|
47
57
|
const gaCrossDomainTrackingTagId = config.gaCrossDomainTrackingTagId;
|
48
58
|
const routes = config.routes;
|
49
59
|
|
@@ -51,14 +61,16 @@ const setupPageMap = routes => {
|
|
51
61
|
const pageMap = setupPageMap(routes);
|
52
62
|
|
53
63
|
app.use((req, res, next) => {
|
64
|
+
const page = pageView(req.path, pageMap);
|
54
65
|
res.locals.gaAllowDebug = config.env === 'development';
|
55
66
|
res.locals.gaTagId = gaTagId;
|
56
67
|
res.locals.ga4TagId = ga4TagId;
|
57
|
-
res.locals.gtmTagId = gtmTagId
|
58
|
-
res.locals.
|
68
|
+
res.locals.gtmTagId = gtmTagId;
|
69
|
+
res.locals.environmentType = environmentType;
|
59
70
|
res.locals.gaCrossDomainTrackingTagId = gaCrossDomainTrackingTagId;
|
60
71
|
res.locals['ga-id'] = gaTagId;
|
61
|
-
res.locals['ga-page'] =
|
72
|
+
res.locals['ga-page'] = page;
|
73
|
+
res.locals['gtm-page'] = convertToGTMPage(page);
|
62
74
|
next();
|
63
75
|
});
|
64
76
|
}
|