data-validation-proximity 1.4.3 → 1.4.5

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 +12 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -645,6 +645,7 @@ const schemaStore = joi.object({
645
645
  region: joi.string().allow('').allow(null),
646
646
  latitude: joi.number().allow(null),
647
647
  longitude: joi.number().allow(null),
648
+ _id: joi.string().allow(null),
648
649
  })
649
650
  )
650
651
  .allow(null),
@@ -656,6 +657,9 @@ const schemaStore = joi.object({
656
657
  date: joi.string().allow('').allow(null),
657
658
  location: joi.string().allow('').allow(null),
658
659
  marketName: joi.string().allow('').allow(null),
660
+ latitude: joi.number().allow(null),
661
+ longitude: joi.number().allow(null),
662
+ _id: joi.string().allow(null),
659
663
  })
660
664
  )
661
665
  .allow(null),
@@ -675,6 +679,7 @@ const schemaStore = joi.object({
675
679
  joi.object({
676
680
  title: joi.string().allow('').allow(null),
677
681
  link: joi.string().allow('').allow(null),
682
+ _id: joi.string().allow(null),
678
683
  })
679
684
  )
680
685
  .allow(null),
@@ -686,6 +691,7 @@ const schemaStore = joi.object({
686
691
  name: joi.string().allow('').allow(null),
687
692
  latitude: joi.number().allow(null),
688
693
  longitude: joi.number().allow(null),
694
+ _id: joi.string().allow(null),
689
695
  })
690
696
  )
691
697
  .allow(null),
@@ -754,6 +760,7 @@ const schemaUpdateStore = joi.object({
754
760
  region: joi.string().allow('').allow(null),
755
761
  latitude: joi.number().allow(null),
756
762
  longitude: joi.number().allow(null),
763
+ _id: joi.string().allow(null),
757
764
  })
758
765
  )
759
766
  .allow(null),
@@ -765,6 +772,9 @@ const schemaUpdateStore = joi.object({
765
772
  date: joi.string().allow('').allow(null),
766
773
  location: joi.string().allow('').allow(null),
767
774
  marketName: joi.string().allow('').allow(null),
775
+ latitude: joi.number().allow(null),
776
+ longitude: joi.number().allow(null),
777
+ _id: joi.string().allow(null),
768
778
  })
769
779
  )
770
780
  .allow(null),
@@ -784,6 +794,7 @@ const schemaUpdateStore = joi.object({
784
794
  joi.object({
785
795
  title: joi.string().allow('').allow(null),
786
796
  link: joi.string().allow('').allow(null),
797
+ _id: joi.string().allow(null),
787
798
  })
788
799
  )
789
800
  .allow(null),
@@ -795,6 +806,7 @@ const schemaUpdateStore = joi.object({
795
806
  name: joi.string().allow('').allow(null),
796
807
  latitude: joi.number().allow(null),
797
808
  longitude: joi.number().allow(null),
809
+ _id: joi.string().allow(null),
798
810
  })
799
811
  )
800
812
  .allow(null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",