{"_id":"@beanc16/joi-helpers","_rev":"9-bed67224e87ccd891d20b5debf5d4475","name":"@beanc16/joi-helpers","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@beanc16/joi-helpers","version":"0.1.0","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"95aba3f4b09a8f90b6affbc024e2da61db00642d","_id":"@beanc16/joi-helpers@0.1.0","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-1c0OrFfAEnlmiXAlBVA3nGL8CXcOE3bI4g6OgK0eW3hdjWUzjsfONF9i2uVMpzkQeARk1ilypdxGnAmn6/mWWg==","shasum":"95e57fbfe650c152dd139576cf76589a0f074ee3","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.1.0.tgz","fileCount":8,"unpackedSize":3955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9wVfCRA9TVsSAnZWagAAITwP/j8gMfcM/5RrGSpa01P3\nigC7h7R+60BihG3WjzKk69umuuHJkvB9PFxF2QA0tF7m8QCjPzuKhXvTz1yV\n9eSZIPcAvdeyaYaWQlJ2/a80Z4gUt9SGoK5ryEparL3ik7ddJtF7xGVT61w3\n3kvCeOrVNF6Je83ib6UysIFOMQ1obWDNayzpZ+IG5AVBOEXxEHdNOIuX3bqC\nZcq/pr1i18B6IV7ReoaOkLfNAWUAHcZhbH5AkL3+sP8NNu1YUoliXmSLbUDc\niU1/HcVVjpVQ+2tGTu2mY6F+cPHaIaARqhvHHO7QUvAylVpH/NIU+HlRCq2s\nHY+d/QmVItpcc74WtNokqELYuMJa2EFvrQi0bzxIAV1IxI8LMPvN+yVmY/g1\nCm6NWPxccY5l56dfrszCJa3L7Lb0mFwiHvjIOL/YyXQ/CauXnTH5V79aye1i\nomGAGZvv0yvOeWsp8D7R2ByrnBsRjHvVn4h26v9184io5AmIym3HFuReJDq/\n0BsYl8bCgNDg5reVaKkBo9CXtI3RFlIF1oERYW+Gy09zACtlzn7HxqbqTawf\nMU1uZqWYXy23YOGemf+R2v+k6NOD+mA/umkL/6h7gAvDQBQTkeFlBftVRN5p\nGGnPrKQXP0Ubd9XvAkUdHdfHF66TQDhKt+s+L3LtKl9RjCcq/OrYK2KK/qJ/\nSQQw\r\n=3LX/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnj/h4Obcyl2ofd90wYOvHBSCw+nu5W66Qsq4NZTFe6QIgd/13OvvZTs1iC9M1/X+cSfYL4Tb+m3QT5noYIhGYHU0="}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.1.0_1643578719422_0.8967101990053434"},"_hasShrinkwrap":false},"0.1.1":{"name":"@beanc16/joi-helpers","version":"0.1.1","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"d97d1b5a3dd2145a878824a19151f7ef47896643","_id":"@beanc16/joi-helpers@0.1.1","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-PLBTgAsD3jQNYA/r95SH34DzFuH8K2jpESgRRiFeBW1cIg8xlkQNdbhVXqysI+SPAHY/k/uuYw9ySsGEcdwe/A==","shasum":"eaddab832eaa87012261a899592805c598401368","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.1.1.tgz","fileCount":8,"unpackedSize":4607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9wkjCRA9TVsSAnZWagAA3rAP+QHqAswq07zVFIkeblza\nX5JMI4FJfpD+c2vJtRe7pQ95YzQBMIpYF7FULGKoswxtvikCdP1DUQ0IRo5t\nVewvBieSkris9Xz7I8If913ZJT8oDkJi76YYOT4BNyZxQYcOoYDrGWlW8yJq\ndtop4w5TLzaoyj6QpZ8rkMpOL55F0x9lkbcyhc1qkZ5aeGqyJq1p/KuDrEOg\nXx444c1Hv7z/bOnNSFPfPLK9LugOCwuzcWFCNyCLW5f6241vXslthd/FEDLA\nrfFKJ1GDWczD35dzFMS/+U0EF7myjVJ+wm/VsOVSrSrLB/guVKIM3c4vmeQx\nlSuC0kwDrc2whpQgUOVK08ctDdtWtUjaP6s23DgntJPEIQx0qSAg2xBpI294\nUBBeMbPy5b8XnnoUK4rSIIxLqGcEs4yx5CX2cLlQHvd0T0SdwZ26wKAeGX35\nv02SYEz4IHXxcnss+SL9RfBbeWpwDBuuWRCIuxXWf7YPw6UYH2IYt1KlKPQd\nGYOv19TCFkBtWHj2/V2YVVWqROqOWS6kF2YaawB3s265Tuo/5qBZVz0cFvQB\ncxxm8XlFSCIwm0sFjtE25uWL11LLEysOOzF7/NzlGdwEO1s3HkNPHyF+ZnsR\nX5Bs0Bot3QggT9oHihH9WgNL/qydo/khn6PDlNfP8X+XYtbKVCYXtndcfaZA\n/F/N\r\n=MnmY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUO5pg9o6wY3kX1WTKDkmqNX73EKCFtbe/euoGKz272wIhAJNU2UAKVgBSPDGOsIjmcGSLoVrM2TrHnKTuEcf1H7jI"}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.1.1_1643579682911_0.1626042095718192"},"_hasShrinkwrap":false},"0.2.0":{"name":"@beanc16/joi-helpers","version":"0.2.0","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"95aec679e7f9dde7bec3bc5bbbfc73068c33a1dd","_id":"@beanc16/joi-helpers@0.2.0","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-+49FIQakVLmQ5PM1ejlNeC6MBsMa8m8FdDPjQ5Byx0fotMjvvYZ71bo8oxUmgcwdkFW5fHqU0l3ft+pz0rNSIg==","shasum":"f552d09201c51372b3b243cbeb150ab50cafe8d4","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.2.0.tgz","fileCount":13,"unpackedSize":5950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9xaGCRA9TVsSAnZWagAA55IP/RM4hLXMnU87P09ISBEn\nOg9Fx8sQ1f0J+HMJOlK9vKcmTZG/Ae4v0U60SrJicHNsRQWuxkvSGOb0jU6w\npxSITAEsu5CUZit6xRW7J8cEdEPSrktHlp0Uu3hjX543G7gwnbgMuA+9EQ95\nN7BFDhldGJzyLX7MPVzigUdUiLQXw7SdS59yUCTpXgRB05OGPXDZJ6HlvXNl\nHoVfNXzd+4yJVdKCT4FHs7LQMdKFC0wJBWGEswVrkjkp2mGvtkVoXlAK8QFx\nqSZrL2qF7/3NF0zjfT1V6GTAtSChEqc/hQzhp3SH27MiWkccq+VL4x7JOXKq\n9vlqnKbDlOlfT4PM3MCcxSAqQhpMjPTzkp/Yjrjf6DfIeuIiiUKSh/+xr7ON\nSorUQj48KnimELU8UfJ0sVUC+uLK/3TlUg+EhfLonATxfEOfgQaocOvoRQY2\nq2KEbCCCOT8rLKdAxFkZGyg6OukxKv1ZktnrkrQcfqAKqLjwZ4Ruwq10RZYF\nD7vpdLMXhQEN3Bk5Jztm5RXWIcYS+oktd6v/wSPrKIWBuWiaiPXSGd9BHpgN\n8dLYwFXOUndghvhTnehr9macyHLzn2bbqIjEbu3FPr0h499lstwCD+/5QNsZ\nX9SealthZEWQ2bifONfxWdbOMHfPFJUif7ge8xHDNy2mR+lPuMqHBOusqxOC\niLDG\r\n=m7LM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0kl+xLfzmQ8H0sK6EnT1XC9/Tv8KEFwbZkJ18q0tBOAiEArO1GpvOxPPQxoNk+7sm4S2ie1qiwDaJPbcF24wfDnjQ="}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.2.0_1643583110630_0.4304579937921811"},"_hasShrinkwrap":false},"0.2.1":{"name":"@beanc16/joi-helpers","version":"0.2.1","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"8cc6ad9010d8dd6f3e61be7b52927693612dd9d4","_id":"@beanc16/joi-helpers@0.2.1","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-+Y/HiiL9LBaEgZzAWhTpK6E7r/SBT0TrWl4M9mMC4tUBOWGWN/4rWEd89oq7TRpGip5CN1C6hZ0Y07mvbxOPrQ==","shasum":"a7c4f3b91dd58d68370fab7fc9f41d24c5cd77ec","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.2.1.tgz","fileCount":13,"unpackedSize":6083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9xqYCRA9TVsSAnZWagAAX18P/RGDtfaAPhuZlKW1mEnC\n3E+ocMQlps8jBStcmnjz1NNDsFRSaiSQ3Kk53tITQQDa1+Q+urehkhmQ+NC1\nkyHybfZnfOT+QTGJEdab1wzDJwy8M0v61uMsCAJScrksg0R0AC2uiUZTOOZQ\n33ezjPKJJaP77epD3YS9V3OMMaeChXm9DSGrGoa47MLzLPzHXbqLqk53T4ri\n9MMDjIil8Mg6oIxOlp9i4GXu56UXhM2VnAka9RVnaLrCTxA6UodF9wsmzDan\nSssVzTNDJw2PWhguc5MotlIXlOHV0bN4ulY4oddI9q2PqccL28gQUwqx/QEO\nJpFbGLpUyxitKbfSKKMn90+TbQHJzH8JyZY10I4A9rsZKPxi/ljA2Tn+XvUh\nXbgSYiX7xm8+gmXb9GMTEB9E4mxs46z9kUvZ9MOyJOzgNbwMyvombjPYyUWF\nQaOv9jQg5eVCiR0kArVv+dEOKbmtJFKIyVtuIrpCp+H50qWZQ7Kc9Sb5k6pl\nJM5PAIiIJ5aTwnyZp5jvmVhcn6W6T39v00/Ri2NtA1fQkY3ZS/e1rCjvYSv6\nZzgoXIy5JZL1QvDl69xINVeZ8yjYzgjdW05dhSN2apcttuNRk33YicMK0Q3V\nicCuzg9EoUuXPgIhmGLN9QX9cwMWWJSUEwbbJVt71CeUwVtiAMJ8HOOeOEsi\n9snq\r\n=kxiR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlMV8Ey20X53btyqg8aBDcsVPd6Jw8dbK2DfZQrStYZAiAZ2J1OyM5lZhC5HfY+KqRmpVmie/wTWGRK0BzE8QsENw=="}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.2.1_1643584152009_0.07041503384168335"},"_hasShrinkwrap":false},"0.2.2":{"name":"@beanc16/joi-helpers","version":"0.2.2","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"263a9afc638da35d73a5f9624569f774b8d7e7a6","_id":"@beanc16/joi-helpers@0.2.2","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-weY4Efe7xtm7wMB/07wykJxj6luz2x+OGFUKoJcTDZpJPWjnoy+CX+m/s1skiHLLbQSzUr7qeS0sH+C2++nPOA==","shasum":"5cf801c1645fdeae3b243c7f8bf7f47b90de7641","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.2.2.tgz","fileCount":13,"unpackedSize":6203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9x2vCRA9TVsSAnZWagAA8pYP/2mSk4Skkem2bqgNl3Yj\nC93qsFhqoglO5IOWMcGG9ZndgzV7Nk+zsU4j9somD0V5rPd+iFXLJ1Uclabm\ndgko66Mztaao5V3n5a6ZYaP3MYsRkY7igX0zSkUwzm1+lK6E6weD3YeuVGYH\ntNep02pD1SjC/26fHDwu//5Fi490CN+nlcRzSIrllpp8ZOjWCvdNX2tjMqtb\nJC7MsNv2/hguyWCkd1I2AogaIa5tmQeNrywyUmAko4k94OtAGwec2Ptw8L15\ncVhRjwG3mWgkIfrndviQrhhX1KeNuPfzlVKjFqKd3KdfeM+RL1MBkld4VJFJ\nMj7gmmkPS1IcPAPqiWD7auxfVyy0lkGU0ErZwUyaTXsbf+BJKljIn9aJkS2e\nix+5/PVkaHsKapPR83Un6Is0eH67jO5DhaOr+aigC5SvWLZ2QYCKxmWoT7UZ\n1649U4FdeGj4S24X2K85pkXeTgUUqy0XGfPM+rgU5jsjTB9hDmbd1c6niT9a\nAfRgzemVP48LsroBIOX7aAw9i3jD9U47FrtRAqPz6C9Y6R6VMgS7ypF7ASep\nH4CR5Umb85qX6fPz9JcUjB1zoC4u70dLp0uMuHBYhKmZdNXSqklDaVR0YgcB\nUApTevuUnJfZtzTJsOk5lPfbrzhvo7qadZpxEXGojnFTwNOJ03cr2X/gi2Fm\nrkmS\r\n=0JK6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxtl5Yqn3WN+jggvpPiaQxSmZK06IllrNMXQIkAqXzogIhALCsspl/ZSbibZdJH+MAkTcgp7eVP5nQcUmzG9/HoQuM"}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.2.2_1643584943569_0.33327544266615794"},"_hasShrinkwrap":false},"0.2.3":{"name":"@beanc16/joi-helpers","version":"0.2.3","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"b4f1bd28fd2efc31f5ec6ee1bf78b1338957a042","_id":"@beanc16/joi-helpers@0.2.3","_nodeVersion":"12.18.2","_npmVersion":"7.19.1","dist":{"integrity":"sha512-tz8t+IuqxCh8jnSieC/1aG0lx6qvQZdzu65RsPwGTQzvLHGIhKVfxZNA267JXwqldOP+eHIJv7gEInu4QZNzyw==","shasum":"80cacf0b88ea04f49b28757c25ecf72a7c3151ee","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.2.3.tgz","fileCount":13,"unpackedSize":6196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9x5UCRA9TVsSAnZWagAAoOgQAILLn9uj4PZ1vAgods8Y\nKedOpEcuOY/FYw3tuWdkbebZqsPjTQLVv5C7rA7wtwUawvN3jei6aP4L9daw\nm1k3ApQAan9bSiEcr8DSsNkDYAGrOIBc0rfH0tWP7VCa2fL6nCeMnK0I/xrb\n3l0dZzWHl9oQBZCDHZ3xOtO/oXb7pqQzbTdHdRW9L2Kh3d8lpE2UEP4bzxZ+\n935F6q0Id3Najh4oqyvoGVuGbrZIswEMvTrnVxd4PFF25Qos3EgeTpJ2Quop\nqAwbQ1IsheyWfTpUIcTKY2uQ785Zc+QEiYDZoTFXWzjj7nWzpQMmumlzoY0O\n6ZsllW6bqzrIdS8lg3FO2FqjpPGMObL/nztvyGair9N51+1ZoXrrnrp0e7BK\nUz1mT+GwqJoQfrRRd5JC6hP/8uqcLRGGLH3huY8JEorGVKCeBE0gLFHlpnP2\nRVf2xbW9NE8aaAkoLIhr86E3m16TS6r95JWYWxAn6mXw9Im0hZll4zOJvELT\nEf0myNnGy3rO2i+88RCuyhl3G8ik3KsNQk27OfYk9noVAu/USIhg3IZJQF49\nVWkEtGIMhbe8yf6pm+jbpdNCil8PRRch7rRcVdAo3+3N0GsM5HoJ6HSICbYA\nT49vtLnAM61VW9PpPIiBqbsVCPMi97kwuZUkdyjOUQ2+BoGTIXYq840Ewobu\noXk6\r\n=GbcS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMWgZg9JJrT4NXV4mB5+IwiWQQfINvj9ha+OMiBirPnAIgKpuoLEw6249TfqGcZAuic9osFXXUSSnKH2hQx2Kafm8="}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.2.3_1643585108811_0.33767687705885074"},"_hasShrinkwrap":false},"0.3.0":{"name":"@beanc16/joi-helpers","version":"0.3.0","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"ef74c08ab1ede3ae3bb78d120212ff586419aea6","_id":"@beanc16/joi-helpers@0.3.0","_nodeVersion":"12.18.2","_npmVersion":"8.5.2","dist":{"integrity":"sha512-OeMHxLpMDlVLGq8dk3vLjNx8qKHDQfTap7hjyOawUAQh/HWhLoOyx0g51m3AEbVL95/BQ+C9eRrB5pvD7EG7OQ==","shasum":"1c23d35565dd6bccb0e0fababd19125a596d81c4","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.3.0.tgz","fileCount":21,"unpackedSize":10727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGldOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6fg//QKEjPH2cNnEHBMBDgHNwn09nuFnSipB2HJBLPiV+wFQBwWiL\r\nSYv8q8zvc0i0J2PNcq+PH3qcR/HVYndWGsqD0Je1TryyF1XfEeovhStGe5MI\r\nvri423ka9OSdZeFa7ISUzFmM5h/OXeTSqljN95nQGry7qODMZsqOvqWJhc7y\r\nCVvxPTIy8MYCTmDXlrrdfYL4M1TNT0yPJHAksxW6Uck8ExrP/Rno8tDvnb5M\r\nz2I4h+/9gSbj/HWE8BHR7X+PMh30+2uGYsZFn6MNOer9HEd0tLADSWg3DwPd\r\n637evylMVn1iAUuT9sd2gQZ9STMqlZeWdchw/UdziXQ76nfkPe3kxZM8sb+f\r\nUtBXVSm4IU9OS21aYkQQ+PHzOx2bUlktbRxEUZau1/bhS2NOa4mcJpQeUvM+\r\ndiyu7X5G4+pxmXU3SoBcwNNIhdSpO5Oaspk1LSkg0YH9xpr8F+CNJeXNscgw\r\nL5yk9xzbPt/kCNskorY4+GqERq4V/DdJNlmTeK7aWLAvJJ041y8lPDT9EZ88\r\nsM4vdBBlFzAe1b3+FksMg/gCNlUm8wMlwE0lQLe7NwcEJ3pPTRpmBbUm16Zl\r\nIrZuQXiXx0a94tUVjaxkF0/jyp5E+tAupeh8B2xYiAY6bHfFg7/TmmyrobBy\r\nL6i1YQ1bAiFjp+Z0cZQU2eUxAwo14XpwF2c=\r\n=Dq5i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGsxCZERBu2xFhVj6dWfA70PAogJCR1vOsHoaAQi0/zCAiAR7LB/CfJ/URiUZex85g4vV5HqH/i/kig7ES/7yw2tBA=="}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.3.0_1645893454460_0.9558965394394854"},"_hasShrinkwrap":false},"0.4.0":{"name":"@beanc16/joi-helpers","version":"0.4.0","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"5db172ae1636564a04d182965ad4e9e3cbb678aa","_id":"@beanc16/joi-helpers@0.4.0","_nodeVersion":"12.18.2","_npmVersion":"8.5.2","dist":{"integrity":"sha512-9gZrocWQLfluqVy531pgDFiqYgrLWHAuGdz8b9zs4Y67UR0qWz1WY8NaxAtaSF21idqPyiyrrw9euVImgCwNoQ==","shasum":"3e1e35b9b1a4868ed12a4f2ac3dd2e20db92f48b","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.4.0.tgz","fileCount":21,"unpackedSize":10811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGns8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Lw//TQ5s1w8vuwNqKR9BmbJJ60Ahfq1sDwtEQIR9fibVVwr5LArM\r\n4tZnGZXHaQfNcdTZipYBOmqktwa7aUhVpDNJFWGB7gn8VMGL7sA/JTSIYie0\r\nLHNB1rX5DVVEg9O0+1NXV4X1cjQs1m9Lmif/JrTH8V7H8h11xWvudu/0LQ/E\r\nNifPrvinUAB7t6crMXdN/Z0x9rHqziMDtcd7qJk9xEOzLaExh5WlacNC/Ydb\r\njYrZhdTqSjrAVsF1HJ3CSmdga2DZGty9QUQtcO8/Dhy39fP9N/tRpzmmlFQI\r\nObCpHgknxQeleMS/bVe1Sjvl+/z2jClD2vCsXNCXBsgoOsvItCJrDSuQRsI3\r\nznMVJM7xbTECjG4pDycLtNdWVuaAO8X2K8VGZI53P0lb2KJMgmJoP58esJ3J\r\n1bAwLN7CBOI3dtvI5ll+rAnkpiu+knbP+tsOtF1X1n2DBsiMRjs+Vs3n7KT+\r\ncvviTvlC/UAo0FXbi8oTuK1lpNECyJVi5mldanVfweJOW3zgokFMniK013lR\r\nK/225hjA4B2AK5Vy4f8A++2Rk0+n8MwbxLz3hRd6gqJXj/Fg/gRkg+jDyhB6\r\nZaQQnaKeoSEtcpaUrvoA+twNjv8iB9K3w9BXrw7MJvdP/mMRKRbE5h2AmTVk\r\nu5KUS22Bm8w2QrhfaiqWUb2i04ZlOqU/I1Q=\r\n=QJ0v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD18UCVgWF7A1TgtWZDF28qXtOXnjXow/d5dNDozXVlmQIhAN4blIIYzg49kioJIQ5RUILqtiA18+G3e4hHWWatPY3Y"}]},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.4.0_1645902652836_0.9934968451065243"},"_hasShrinkwrap":false},"0.5.0":{"name":"@beanc16/joi-helpers","version":"0.5.0","description":"Helpers to make JOI validation simpler.","author":{"name":"beanc16","url":"https://github.com/beanc16"},"license":"MIT","main":"src/index.js","scripts":{"lint":"eslint .","test":"","prepublishOnly":"npm run test && npm run lint","preversion":"npm run lint","version":"git add -A src","postversion":"git push && git push --tags","publish":"git checkout master && git merge develop master && git push origin master"},"keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"homepage":"https://github.com/beanc16/joi-helpers#readme","dependencies":{"joi":"^17.6.0","mongodb":"^4.3.1"},"devDependencies":{"eslint":"^8.8.0"},"gitHead":"496b4d49c45690b38d2baef09816b1f9255e051e","_id":"@beanc16/joi-helpers@0.5.0","_nodeVersion":"12.18.2","_npmVersion":"8.5.2","dist":{"integrity":"sha512-MYzskfDvnW2mojxO+vWMWfPFrctM2ddtFg6yn/d63mfL72oeeUGGZog5mFVOA2jPNZ9PdhrlUD7e4/VQ0FKx9A==","shasum":"7a9fd798e156bde1cef86127f0b1deb9dfa72752","tarball":"https://registry.npmjs.org/@beanc16/joi-helpers/-/joi-helpers-0.5.0.tgz","fileCount":22,"unpackedSize":11275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFw9oy3XhLtolmHKV6gAcdMxkDomP3PeGqaPS53HpVVZAiEAnQwhmDm6YgcXxSqTYyRelbVVMdZVu9dVchaHga7aK/w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwZuFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR6w//e2Defj+Snn7jl31YGiA21CFmPvdIj5qrxWRfGScASia+OXMe\r\nJCiKSlXoUVZ90byPZaFOP/T8saqjvUtovBZUydrmTE4O31CAJ68VYoomMTMD\r\nVlePGfQlu7Pcp069OfdL+GAM0gz7T9wZ06vbnZJFAppVk+ZM5lkC84bjue3y\r\nwM4xuyWhXR0WM6MigeRGGBJBnMst+FZRl1Ow5lqDGAYrDUt6iLdhzc5E42WG\r\nWM731qsUR5eRdrmZCF4e3gBRvsY1uGNKJHKFPCJlvgUES1mYCMT1mIoq5Ld9\r\nrm1bPgfTrpQ0BlPK+urHbRqo3C+oL4wqwSVh81r0cpVbiZmVU/0mOAx/KV18\r\nC5kNfqx52NN0Jip4AacX0rlcGlaDu4XeqgbjZ9Fmg64vrFPbuKCfUY09qpIn\r\nZFDvzhD6vW2kZq6vmc7wnmCoyrBdd4ZMu/gz+feossr9meCyKnBaLJtl8+K2\r\nmjpb2DX6PsmwVvWAvzef6tVbdg6mGPd66f7Tatiszx/Q22/9SD7eLdKiJqTg\r\nH9Oex/YbOptoKYESDJzHQJV3soHRIxtjF8CB1DZs9wJNROfzXhSQrqM9xMYv\r\nrgZucTCeN/fT27GjPi5coZoY3onTjCVzpvpKYa7wauePXpZMG+yDk1iWLKPi\r\n5uI7xDeW+z0qt7tyTIX+8M0lk1Z8TwEP/yc=\r\n=2HNj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"beanc16","email":"bean.christopher@outlook.com"},"directories":{},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/joi-helpers_0.5.0_1656855429568_0.080808904604045"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-30T21:38:39.367Z","0.1.0":"2022-01-30T21:38:39.654Z","modified":"2022-07-03T13:37:09.822Z","0.1.1":"2022-01-30T21:54:43.047Z","0.2.0":"2022-01-30T22:51:50.781Z","0.2.1":"2022-01-30T23:09:12.166Z","0.2.2":"2022-01-30T23:22:23.688Z","0.2.3":"2022-01-30T23:25:08.981Z","0.3.0":"2022-02-26T16:37:34.610Z","0.4.0":"2022-02-26T19:10:52.966Z","0.5.0":"2022-07-03T13:37:09.733Z"},"maintainers":[{"name":"beanc16","email":"bean.christopher@outlook.com"}],"description":"Helpers to make JOI validation simpler.","homepage":"https://github.com/beanc16/joi-helpers#readme","keywords":["joi","validation","schema"],"repository":{"type":"git","url":"git+https://github.com/beanc16/joi-helpers.git"},"author":{"name":"beanc16","url":"https://github.com/beanc16"},"bugs":{"url":"https://github.com/beanc16/joi-helpers/issues"},"license":"MIT","readme":"# @beanc16/joi-helpers\n\nHelpers to make [JOI](https://www.npmjs.com/package/joi) validation simpler.\n\n<!-- Badges -->\n![npm][npm-version]\n![license][npm-license]\n![downloads][npm-downloads]\n\n\n\n## Table of Contents\n- [@beanc16/joi-helpers](#beanc16joi-helpers)\n  - [Table of Contents](#table-of-contents)\n  - [Install](#install)\n  - [Usage](#usage)\n    - [Basic](#basic)\n    - [MongoDB](#mongodb)\n    - [Microservices](#microservices)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n\n## Install\nThis is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/).\n\n```bash\n$ npm install @beanc16/joi-helpers\n```\n\n\n\n## Usage\n\n### Basic\n```js\nconst {\n    JoiRequired,\n    validateJoiSchema,\n    joiSchemaIsValid,\n} = require(\"@beanc16/joi-helpers\");\n\nconst payload = {\n    id: 1,\n    name: \"Example\",\n};\n\n/*\nThe following schema is equivalent to:\nconst mySchema = Joi.object({\n    id: Joi.number().required(),\n    name: Joi.string().required(),\n}).required();\n*/\nconst mySchema = JoiRequired.object({\n    id: JoiRequired.number(),\n    name: JoiRequired.string(),\n});\n\n// Logs: { id: 1, name: \"Example\" }\nvalidateJoiSchema(mySchema, payload)\n.then((value) =>\n{\n    console.log(value);\n})\n.catch((error) =>\n{\n    console.log(error);\n});\n\n// Logs: Schema is valid\nif (joiSchemaIsValid(mySchema, payload))\n{\n    console.log(\"Schema is valid\");\n}\nelse\n{\n    console.log(\"Schema is invalid\");\n}\n```\n\n\n### MongoDB\n```js\nconst {\n    JoiMongoDb,\n    JoiMongoDbObjectId,\n    JoiMongoDbObjectIdRequired,\n    validateJoiSchema,\n} = require(\"@beanc16/joi-helpers\");\n\nconst payload = getSomeMongoDbObjectId();\n\n/*\nThe following is the equivalent of running:\nconst { ObjectId } = require(\"mongodb\");\nconst result = ObjectId.isValid(payload);\n\nif (result)\n{\n    console.log(value);\n}\nelse\n{\n    console.log(error);\n}\n*/\nconst mySchema = JoiMongoDbObjectId();\n\nvalidateJoiSchema(mySchema, payload)\n.then((value) =>\n{\n    console.log(value);\n})\n.catch((error) =>\n{\n    console.log(error);\n});\n\n\n// const JoiMongoDbObjectId = JoiMongoDb.string().objectId();\n// const JoiMongoDbObjectIdRequired = JoiMongoDbObjectId().required();\n\n/*\nInstead of JoiMongoDb.string().objectId(), you can also do:\nconst schema = JoiMongoDb.number().objectId();\n*/\n```\n\n\n### Microservices\n```js\n// Common helpers for microservices I make\n\nconst Joi = require(\"joi\");\nconst {\n    envString,\n    envStringRequired,\n    envsArray,\n    envsArrayRequired,\n    dataObj,\n    dataObjRequired,\n} = require(\"@beanc16/joi-helpers\");\n\n\n/*\nconst envsEnum = {\n    \"envs\": [\n        \"dev\",\n        \"staging\",\n        \"prod\",\n    ],\n};\n\nconst envString = Joi.string().valid(...envsEnum.envs);\nconst envStringRequired = envString.required();\n\n\nconst envsArray = Joi.array()\n                     .items(envStringRequired)\n                     .min(1)                      // At least one env\n                     .max(envsEnum.envs.length);  // No more than all envs\n\nconst envsArrayRequired = envsArray.required();\n\n\nconst dataObj = Joi.object()\n.max(100)\n.pattern(\n    Joi.string().max(100),                                  // Keys\n    Joi.alternatives().try(                                 // Values\n        Joi.string()\n           .min(1)\n           .max(500),\n        Joi.number()\n           .min(-999999999999999999999999999999)            // 30 digit\n           .max(999999999999999999999999999999),            // 30 digit\n        Joi.boolean(),\n        Joi.date(),\n    ),\n)\n\nconst dataObjRequired = dataObj.required();;\n*/\n```\n\n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n\n<!-- Shield URLs -->\n[npm-version]: https://img.shields.io/npm/v/@beanc16/joi-helpers\n[npm-license]: https://img.shields.io/npm/l/@beanc16/joi-helpers\n[npm-downloads]: https://img.shields.io/npm/dm/@beanc16/joi-helpers","readmeFilename":"README.md"}