data-validation-proximity 1.4.5 → 1.4.6

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 +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -646,6 +646,7 @@ const schemaStore = joi.object({
646
646
  latitude: joi.number().allow(null),
647
647
  longitude: joi.number().allow(null),
648
648
  _id: joi.string().allow(null),
649
+ id: joi.string().allow(null),
649
650
  })
650
651
  )
651
652
  .allow(null),
@@ -660,6 +661,7 @@ const schemaStore = joi.object({
660
661
  latitude: joi.number().allow(null),
661
662
  longitude: joi.number().allow(null),
662
663
  _id: joi.string().allow(null),
664
+ id: joi.string().allow(null),
663
665
  })
664
666
  )
665
667
  .allow(null),
@@ -680,6 +682,7 @@ const schemaStore = joi.object({
680
682
  title: joi.string().allow('').allow(null),
681
683
  link: joi.string().allow('').allow(null),
682
684
  _id: joi.string().allow(null),
685
+ id: joi.string().allow(null),
683
686
  })
684
687
  )
685
688
  .allow(null),
@@ -692,6 +695,7 @@ const schemaStore = joi.object({
692
695
  latitude: joi.number().allow(null),
693
696
  longitude: joi.number().allow(null),
694
697
  _id: joi.string().allow(null),
698
+ id: joi.string().allow(null),
695
699
  })
696
700
  )
697
701
  .allow(null),
@@ -761,6 +765,7 @@ const schemaUpdateStore = joi.object({
761
765
  latitude: joi.number().allow(null),
762
766
  longitude: joi.number().allow(null),
763
767
  _id: joi.string().allow(null),
768
+ id: joi.string().allow(null),
764
769
  })
765
770
  )
766
771
  .allow(null),
@@ -775,6 +780,7 @@ const schemaUpdateStore = joi.object({
775
780
  latitude: joi.number().allow(null),
776
781
  longitude: joi.number().allow(null),
777
782
  _id: joi.string().allow(null),
783
+ id: joi.string().allow(null),
778
784
  })
779
785
  )
780
786
  .allow(null),
@@ -795,6 +801,7 @@ const schemaUpdateStore = joi.object({
795
801
  title: joi.string().allow('').allow(null),
796
802
  link: joi.string().allow('').allow(null),
797
803
  _id: joi.string().allow(null),
804
+ id: joi.string().allow(null),
798
805
  })
799
806
  )
800
807
  .allow(null),
@@ -807,6 +814,7 @@ const schemaUpdateStore = joi.object({
807
814
  latitude: joi.number().allow(null),
808
815
  longitude: joi.number().allow(null),
809
816
  _id: joi.string().allow(null),
817
+ id: joi.string().allow(null),
810
818
  })
811
819
  )
812
820
  .allow(null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",