@govuk-pay/pay-js-commons 3.3.3 → 3.3.6
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/.github/dependabot.yml
CHANGED
|
@@ -10,8 +10,13 @@ updates:
|
|
|
10
10
|
- dependencies
|
|
11
11
|
- govuk-pay
|
|
12
12
|
- javascript
|
|
13
|
-
- package-ecosystem:
|
|
13
|
+
- package-ecosystem: github-actions
|
|
14
14
|
directory: "/"
|
|
15
15
|
schedule:
|
|
16
|
-
interval:
|
|
16
|
+
interval: daily
|
|
17
17
|
time: "03:00"
|
|
18
|
+
open-pull-requests-limit: 10
|
|
19
|
+
labels:
|
|
20
|
+
- dependencies
|
|
21
|
+
- govuk-pay
|
|
22
|
+
- github_actions
|
|
@@ -18,9 +18,9 @@ jobs:
|
|
|
18
18
|
- name: Checkout
|
|
19
19
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
|
20
20
|
- name: Setup
|
|
21
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
|
|
22
22
|
with:
|
|
23
|
-
node-version: 12.22.
|
|
23
|
+
node-version: 12.22.10
|
|
24
24
|
- name: Cache NPM packages
|
|
25
25
|
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
|
|
26
26
|
with:
|
package/ci/pipeline.yml
CHANGED
package/lib/constants/index.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "3.3.6",
|
|
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": "^
|
|
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",
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
"karma-source-map-support": "^1.2.0",
|
|
128
128
|
"lint-staged": "^12.0.2",
|
|
129
129
|
"mocha": "^9.1.0",
|
|
130
|
-
"sinon": "^
|
|
130
|
+
"sinon": "^13.0.0",
|
|
131
131
|
"standard": "^16.0.3",
|
|
132
132
|
"uglify-js": "^3.6.0",
|
|
133
133
|
"watchify": "^4.0.0",
|
|
134
|
-
"xo": "^0.
|
|
134
|
+
"xo": "^0.48.0"
|
|
135
135
|
},
|
|
136
136
|
"directories": {
|
|
137
137
|
"lib": "lib"
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"lodash": "4.17.21",
|
|
141
141
|
"moment-timezone": "0.5.34",
|
|
142
142
|
"rfc822-validate": "1.0.0",
|
|
143
|
-
"slugify": "1.6.
|
|
144
|
-
"winston": "3.
|
|
143
|
+
"slugify": "1.6.5",
|
|
144
|
+
"winston": "3.6.0"
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -25,6 +25,17 @@ $logo-image-height: 2em;
|
|
|
25
25
|
background-color: $custom-banner-colour;
|
|
26
26
|
}
|
|
27
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
|
+
|
|
28
39
|
.govuk-header__link{
|
|
29
40
|
&:link,
|
|
30
41
|
&:visited {
|
|
@@ -44,6 +55,7 @@ $logo-image-height: 2em;
|
|
|
44
55
|
.govuk-header__content {
|
|
45
56
|
width: 66%;
|
|
46
57
|
vertical-align: bottom;
|
|
58
|
+
padding-top: 15px;
|
|
47
59
|
margin-bottom: 7px;
|
|
48
60
|
}
|
|
49
61
|
}
|