@thzero/library_server_validation_joi 0.17.8 → 0.17.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.
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
- ![GitHub package.json version](https://img.shields.io/github/package-json/v/thzero/library_server_validation_joi)
2
- ![David](https://img.shields.io/david/thzero/library_server_validation_joi)
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
-
5
- # library_server_validation_joi
6
-
7
- ## Requirements
8
-
9
- ### NodeJs
10
-
11
- [NodeJs](https://nodejs.org) version 18+
12
-
13
- ### Installation
14
-
15
- [![NPM](https://nodei.co/npm/@thzero/library_server_validation_joi.png?compact=true)](https://npmjs.org/package/@thzero/library_server_validation_joi)
1
+ ![GitHub package.json version](https://img.shields.io/github/package-json/v/thzero/library_server_validation_joi)
2
+ ![David](https://img.shields.io/david/thzero/library_server_validation_joi)
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+
5
+ # library_server_validation_joi
6
+
7
+ ## Requirements
8
+
9
+ ### NodeJs
10
+
11
+ [NodeJs](https://nodejs.org) version 18+
12
+
13
+ ### Installation
14
+
15
+ [![NPM](https://nodei.co/npm/@thzero/library_server_validation_joi.png?compact=true)](https://npmjs.org/package/@thzero/library_server_validation_joi)
package/gamer.js CHANGED
@@ -1,46 +1,46 @@
1
- import Joi from 'joi';
2
- import JoiDate from '@joi/date';
3
- Joi.extend(JoiDate);
4
-
5
- import JoiBaseValidationService from './index.js';
6
-
7
- class GamerJoiValidationService extends JoiBaseValidationService {
8
- _gamerId = Joi.string()
9
- .trim()
10
- .alphanum();
11
- //.regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9]*)*$/);
12
-
13
- _gamerTagFull = Joi.string()
14
- .trim()
15
- //.alphanum()
16
- .regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9 ]*)*$/)
17
- .min(3)
18
- .max(30);
19
-
20
- _gamerTagPartial = Joi.string()
21
- .trim()
22
- //.alphanum()
23
- .regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9]*)*$/)
24
- .min(3)
25
- .max(30);
26
-
27
- _settingGamerSchema = Joi.object({
28
- gamerTag: this._gamerTagFull.allow(null).allow(''),
29
- gamerTagSearch: this._gamerTagFull.allow(null).allow('')
30
- });
31
-
32
- gamerIdSchema = this._gamerId.required();
33
-
34
- gamerTagSchema = this._gamerTagPartial.required();
35
-
36
- settingSchema() {
37
- const validation = super.settingSchema();
38
- return validation.concat(this._settingGamerSchema);
39
- }
40
-
41
- settingSchema() {
42
- return this._settingGamerSchema;
43
- }
44
- }
45
-
46
- export default GamerJoiValidationService;
1
+ import Joi from 'joi';
2
+ import JoiDate from '@joi/date';
3
+ Joi.extend(JoiDate);
4
+
5
+ import JoiBaseValidationService from './index.js';
6
+
7
+ class GamerJoiValidationService extends JoiBaseValidationService {
8
+ _gamerId = Joi.string()
9
+ .trim()
10
+ .alphanum();
11
+ //.regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9]*)*$/);
12
+
13
+ _gamerTagFull = Joi.string()
14
+ .trim()
15
+ //.alphanum()
16
+ .regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9 ]*)*$/)
17
+ .min(3)
18
+ .max(30);
19
+
20
+ _gamerTagPartial = Joi.string()
21
+ .trim()
22
+ //.alphanum()
23
+ .regex(/^[a-zA-Z0-9]+(['"_\-a-zA-Z0-9]*)*$/)
24
+ .min(3)
25
+ .max(30);
26
+
27
+ _settingGamerSchema = Joi.object({
28
+ gamerTag: this._gamerTagFull.allow(null).allow(''),
29
+ gamerTagSearch: this._gamerTagFull.allow(null).allow('')
30
+ });
31
+
32
+ gamerIdSchema = this._gamerId.required();
33
+
34
+ gamerTagSchema = this._gamerTagPartial.required();
35
+
36
+ settingSchema() {
37
+ const validation = super.settingSchema();
38
+ return validation.concat(this._settingGamerSchema);
39
+ }
40
+
41
+ settingSchema() {
42
+ return this._settingGamerSchema;
43
+ }
44
+ }
45
+
46
+ export default GamerJoiValidationService;
package/index.js CHANGED
@@ -1,143 +1,143 @@
1
- import Joi from 'joi';
2
- import JoiDate from '@joi/date';
3
- Joi.extend(JoiDate);
4
-
5
- import BaseValidationService from '@thzero/library_common_service/service/validation.js';
6
-
7
- class JoiBaseValidationService extends BaseValidationService {
8
- check(correlationId, schema, value, context, prefix) {
9
- const { error, valueO } = schema.validate(value, context);
10
- return this._validateError(correlationId, error, prefix);
11
- }
12
-
13
- _validateError(correlationId, error, prefix) {
14
- if (!error)
15
- return this._success(correlationId);
16
-
17
- const response = this._error('JoiBaseValidationService', '_validateError', null, null, null, null, correlationId);
18
-
19
- if (error) {
20
- for (const temp of error.details) {
21
- response.add(temp.message, temp.context.key, temp.context.key, temp.type, null, prefix);
22
- this._logger.warn2(null, temp);
23
- }
24
- }
25
-
26
- return response;
27
- }
28
-
29
- _boolean = Joi.boolean();
30
- _dateIso = Joi.date().iso();
31
-
32
- _description = Joi.string()
33
- .regex(/^[!@#$%^&*()_\-\+=\[\]{}|\\:;"'<>,.?\/a-zA-Z0-9 (\r|\n)*$/)]*$/);
34
-
35
- _extendedNameBase = Joi.string()
36
- .trim()
37
- //.alphanum()
38
- .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 :;,\(\\+)@]*)*$/);
39
-
40
- _extendedName = this._extendedNameBase
41
- .min(3)
42
- .max(50);
43
-
44
- _email = Joi.string().trim().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net', 'org', 'edu'] } });
45
-
46
- _externalId = Joi.string()
47
- .trim()
48
- .alphanum()
49
- .min(3)
50
- .max(30);
51
- // _id = Joi.string().trim().guid();
52
- _id = Joi.string()
53
- .trim()
54
- .alphanum()
55
- .min(20)
56
- .max(30);
57
-
58
- _name = Joi.string()
59
- .trim()
60
- //.alphanum()
61
- .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 ]*)*$/)
62
- .min(3)
63
- .max(30);
64
- _nameLong = Joi.string()
65
- .trim()
66
- //.alphanum()
67
- .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9]*)*$/)
68
- .min(3)
69
- .max(50);
70
-
71
- _number = Joi.number();
72
-
73
- _roles = Joi.string()
74
- .trim()
75
- //.alphanum()
76
- .regex(/^[a-zA-Z0-9]+([_\-a-zA-Z0-9]*)*$/)
77
- .min(3)
78
- .max(30);
79
-
80
- _tagLine = Joi.string()
81
- .trim()
82
- //.alphanum()
83
- .regex(/^[a-zA-Z0-9]+(['",.!& _\-a-zA-Z0-9 ]*)*$/)
84
- .min(3)
85
- .max(90)
86
- .allow('');
87
-
88
- _timestamp = Joi.date().timestamp();
89
-
90
- _url = Joi.string()
91
- .trim()
92
- .min(3)
93
- .max(255)
94
- .uri();
95
-
96
- _username = Joi.string()
97
- .trim()
98
- .alphanum()
99
- .min(3)
100
- .max(30);
101
- _userpicture = Joi.string().trim().uri();
102
-
103
- externalIdSchema = this._externalId.required();
104
-
105
- idSchema = this._id.required();
106
-
107
- nameSchema = this._name;
108
-
109
- externalUserSchema = Joi.object({
110
- id: this._externalId.required(),
111
- name: this._name.allow(null),
112
- email: this._email.allow(null),
113
- picture: this._userpicture.allow(null),
114
- });
115
-
116
- settingsRefreshSchema = Joi.object({
117
- userId: this._externalId.required()
118
- });
119
-
120
- settingRequestSchema() {
121
- return Joi.object({
122
- userId: this._id.required(),
123
- settings: this.settingSchema().required()
124
- });
125
- }
126
-
127
- settingSchema() {
128
- return Joi.object({});
129
- }
130
-
131
- userSchema = Joi.object({
132
- id: this._externalId.required(),
133
- });
134
-
135
- userUpdateSchema = Joi.object({
136
- id: this._externalId.required(),
137
- email: this._email.allow(null),
138
- roles: Joi.array().items(this._roles).allow(null),
139
- updatedTimestamp: this._timestamp.required()
140
- });
141
- }
142
-
143
- export default JoiBaseValidationService;
1
+ import Joi from 'joi';
2
+ import JoiDate from '@joi/date';
3
+ Joi.extend(JoiDate);
4
+
5
+ import BaseValidationService from '@thzero/library_common_service/service/validation.js';
6
+
7
+ class JoiBaseValidationService extends BaseValidationService {
8
+ check(correlationId, schema, value, context, prefix) {
9
+ const { error, valueO } = schema.validate(value, context);
10
+ return this._validateError(correlationId, error, prefix);
11
+ }
12
+
13
+ _validateError(correlationId, error, prefix) {
14
+ if (!error)
15
+ return this._success(correlationId);
16
+
17
+ const response = this._error('JoiBaseValidationService', '_validateError', null, null, null, null, correlationId);
18
+
19
+ if (error) {
20
+ for (const temp of error.details) {
21
+ response.add(temp.message, temp.context.key, temp.context.key, temp.type, null, prefix);
22
+ this._logger.warn2(null, temp);
23
+ }
24
+ }
25
+
26
+ return response;
27
+ }
28
+
29
+ _boolean = Joi.boolean();
30
+ _dateIso = Joi.date().iso();
31
+
32
+ _description = Joi.string()
33
+ .regex(/^[!@#$%^&*()_\-\+=\[\]{}|\\:;"'<>,.?\/a-zA-Z0-9 (\r|\n)*$/)]*$/);
34
+
35
+ _extendedNameBase = Joi.string()
36
+ .trim()
37
+ //.alphanum()
38
+ .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 :;,\(\\+)@]*)*$/);
39
+
40
+ _extendedName = this._extendedNameBase
41
+ .min(3)
42
+ .max(50);
43
+
44
+ _email = Joi.string().trim().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net', 'org', 'edu'] } });
45
+
46
+ _externalId = Joi.string()
47
+ .trim()
48
+ .alphanum()
49
+ .min(3)
50
+ .max(30);
51
+ // _id = Joi.string().trim().guid();
52
+ _id = Joi.string()
53
+ .trim()
54
+ .alphanum()
55
+ .min(20)
56
+ .max(30);
57
+
58
+ _name = Joi.string()
59
+ .trim()
60
+ //.alphanum()
61
+ .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9 ]*)*$/)
62
+ .min(3)
63
+ .max(30);
64
+ _nameLong = Joi.string()
65
+ .trim()
66
+ //.alphanum()
67
+ .regex(/^[a-zA-Z0-9]+(['"._\-a-zA-Z0-9]*)*$/)
68
+ .min(3)
69
+ .max(50);
70
+
71
+ _number = Joi.number();
72
+
73
+ _roles = Joi.string()
74
+ .trim()
75
+ //.alphanum()
76
+ .regex(/^[a-zA-Z0-9]+([_\-a-zA-Z0-9]*)*$/)
77
+ .min(3)
78
+ .max(30);
79
+
80
+ _tagLine = Joi.string()
81
+ .trim()
82
+ //.alphanum()
83
+ .regex(/^[a-zA-Z0-9]+(['",.!& _\-a-zA-Z0-9 ]*)*$/)
84
+ .min(3)
85
+ .max(90)
86
+ .allow('');
87
+
88
+ _timestamp = Joi.date().timestamp();
89
+
90
+ _url = Joi.string()
91
+ .trim()
92
+ .min(3)
93
+ .max(255)
94
+ .uri();
95
+
96
+ _username = Joi.string()
97
+ .trim()
98
+ .alphanum()
99
+ .min(3)
100
+ .max(30);
101
+ _userpicture = Joi.string().trim().uri();
102
+
103
+ externalIdSchema = this._externalId.required();
104
+
105
+ idSchema = this._id.required();
106
+
107
+ nameSchema = this._name;
108
+
109
+ externalUserSchema = Joi.object({
110
+ id: this._externalId.required(),
111
+ name: this._name.allow(null),
112
+ email: this._email.allow(null),
113
+ picture: this._userpicture.allow(null),
114
+ });
115
+
116
+ settingsRefreshSchema = Joi.object({
117
+ userId: this._externalId.required()
118
+ });
119
+
120
+ settingRequestSchema() {
121
+ return Joi.object({
122
+ userId: this._id.required(),
123
+ settings: this.settingSchema().required()
124
+ });
125
+ }
126
+
127
+ settingSchema() {
128
+ return Joi.object({});
129
+ }
130
+
131
+ userSchema = Joi.object({
132
+ id: this._externalId.required(),
133
+ });
134
+
135
+ userUpdateSchema = Joi.object({
136
+ id: this._externalId.required(),
137
+ email: this._email.allow(null),
138
+ roles: Joi.array().items(this._roles).allow(null),
139
+ updatedTimestamp: this._timestamp.required()
140
+ });
141
+ }
142
+
143
+ export default JoiBaseValidationService;
package/license.md CHANGED
@@ -1,9 +1,9 @@
1
- MIT License
2
-
3
- Copyright (c) 2020-2023 thZero.com
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2024 thZero.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
9
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/news/index.js CHANGED
@@ -1,59 +1,59 @@
1
- import Joi from 'joi';
2
-
3
- import LibraryServerConstants from '@thzero/library_server/constants.js';
4
-
5
- import JoiBaseValidationService from '../index.js';
6
-
7
- class BaseNewsJoiBaseValidationService extends JoiBaseValidationService {
8
- getNewsSchema() {
9
- return this.newsSchema;
10
- }
11
-
12
- getNewsUpdateSchema() {
13
- return this.newsUpdateSchema;
14
- }
15
-
16
- getNewStatus() {
17
- return LibraryServerConstants.NewsStatus;
18
- }
19
-
20
- getNewsTypes() {
21
- return LibraryServerConstants.NewsTypes;
22
- }
23
-
24
- _newsArticle = Joi.string()
25
- .regex(/^[!@#$%^&*()_\-\+=\[\]{}|\\:;"'<>,.?\/a-zA-Z0-9 (\r|\n)*$/)]*$/);
26
- _newsStatus = Joi.string().valid(...Object.values(this.getNewStatus()));
27
- _newsTitle = Joi.string()
28
- //.alphanum()
29
- .regex(/^[a-zA-Z0-9]+(['",.!& _\-a-zA-Z0-9 ]*)*$/)
30
- .min(3)
31
- .max(90);
32
- _newsType = Joi.string().valid(...Object.values(this.getNewsTypes()));
33
-
34
- newsSchema = Joi.object({
35
- article: this._newsArticle.required(),
36
- requiresAuth: Joi.boolean(),
37
- sticky: Joi.boolean(),
38
- status: this._newsStatus.required(),
39
- timestamp: this._timestamp.required(),
40
- title: this._newsTitle.required(),
41
- type: this._newsType.required()
42
- });
43
-
44
- newsUpdateSchema = Joi.object({
45
- id: this._id.required(),
46
- article: this._newsArticle.required(),
47
- requiresAuth: Joi.boolean(),
48
- sticky: Joi.boolean(),
49
- status: this._newsStatus.required(),
50
- timestamp: this._timestamp.required(),
51
- title: this._newsTitle.required(),
52
- type: this._newsType.required(),
53
- updatedTimestamp: this._timestamp.required()
54
- });
55
-
56
- newsTimestampSchema = this._timestamp;//ValidationService._dateIso;
57
- }
58
-
59
- export default BaseNewsJoiBaseValidationService;
1
+ import Joi from 'joi';
2
+
3
+ import LibraryServerConstants from '@thzero/library_server/constants.js';
4
+
5
+ import JoiBaseValidationService from '../index.js';
6
+
7
+ class BaseNewsJoiBaseValidationService extends JoiBaseValidationService {
8
+ getNewsSchema() {
9
+ return this.newsSchema;
10
+ }
11
+
12
+ getNewsUpdateSchema() {
13
+ return this.newsUpdateSchema;
14
+ }
15
+
16
+ getNewStatus() {
17
+ return LibraryServerConstants.NewsStatus;
18
+ }
19
+
20
+ getNewsTypes() {
21
+ return LibraryServerConstants.NewsTypes;
22
+ }
23
+
24
+ _newsArticle = Joi.string()
25
+ .regex(/^[!@#$%^&*()_\-\+=\[\]{}|\\:;"'<>,.?\/a-zA-Z0-9 (\r|\n)*$/)]*$/);
26
+ _newsStatus = Joi.string().valid(...Object.values(this.getNewStatus()));
27
+ _newsTitle = Joi.string()
28
+ //.alphanum()
29
+ .regex(/^[a-zA-Z0-9]+(['",.!& _\-a-zA-Z0-9 ]*)*$/)
30
+ .min(3)
31
+ .max(90);
32
+ _newsType = Joi.string().valid(...Object.values(this.getNewsTypes()));
33
+
34
+ newsSchema = Joi.object({
35
+ article: this._newsArticle.required(),
36
+ requiresAuth: Joi.boolean(),
37
+ sticky: Joi.boolean(),
38
+ status: this._newsStatus.required(),
39
+ timestamp: this._timestamp.required(),
40
+ title: this._newsTitle.required(),
41
+ type: this._newsType.required()
42
+ });
43
+
44
+ newsUpdateSchema = Joi.object({
45
+ id: this._id.required(),
46
+ article: this._newsArticle.required(),
47
+ requiresAuth: Joi.boolean(),
48
+ sticky: Joi.boolean(),
49
+ status: this._newsStatus.required(),
50
+ timestamp: this._timestamp.required(),
51
+ title: this._newsTitle.required(),
52
+ type: this._newsType.required(),
53
+ updatedTimestamp: this._timestamp.required()
54
+ });
55
+
56
+ newsTimestampSchema = this._timestamp;//ValidationService._dateIso;
57
+ }
58
+
59
+ export default BaseNewsJoiBaseValidationService;
package/openSource.js CHANGED
@@ -1,46 +1,46 @@
1
- export default () => {
2
- return [
3
- {
4
- category: 'server',
5
- name: '@joi/date',
6
- url: 'https://github.com/hapijs/joi-date',
7
- licenseName: 'MIT',
8
- licenseUrl: 'https://github.com/hapijs/joi-date/blob/master/LICENSE.md'
9
- },
10
- {
11
- category: 'server',
12
- name: '@thzero/library_common',
13
- url: 'https://github.com/thzero/library_common',
14
- licenseName: 'MIT',
15
- licenseUrl: 'https://github.com/thzero/library_common/blob/master/license.md'
16
- },
17
- {
18
- category: 'server',
19
- name: '@thzero/library_common_service',
20
- url: 'https://github.com/thzero/library_common_service',
21
- licenseName: 'MIT',
22
- licenseUrl: 'https://github.com/thzero/library_common_service/blob/master/license.md'
23
- },
24
- {
25
- category: 'server',
26
- name: '@thzero/library_service',
27
- url: 'https://github.com/thzero/library_service',
28
- licenseName: 'MIT',
29
- licenseUrl: 'https://github.com/thzero/library_service/blob/master/license.md'
30
- },
31
- {
32
- category: 'server',
33
- name: '@thzero/library_server_validation_joi',
34
- url: 'https://github.com/thzero/library_server_validation_joi',
35
- licenseName: 'MIT',
36
- licenseUrl: 'https://github.com/thzero/library_server_validation_joi/blob/master/license.md'
37
- },
38
- {
39
- category: 'server',
40
- name: 'joi',
41
- url: 'https://github.com/hapijs/joi',
42
- licenseName: 'MIT',
43
- licenseUrl: 'https://github.com/hapijs/joi/blob/master/LICENSE.md'
44
- }
45
- ];
1
+ export default () => {
2
+ return [
3
+ {
4
+ category: 'server',
5
+ name: '@joi/date',
6
+ url: 'https://github.com/hapijs/joi-date',
7
+ licenseName: 'MIT',
8
+ licenseUrl: 'https://github.com/hapijs/joi-date/blob/master/LICENSE.md'
9
+ },
10
+ {
11
+ category: 'server',
12
+ name: '@thzero/library_common',
13
+ url: 'https://github.com/thzero/library_common',
14
+ licenseName: 'MIT',
15
+ licenseUrl: 'https://github.com/thzero/library_common/blob/master/license.md'
16
+ },
17
+ {
18
+ category: 'server',
19
+ name: '@thzero/library_common_service',
20
+ url: 'https://github.com/thzero/library_common_service',
21
+ licenseName: 'MIT',
22
+ licenseUrl: 'https://github.com/thzero/library_common_service/blob/master/license.md'
23
+ },
24
+ {
25
+ category: 'server',
26
+ name: '@thzero/library_service',
27
+ url: 'https://github.com/thzero/library_service',
28
+ licenseName: 'MIT',
29
+ licenseUrl: 'https://github.com/thzero/library_service/blob/master/license.md'
30
+ },
31
+ {
32
+ category: 'server',
33
+ name: '@thzero/library_server_validation_joi',
34
+ url: 'https://github.com/thzero/library_server_validation_joi',
35
+ licenseName: 'MIT',
36
+ licenseUrl: 'https://github.com/thzero/library_server_validation_joi/blob/master/license.md'
37
+ },
38
+ {
39
+ category: 'server',
40
+ name: 'joi',
41
+ url: 'https://github.com/hapijs/joi',
42
+ licenseName: 'MIT',
43
+ licenseUrl: 'https://github.com/hapijs/joi/blob/master/LICENSE.md'
44
+ }
45
+ ];
46
46
  }
package/package.json CHANGED
@@ -1,35 +1,36 @@
1
- {
2
- "name": "@thzero/library_server_validation_joi",
3
- "type": "module",
4
- "version": "0.17.8",
5
- "version_major": 0,
6
- "version_minor": 17,
7
- "version_patch": 8,
8
- "version_date": "12/08/2023",
9
- "author": "thZero",
10
- "license": "MIT",
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/thzero/library_server_validation_joi.git"
14
- },
15
- "bugs": {
16
- "url": "https://github.com/thzero/library_server_validation_joi/issues"
17
- },
18
- "homepage": "https://github.com/thzero/library_server_validation_joi#readme",
19
- "engines": {
20
- "node": ">=12.8.3"
21
- },
22
- "scripts": {
23
- "cli-update": "library-cli --updateversion --pi",
24
- "test": "echo \"Error: no test specified\" && exit 1"
25
- },
26
- "dependencies": {
27
- "@joi/date": "^2.1.0",
28
- "joi": "^17.11.0"
29
- },
30
- "peerDependencies": {
31
- "@thzero/library_common": "^0.17",
32
- "@thzero/library_common_service": "^0.17",
33
- "@thzero/library_server": "^0.17"
34
- }
1
+ {
2
+ "name": "@thzero/library_server_validation_joi",
3
+ "type": "module",
4
+ "version": "0.17.10",
5
+ "version_major": 0,
6
+ "version_minor": 17,
7
+ "version_patch": 10,
8
+ "version_date": "01/01/2024",
9
+ "author": "thZero",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/thzero/library_server_validation_joi.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/thzero/library_server_validation_joi/issues"
17
+ },
18
+ "homepage": "https://github.com/thzero/library_server_validation_joi#readme",
19
+ "engines": {
20
+ "node": ">=12.8.3"
21
+ },
22
+ "scripts": {
23
+ "cli-update": "library-cli --updateversion --pi",
24
+ "test": "echo \"Error: no test specified\" && exit 1"
25
+ },
26
+ "dependencies": {
27
+ "@joi/date": "^2.1.0",
28
+ "joi": "^17.11.0",
29
+ "moment": ">=2.29.4"
30
+ },
31
+ "peerDependencies": {
32
+ "@thzero/library_common": "^0.17",
33
+ "@thzero/library_common_service": "^0.17",
34
+ "@thzero/library_server": "^0.17"
35
+ }
35
36
  }