New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-pay/pay-js-commons

Package Overview
Dependencies
Maintainers
10
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-pay/pay-js-commons - npm Package Compare versions

Comparing version 3.9.0 to 3.10.0

images/custom/neath-port-talbot-county-borough-council-2023.svg

36

lib/analytics/dist/cookies.js

@@ -535,3 +535,3 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

},{"_process":3}],2:[function(require,module,exports){
/*! js-cookie v3.0.1 | MIT */
/*! js-cookie v3.0.5 | MIT */
;

@@ -541,8 +541,8 @@ (function (global, factory) {

typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, (function () {
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
var current = global.Cookies;
var exports = global.Cookies = factory();
exports.noConflict = function () { global.Cookies = current; return exports; };
}()));
}(this, (function () { 'use strict';
})());
})(this, (function () { 'use strict';

@@ -581,3 +581,3 @@ /* eslint-disable no-var */

function init (converter, defaultAttributes) {
function set (key, value, attributes) {
function set (name, value, attributes) {
if (typeof document === 'undefined') {

@@ -596,3 +596,3 @@ return

key = encodeURIComponent(key)
name = encodeURIComponent(name)
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)

@@ -624,7 +624,7 @@ .replace(/[()]/g, escape);

return (document.cookie =
key + '=' + converter.write(value, key) + stringifiedAttributes)
name + '=' + converter.write(value, name) + stringifiedAttributes)
}
function get (key) {
if (typeof document === 'undefined' || (arguments.length && !key)) {
function get (name) {
if (typeof document === 'undefined' || (arguments.length && !name)) {
return

@@ -642,6 +642,6 @@ }

try {
var foundKey = decodeURIComponent(parts[0]);
jar[foundKey] = converter.read(value, foundKey);
var found = decodeURIComponent(parts[0]);
jar[found] = converter.read(value, found);
if (key === foundKey) {
if (name === found) {
break

@@ -652,3 +652,3 @@ }

return key ? jar[key] : jar
return name ? jar[name] : jar
}

@@ -658,7 +658,7 @@

{
set: set,
get: get,
remove: function (key, attributes) {
set,
get,
remove: function (name, attributes) {
set(
key,
name,
'',

@@ -689,3 +689,3 @@ assign({}, attributes, {

})));
}));

@@ -692,0 +692,0 @@ },{}],3:[function(require,module,exports){

{
"name": "@govuk-pay/pay-js-commons",
"version": "3.9.0",
"version": "3.10.0",
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",

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

Sorry, the diff of this file is not supported yet

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