@govuk-pay/pay-js-commons 3.8.8 → 3.8.10

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.
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
16
  - name: Git checkout
17
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
17
+ uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
18
18
  - name: Detect secrets
19
19
  uses: alphagov/pay-ci/actions/detect-secrets@master
20
20
 
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  steps:
26
26
  - name: Checkout
27
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
27
+ uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
28
28
  - name: Parse Node version
29
29
  run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
30
30
  id: parse-node-version
@@ -0,0 +1 @@
1
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 203.67 133"><defs><style>.cls-1{fill:#ffffff;}.cls-2{fill:none;}</style></defs><title>WDC logo line work solid K uc</title><path class="cls-1" d="M23.87,68.2a8.87,8.87,0,0,0,3.51,0c1.79,7.13,3.27,11.91,6.08,20.8h.07c1.27-3.87,5.83-17.19,6.71-20.8a3.92,3.92,0,0,0,2.32,0C43.62,72,48,85.35,49.27,89h.07C50.4,85.88,55,71.26,55.64,68.2a4.39,4.39,0,0,0,2.46,0c-1.37,3.3-7.17,20.52-8.4,24.25a4.12,4.12,0,0,0-2.39,0c-2-6.57-4.15-13.18-6.47-20.14h-.07c-1.13,3.23-4.67,13.56-6.85,20.14a4.37,4.37,0,0,0-2.46,0C30.3,88.62,25.24,71.93,23.87,68.2Z"/><path class="cls-1" d="M66.53,75.3c4.92,0,7.28,3.27,7.28,7.17,0,.46,0,.91-.07,1.37-2.53,0-5-.11-7.52-.11-1.55,0-3.06.07-4.6.11a9.82,9.82,0,0,0,0,1c0,3.65,2.18,6.5,6.08,6.5a7.65,7.65,0,0,0,5.27-2.5l.18.11-.21,1.72A10.07,10.07,0,0,1,67,92.8c-5.06,0-8.54-3.58-8.54-8.26C58.49,78.85,61.37,75.3,66.53,75.3ZM61.68,82.5c1.44,0,3.09.1,4.57.1s3.2-.07,4.67-.1c0-2.5-.67-6.08-4.32-6.08C63.16,76.42,61.86,80,61.68,82.5Z"/><path class="cls-1" d="M77.85,77.34a8.77,8.77,0,0,1,5.66-2c3.37,0,5.69,2.07,5.69,5.2,0,2.63-.14,5.24-.14,8.19,0,1.16,0,2.6,1.37,2.6a1.46,1.46,0,0,0,.74-.14v.77a6,6,0,0,1-2.25.49,2.3,2.3,0,0,1-2.43-2.18C84.81,91.92,83.37,92.8,81,92.8a4.46,4.46,0,0,1-4.67-4.32c0-2.81,1.9-4.32,5-4.81,5.1-.81,5.27-1.09,5.27-2.46,0-2.35-1.05-4.43-3.86-4.43a5,5,0,0,0-4.43,2.39h-.39Zm8.68,6.25c-2.42.81-7.34.56-7.34,4.39a3.07,3.07,0,0,0,3.06,3.34,5.08,5.08,0,0,0,4.15-2.46Z"/><path class="cls-1" d="M96,76c0-3.23-.07-7.77-.28-10.12a7.2,7.2,0,0,0,3.16,0c-.21,2.35-.28,6.89-.28,10.12v6.36c0,3.23.07,7.77.28,10.12a7.16,7.16,0,0,0-3.16,0c.21-2.36.28-6.89.28-10.12Z"/><path class="cls-1" d="M116.79,89h-.07a6.46,6.46,0,0,1-5.94,3.79c-3.55,0-7.13-2.6-7.13-8.64s3.9-8.86,7.55-8.86a5.49,5.49,0,0,1,5.41,3.51h.07c0-4.43,0-9.95-.14-13a13.31,13.31,0,0,0,1.58.18,14.23,14.23,0,0,0,1.58-.18c-.31,3-.42,12.16-.42,18.17,0,3.2.07,5.62.11,8.44a11,11,0,0,0-1.37-.18,9.68,9.68,0,0,0-1.33.18Zm-5.2,2.5c3.65,0,5.24-4,5.24-7.8,0-4.43-1.79-6.92-5.13-6.92s-5,3.34-5,7.59C106.74,90,109.31,91.5,111.59,91.5Z"/><path class="cls-1" d="M131,75.3c4.92,0,7.28,3.27,7.28,7.17,0,.46,0,.91-.07,1.37-2.53,0-5-.11-7.52-.11-1.55,0-3.06.07-4.6.11a9.54,9.54,0,0,0,0,1c0,3.65,2.18,6.5,6.08,6.5a7.64,7.64,0,0,0,5.27-2.5l.18.11-.21,1.72a10.07,10.07,0,0,1-5.87,2.14c-5.06,0-8.54-3.58-8.54-8.26C122.94,78.85,125.82,75.3,131,75.3Zm-4.85,7.21c1.44,0,3.09.1,4.57.1s3.2-.07,4.68-.1c0-2.5-.67-6.08-4.32-6.08C127.62,76.42,126.31,80,126.14,82.5Z"/><path class="cls-1" d="M149.58,77.13c-3.27,0-4.75,2.11-4.75,5.76v3c0,2.11.07,4.57.28,6.57a7.17,7.17,0,0,0-3.16,0c.21-2,.28-4.46.28-6.57V82.22c0-2.11-.07-4.57-.28-6.57a6.42,6.42,0,0,0,3,0c-.07.95-.11,1.86-.11,2.81h.07a6.35,6.35,0,0,1,5.62-3.16c2.6,0,5.62,1.27,5.62,6.11,0,2-.14,4.11-.14,6.5,0,1.55,0,3,.07,4.53a7.25,7.25,0,0,0-1.48-.18,6.67,6.67,0,0,0-1.44.18c.07-2.57.25-5.13.25-7.84V82.47C153.41,79,151.9,77.13,149.58,77.13Z"/><path class="cls-1" d="M84.74,99.09a3.89,3.89,0,0,1,2.86,1.07,5.46,5.46,0,0,1,0,6.19,3.88,3.88,0,0,1-2.86,1.07H81.86V99.09Zm-.4,7.65a5.42,5.42,0,0,0,1.54-.19,2.48,2.48,0,0,0,1.07-.61,2.53,2.53,0,0,0,.62-1.08,6.54,6.54,0,0,0,0-3.19,2.51,2.51,0,0,0-.62-1.08,2.44,2.44,0,0,0-1.07-.61,5.42,5.42,0,0,0-1.54-.19H82.65v7Z"/><path class="cls-1" d="M90.45,99.09v1.18h-.73V99.09Zm0,2.31v6h-.73v-6Z"/><path class="cls-1" d="M95.32,102.57a1.18,1.18,0,0,0-.35-.41,1.42,1.42,0,0,0-.49-.24,2.34,2.34,0,0,0-.59-.08,2.42,2.42,0,0,0-.5.05,1.52,1.52,0,0,0-.46.18,1,1,0,0,0-.34.32.89.89,0,0,0-.13.49.69.69,0,0,0,.12.41,1.08,1.08,0,0,0,.31.29,2,2,0,0,0,.41.19l.41.12,1,.22a2.91,2.91,0,0,1,.62.17,2,2,0,0,1,.55.32,1.55,1.55,0,0,1,.39.49,1.49,1.49,0,0,1,.15.69,1.51,1.51,0,0,1-.22.83,1.81,1.81,0,0,1-.57.56,2.43,2.43,0,0,1-.78.31,4,4,0,0,1-.85.09,2.75,2.75,0,0,1-1.72-.5,2.12,2.12,0,0,1-.75-1.61h.73a1.44,1.44,0,0,0,.54,1.13A2,2,0,0,0,94,107a2.76,2.76,0,0,0,.55-.06,1.82,1.82,0,0,0,.53-.2,1.25,1.25,0,0,0,.4-.36.86.86,0,0,0,.16-.53.85.85,0,0,0-.11-.45,1,1,0,0,0-.3-.3,1.8,1.8,0,0,0-.43-.2l-.48-.14-.94-.21a5.72,5.72,0,0,1-.66-.22,2.06,2.06,0,0,1-.53-.3,1.25,1.25,0,0,1-.36-.44,1.47,1.47,0,0,1-.13-.64,1.43,1.43,0,0,1,.2-.78,1.58,1.58,0,0,1,.53-.53,2.45,2.45,0,0,1,.73-.29,3.5,3.5,0,0,1,.8-.09,2.92,2.92,0,0,1,.84.12,1.93,1.93,0,0,1,.69.36,1.75,1.75,0,0,1,.47.61,2.19,2.19,0,0,1,.2.85h-.73A1.38,1.38,0,0,0,95.32,102.57Z"/><path class="cls-1" d="M99.85,101.4V102H98.63v4.06a1.33,1.33,0,0,0,.1.56c.06.13.23.21.5.23a6.22,6.22,0,0,0,.63,0v.62H99.2a1.46,1.46,0,0,1-1-.29,1.44,1.44,0,0,1-.28-1.05V102h-1v-.62h1v-1.8h.73v1.8Z"/><path class="cls-1" d="M101.59,101.4v1.41h0a2.2,2.2,0,0,1,2.27-1.49v.73a2.2,2.2,0,0,0-.91.13,2,2,0,0,0-1.17,1.14,2.31,2.31,0,0,0-.16.88v3.21h-.73v-6Z"/><path class="cls-1" d="M105.33,99.09v1.18h-.73V99.09Zm0,2.31v6h-.73v-6Z"/><path class="cls-1" d="M110.42,102.23a1.59,1.59,0,0,0-1.14-.39,1.84,1.84,0,0,0-.92.22,2,2,0,0,0-.66.58,2.66,2.66,0,0,0-.4.82,3.35,3.35,0,0,0,0,1.88,2.66,2.66,0,0,0,.4.82,2,2,0,0,0,.66.58,1.84,1.84,0,0,0,.92.22,1.62,1.62,0,0,0,.64-.13,1.73,1.73,0,0,0,.54-.36,1.91,1.91,0,0,0,.38-.54,2,2,0,0,0,.19-.69h.73A2.78,2.78,0,0,1,111,107a2.36,2.36,0,0,1-1.68.61,2.83,2.83,0,0,1-1.22-.25,2.62,2.62,0,0,1-.89-.68,3,3,0,0,1-.55-1,4.15,4.15,0,0,1,0-2.46,3,3,0,0,1,.55-1,2.63,2.63,0,0,1,.89-.69,2.75,2.75,0,0,1,1.22-.26,2.61,2.61,0,0,1,1.64.51,2.19,2.19,0,0,1,.8,1.55H111A2,2,0,0,0,110.42,102.23Z"/><path class="cls-1" d="M115.18,101.4V102H114v4.06a1.31,1.31,0,0,0,.1.56c.07.13.23.21.5.23a6.13,6.13,0,0,0,.63,0v.62h-.65a1.46,1.46,0,0,1-1-.29,1.43,1.43,0,0,1-.28-1.05V102h-1v-.62h1v-1.8H114v1.8Z"/><path class="cls-1" d="M125.36,100.75a2.38,2.38,0,0,0-.58-.63,2.66,2.66,0,0,0-.76-.39,2.85,2.85,0,0,0-.87-.13,3,3,0,0,0-1.42.31,2.79,2.79,0,0,0-1,.83,3.63,3.63,0,0,0-.56,1.17,5,5,0,0,0,0,2.68,3.6,3.6,0,0,0,.56,1.18,2.81,2.81,0,0,0,1,.83,3,3,0,0,0,1.42.31,2.54,2.54,0,0,0,1-.21,2.46,2.46,0,0,0,.8-.57,3,3,0,0,0,.55-.84,3.58,3.58,0,0,0,.27-1h.79a4.54,4.54,0,0,1-.36,1.39,3.44,3.44,0,0,1-.72,1,3.1,3.1,0,0,1-1,.66,3.65,3.65,0,0,1-1.33.23,3.94,3.94,0,0,1-1.72-.36,3.54,3.54,0,0,1-1.23-1,4,4,0,0,1-.73-1.37,5.66,5.66,0,0,1,0-3.29,4.08,4.08,0,0,1,.73-1.38,3.54,3.54,0,0,1,1.23-1,4.16,4.16,0,0,1,2.88-.18,3.35,3.35,0,0,1,1,.52,3,3,0,0,1,.77.84,2.86,2.86,0,0,1,.39,1.15h-.79A2.67,2.67,0,0,0,125.36,100.75Z"/><path class="cls-1" d="M131.44,101.48a2.63,2.63,0,0,1,.89.69,3,3,0,0,1,.55,1,4.17,4.17,0,0,1,0,2.46,3,3,0,0,1-.55,1,2.61,2.61,0,0,1-.89.68,3.09,3.09,0,0,1-2.43,0,2.6,2.6,0,0,1-.89-.68,3,3,0,0,1-.55-1,4.13,4.13,0,0,1,0-2.46,3,3,0,0,1,.55-1,2.62,2.62,0,0,1,.89-.69,3,3,0,0,1,2.43,0Zm-2.14.58a2,2,0,0,0-.66.58,2.64,2.64,0,0,0-.4.82,3.33,3.33,0,0,0,0,1.88,2.64,2.64,0,0,0,.4.82,2,2,0,0,0,.66.58,2,2,0,0,0,1.84,0,2,2,0,0,0,.66-.58,2.67,2.67,0,0,0,.4-.82,3.33,3.33,0,0,0,0-1.87,2.68,2.68,0,0,0-.4-.82,2,2,0,0,0-.66-.58,2,2,0,0,0-1.84,0Z"/><path class="cls-1" d="M138.36,107.41v-1.09h0a2.07,2.07,0,0,1-.84.93,2.42,2.42,0,0,1-1.23.32,2.71,2.71,0,0,1-1-.16,1.62,1.62,0,0,1-.65-.45,1.83,1.83,0,0,1-.37-.71,3.56,3.56,0,0,1-.12-1V101.4h.73v3.92a2,2,0,0,0,.38,1.24,1.9,1.9,0,0,0,2,.21,1.74,1.74,0,0,0,.56-.54,2.45,2.45,0,0,0,.32-.78,3.68,3.68,0,0,0,.11-.89V101.4H139v6Z"/><path class="cls-1" d="M141.14,101.4v1h0a1.75,1.75,0,0,1,.75-.88,2.2,2.2,0,0,1,1.18-.33,3,3,0,0,1,1.05.16,1.65,1.65,0,0,1,.68.46,1.72,1.72,0,0,1,.36.73,4.09,4.09,0,0,1,.1,1v3.87h-.73v-3.75a3.43,3.43,0,0,0-.07-.71,1.53,1.53,0,0,0-.25-.58,1.19,1.19,0,0,0-.47-.38,1.73,1.73,0,0,0-.74-.14,1.86,1.86,0,0,0-.79.16,1.74,1.74,0,0,0-.58.43,2,2,0,0,0-.37.65,2.59,2.59,0,0,0-.14.82v3.51h-.73v-6Z"/><path class="cls-1" d="M150.36,102.23a1.6,1.6,0,0,0-1.14-.39,1.84,1.84,0,0,0-.92.22,2,2,0,0,0-.66.58,2.58,2.58,0,0,0-.39.82,3.28,3.28,0,0,0,0,1.88,2.58,2.58,0,0,0,.39.82,2.06,2.06,0,0,0,.66.58,1.84,1.84,0,0,0,.92.22,1.62,1.62,0,0,0,.64-.13,1.74,1.74,0,0,0,.54-.36,1.91,1.91,0,0,0,.38-.54,1.94,1.94,0,0,0,.19-.69h.73a2.77,2.77,0,0,1-.8,1.71,2.36,2.36,0,0,1-1.68.61,2.83,2.83,0,0,1-1.22-.25,2.6,2.6,0,0,1-.89-.68,3,3,0,0,1-.55-1,4.17,4.17,0,0,1,0-2.46,3,3,0,0,1,.55-1,2.62,2.62,0,0,1,.89-.69,2.74,2.74,0,0,1,1.22-.26,2.61,2.61,0,0,1,1.64.51,2.2,2.2,0,0,1,.8,1.55h-.73A2,2,0,0,0,150.36,102.23Z"/><path class="cls-1" d="M153.47,99.09v1.18h-.73V99.09Zm0,2.31v6h-.73v-6Z"/><path class="cls-1" d="M155.63,99.09v8.32h-.73V99.09Z"/><path class="cls-1" d="M113,42.29c.31-.41.78.25,1.11.16s.29-.62.84-.22c.21.15.23.39.47.42a.57.57,0,0,0,.42-.23c.06-.21-.47-1,.28-.75.4.13.59.91,1,1s.71-.49,1.13-.66a.94.94,0,0,1,.37-.08q.23.09.18-.14c.19-.16.19-.33.46-.46s.36,0,.58-.27a3.21,3.21,0,0,0,.4-.75c-.33-.15-.32,0-.5-.37a1.37,1.37,0,0,1-.2-1.16c0-.17,0-.35,0-.52s.17-.32.25-.54a1.39,1.39,0,0,0,0-.91c-.13-.41-.55-.53-.62-1a.84.84,0,0,1,.19-.65c.21-.21.21-.09.46-.19s.07,0,.22-.15c.52-.4.2-.56.1-1.06-.06-.28,0-.34-.17-.54s-.42-.17-.56-.35-.12-.47-.19-.72a6,6,0,0,0-.2-.74c-.31-.3-.95.56-1.12-.26a2.33,2.33,0,0,1,0-1.38c.25-.62.23-.52-.45-.63s-.92-.61-1.17-1.21c-.08-.2-.22-.14-.2-.4s.12-.2.17-.34.2,0,0-.22c-.38-.37-1.06.09-1.43-.29-.16-.16-.13-.49-.14-.7,0-.41.07-.11-.13-.36a4.08,4.08,0,0,0-.47-.46s-.35,0-.44-.09-.11-.23-.19-.26-.27.06-.36,0-.23-.15-.35-.18-.48,0-.65-.05-.17-.59-.35-.81-.27,0-.5.15c-.51.42-1-.28-1.43-.43a.8.8,0,0,0-.75,0c-.26.16-.35.49-.71.52s-.43-.28-.6-.27.12,0-.18.14c-.14.09-.09.28-.3.33s-.37-.31-.46-.29-.15.44-.17.47a.93.93,0,0,1-.45.43c-.46.21-.85-.08-1.28,0-.22.05-.21.21-.51.22s-.27-.15-.45-.08c-.38.15-.32.66-.41,1-.15.52-.18,1.1-.71,1.33a2.61,2.61,0,0,0-1,.51c-.24.21-.74.41-.91.66s0,.6,0,.94a1.22,1.22,0,0,1-.55.92c-.12.1-.4.21-.48.31s-.05.31-.13.44c-.35.65-1.7.21-1.72,1.22,0,.3.31.62.3.93,0,.11-.15.21-.15.3s0,.28,0,.4a1.23,1.23,0,0,1-.38.9s-.27.07-.31.13a2.93,2.93,0,0,0-.19.4c-.09.15-.19.18-.26.34-.16.4,0,.53.23.78a.8.8,0,0,1,.3.89,1.46,1.46,0,0,1-.23.66c-.07.16-.13,0-.15.2s.1.14.1.22c0,.36-.13.61-.14,1s-.18.58-.11.93a7.29,7.29,0,0,0,.24.8c.23.68.63,1-.06,1.6-.1.07.48.48.56.49a3.66,3.66,0,0,0,1.21-.23,5.49,5.49,0,0,0,.75-.25,2.27,2.27,0,0,1,.32-.18c.25-.06.31.06.53.06s.21-.08.35-.09a2.33,2.33,0,0,1,.63.12c.48.08.59-.17,1-.37a2.1,2.1,0,0,1,1.52-.16c.19.09.31.31.5.41s.55.09.78.31.18.47.39.53.56-.23.76-.35.91-.72,1.34-.64.36,1,.35,1.4c0,1,.38,2-.18,2.92a5.66,5.66,0,0,1,1.65.08c-.48-.28-.55-1.24-.57-1.74,0-.75,0-1.5,0-2.24,0-.32,0-.62.42-.59.2,0,.33.2.5.2s.54-.25.73-.3a2.66,2.66,0,0,1,2.08.13S113,42.33,113,42.29Z"/><path class="cls-1" d="M138.75,44.19l.13-.1c0-.16-.3-.38-.36-.47a1.79,1.79,0,0,1-.2-.39c0-.4.46-.63.53-1a1.59,1.59,0,0,0-.23-.88c-.1-.28-.06-.89-.28-1.1s-.43-.12-.58-.49-.08-.66-.2-1a1.4,1.4,0,0,0-.72-.88.81.81,0,0,1-.46-1c.05-.29.27-.52.16-.83s-.7-.42-1-.63-.36-.58-.55-1q0-.09,0-.18a.61.61,0,0,1-.36-.23c-.1-.13-.07-.38-.19-.51-.31-.33-.92-.22-1.33-.27a5.7,5.7,0,0,1-1.26-.39c-.41-.15-.48-.24-.88-.2s-.64-.19-.76-.17-.54.52-.92.5a1.19,1.19,0,0,0-1.2.45c-.23.23-.33.32-.66.3-.13,0-.17-.19-.37-.12s-.15.75-.23,1c-.13.41-.52.35-.68.62s0,.62-.08.8a3.4,3.4,0,0,1-.25.6c-.12.15-.28.08-.42.17s-.2.3-.35.39-.46.12-.67.24c-.5.29-.18.35-.25.85,0,.27-.28.39-.35.61a1.37,1.37,0,0,0,.1.77,1.7,1.7,0,0,1,.07.86c0,.17-.05.15,0,.32s.17.26.18.43a.87.87,0,0,1-.05.33,3,3,0,0,0-.18.38,2.38,2.38,0,0,1-.68.72c-.29.13-.43.11-.21.64,0,.08,0,.2,0,.3a1.21,1.21,0,0,0,.17.29c.08.09.21.15.28.24.31.43.13.64.7.6s.43-.07.76.22a2.47,2.47,0,0,0,.87.51,11.33,11.33,0,0,0,1.28.19c.55.1,1.21,0,1.77.05a3.31,3.31,0,0,1,1.31.51c.1,0,.47-.1.47-.1.25.11.25.3.27.53s0,.66,0,1a2.29,2.29,0,0,1-.21,1.79,3.14,3.14,0,0,0,1.4.05c-.52-.43-.42-1.51-.36-2.1,0-.42,0-1,.31-1.33.51-.48,1.22-.13,1.81-.24a5.82,5.82,0,0,1,1-.24c.24,0,.48.07.73.08a1.5,1.5,0,0,0,.93-.31.27.27,0,0,0,.21,0,3.32,3.32,0,0,1,.27-.27,2.2,2.2,0,0,1,.55-.33.16.16,0,0,0,.24,0,2,2,0,0,0,.29-.32,2.69,2.69,0,0,1,.71-.3S138.65,44.23,138.75,44.19Z"/><path class="cls-2" d="M129.45,46.52a.5.5,0,0,1-.18,0,.35.35,0,0,1-.24-.11l-.43,0-.53,0a4.43,4.43,0,0,0-.67,0H127a.59.59,0,0,1-.49-.13h-.2a2,2,0,0,1-.9-.11l-.17-.11a2.29,2.29,0,0,1-.91-.61,4.41,4.41,0,0,1-.45.06c-.65.08-.88-.51-1-.82a1.22,1.22,0,0,1-.43-.49.53.53,0,0,1-.2-.15,121.41,121.41,0,0,0-12.41.33s0,.05,0,.08a1.74,1.74,0,0,0,0,.18,1.9,1.9,0,0,1,0,.5v.11c0,.1.06.55.06.55l.17.59a118.47,118.47,0,0,1,20.09.65v-.17A.64.64,0,0,1,129.45,46.52Z"/><path class="cls-2" d="M124.6,36.7a1,1,0,0,1,.64-.48,1.1,1.1,0,0,1,.26-.51,1.93,1.93,0,0,1,0-.35.83.83,0,0,1,.13-.47q-2.54.16-5,.41v.21l-.67.22,0,0,0,.1.21.14.14.18.2.39.12.67c1.13-.08,2.28-.15,3.44-.2A2.07,2.07,0,0,1,124.6,36.7Z"/><path class="cls-1" d="M132.38,47.27c0,.13,0,.23-.06.34l0,.18a1.51,1.51,0,0,1,0,.38c0,.09,0,.22.06.36s0,.24.07.36l.07.19.37.24.43.14c.45.24.72.38.65.66l-.07.24h-.27l-.42,0-.52-.05a1.22,1.22,0,0,1-.41-.08l-.25,0h-.09a3.4,3.4,0,0,1-.73,0l-.19,0a2.66,2.66,0,0,1-.57-.09h0a1.52,1.52,0,0,1-.49.05,1.83,1.83,0,0,0-.53.06A.31.31,0,0,1,129,50c-.08-.24.18-.4.18-.4l.53-.2a.35.35,0,0,1,.23-.14.59.59,0,0,0,.16-.05h0l.13-.2.1-.37v-.48l-.11-.64V47a118.47,118.47,0,0,0-20.09-.65v0l.37.28.5.2c.53.32.73.48.66.73l-.06.22h-.26l-.49-.05-.52-.06a1.11,1.11,0,0,1-.42-.09,5.49,5.49,0,0,0-.55-.15l-.42,0a2.6,2.6,0,0,1-.48.06,2,2,0,0,0-.43,0l-.08,0a1.18,1.18,0,0,1-.55.09,1.77,1.77,0,0,0-.55.08.28.28,0,0,1-.37-.17.31.31,0,0,1,.14-.39l.71-.33.29-.2,0-.09C88.95,48,73.13,54,64.7,63.08,78.66,56,99,53,120.51,55.91c16.8,2.27,31.33,7.77,41.62,15A43.81,43.81,0,0,1,178.62,67l1.3,0C169.73,57.48,152.74,50,132.43,47.28Z"/><path class="cls-1" d="M137,37.21a.37.37,0,0,1,.27.23l.09,0a.92.92,0,0,1,.27.15,1.45,1.45,0,0,1,.32.49,1.7,1.7,0,0,0,.08.17,2.39,2.39,0,0,1,.27,1.15l.07.16a.93.93,0,0,1,.61.49,1.1,1.1,0,0,1,.13.73V41a.8.8,0,0,0,.11.14.63.63,0,0,1,.2.69s0,.05,0,.15a.75.75,0,0,1,0,.57,1,1,0,0,1-.26.38,1,1,0,0,1-.1.22.81.81,0,0,1,.09.34.81.81,0,0,1,.36.71.57.57,0,0,1-.28.44h0c-.06.12-.22.18-.74.33a1.88,1.88,0,0,1-.5.44C148.54,47,157.79,50,164.92,53.77a44,44,0,0,1,14.39-3.71l1.14-.08c-9.41-6.77-24.74-11.7-42.79-12.87l-.65,0,0,.08A.2.2,0,0,0,137,37.21Z"/><path class="cls-1" d="M122.31,44a.39.39,0,0,1-.07-.08.55.55,0,0,1,0-.45.75.75,0,0,1,.12-1l.1-.3a.76.76,0,0,0,.21.14l.07,0s.06-.09.09-.14a1.68,1.68,0,0,1,.16-.22c.07-.08.18-.08.22-.14s0-.22,0-.29l0-.33s.1,0,.11,0,0,0,0-.06a1,1,0,0,1-.15-.27.37.37,0,0,1,.05-.31.38.38,0,0,1,0-.29.45.45,0,0,1,.11-.2l0-.07a3.8,3.8,0,0,1-.19-.93.85.85,0,0,1,.28-.59.82.82,0,0,0,.14-.18l0-.17a.88.88,0,0,1,0-.56,1.49,1.49,0,0,1,.2-.33,2.86,2.86,0,0,1,.29-.2c-1.15.05-2.3.11-3.44.2l0,.28v0a1.46,1.46,0,0,1-.34.75s0,.06,0,.09a1.27,1.27,0,0,1-.1.71l0,.09a2.31,2.31,0,0,1,.21.4l0,.11.1,0h0a.68.68,0,0,1,.44.39.81.81,0,0,1-.14.67l-.09.17c-.16.36-.45,1-1.19,1,0,0,0,.06,0,.1a.56.56,0,0,1-.27.56.42.42,0,0,1-.32,0,.38.38,0,0,0-.49.14,1.15,1.15,0,0,1-.61.42.53.53,0,0,1-.15.15c-.42.27-.95-.18-1.21-.44a.67.67,0,0,1-.46.33,1.19,1.19,0,0,0-.21.08c-.55.27-.81-.05-1.08-.39l0,0c-.26.29-.51.31-1,.1l-.25-.11c-.29.19-.47.18-.91,0a2.79,2.79,0,0,0-1.89.21c-.25.17-.41.27-.59.23l0,.23c0,.06,0,.48,0,.8A121.41,121.41,0,0,1,122.31,44Z"/><path class="cls-1" d="M107.74,43.29v0l-1,.59a1.45,1.45,0,0,1-1,.32,1.25,1.25,0,0,1-.55-.42l-.2-.33-.68-.22-.45-.38h-.15l-.69.13a4.4,4.4,0,0,0-.58.37.72.72,0,0,1-.69.14,1.87,1.87,0,0,1-.56-.16.84.84,0,0,1-.48.14.89.89,0,0,1-.41-.12l-.24.13-.89.3a13.91,13.91,0,0,1-1.42.24.78.78,0,0,1-.45-.21l-.12-.08c-.34-.09-.44-.51-.46-.59a.71.71,0,0,1,.14-.72l.06-.07v-.19s.09,0,.12,0,0,0,0-.05a1.12,1.12,0,0,1-.24-.25s0-.06,0-.09C89,44.39,82.66,48,78.57,52.21c7.72-3.86,17.86-6.55,29.18-7.67l0-.2Z"/><path class="cls-1" d="M119.72,31.68l.08.18.13.39v.24l.12.09.38.21.35.32v.45l0,.2.14.26.16.54-.33.54-.15.12v.08q2.48-.25,5-.41l.07-.08a1.16,1.16,0,0,1,.32-.2l.08,0c.08,0,.09-.06.09-.07a.82.82,0,0,0,0-.29,1,1,0,0,1,.17-.76l.06-.09a.6.6,0,0,1,.64-.34,1.26,1.26,0,0,1,.48.08l.11-.13a1.6,1.6,0,0,1,.53-.47,2.52,2.52,0,0,1,1-.12l.18,0,.13,0s0,0,0-.08a1.17,1.17,0,0,1,.14-.2.59.59,0,0,1,.78-.18.31.31,0,0,1,.14-.06c.1,0,.2.14.2.14a.81.81,0,0,1,.35-.08.94.94,0,0,1,.61.21.94.94,0,0,0,.18.1h.1a.76.76,0,0,1,.29.05,1.39,1.39,0,0,1,.22.13.79.79,0,0,0,.19.11,3,3,0,0,0,.69.09,2,2,0,0,1,1.39.4,1.32,1.32,0,0,1,.23.41.93.93,0,0,0,.06.13l.07.11a.46.46,0,0,1,.28.16.75.75,0,0,1,.1.56.85.85,0,0,0,0,.1.68.68,0,0,0,0,.08c11.72.14,22,1.83,29.74,4.59A46.89,46.89,0,0,1,178,35.66l1-.13c-8.59-4.32-22.37-6.93-38.44-6.67a131,131,0,0,0-21.09,2l.2.26Z"/><path class="cls-1" d="M96.46,40.15a1.07,1.07,0,0,1,.16-.47,1.06,1.06,0,0,1,.07-.91l0-.34,0-.43a33.86,33.86,0,0,0-8.09,5.43,66.89,66.89,0,0,1,7.85-3.16s0,0,0,0Z"/></svg>
@@ -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.1 | MIT */
535
+ /*! js-cookie v3.0.5 | 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 = global || self, (function () {
540
+ (global = typeof globalThis !== 'undefined' ? globalThis : 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 (key, value, attributes) {
579
+ function set (name, 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
- key = encodeURIComponent(key)
593
+ name = encodeURIComponent(name)
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
- key + '=' + converter.write(value, key) + stringifiedAttributes)
620
+ name + '=' + converter.write(value, name) + stringifiedAttributes)
621
621
  }
622
622
 
623
- function get (key) {
624
- if (typeof document === 'undefined' || (arguments.length && !key)) {
623
+ function get (name) {
624
+ if (typeof document === 'undefined' || (arguments.length && !name)) {
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 foundKey = decodeURIComponent(parts[0]);
638
- jar[foundKey] = converter.read(value, foundKey);
637
+ var found = decodeURIComponent(parts[0]);
638
+ jar[found] = converter.read(value, found);
639
639
 
640
- if (key === foundKey) {
640
+ if (name === found) {
641
641
  break
642
642
  }
643
643
  } catch (e) {}
644
644
  }
645
645
 
646
- return key ? jar[key] : jar
646
+ return name ? jar[name] : jar
647
647
  }
648
648
 
649
649
  return Object.create(
650
650
  {
651
- set: set,
652
- get: get,
653
- remove: function (key, attributes) {
651
+ set,
652
+ get,
653
+ remove: function (name, attributes) {
654
654
  set(
655
- key,
655
+ name,
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.8",
3
+ "version": "3.8.10",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "engines": {
6
6
  "node": "^16.14.0"
@@ -128,14 +128,14 @@
128
128
  "standard": "^17.0.0",
129
129
  "uglify-js": "^3.6.0",
130
130
  "watchify": "^4.0.0",
131
- "xo": "^0.53.0"
131
+ "xo": "^0.54.0"
132
132
  },
133
133
  "directories": {
134
134
  "lib": "lib"
135
135
  },
136
136
  "dependencies": {
137
137
  "lodash": "4.17.21",
138
- "moment-timezone": "0.5.42",
138
+ "moment-timezone": "0.5.43",
139
139
  "rfc822-validate": "1.0.0",
140
140
  "slugify": "1.6.6",
141
141
  "winston": "3.8.2"
@@ -0,0 +1,55 @@
1
+ $govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
2
+ @import "application";
3
+
4
+ // CUSTOM BRANDING
5
+ // Use the variables below to control the style
6
+ // Make sure banner colours meet minimum colour contrast levels
7
+
8
+ $custom-banner-colour: #003150;
9
+ $custom-banner-border-colour: #ffffff;
10
+ $custom-text-colour: #ffffff;
11
+ $logo-image-height: 2em;
12
+
13
+ .custom-branding {
14
+ @if $logo-image-height != null {
15
+ .custom-branding-image {
16
+ max-height: $logo-image-height;
17
+
18
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19
+ width: 100%;
20
+ }
21
+ }
22
+ }
23
+
24
+ .govuk-header {
25
+ background-color: $custom-banner-colour;
26
+ }
27
+
28
+ .govuk-header__link{
29
+ &:link,
30
+ &:visited {
31
+ color: $custom-text-colour;
32
+ }
33
+ }
34
+
35
+ .govuk-header__link--service-name {
36
+ color: $custom-text-colour;
37
+ }
38
+
39
+ .govuk-header__container {
40
+ border-bottom-color: $custom-banner-border-colour;
41
+ }
42
+
43
+ @include govuk-media-query($from: tablet) {
44
+ .govuk-header__content {
45
+ width: 66%;
46
+ vertical-align: bottom;
47
+ margin-bottom: 7px;
48
+ }
49
+ }
50
+
51
+ .govuk-button {
52
+ padding: 7px 15px 6px;
53
+ padding: .368421053em .842105263em .315789474em;
54
+ }
55
+ }
@@ -0,0 +1,62 @@
1
+ $govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
2
+ @import "application";
3
+
4
+ // CUSTOM BRANDING
5
+ // Use the variables below to control the style
6
+ // Make sure banner colours meet minimum colour contrast levels
7
+
8
+ $custom-banner-colour: #598148;
9
+ $custom-banner-border-colour: #324829;
10
+ $custom-text-colour: #FEFEFE;
11
+ $logo-image-height: 3.5em;
12
+
13
+ .custom-branding {
14
+ @if $logo-image-height != null {
15
+ .custom-branding-image {
16
+ max-height: $logo-image-height;
17
+ width: 100%;
18
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19
+ width: 100%;
20
+ }
21
+ }
22
+ }
23
+
24
+ .govuk-header {
25
+ background-color: $custom-banner-colour;
26
+ }
27
+
28
+ .govuk-header__link{
29
+ &:link,
30
+ &:visited {
31
+ color: $custom-text-colour;
32
+ }
33
+ }
34
+
35
+ .govuk-header__link--homepage{
36
+ &:hover {
37
+ margin-bottom: 0;
38
+ border-bottom: inherit;
39
+ }
40
+ }
41
+
42
+ .govuk-header__link--service-name {
43
+ color: $custom-text-colour;
44
+ }
45
+
46
+ .govuk-header__container {
47
+ border-bottom-color: $custom-banner-border-colour;
48
+ }
49
+
50
+ @include govuk-media-query($from: tablet) {
51
+ .govuk-header__content {
52
+ width: 66%;
53
+ vertical-align: bottom;
54
+ margin-bottom: 7px;
55
+ }
56
+ }
57
+
58
+ .govuk-button {
59
+ padding: 7px 15px 6px;
60
+ padding: .368421053em .842105263em .315789474em;
61
+ }
62
+ }
@@ -1,31 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <JSCodeStyleSettings version="0">
4
- <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
5
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
6
- <option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />
7
- <option name="USE_DOUBLE_QUOTES" value="false" />
8
- <option name="FORCE_QUOTE_STYlE" value="true" />
9
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
10
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
11
- </JSCodeStyleSettings>
12
- <JavaCodeStyleSettings>
13
- <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1000" />
14
- <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1000" />
15
- </JavaCodeStyleSettings>
16
- <codeStyleSettings language="JavaScript">
17
- <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
18
- <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
19
- <option name="ALIGN_MULTILINE_FOR" value="false" />
20
- <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
21
- <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
22
- <option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
23
- <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
24
- <indentOptions>
25
- <option name="INDENT_SIZE" value="2" />
26
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
27
- <option name="TAB_SIZE" value="2" />
28
- </indentOptions>
29
- </codeStyleSettings>
30
- </code_scheme>
31
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="StandardJS" enabled="true" level="ERROR" enabled_by_default="true" />
5
- </profile>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/pay-js-commons.iml" filepath="$PROJECT_DIR$/.idea/pay-js-commons.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
File without changes
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>