data-validation-proximity 1.3.14 → 1.3.16

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 +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -230,6 +230,7 @@ const userSchema = joi.object({
230
230
  otherwise: joi.forbidden()
231
231
  }),
232
232
  preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
233
+ companyName: joi.string().optional(),
233
234
  });
234
235
 
235
236
  exports.userSchemaValidation = createValidationMiddleware(userSchema);
@@ -301,6 +302,7 @@ const updateSchema = joi.object({
301
302
  password_confirmation: joi.string().min(6),
302
303
  username: joi.string().min(5),
303
304
  phone: joi.string().min(10),
305
+ companyName: joi.string().optional(),
304
306
  profileImage: joi.string().min(3).max(200),
305
307
  adresse: addressSchema,
306
308
  policy: policySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",