hof 20.2.22 → 20.2.24
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 +17 -8
- package/lib/ga-tag.js +9 -9
- 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":{}}
|
@@ -34,7 +34,6 @@
|
|
34
34
|
ga('govuk_shared.send', 'pageview')
|
35
35
|
{{/gaCrossDomainTrackingTagId}}
|
36
36
|
}
|
37
|
-
|
38
37
|
</script>
|
39
38
|
{{/gaTagId}}
|
40
39
|
|
@@ -61,23 +60,33 @@
|
|
61
60
|
{{/ga4TagId}}
|
62
61
|
|
63
62
|
{{#gtmTagId}}
|
64
|
-
<!-- Data Layer -->
|
63
|
+
<!-- Google Tag Manager Data Layer for ETA -->
|
65
64
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
65
|
+
var preferences = JSON.parse(GOVUK.cookie('cookie_preferences'));
|
66
|
+
|
67
|
+
if (preferences !== null && preferences.usage === true) {
|
66
68
|
window.dataLayer = window.dataLayer || [];
|
67
69
|
dataLayer.push({
|
68
70
|
'event': 'pageLoad',
|
69
71
|
'pageName': 'ETA | Customer Contact Webform | {{gtm-page}}',
|
70
72
|
'applicationType': 'ETA | Customer Contact',
|
71
|
-
'environmentType':
|
73
|
+
'environmentType': '{{environmentType}}'
|
72
74
|
});
|
75
|
+
}
|
73
76
|
</script>
|
74
|
-
<!-- End Data Layer -->
|
77
|
+
<!-- End Google Tag Manager Data Layer for ETA -->
|
75
78
|
|
76
79
|
<!-- Google Tag Manager for ETA -->
|
77
|
-
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
80
|
+
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
81
|
+
var preferences = JSON.parse(GOVUK.cookie('cookie_preferences'));
|
82
|
+
|
83
|
+
if (preferences !== null && preferences.usage === true) {
|
84
|
+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
78
85
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
79
|
-
|
80
|
-
|
81
|
-
|
86
|
+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
87
|
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
88
|
+
})(window,document,'script','dataLayer','{{gtmTagId}}');
|
89
|
+
}
|
90
|
+
</script>
|
82
91
|
<!-- End Google Tag Manager for ETA -->
|
83
92
|
{{/gtmTagId}}
|
package/lib/ga-tag.js
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
const _ = require('lodash');
|
4
4
|
|
5
|
-
const convertToGTMPage =
|
5
|
+
const convertToGTMPage = text => {
|
6
6
|
// Remove leading and trailing slashes
|
7
7
|
let str = text.replace(/^\/|\/$/g, '');
|
8
8
|
// Replace hyphens with spaces and capitalize each word
|
9
|
-
str = str.replace(/-+/g, ' ').replace(/(^|\s)\S/g, function(match) {
|
9
|
+
str = str.replace(/-+/g, ' ').replace(/(^|\s)\S/g, function (match) {
|
10
10
|
return match.toUpperCase();
|
11
11
|
});
|
12
12
|
return str;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
|
15
15
|
const pageView = (path, pageMap) => pageMap.get(path) || path;
|
16
16
|
|
@@ -49,11 +49,11 @@ const setupPageMap = routes => {
|
|
49
49
|
return pageMap;
|
50
50
|
};
|
51
51
|
|
52
|
-
|
52
|
+
module.exports = (app, config) => {
|
53
53
|
const gaTagId = config.gaTagId;
|
54
54
|
const ga4TagId = config.ga4TagId;
|
55
55
|
const gtmTagId = config.gtmTagId;
|
56
|
-
const
|
56
|
+
const environmentType = config.environmentType ? config.environmentType : 'dev';
|
57
57
|
const gaCrossDomainTrackingTagId = config.gaCrossDomainTrackingTagId;
|
58
58
|
const routes = config.routes;
|
59
59
|
|
@@ -65,12 +65,12 @@ const setupPageMap = routes => {
|
|
65
65
|
res.locals.gaAllowDebug = config.env === 'development';
|
66
66
|
res.locals.gaTagId = gaTagId;
|
67
67
|
res.locals.ga4TagId = ga4TagId;
|
68
|
-
res.locals.gtmTagId = gtmTagId
|
69
|
-
res.locals.
|
68
|
+
res.locals.gtmTagId = gtmTagId;
|
69
|
+
res.locals.environmentType = environmentType;
|
70
70
|
res.locals.gaCrossDomainTrackingTagId = gaCrossDomainTrackingTagId;
|
71
71
|
res.locals['ga-id'] = gaTagId;
|
72
|
-
res.locals['ga-page'] = page
|
73
|
-
res.locals['gtm-page'] = convertToGTMPage(page)
|
72
|
+
res.locals['ga-page'] = page;
|
73
|
+
res.locals['gtm-page'] = convertToGTMPage(page);
|
74
74
|
next();
|
75
75
|
});
|
76
76
|
}
|