@thzero/library_server_validation_joi 0.17.6 → 0.17.8

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -32,10 +32,12 @@ class JoiBaseValidationService extends BaseValidationService {
32
32
  _description = Joi.string()
33
33
  .regex(/^[!@#$%^&*()_\-\+=\[\]{}|\\:;"'<>,.?\/a-zA-Z0-9 (\r|\n)*$/)]*$/);
34
34
 
35
- _extendedName = Joi.string()
35
+ _extendedNameBase = Joi.string()
36
36
  .trim()
37
37
  //.alphanum()
38
- .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 :;,\(\\+)@]*)*$/)
38
+ .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 :;,\(\\+)@]*)*$/);
39
+
40
+ _extendedName = this._extendedNameBase
39
41
  .min(3)
40
42
  .max(50);
41
43
 
@@ -88,6 +90,7 @@ class JoiBaseValidationService extends BaseValidationService {
88
90
  _url = Joi.string()
89
91
  .trim()
90
92
  .min(3)
93
+ .max(255)
91
94
  .uri();
92
95
 
93
96
  _username = Joi.string()
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server_validation_joi",
3
3
  "type": "module",
4
- "version": "0.17.6",
4
+ "version": "0.17.8",
5
5
  "version_major": 0,
6
6
  "version_minor": 17,
7
- "version_patch": 6,
8
- "version_date": "07/21/2023",
7
+ "version_patch": 8,
8
+ "version_date": "12/08/2023",
9
9
  "author": "thZero",
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@joi/date": "^2.1.0",
28
- "joi": "^17.9.2"
28
+ "joi": "^17.11.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@thzero/library_common": "^0.17",