@govuk-pay/pay-js-commons 3.8.15 → 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.
@@ -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.5 | MIT */
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 = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
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
- })(this, (function () { 'use strict';
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 (name, value, attributes) {
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
- name = encodeURIComponent(name)
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
- name + '=' + converter.write(value, name) + stringifiedAttributes)
620
+ key + '=' + converter.write(value, key) + stringifiedAttributes)
621
621
  }
622
622
 
623
- function get (name) {
624
- if (typeof document === 'undefined' || (arguments.length && !name)) {
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 found = decodeURIComponent(parts[0]);
638
- jar[found] = converter.read(value, found);
637
+ var foundKey = decodeURIComponent(parts[0]);
638
+ jar[foundKey] = converter.read(value, foundKey);
639
639
 
640
- if (name === found) {
640
+ if (key === foundKey) {
641
641
  break
642
642
  }
643
643
  } catch (e) {}
644
644
  }
645
645
 
646
- return name ? jar[name] : jar
646
+ return key ? jar[key] : jar
647
647
  }
648
648
 
649
649
  return Object.create(
650
650
  {
651
- set,
652
- get,
653
- remove: function (name, attributes) {
651
+ set: set,
652
+ get: get,
653
+ remove: function (key, attributes) {
654
654
  set(
655
- name,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.8.15",
3
+ "version": "3.8.17",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "engines": {
6
6
  "node": "^16.14.0"