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 3.3.0 to 3.3.1

4

CHANGELOG.md

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

# 3.3.1
- Fix: Make the error colour a darker red for greater contrast and to meet WCAG 2.0 AAAA
# 3.3.0

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

@@ -107,6 +107,22 @@ (function() {

GoogleAnalyticsClassicTracker.prototype.setCustomVariable = function(index, value, name, scope) {
var PAGE_LEVEL_SCOPE = 3;
scope = scope || PAGE_LEVEL_SCOPE;
if (typeof index !== "number") {
index = parseInt(index, 10);
}
if (typeof scope !== "number") {
scope = parseInt(scope, 10);
}
_gaq.push(['_setCustomVar', index, name, String(value), scope]);
};
// Match tracker and universal API
GoogleAnalyticsClassicTracker.prototype.setDimension = function(index, value, name, scope) {
this.setCustomVariable(index, value, name, scope);
}
GOVUK.GoogleAnalyticsClassicTracker = GoogleAnalyticsClassicTracker;
})();

11

javascripts/govuk/analytics/tracker.js

@@ -45,13 +45,2 @@ (function() {

Tracker.prototype.setDimension = function(index, value, name, scope) {
var PAGE_LEVEL_SCOPE = 3;
scope = scope || PAGE_LEVEL_SCOPE;
if (typeof index !== "number") {
index = parseInt(index, 10);
}
if (typeof scope !== "number") {
scope = parseInt(scope, 10);
}
this.universal.setDimension(index, value);

@@ -58,0 +47,0 @@ this.classic.setCustomVariable(index, value, name, scope);

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

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

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

3.3.0
3.3.1
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