@gov-cy/govcy-express-services 1.11.1 → 1.11.3

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/README.md CHANGED
@@ -1905,8 +1905,10 @@ The validation rules for each element are defined in the `"validations` array fo
1905
1905
  - `noSpecialChars`: Consists only of letters, numbers and some other characters
1906
1906
  - `noSpecialCharsEl`: Consists only of Greek letters, numbers and some other characters
1907
1907
  - `textWide_EL`: Consists of Greek Letters and a wider range of characters
1908
- - `textWide_EL_Latn`: Consists of Greek Letters, Latin letters, numbers and a wider range of characters
1909
- - `textWide_EL_Latn_TR`: Consists of Greek Letters, Latin letters, Turkish letters, numbers and a wider range of characters
1908
+ - `textWide_EL_Latin`: Consists of Greek Letters, Latin letters, numbers and a wider range of characters
1909
+ - `textWide_EL_Latin_TR`: Consists of Greek Letters, Latin letters, Turkish letters, numbers and a wider range of characters
1910
+ - `textWide_EL_Latn`: Deprecated alias of `textWide_EL_Latin` (still supported for backward compatibility)
1911
+ - `textWide_EL_Latn_TR`: Deprecated alias of `textWide_EL_Latin_TR` (still supported for backward compatibility)
1910
1912
  - `textWide_UTF`: Consists of any letters, numbers and a wider range of characters
1911
1913
  - `numeric`: Numeric input
1912
1914
  - `numDecimal`: Numeric decimal input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/govcy-express-services",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -42,6 +42,7 @@
42
42
  "scripts": {
43
43
  "dev": "nodemon src/standalone.mjs",
44
44
  "start": "node src/standalone.mjs",
45
+ "start:all-features": "node tests/mocks/all-features/allFeaturesStarter.mjs",
45
46
  "start:mock": "node tests/mocks/mockApiServer.mjs",
46
47
  "test": "mocha --timeout 60000 tests/**/*.test.mjs --exit",
47
48
  "test:report": "mocha --timeout 60000 --reporter mochawesome tests/**/*.test.mjs --exit",
@@ -30,8 +30,11 @@ function validateValue(value, rules) {
30
30
  noSpecialChars: (val) => /^([0-9]|[A-Z]|[a-z]|[α-ω]|[Α-Ω]|[,]|[.]|[-]|[(]|[)]|[?]|[!]|[;]|[:]|[\n]|[\r]|[ _]|[\u0370-\u03ff\u1f00-\u1fff])+$/.test(val),
31
31
  noSpecialCharsEl: (val) => /^([0-9]|[α-ω]|[Α-Ω]|[,]|[.]|[-]|[(]|[)]|[?]|[!]|[;]|[:]|[\n]|[\r]|[ _]|[\u0370-\u03ff\u1f00-\u1fff])+$/.test(val),
32
32
  textWide_EL: (val) => /^([0-9Α-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
33
- textWide_EL_Latn: (val) => /^([A-Za-zΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
34
- textWide_EL_Latn_TR: (val) => /^([A-Za-zğĞıİşŞöÖüÜçÇΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
33
+ textWide_EL_Latin: (val) => /^([A-Za-zΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
34
+ textWide_EL_Latin_TR: (val) => /^([A-Za-zğĞıİşŞöÖüÜçÇΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
35
+ // Backward-compatible aliases with previous misspelling
36
+ textWide_EL_Latn: (val) => /^([A-Za-zΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
37
+ textWide_EL_Latn_TR: (val) => /^([A-Za-zğĞıİşŞöÖüÜçÇΑ-Ωα-ω\u0370-\u03FF\u1F00-\u1FFF0-9\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
35
38
  textWide_UTF: (val) => /^([\p{L}\p{M}\p{N}\s\n\r,.\-–—·'’‘"“”«»!?;:\/\\(){}\[\]<>*&@#$£€%+=_|])+$/u.test(val),
36
39
  name: (val) => /^[\p{L}\p{M}\s’‘ʼ.-]+$/u.test(val),
37
40
  nameCY: (val) => /^[A-Za-zΑ-Ωα-ωΆ-Ώά-ώΪΫϊΐϋΰÇĞİIŞÖÜçğışöü\s.’‘ʼ-]*$/u.test(val),