@govuk-pay/pay-js-commons 3.3.10 → 3.4.0

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.
@@ -17,10 +17,13 @@ jobs:
17
17
  steps:
18
18
  - name: Checkout
19
19
  uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
20
+ - name: Parse Node version
21
+ run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
22
+ id: parse-node-version
20
23
  - name: Setup
21
24
  uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
22
25
  with:
23
- node-version: 12.22.10
26
+ node-version: "${{ steps.parse-node-version.outputs.NVMRC }}"
24
27
  - name: Cache NPM packages
25
28
  uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0
26
29
  with:
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.3.10",
3
+ "version": "3.4.0",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
+ "engines": {
6
+ "node": "^16.14.0"
7
+ },
5
8
  "main": "lib/index.js",
6
9
  "scripts": {
7
10
  "compile": "npm run transpile",
@@ -33,7 +36,6 @@
33
36
  "Google Analytics",
34
37
  "Event Tracking"
35
38
  ],
36
- "author": "Jon Heslop (Government Digital Service)",
37
39
  "license": "MIT",
38
40
  "bugs": {
39
41
  "url": "https://github.com/alphagov/pay-js-commons/issues"
@@ -114,7 +116,7 @@
114
116
  "chai": "^4.2.0",
115
117
  "eslint-plugin-import": "^2.18.0",
116
118
  "eslint-plugin-promise": "^5.1.0",
117
- "husky": "^7.0.0",
119
+ "husky": "^8.0.1",
118
120
  "jest": "^27.0.1",
119
121
  "js-cookie": "^3.0.0",
120
122
  "jsdom": "^19.0.0",
@@ -128,11 +130,11 @@
128
130
  "karma-source-map-support": "^1.2.0",
129
131
  "lint-staged": "^12.0.2",
130
132
  "mocha": "^9.1.0",
131
- "sinon": "^13.0.0",
133
+ "sinon": "^14.0.0",
132
134
  "standard": "^16.0.3",
133
135
  "uglify-js": "^3.6.0",
134
136
  "watchify": "^4.0.0",
135
- "xo": "^0.48.0"
137
+ "xo": "^0.49.0"
136
138
  },
137
139
  "directories": {
138
140
  "lib": "lib"