@govuk-pay/pay-js-commons 3.3.1 → 3.3.5

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.
@@ -10,8 +10,13 @@ updates:
10
10
  - dependencies
11
11
  - govuk-pay
12
12
  - javascript
13
- - package-ecosystem: "github-actions"
13
+ - package-ecosystem: github-actions
14
14
  directory: "/"
15
15
  schedule:
16
- interval: "daily"
16
+ interval: daily
17
17
  time: "03:00"
18
+ open-pull-requests-limit: 10
19
+ labels:
20
+ - dependencies
21
+ - govuk-pay
22
+ - github_actions
package/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ nodejs 12.17.0
package/ci/pipeline.yml CHANGED
@@ -53,7 +53,7 @@ jobs:
53
53
  - |
54
54
  apk add --no-cache chromium
55
55
  export CHROMIUM_BIN="$(which chromium)"
56
- npm install
56
+ npm ci
57
57
  npm run test
58
58
  on_failure:
59
59
  put: pull-request
@@ -0,0 +1 @@
1
+ <svg enable-background="new 0 0 601 175.9" viewBox="0 0 601 175.9" xmlns="http://www.w3.org/2000/svg"><g fill="#fff" stroke="#fff" stroke-miterlimit="10"><path d="m135.7.5h-135.2v83.7c-.1 54 59.1 89.5 67.6 91.2 8.5-1.8 67.6-37.3 67.6-90.9zm-67.7 162.6c-6.8-1.4-57.8-32.1-57.8-78.4 0 0 0-55.4 0-75h115.8v75.3c0 46.1-51 76.7-58 78.1"/><path d="m88.4 63.4c5.6 6.7 7.7 11.6 7.9 20.4.3 9.8-7.7 26.4-28.2 26.4-20.4 0-28.1-16.8-28.1-26.4 0-8.8 2.6-14.1 7.9-20.6-8.8 5.3-21.1 15.9-21.2 37.1-.1 21 20.9 38.3 41.4 38.3 20.6 0 41.3-17.5 41.3-38.4 0-20.7-12.4-31.4-21-36.8"/><path d="m43.4 45.5c1.6 1.7 2.8 2.6 5.3 1.1 3.9-2.3 5.9-.8 10-.2-2.5 1.9-5.2 2.8-5.6 5.2-.5 3.1-2.3 4.5-4.6 5.8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.3-.2l-.2-.2v-1.4l.2-.2c1.3.1 3.3.1 6.1.1s4.8 0 6.1-.1l.2.2v1.4l-.2.2c-1.3.1-2.1.1-2.3.2-.4.1-.6.4-.7.7-.2.9-.3 3-.3 6.2v10.5c0 3.2.1 5.2.3 6.2.1.4.3.6.7.7.2.1 1 .1 2.3.2l.2.2z"/><path d="m600.5 126.5c-.3 1.9-.4 4.1-.4 6.6l-.2.2-14.4-.1c-2.4 0-4.1 0-5.1.1l-.2-.2v-.6l.1-.2c1-.6 1.5-1 1.6-1.2s.2-1.1.2-2.6l.1-4.4v-10.1c0-3.1-.1-5.2-.3-6.2-.1-.4-.3-.6-.7-.7-.2-.1-1-.1-2.3-.2l-.2-.2v-1.4l.2-.2c1.4.1 3.4.1 6 .1 2.7 0 4.8 0 6.2-.1l.2.2v1.4l-.2.2c-1.3.1-2.1.1-2.3.2-.4.1-.6.4-.7.7-.2 1-.3 3-.3 6.2v11.8c0 1.7 0 3.4.1 5h2.7c3.9 0 6.2-.2 7.1-.5.1-.1.3-.1.3-.2.1-.2.3-.6.4-1.2l.5-2.5.2-.2h1.2z"/></g></svg>
@@ -17,7 +17,10 @@ module.exports = {
17
17
  Keys match those defined here:
18
18
  https://github.com/alphagov/pay-webhooks/blob/main/src/main/java/uk/gov/pay/webhooks/eventtype/EventTypeName.java
19
19
  */
20
- CARD_PAYMENT_CAPTURED: 'Payment captured'
20
+ CARD_PAYMENT_STARTED: 'Payment started',
21
+ CARD_PAYMENT_SUCCEEDED: 'Payment succeeded',
22
+ CARD_PAYMENT_CAPTURED: 'Payment captured',
23
+ CARD_PAYMENT_REFUNDED: 'Payment refunded'
21
24
  }
22
25
  }
23
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.3.1",
3
+ "version": "3.3.5",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -117,7 +117,7 @@
117
117
  "husky": "^7.0.0",
118
118
  "jest": "^27.0.1",
119
119
  "js-cookie": "^3.0.0",
120
- "jsdom": "^18.0.0",
120
+ "jsdom": "^19.0.0",
121
121
  "jsdom-global": "^3.0.2",
122
122
  "karma": "^6.0.0",
123
123
  "karma-browserify": "^8.0.0",
@@ -125,22 +125,22 @@
125
125
  "karma-mocha": "^2.0.0",
126
126
  "karma-mocha-reporter": "^2.2.5",
127
127
  "karma-source-map-support": "^1.2.0",
128
- "lint-staged": "^11.0.0",
128
+ "lint-staged": "^12.0.2",
129
129
  "mocha": "^9.1.0",
130
130
  "sinon": "^12.0.0",
131
131
  "standard": "^16.0.3",
132
132
  "uglify-js": "^3.6.0",
133
133
  "watchify": "^4.0.0",
134
- "xo": "^0.46.0"
134
+ "xo": "^0.47.0"
135
135
  },
136
136
  "directories": {
137
137
  "lib": "lib"
138
138
  },
139
139
  "dependencies": {
140
140
  "lodash": "4.17.21",
141
- "moment-timezone": "0.5.33",
141
+ "moment-timezone": "0.5.34",
142
142
  "rfc822-validate": "1.0.0",
143
- "slugify": "1.6.2",
144
- "winston": "3.3.3"
143
+ "slugify": "1.6.5",
144
+ "winston": "3.4.0"
145
145
  }
146
146
  }
@@ -8,12 +8,12 @@ $govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ub
8
8
  $custom-banner-colour: #005EB8;
9
9
  $custom-banner-border-colour: #ffffff;
10
10
  $custom-text-colour: #ffffff;
11
- $logo-image-height: 2em;
11
+ $logo-image-width: 215px;
12
12
 
13
13
  .custom-branding {
14
- @if $logo-image-height != null {
14
+ @if $logo-image-width != null {
15
15
  .custom-branding-image {
16
- max-height: $logo-image-height;
16
+ width: $logo-image-width;
17
17
 
18
18
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
19
19
  width: 100%;
@@ -44,6 +44,10 @@ $logo-image-height: 2em;
44
44
  border-bottom-color: $custom-banner-border-colour;
45
45
  }
46
46
 
47
+ .govuk-header__logo {
48
+ float: right;
49
+ }
50
+
47
51
  @include govuk-media-query($from: 48em) {
48
52
  .govuk-header__content {
49
53
  width: 66%;
@@ -52,7 +56,7 @@ $logo-image-height: 2em;
52
56
  }
53
57
  .govuk-header__link--service-name {
54
58
  padding-top: 15px;
55
- float: right;
59
+ float: left;
56
60
  }
57
61
  }
58
62
 
@@ -0,0 +1,67 @@
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: #053876;
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__logo {
29
+ padding-top: 10px;
30
+ padding-bottom: 10px;
31
+ }
32
+
33
+ @include govuk-media-query($until: tablet) {
34
+ .govuk-header__logo {
35
+ padding-left: 5px;
36
+ }
37
+ }
38
+
39
+ .govuk-header__link{
40
+ &:link,
41
+ &:visited {
42
+ color: $custom-text-colour;
43
+ }
44
+ }
45
+
46
+ .govuk-header__link--service-name {
47
+ color: $custom-text-colour;
48
+ }
49
+
50
+ .govuk-header__container {
51
+ border-bottom-color: $custom-banner-border-colour;
52
+ }
53
+
54
+ @include govuk-media-query($from: tablet) {
55
+ .govuk-header__content {
56
+ width: 66%;
57
+ vertical-align: bottom;
58
+ padding-top: 15px;
59
+ margin-bottom: 7px;
60
+ }
61
+ }
62
+
63
+ .govuk-button {
64
+ padding: 7px 15px 6px;
65
+ padding: .368421053em .842105263em .315789474em;
66
+ }
67
+ }