@govuk-pay/pay-js-commons 3.3.9 → 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,7 +16,7 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - name: Checkout
19
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
19
+ uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
20
20
  - name: Setup
21
21
  uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
22
22
  with:
@@ -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.9",
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",
@@ -1,34 +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="10000" />
15
- </JavaCodeStyleSettings>
16
- <TypeScriptCodeStyleSettings version="0">
17
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
18
- </TypeScriptCodeStyleSettings>
19
- <codeStyleSettings language="JavaScript">
20
- <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
21
- <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
22
- <option name="ALIGN_MULTILINE_FOR" value="false" />
23
- <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
24
- <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
25
- <option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
26
- <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
27
- <indentOptions>
28
- <option name="INDENT_SIZE" value="2" />
29
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
30
- <option name="TAB_SIZE" value="2" />
31
- </indentOptions>
32
- </codeStyleSettings>
33
- </code_scheme>
34
- </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>
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>