data-validation-proximity 1.4.9 → 1.4.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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -269,6 +269,7 @@ const userSchema = joi.object({
269
269
  companyName: joi.string().allow(null).optional(),
270
270
  currency: joi.string().optional(),
271
271
  mobilePaymentManager: joi.boolean().allow(null).optional(),
272
+ platform: joi.string().allow(null).optional(),
272
273
  });
273
274
 
274
275
  exports.userSchemaValidation = createValidationMiddleware(userSchema);
@@ -313,6 +314,7 @@ const userLoginSchema = joi.object({
313
314
  then: joi.required(),
314
315
  otherwise: joi.forbidden()
315
316
  }),
317
+ platform: joi.string().allow(null).optional(),
316
318
  });
317
319
 
318
320
  exports.userLoginSchemaValidation = createValidationMiddleware(userLoginSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",