Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

govuk_frontend_toolkit

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

govuk_frontend_toolkit - npm Package Compare versions

Comparing version 7.5.0 to 7.6.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 7.6.0
- Strip emails from urls for all GA requests to catch cases when GA generates a new event (e.g. page timings): ([PR 466](https://github.com/alphagov/govuk_frontend_toolkit/pull/466)).
# 7.5.0

@@ -2,0 +6,0 @@

@@ -23,2 +23,6 @@ ;(function (global) {

function stripLocationPII () {
sendToGa('set', 'location', stripEmailAddressesFromString(window.location.href))
}
// Support legacy cookieDomain param

@@ -32,2 +36,3 @@ if (typeof fieldsObject === 'string') {

disableAdTracking()
stripLocationPII()
}

@@ -165,2 +170,7 @@

function stripEmailAddressesFromString (string) {
var stripped = string.replace(/[^\s=/?&]+(?:@|%40)[^\s=/?&]+/g, '[email]')
return stripped
}
GOVUK.GoogleAnalyticsUniversalTracker = GoogleAnalyticsUniversalTracker

@@ -167,0 +177,0 @@

2

package.json
{
"name": "govuk_frontend_toolkit",
"version": "7.5.0",
"version": "7.6.0",
"description": "npm package for using the GOV.UK frontend toolkit",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc