New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.14.1 to 4.15.0

javascripts/govuk/anchor-buttons.js

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 4.15.0
- Add support for Google Analytics fieldsObject ([PR #298](https://github.com/alphagov/govuk_frontend_toolkit/pull/298))
- anchor-buttons.js: normalise keyboard behaviour between buttons and links with a button role ([PR #297](https://github.com/alphagov/govuk_frontend_toolkit/pull/297))
# 4.14.1

@@ -2,0 +7,0 @@

4

javascripts/govuk/analytics/analytics.js

@@ -12,3 +12,5 @@ (function(global) {

if (typeof config.universalId != 'undefined') {
this.trackers.push(new GOVUK.GoogleAnalyticsUniversalTracker(config.universalId, config.cookieDomain));
var universalId = config.universalId;
delete config.universalId;
this.trackers.push(new GOVUK.GoogleAnalyticsUniversalTracker(universalId, config));
}

@@ -15,0 +17,0 @@ };

@@ -6,8 +6,7 @@ (function(global) {

var GoogleAnalyticsUniversalTracker = function(id, cookieDomain) {
configureProfile(id, cookieDomain);
anonymizeIp();
var GoogleAnalyticsUniversalTracker = function(trackingId, fieldsObject) {
function configureProfile(id, cookieDomain) {
sendToGa('create', id, {'cookieDomain': cookieDomain});
function configureProfile() {
// https://developers.google.com/analytics/devguides/collection/analyticsjs/command-queue-reference#create
sendToGa('create', trackingId, fieldsObject);
}

@@ -19,2 +18,10 @@

}
// Support legacy cookieDomain param
if (typeof fieldsObject === 'string') {
fieldsObject = { cookieDomain: fieldsObject };
}
configureProfile();
anonymizeIp();
};

@@ -26,3 +33,3 @@

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(global,document,'script','//www.google-analytics.com/analytics.js','ga');
})(global,document,'script','https://www.google-analytics.com/analytics.js','ga');
};

@@ -29,0 +36,0 @@

@@ -8,3 +8,2 @@ (function (global) {

var SelectionButtons = function (elmsOrSelector, opts) {
var $elms;

@@ -19,3 +18,2 @@ this.selectedClass = 'selected';

if (typeof elmsOrSelector === 'string') {
$elms = $(elmsOrSelector);
this.selector = elmsOrSelector;

@@ -22,0 +20,0 @@ this.setInitialState($(this.selector));

{
"name": "govuk_frontend_toolkit",
"version": "4.14.1",
"version": "4.15.0",
"description": "npm package for using the GOV.UK frontend toolkit",

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

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

4.14.1
4.15.0
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