@govuk-pay/pay-js-commons 3.3.7 → 3.3.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.
@@ -16,13 +16,13 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - name: Checkout
19
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
19
+ uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
20
20
  - name: Setup
21
21
  uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
22
22
  with:
23
23
  node-version: 12.22.10
24
24
  - name: Cache NPM packages
25
- uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
25
+ uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0
26
26
  with:
27
27
  path: ~/.npm
28
28
  key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -22,7 +22,7 @@ module.exports = function (string) {
22
22
  Ÿ: 'Y'
23
23
  });
24
24
  return slugify(string, {
25
- remove: /[$*_+~.()'"!:@?%=£]/g,
25
+ remove: /[^A-Za-z0-9\s-]/g,
26
26
  lower: true
27
27
  });
28
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.3.7",
3
+ "version": "3.3.10",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -119,6 +119,7 @@
119
119
  "js-cookie": "^3.0.0",
120
120
  "jsdom": "^19.0.0",
121
121
  "jsdom-global": "^3.0.2",
122
+ "jest-environment-jsdom": "^27.0.1",
122
123
  "karma": "^6.0.0",
123
124
  "karma-browserify": "^8.0.0",
124
125
  "karma-chrome-launcher": "^3.1.0",
@@ -141,6 +142,6 @@
141
142
  "moment-timezone": "0.5.34",
142
143
  "rfc822-validate": "1.0.0",
143
144
  "slugify": "1.6.5",
144
- "winston": "3.6.0"
145
+ "winston": "3.7.2"
145
146
  }
146
147
  }