@govuk-pay/pay-js-commons 3.8.16 → 3.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/analytics/dist/cookies.js +18 -18
- package/package.json +1 -1
|
@@ -532,17 +532,17 @@ module.exports = posix;
|
|
|
532
532
|
|
|
533
533
|
}).call(this)}).call(this,require('_process'))
|
|
534
534
|
},{"_process":3}],2:[function(require,module,exports){
|
|
535
|
-
/*! js-cookie v3.0.
|
|
535
|
+
/*! js-cookie v3.0.1 | MIT */
|
|
536
536
|
;
|
|
537
537
|
(function (global, factory) {
|
|
538
538
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
539
539
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
540
|
-
(global =
|
|
540
|
+
(global = global || self, (function () {
|
|
541
541
|
var current = global.Cookies;
|
|
542
542
|
var exports = global.Cookies = factory();
|
|
543
543
|
exports.noConflict = function () { global.Cookies = current; return exports; };
|
|
544
|
-
}
|
|
545
|
-
}
|
|
544
|
+
}()));
|
|
545
|
+
}(this, (function () { 'use strict';
|
|
546
546
|
|
|
547
547
|
/* eslint-disable no-var */
|
|
548
548
|
function assign (target) {
|
|
@@ -576,7 +576,7 @@ module.exports = posix;
|
|
|
576
576
|
/* eslint-disable no-var */
|
|
577
577
|
|
|
578
578
|
function init (converter, defaultAttributes) {
|
|
579
|
-
function set (
|
|
579
|
+
function set (key, value, attributes) {
|
|
580
580
|
if (typeof document === 'undefined') {
|
|
581
581
|
return
|
|
582
582
|
}
|
|
@@ -590,7 +590,7 @@ module.exports = posix;
|
|
|
590
590
|
attributes.expires = attributes.expires.toUTCString();
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
|
|
593
|
+
key = encodeURIComponent(key)
|
|
594
594
|
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
|
595
595
|
.replace(/[()]/g, escape);
|
|
596
596
|
|
|
@@ -617,11 +617,11 @@ module.exports = posix;
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
return (document.cookie =
|
|
620
|
-
|
|
620
|
+
key + '=' + converter.write(value, key) + stringifiedAttributes)
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
function get (
|
|
624
|
-
if (typeof document === 'undefined' || (arguments.length && !
|
|
623
|
+
function get (key) {
|
|
624
|
+
if (typeof document === 'undefined' || (arguments.length && !key)) {
|
|
625
625
|
return
|
|
626
626
|
}
|
|
627
627
|
|
|
@@ -634,25 +634,25 @@ module.exports = posix;
|
|
|
634
634
|
var value = parts.slice(1).join('=');
|
|
635
635
|
|
|
636
636
|
try {
|
|
637
|
-
var
|
|
638
|
-
jar[
|
|
637
|
+
var foundKey = decodeURIComponent(parts[0]);
|
|
638
|
+
jar[foundKey] = converter.read(value, foundKey);
|
|
639
639
|
|
|
640
|
-
if (
|
|
640
|
+
if (key === foundKey) {
|
|
641
641
|
break
|
|
642
642
|
}
|
|
643
643
|
} catch (e) {}
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
return
|
|
646
|
+
return key ? jar[key] : jar
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
return Object.create(
|
|
650
650
|
{
|
|
651
|
-
set,
|
|
652
|
-
get,
|
|
653
|
-
remove: function (
|
|
651
|
+
set: set,
|
|
652
|
+
get: get,
|
|
653
|
+
remove: function (key, attributes) {
|
|
654
654
|
set(
|
|
655
|
-
|
|
655
|
+
key,
|
|
656
656
|
'',
|
|
657
657
|
assign({}, attributes, {
|
|
658
658
|
expires: -1
|
|
@@ -678,7 +678,7 @@ module.exports = posix;
|
|
|
678
678
|
|
|
679
679
|
return api;
|
|
680
680
|
|
|
681
|
-
}));
|
|
681
|
+
})));
|
|
682
682
|
|
|
683
683
|
},{}],3:[function(require,module,exports){
|
|
684
684
|
// shim for using process in browser
|