{"_id":"@bits-cr/middy-joi-validator","_rev":"18-0633f45128b23fcbf1c1718ccd528e90","name":"@bits-cr/middy-joi-validator","dist-tags":{"latest":"1.0.13","beta":"1.0.14-beta.7"},"versions":{"1.0.0":{"name":"@bits-cr/middy-joi-validator","version":"1.0.0","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","private":false,"scripts":{"prepublish":"tsc","publish":"npm publish","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.0","dist":{"shasum":"058b6098e95a015d638b55e4e4f982aaf2023cba","integrity":"sha512-6YKI3vacqMz367cakMoqUrEJVt7+J+x8AYwCfAulKKBDrrDt0QNul0ZcGF3QYXemqJ6XWrguHQGYORv9q6cxZA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.0.tgz","fileCount":17,"unpackedSize":15183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCv0FIVX9j3DkVjcQheH5LUgD9TgOZG7ANDim1xJbdRYAIhAK5aqf1L7a0/HJHxYlUwAZlxIYa4D/fTmlts/IvzfnRT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiURu6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqp9hAAkj7EwFdDcIfMf29k2L9SKw4rWPTsU035tQQuGvBXzKpU2LSy\r\nnPSiAzHm6RHvsUHOWIxqrdsvrONIYYtNksWmfkcRMQaYgwk3gODpMu3M2MFm\r\nhaU6nq0hCOlG5moG+WBPJPEkx6D/BaUHRRbHOYhc4Iy8bQ4+W5gajff1ClG0\r\naFHxCqvmcFpxlJB6uckXmjJRJHAoHcvJtrBHiw5lVZa73p3uiR/bF1owFuwa\r\nKHhCJS3meUVqkWMWSvHwWqB5nffY2qeGLEaay5MTDKnW+eEEQZJ7F48KSsLp\r\nCVl6GRtEL+fAj2r61cLzHn8EeJPn6qevJ5nvhZIb4fGwLyFTmJqFON9BiWnp\r\nL29jhxbV4SB315wx+FV5SANSztPcFSgefmhEeJaNosJXikooE2XOQHmdyT1m\r\n9NUGIGxEw3rVNZdVkzE6YhYOlGRK9BYQbJMN0l78u9wePDh5mQjj0nU+LRXu\r\nPG3W8WSz3h0XBEqV7rJO2unnqK7xYKHA3Ydib/p4ManNl1n7afXHBp3zt2PD\r\nsLXDbIWVVpx+udASFDjkiTsuOgql6juwotVwrSHHDGk+b+VHXTj3yHPkKmNC\r\n3DvV60aZNLS8JNZ1QdFaQlTsGz//w4jaHlK52z0a39Hi2A8STJd+B0/PgzJ0\r\nG0lcgo/kLY0HcOwjNSfY2YF2TUvcg4Q15dQ=\r\n=ielO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.0_1649482682633_0.35451149451026587"},"_hasShrinkwrap":false},"1.0.1":{"name":"@bits-cr/middy-joi-validator","version":"1.0.1","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","private":false,"scripts":{"prepublish":"tsc","publish":"npm publish","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.1","dist":{"shasum":"7e7171b5d3799591ef11eacd2d8f7e42194cf65d","integrity":"sha512-r2tdg21WumuZTEqRZfHF+pWC4Cx4YGx27eCXCghu0Ii2dLZiifs7pQ3TtWTbS0stH8qrZBd/KpgfD1kbKuV4mw==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.1.tgz","fileCount":23,"unpackedSize":22548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN6ETBbw3LJ13k9QblOeKDUldO/pc78zAP4sFlCyyHDAIgcjcUZhcHUpoW9Jm4CMy4ld6xC62O2e+V6gqNywQv/Lk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUR3wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrzcw//V3xOEEaeluJjzuBsOUCNqyQ1G7YLWhlS5ZE1lkyjQYFejARQ\r\n4CJBGQavuJggCyBP8Su6qM19pq67paLR2iFPBNABdli/w5h/chyDqYugdBYn\r\nHyuuZnkbLNn7bAIBknqSzBorspFG392h7Q2JJkh5S00iFDhBP8LbIsgTpLYJ\r\nSK18SuhTVlWjqQSQAT35qk1sHBQBLRa3cdyss9rhMN89AbFkUeEjBSoG8n6j\r\nPS8dEmHjVoSPm4otil6ZhuoMXUTjykLppOW+nvc0hCGeb5AMlcoeMWWuTK7N\r\nbnqC4qwXe9tvPVfAdj3pmP6Y4uiwPwCedd8zOtHcA9RLWn1xmAjYuX1Zzgrr\r\nhZaMRpitntbUMCqYEWXnNw6KcrfL2E51aFp5eZAd2m3T4bsFVXlvvT548OPT\r\nAdcFcQeTMekMqCiAob7m4b4UGrWhyKid8vvuEq+ITXjGv8RUy6OkCQHm8len\r\nbvIyB9gQB6mVH7F+BZI4oShords7/gqcmMqPT/fRMW1U4z2wmzlbWWYfxCBK\r\nlFjmThcUJzqQj+AWgWtiId2N8q/+SV1nkOqZnfXAWQ0J1HM1fAVpMbAPLfXK\r\nwF3dwQPyBIW2XrkXKlaOcfwkL8rBNgRje4VzfGh7/GEn00Q168MSzI5Ptdzl\r\naUf3cib7NFCtPnliaZ8DgU/oi9X7ld09vRM=\r\n=txLK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.1_1649483248526_0.9080964648395098"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bits-cr/middy-joi-validator","version":"1.0.2","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","private":false,"scripts":{"prepublish":"tsc","publish":"npm publish","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.2","dist":{"shasum":"d20ee7aac250d17f9629bf2851a6215079c61877","integrity":"sha512-jVrd4MFdTZdhIEX/byKJydvjLPc/s2EQrXL0H5e/McjVyPJ0KYjq9lAD9g0gSW1f7ZPQX+QCYASHyh4wnEvVKQ==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.2.tgz","fileCount":11,"unpackedSize":9295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfJaQ+s73I1YhqXNJ9ApINJ0u1IJjOumD3Z/v/v73GYAiEAwcxFtVcrdzAZ1aAF9CVBZPMCndyjPZJCqqkOrhyzYAs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUR6OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO+w/+K7MEr9lvlsxTW6tSRruSAaHTV5WaX9HW7kTljoL4jEMWMzti\r\n/FI/QD+cxXK1S8loUdFXPsgn6e+ujdtlkUW7OYwiWlNFJk1/JcK2XZJcc4qE\r\nXykpm66azglGkOFcP2xVQVwn+GXuhR3LWY5TqiBC3s6ZY4kfNvDTppO4ArJD\r\nD40+JJkJ5XBn8Pj6JEMQ5tCGqEGgAYLkFbSRNuODPsvv7raig4iGSr6888Yj\r\nYfwPh1bUACM27zzVSLi/cXb3E73hGfYAwOIgK377UDNzDUA4mLkUeluVg2Ay\r\ncjf4V5sgd9ljZvzlXZ7U8Q7sh+wCBp1YXk98sxSirNMp/0HDgJDDoP8G0omS\r\n0xmZdYyDmhD/fwuk6PCOi5Dir6M1H4b+dW8P5sRmUJMqh6V//Jic/GK9ENFF\r\n5NtXHcjoLbum8w+T2nIn8YG3I/qXW3J37kDjwlmQHP8zbrN3f3PDlZ/mDPN/\r\nPiK+fj1d7r5TnqfsLLrc+8UDOR/sZNKAGTZoMyf50z+XjfVu3YjkoSxWNE2t\r\nXOCMUq4W84KTlQzwuhLIkqOVVJodu72iQEtnpwPw5ki0+qbXJgCwFyC37w3J\r\nX5UA7BWgf7g6dNpcB0P/srMb4DR6FE83WIkVlom9W3qRX2cuUBeHeeMpFbWm\r\nLGT2qyO/Ca5PYE4aqZbDlF+nO0byvU/eobs=\r\n=X7rx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.2_1649483406186_0.06966190432472597"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bits-cr/middy-joi-validator","version":"1.0.3","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","private":false,"scripts":{"prepublish":"tsc","publish":"npm publish","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.3","dist":{"shasum":"bf205e5b0f0bc99d5d9a70768e2519a882171f90","integrity":"sha512-HM0GqHXWwY3TMd7OOa4hgBVtBtc4ilLgxzzRd7g/H8Ad70JVdEgOieKt4prbvAa8hKxRQN0sknJKe53TKWYyIw==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.3.tgz","fileCount":11,"unpackedSize":9337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtHj+7zZZpb1dYHX/Haf/117aL/nMbqrd3QR0vRFiviAIgAl3HTSG5h3NNJe0nb0hkzRZy8zn1DhMeAofyCqrKCv4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUSKuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK1w/9FvcMtJhWPS3RFo0ORZ5X/UoA8J+yOR//GQlcDWf3s+D9yoOc\r\nobuVeJyoDuf2ODMP7+Fll39V0dLzG49GjCR3gyVSwPj+dJd2KJVCEH62XAsg\r\nEIjaVg3IxX2ValWTFIuP/67bbNQfjcFMKQ5mpqcFac0c812Uu1HezS2wS620\r\nZkIcDp8cOfhUyEYoosnRlgTwAHKhPJcoTSIiqlk6vnKLKo2VbqX9pqrijuz0\r\nCRYxhTASY3Yk3xhGnsq/9fpSI9XF3hdjyud0Y+kkF4aEoj4JWWWAzXMcEauU\r\ntqtbxW1UywLYEMh9m5sF8eqscDys7kpNrU0Oq3eRLSpK/agMTxTDm4M/nmg8\r\n9k/JEsk1WuFrLoluZu2Fm6qdDbUydP8zvzcEevzL3QWh5Wjabb9jDhzMdXdI\r\n7hx3TFHxSpWq+9JJVIEG2C3p9kSxB9fRcCAf9Cun9NC5WqaimK9DOCugGJnW\r\nezGtPgMYdMhlq8ybJV15FgJRpwt8+FwdPhoDkl3gBICjt/tIPrVUtVqMkEFG\r\nDg6VrSTyOjj0S2mhBW3f6oGpU/qVA6HvIJrIZC9iytXQwcfYE+amUTML0SJr\r\nvVph5qYYXzMdlRKb0JNYdV2a79pE0bYUQ0NPtbt1Qon4bPigC0OQUaY+TKk/\r\nnz/1gnoAFXEH15vvS8rXqDX62/IOTMcv7Ic=\r\n=sw98\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.3_1649484462435_0.8224245678774478"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bits-cr/middy-joi-validator","version":"1.0.4","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","private":false,"scripts":{"prepublish":"tsc","publish":"npm publish","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.4","dist":{"shasum":"dfd50807db7b51e5a792135297ecb34b08f95898","integrity":"sha512-TK1TTOgvso01g57c0eeWedN0YFhZo/nolwP6887nXHG4uxKEEYkGOeFNU1e8UjkDCJFyne4AYjCmlSdGpNfDuA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.4.tgz","fileCount":11,"unpackedSize":9337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAHqRueGDieXk/UzGDpMiYM1DCrNarYSTOy/GGmx3CM2AiEAwlrGJkwy5hg8QC0YlGbke8IWlHC6Q8YiOhwskQT2pho="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUSL8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQxQ//RXfLj73wCg7pRXR50dnCBjYjlB1VYbgNzS+gZ/mBc/gsmbos\r\n/N5JsGmQtfIwQjwT+Kg2cqqUHVwyHgrSONpyD5oJJ5vs2RvKi3KmQRJhfEPT\r\n8E1zpCfcMDnJckvK/u95L4889Yt1sZlvMVsTKbzl7kXe6WainIc2Vv99N9s/\r\nIRwXwEEd1/sPUaey55P1cyzhV9JpPLHWiDhQMgpaVPTl1JQc6CptMsxyRAZh\r\niiGCLWbLQpYZLlb0a3GW/D+aLG467hICautyNa52Rf2t87eLl026gk499+sS\r\n9s59pISu+w7206Sh2DKNNv8RYSWsL1ex7NMUxfl0hqmshrzKnG9kf26ypocd\r\noIXOOACR+H4Pff+t4Tzwls1eJT2bNbhrjatdosnDCWcV6DJOQZGrhabz51/q\r\nUzZmnpIyhq73VapFZXWupS/Mr9i64kawS7oAdKrsrythQeDeyVUQ3nZiK+YB\r\nD4T9T+cAJxMWNY/saqZJRDrhhLPP48umVazMOoIJPo6TPbqI9nneiCeu96Ta\r\nlE4Rtiiy//64my3zvor2vEbM9wBwxg55+o6QzZNvhy5o1ao3lAYvxuvrQwNz\r\nEBL+seeD4dGtCnVSGXvmNvHzPfzApK+KzFJNztte8bIfAvR2Na3dBpBnchZg\r\nzanNZ3PopKAupfXyTbBoMkIfwHDQGTUX1KA=\r\n=g+Nd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.4_1649484540293_0.716173339059403"},"_hasShrinkwrap":false},"1.0.9":{"name":"@bits-cr/middy-joi-validator","version":"1.0.9","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.9","dist":{"shasum":"ce5f3c8e1dc80ab6e8c415814006b1dd694d169c","integrity":"sha512-Pdw5eq0Wh2f006qnPsTWQVroMvfoZwR4on7uf7XIxNkvfTMZ8v6DfURLC3pflmJjgspyDQmUMLbQTavb5iLXQg==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.9.tgz","fileCount":16,"unpackedSize":17926,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZWdP+683Tr5gPsvD35c/FQ1vIDHXfP36+PEz8RIXsLAiEArFIotRpVgXWGo6Jt5wFMNikQxjo1qQH6oGGdmUlMg2U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVRVWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBBA//Uxh9MRfOr3i2oBnn+AYbV+pvNYKaLf+wm4DjXFq9sAL/aImm\r\n+M3hEohUs62peqwifkAit5hv3kQbtb9W4Lg1Pdfz+9dzLS/KY7UFZrW6RqXV\r\nlYePKS9Qdkq8bh2mU/AwMlsh9FNHmLl4VP52zeNQpmbyzPg8W8lTNtWfgZsH\r\nHEdiwrOc9OfbZQKNNCm76lnx80yeV4BgYIi8I4R4oeme0/MwvAUW/+3ZaU7w\r\nohYDzfho2lkxDUEbxdPlqji5/fevuIkym2SdqZ6m6p+ZgI6XneWOwLTBAaej\r\nDFBJe/Vosp8KuaKFg8hCpEpqlWhxpdozpUfpJH/VX5Qkx4/XsRELnaR86rnB\r\npe5MVrN7Le3/43txzjNS6st26RpjxbtmFac5YjP3OycWqE9m/NNWd3SgGRpZ\r\n6W7u/BwfFKIXJ/ro4FIsLqXKxpTkuGIfRZfEsiyNy9M1JHwoz4AKQdWfwgPx\r\nJZO4QKCmjnPSEosEiFMa9SEXkrxJv7cVUSjVbJZv+Sz+1mK9rpy71kH3k4lU\r\ntHhLCdcGcyVixPsaJMd5bBFPlalFTl+9Vc7dJQyUC+ICU+/MYURA83WpiH50\r\nLWzY9AdU+RG3zVOFvB3A6JukuHJ/eiwvuYtP/3w7MuxL/cE5ZR4TNzmgY2y6\r\nGmQH/xDTgTrBtiFptqSM+xptX1D937dKRDs=\r\n=xunA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.9_1649743190573_0.7660182743082891"},"_hasShrinkwrap":false},"1.0.10":{"name":"@bits-cr/middy-joi-validator","version":"1.0.10","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.10","dist":{"shasum":"5fc980f3e571ccd139f903e409e2fb68f4355b5d","integrity":"sha512-2DNtWAS4wGBxIyMoXRP+KdVURnsy6E3B7EYcBhPPDP3UqC+UGnEOsw1XhYbw5CqrX0JwfRhwKvRcXFEETJyVrg==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.10.tgz","fileCount":16,"unpackedSize":18123,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2gTrSeS9DxGOdpTPyaHLHGN9x0esjm4FooxhpXkQCcAiEAh8q/13jTK6+MuZEWr481NyxQpLzRr9ps27qSFqIeTF8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVRjKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoApQ//YmH8iN6NmRWYy3tGEadzSm7CpGVg5CFNjOXerKg73mE29b5E\r\n7lAIeP0Izd8YofFojew6cu1UNj8R79WCQ2zeiAgbEzsrYfv6X7p6fGCE/Niu\r\nD1nZi4esCCayqcfaEC31FkQmJdjlLyVTr8xUvxL99SsB//v2e7BSYYGk/u3n\r\nALlGIfwbI72BaGnGSc2NIApmUyw5UDvDnZyByXh6Ox2rjQxWGwG4LsoRD2Cv\r\nJNH7xDQqi227l4HNu10lqsovDmU/WddOm4wSYeII6k4Kl6lU02Cbi0IEoYvo\r\nJQAkyeclFaCd0qZTb/FA/Buqzw2NPvdkWvJO7q9u3iitG27Vle7jcH7GnB4G\r\n+pyjwMFx0XqDzvkSwtyOZ6dsir8cPm2SUq4Qzb/vEzbBJtTk+C60j1No13KG\r\noPOeG451imASNTNV3GaDfFfOtkrWICTr8AkEUvamVdmVSm06cqb6D1y7CfAR\r\n7D4qU2hr1bTU+g1SP134xiMMUDWHX0OBX02tl6BjbyKz9Mbi9p2lvHcZyUr5\r\nzVDtZY1u5+o+P6Y650O4sm/8AQoK25mvt9atmTbjZHsBhW8RnNy+ZbL4KR+N\r\nXEomelqUEVau7ziZxSRJfuAha1roPwgWNOsnjOQ3JVymeBoKYxN8D/yq5tsy\r\nLZ3r9iFMOcbXRHJLk4HMJV0f5wU0r6STLr0=\r\n=vQgN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.10_1649744074645_0.944760071773721"},"_hasShrinkwrap":false},"1.0.11":{"name":"@bits-cr/middy-joi-validator","version":"1.0.11","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.11","dist":{"shasum":"1b6f43b4452fde3a5de9fd3b8594b30a066a290a","integrity":"sha512-HDqAtgyrL8eG196XeubGeBX/VF7J7NkQkX39dYBxEF3APzUY4SVGNJvwynF/lhOy0XLBX25TBhFXkSAavOaWDA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.11.tgz","fileCount":16,"unpackedSize":18168,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIDUJ7cYAHAfa2Yl7OdEc5aUdZkJ2ybtGAi2c9DP9vvQIhALs3dzfuFkYkUh/oDjAB9C9jvbzSqykFTz5oE510W8Is"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVR0PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNLw/+IZhyEzN5lS+5xdRN/TnbLlrqlt/dk/M1c7sQgbCCny6h8Hpp\r\nOCHaWgELQz4V+00ls8ZsHOpHiEhlKPZddE3g2fPfqmqtENzY8rJme6ecAJ0W\r\ndjcbFU5JVu72EJj5v6qd50Cz3VOAFEmw4UdpOGOv5XkKS1zRdfAoXlgjcfMp\r\n6JBqiR3qKxvXr0iKTreiOR2NgN9UlVel3f6ye7LNFsaiMkx1sRqTMGLKSYP6\r\nnb3mk7wqdRCekiDsLkIxojoD2U0x++fKagywby3gjeesLFNyWJaw1YKK6N0G\r\nTfCvNr3YFD4Y8MqcgVcMplfmWX8pScJ+NbeC9twzE3qeMp99pYNa7D+2/QnT\r\nCcFBqbVXrdgUbwjQ10bw7K4pH8C2dcW3QVJWiEzPt7V6xdcLx4G2EkY7akFq\r\nahX6uvKNdX4kVAlxdUebFjGD38TLDVQCZq/QlgvLoRc0R2kfX49gZ9c/HZc0\r\nMmghvp9AKqomVkn1I1+gw6WSvWsGWzEA1vnc7bs0wH9d2vQ0P+SNsA87lN+H\r\nUPIDFPu/Miipo3lpshO0Evd51YPNv7Sy6GgVaZwvEmXTu5m1wZaaWpfNrB3p\r\ntoCvsJcwMYO+iaHY+kG/7sbUc5QdLXzrseoz7ONN2y6DN10kIyiVWgd0KZTR\r\nBGRbVyZnRmaQA+eEPuQoMB7qhgIHBUFCeb0=\r\n=MvTp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.11_1649745167208_0.5534580153528448"},"_hasShrinkwrap":false},"1.0.8":{"name":"@bits-cr/middy-joi-validator","version":"1.0.8","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.8","dist":{"shasum":"e4229e84a83a1a6951fced5d45f3faff84305c85","integrity":"sha512-rERKrrqTkgUpvmmW81MZZP7fKTdLJZ6I8/hUYiiuaaFD2IJZ+ImLIZ7tafxxuUPi00BhPQQ1SodB4gSharER9Q==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.8.tgz","fileCount":16,"unpackedSize":17610,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEgyrIyj0/pEF7eQ8d/wCrXSUNTAo95NFxDwK8Q9ld9gIgaJAWsubVJHjqd1GHzmrJgm0gp5EESp1TvWoRP+SIvNQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVSURACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNoRAAnZgsTJnPyYh6kOJdFURwI6kvvk4lKVtbhWK06OKql8h89Uhz\r\nM56KmK/oATrswXrprqgn80jd9gsOaakOY69wSN3fbRrMR+TMgcUhm4gA/qtu\r\n5Izt9kqBnBDWiPgay7TX/ME7xRGW0x4hgYR4ScA4avdlHKWui4vXcaiIn0Dq\r\n1e6GzN5PDj7oVQVBVXx5Le5xbL/K1pnLjqAK+GHumy+xWpSBFKl61WA/FJGa\r\nMvL6MhRqCnJXhFPylcgpgT3LKyxdPuUWrhsbfgD2ZhVuqt8qzhIkM6GbdZt4\r\nd/d+402dmczPxgyzWMWzKhLmhHnUK4dOgBwRSAS7k5MFg3RIT47snECVxdFG\r\nn0gFCRKl+OioNkY86mj3VQoCS1b/HW0VXNwTfC5BdyMZfYVV3VHj1/jQ00fN\r\nAiUrpLt0vR8Rni9qnH3KXJArwKo6b/j8AFtSzR3w8QRDt30JjsGePLR8rHl7\r\nFGI9AD0M64dDTIhAPVQ9z63s3p1Kn6W7KV6S585ypaj8B7O/8scP69Nxe8z4\r\nPwMbrG+PcyXQ4i7eocdAYxwXidgLM8NLRC+nyoUiegl22Znt4oJ910alR2da\r\nsUnfw6TH1dYCeANDDiE10C8LhGW7zX5k4JFw8WWL8Pe5N3OC3sU1D0kwiAW6\r\nnMFbws0ilYpEy6uhAgFXjB+uqnXE5wR1Bh4=\r\n=oGAg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.8_1649747217206_0.43566765001980956"},"_hasShrinkwrap":false},"1.0.12":{"name":"@bits-cr/middy-joi-validator","version":"1.0.12","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.12","dist":{"shasum":"1826a65f19bf1542ceddc54e893dc5dd77fa6699","integrity":"sha512-TH1+3bFJfWaoswD/Q1SHZKxEDPfQbGTbUiYZ51K49RwarBeTGlQFGgRW3JcQ5LLzg9TEF7PP013Ay0q1Tw0ZWA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.12.tgz","fileCount":16,"unpackedSize":17597,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB5UPd/h+iUN8CZDzyTax5DyOzUUZKsKL7DEAQiH2FLAIgfFYgiTuHAQCx2G2siTTQVPFGl/MJkPE3bl+nHEFFEww="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVShSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosEw/+K4lqyKSRCofoDedj/41aOZnDstwS56lB/NlabOQh1Nh+Dr6T\r\nVPPRhnk7+IPsDqvPVFjQ10w7h19AQNv3qM6cNjwFpYHZ/G+TkBJYQ0zEx3dp\r\nh4cTeJ6T50q5LgTbKVqvz7omzs3lXucqXk8eZRBtwNT26B61kyepPCYB6Ywe\r\nXfqYobnanpvi9/s/XG9CWQU8Axrv4yDBbrB1fEwSERKIdtSQ8ltZaUbS9+QR\r\nVU91Yl0E9ACzPSVfQ1yB0Ti3axKceD5CVCaG98YEdneiP0smpJjOBjzi694G\r\nZHz1LBP3yBmdvYnuzJhu4xC8WuDWLNSrt047h1rPk3yO8idYk/8aA7tCtGjH\r\nl15hbLo/umAmHiVrmjOHAFNGoxbvqx1mn9WOeeRSBXCI1WqQI/y8SWKnO/xr\r\nAUV/lqqLf/BAAtZu6TOto9rWs1H3Fpm5S7fgJLi840JH+gsSk6kZsSUpUNae\r\nck9DX0UJo6MfiCTMiaOW36JtJ/U4H4CPDMYajlFaG6ZM33pbxA2VjT8of8V1\r\ngXQKOMZWqBtybjivAdcPbymlnNLWkKkPu9x6bM1oDBtD1BxhjY1NCI9ZVW+c\r\nrtxsrjEKcBospUSxku8xk36ItNPASiROK28ms8VjwC1dbftuCJREoeXXxKY8\r\nWHAOw9c/Q6TJW/CQ2b7YLRMZ2dVi+t4s00A=\r\n=BdBF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.12_1649748050446_0.40068323454414956"},"_hasShrinkwrap":false},"1.0.13":{"name":"@bits-cr/middy-joi-validator","version":"1.0.13","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"licenseText":"MIT License (MIT)\n\nCopyright © 2022 ArcezD <Diego Arce>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@bits-cr/middy-joi-validator@1.0.13","dist":{"shasum":"cd78baec20b6a8813b5b4f3f51ede87faddce647","integrity":"sha512-ys0akmY6yjPyOr8PWlDXdJEGQKd/m7zTDPyPKiQ3lXU3I2AE3zgbXoM04jXnJAez6GblDVKBWmuO/7i9oEw7vw==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.13.tgz","fileCount":16,"unpackedSize":17597,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYfEMiXSFG6d0TiQCIW57lF+bKHoD2UooCGBgwwLSPqgIgFNVLFUPArjW+M/CbxuAkqJEE47IjEjO4c8YYECfz65A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYML2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuaxAAnMnMye6tVtNa8FnvjS/apxsrpK2DuutM6BV2Wy9OYNuYzSE6\r\nCadRIVdh7xH83ShEVMdGUPCLrKHdd3TbYGKGULQry2kRZ1iFSPE664HuliMF\r\nC4ShIn/2SDzi0S3uHf8+GIs3CyI5vhFUP0T8DaBtKnjLU6lQ62yDOED+5wcn\r\n2HmXpPr7S3A/bEwu/r2fwQipa150sElbQo3jbxaNMyT4XZ8Ps1bCniJn7S9M\r\nKrYSLAnkCVcn8GKYZRHp1XkR80bbXdfOVV7P34BqVx26X3neBJ2p3Zgtozef\r\nw9KS61rh9gzCp3LPg0zqxx+4MV7ubJrN2qVAz3b6qII6ydrTkqnPsQJngvY4\r\n25l3gS+qQG7vBg5VSp/t5vWmH0euw3WCQ7TnjIKKOdo/4dNPrSP7oU7ZCGVZ\r\nDi94H32NTSra/5pjTWUY7HbQJVZSjKYJ7Dna04T7DpRF7GVOlk2IuBsQ2Tpd\r\nZkjumUocFOjOsvZ3g56ceSDk5MJaI15gPeW10dE1zNasfv0N1uw8udv5A69j\r\nRXrHwUagZK6GeO3d4kuxZgzHcdc2NcnU/lI1pDvWke3POUKNKr0ONkMXWbOR\r\nw12U/vfYmv+fl+9QNLh20A+2qcwsEFxmMC3n0VMoC05Xz/TkOSEEW6jCfxiw\r\nk0vgqj/7Oo+neyjlY9Ewq0004MesjprCS8k=\r\n=XLaQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.13_1650508534287_0.15997692495885074"},"_hasShrinkwrap":false},"1.0.14-beta.0":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.0","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"_id":"@bits-cr/middy-joi-validator@1.0.14-beta.0","dist":{"shasum":"3dce76f86d0ce48cbd4e28390fa44de62ea2d199","integrity":"sha512-0wCVXeyQ1anNjtLPA43vmrFjVhu0GdPDsCVMoUaZmpnx6h1O6pAXViTz9FXPl1kLhlQJ+6vEpoBuUaiUPq6rUw==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.0.tgz","fileCount":9,"unpackedSize":15010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPkwf7OXtYSPd54PbfePfp6tv5HS3CqdxSSa1g3Ph0/AIgZEd3z0kaoke9PT10WD8FHd8lBSpNzYvVPBcTbNe7Ybk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYM/3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDgA//eKzD9sVNDADdsJc3i5zAebX6wMMTip/A9+oRlftOnu8OJVLZ\r\nt5GtnME9Yy7GrW2dOiCTXHilfyAxlDD9UTuLW1mLX+4wUBZ79nZiqbW6dftj\r\nOSHJIdI2Z8JwU8EO8TplgWD8MjFIxrcb5DIXKXMKF7mdvDyN/mjlex26xKfy\r\nzttEzOa84rxbQaXoXUZVP1QTyoU4Omzj3HbMa4YuG312ulmAzkIW8xvIQrb3\r\nPvcnDi5iKQR7xVBxAUaIDC6kVhjoO6UGmN2tFfQPLXjp4QJJl/vMiCCtAySh\r\nkLF6pbdZpiN/4AnvcrG1eDWWZfSkVOqPvViqa5i81tBoZvgqRSlHNR+9EYOq\r\n6pKgoqKPBkR7sM0Da6suK5x+DbpN/bCDV69cVe3/a/9AzkBfjvdSaWPcn/JJ\r\n55dcWnB8NNx+p6OfkUjhiP8W98RijKkrS50+gxhDFALvnIyZ7q2TVGaAu4bj\r\nGVAEQsRqdWwtJXylbq25u4OPqFncW1rJDrXk7FdXyQtycyPze4dd1aIxQjee\r\nstO6ZoTuCNg692Zt0dIEtPDOhXbDzvWnA/51MbIxrvcm+dxOSmzCy1qreeqi\r\nWktDWzAeUgYgdcpWcg46/wrIGovZGBE/dtSu5iJ3ZtgMEk4n99zFiWc0VDS8\r\neK6MOPLYm9IzmvgZaIgO6RrfaswUaOWU8lI=\r\n=JYTh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.0_1650511862978_0.5077335971916783"},"_hasShrinkwrap":false},"1.0.14-beta.1":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.1","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.1","dist":{"shasum":"5a15fba2506ce5178176cd985058f53ee3e2f7c8","integrity":"sha512-MuRUL0G1gGWqWbECybh6O3oB1OngGbfctvBgKNZt2cHAAO3IWL8xCGBp2CHcGWvToJmlvLyA6G5fWYVqw4imKQ==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.1.tgz","fileCount":9,"unpackedSize":15022,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqmYsKCMt/y84hz5CE87qzgnD1p4U0pH03vfh4ZYHHBAiEAkbs3Dixpkjqo5gPPZpHOCQfeHdvemXT32eZrbFjFvGs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYNoJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbYw//fwCFUFc+Nlnx/cbkj7Kf2omIPGtirThchNOtVlVCadycshhN\r\nYwr0cAJV78m4PErT91HYVEvrWCfSfkRpvB0scKa55VyARadOIyavpV+v0pZi\r\neouryPAddjGIUfV+o+DCVLpcCpCWZTTbmQjKFIE1TTTM/+AuMBSc88ov4b19\r\nNTQxrkBrPR0LkyOSD4skFMTKaeFkf/25IPN5vXtBUflyArty8MXaJ9vTyjko\r\n6MqqRvxaBrkvT/imjTLBse0oJmXu31BC/B4ioru9uJO+4ToMTpJvT+I23iK/\r\n1PO5g9iepckCahqrEmvFoh6mzTe1+VOCX95KL0oAgFY73+ku1NK+JRXI/wXr\r\n+uGgliTMNzXhAL0cl4VP79omQGThRUTcB5/MmXuPpIpqiteFJ8R0f4T6jlkN\r\nfw8TkoZCebP/MaSMC0gCTaD6GosoHZWyqV0MXDK8BYDbM7RS+pD2b7PBznFL\r\n0wx1k9rn/VHfo4X4QjAw90GToWoI/TQO+GtyWI2cOdV4d7H85fst6nSbDFMc\r\nzBxiHknWeTbnSbPQbQkkGBDQWTkKG+gOn4ABODUx+KWNe4+TDXy+VXN+D2Ex\r\nj+IRmS4QjLIivwewoHbaVbn0V62MnEpVj9huYzVs3yKA+cxO4A5Uk/Wh30Ve\r\n7Qxb2XJRXgsoTRjNrEtcpfM8fq5kcbhcUtI=\r\n=249f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.1_1650514441749_0.7477043331758695"},"_hasShrinkwrap":false},"1.0.14-beta.2":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.2","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.2","dist":{"shasum":"af6c2d42fb70438c5032d9bab6676d75a4ecf4e5","integrity":"sha512-1ijH7FL8jylRCTPblJvYbZZZo5dPKY8gioMvcTcsUGU+P/p6URhJtctus1u4orUELnY/MIOckdLUJFxq2SbeeQ==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.2.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiLRfAGAn9W6KsFbFHuRn+jhJoVBP49hldpWJvkAOoIAIgIBGVON+r8AWJHYpkGrRCjZz88UCqGL6DseZJLrIjrG4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYN5dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq1hAApILY2LSbtIohatJTHiG/xfu+PRjLuhGYa6CsVt70MhtHHcTY\r\n4Dj5gR5wCCGS0gqJ/Rl1esiHphYBZdwpD8GVTT1SzajxQTG/CiL+fiVaYSzC\r\nXbeM8FS1kEOJyB+HNzG/8owecv0Cars54Z/G2A9U3AGjb2T07iTe42EaRlY0\r\nDM+LXZ+3f67Lxptdd6gZg9/WBg0Puf8Qft4ZVgQ+g5r1qTxd78WnqPU2MgEY\r\n0NYlJZWXlKAUfNJxdHBeb71QwRVSgLbjhRAhpT87otAC2OWcslgf2/Da+Fz6\r\n3bkShrW3854izbDn97rH/umPaQRLhusdhz9Ujn2H+i7GZoUW8gdJ9/cvaDZT\r\nNuxbETV8ntYdh2336/tO9sDUt+E3vTMpQeyfK+vpKsX6XxiRxh+GXjs3/ADk\r\nrXPrR+kPba/lxtZRC/M4FjBv3aBfUdI2mS8J4PXk4ZUAeUSf7voBSzLbgfbX\r\nO5bBQuc9TQcCpd9jDMvaJRePGDqeZeKQhYBTqvYa4ELAZbUS37Ep1NyYHijW\r\n9tEggkzBkIO3YBG1ZUT+GUIZa6VWNnldqWIMgtrGdU7SxbehPCiLZfT85hW/\r\ni+OhDUDqN55QdRxl+Cfc+u+1RWZz8ODuZgxAHYfLBhb6Vt/1Z2smB658xoTH\r\ncTsNbHtn3v8pNftvJiccfoiZLzP6CZKS83E=\r\n=P/B1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.2_1650515549550_0.21617637483388163"},"_hasShrinkwrap":false},"1.0.14-beta.3":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.3","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.3","dist":{"shasum":"cecf2962dfec2789e726c4d5e9d2e12350de17cb","integrity":"sha512-dmMytn3PY9YYdGROpEXW+7L4gT81gaXOkMottID6FJVV8w6NVGHIKl2mvm4uf13m8On+0WWlOj1vQka9j4H5yQ==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.3.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwGJn+rCkTlvXQgkc8pNCCF8BMQbk75sdiqLVbZN0+iAiEA5gvxltTbMSv9gUnILn2aFwZ8WMO8k2Vn4MkSASNcvyY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYOI4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmploQ//UbcrRMJr4CgM5sEtGaB8XuvvLy/omAaBXqLGUUtvINx1pYkJ\r\nDHt88ys9I0HQV6xeLJtD+gYJm7s2Ya0V9aKOSsaJlezHNNfFsF8I+uEYWDuN\r\nZGs6RTe5NQq7ge1KyzD9rfZ7C33CMk+zbSpvcSxgfRbCU2qdXeC40mwwDT4y\r\nA6TGPEGSJaYY82zn8OEl/mr3hnG3dAmrFuGAqm5kZe8b6CEEBbIt+ES3YhGo\r\nkNTnF1YPSj+EWZ2wHpHZ0ZsHX0OXdQxJl4ClsomJrYoysEluTH9ll3Abqzqm\r\nN2ii56dhqjtCQbrr4DZcxZO6CDxdDqAn1iZS3zeh12vNMj/gShmdn+xUOzJ6\r\nKCEkaDsgeXOYveSVlx/gUFLuQMFaDeTNYzwAnS25GeMkdX7WhGTs4/avn/64\r\nFJ2Q+ZTJ8E2jTM9ruCp4eSHTjGZuOucaQ+YUnuF+o59GmP/yb+YFPlCSfK4x\r\n3uz9Vn4+ULFCkDLTncUercfJ5gue39Q6FkeHMhtQMgSxTQ0cskeJUjnz8vkl\r\n4Rle2aqoGbCk/ss2VcyFN7BKlBolB4CoGcAc3Jp5/3O7GVo/7912QnGclAjF\r\nWZ40Fim65P582RmRM1VLJzuaa0p6sdpS4WZFqJldbslMKRGp193KGoE5AJeZ\r\naDYZm681M8qthgcHIjrrgS71SYe48gTDWvo=\r\n=uz+V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.3_1650516535908_0.3201543747911859"},"_hasShrinkwrap":false},"1.0.14-beta.4":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.4","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.4","dist":{"shasum":"09cc87e117ae76e7a7149ec12f06a3cd98ccfa00","integrity":"sha512-8UlmVSqiJkB/OVrPclRJzPpm8vEGqpSOYk2skbLQwTVulgTATBfMEhi8ziWkIhs3Sbfyxgq8U8aDchkpJV3tMA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.4.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfiiVXzeAg0nlTi4m0k8XuvAddpfJ3dvkLssDKAkYSQgIhAMqRRIbPe1kJd2BdxDLIVmlS8+auls/9Mo5Qj1RLYh0v"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYOJbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiWxAAh5L9jTEJ4VhqsOphsmCTf3DylorJSZdSQ3Ev7YFNjJzS0IG8\r\nObm5fI53do6zAKB5094CXDdvdRRa00OxbxrM36BTa84mSYXFEa9PvkjkL/72\r\nAdJupIDg0GT4WfX2a3uH8RKxDbtp4AuooDQa5bLmvT8VCI8hCWGHrxTZPERL\r\nPe7Z6P2g7s1QfSsMGhAUPygoA9qOFH+N49CwrJCaYsKcLq6N8s4ZfIxk5jKb\r\nym5fE/8iPlsxtCkQCN+ynRw2TbIQC9SXGBIN4ypH1n8JkDSkGMLAc/CSr02t\r\nkqDXiLeWQ1SsVIpAhJBF4J3Wi+qE00gRfA85J7oXDzALn3J2eO6ZYxYa/YNG\r\n5ev1aRZE+OxGWRcnKTyu0nIGKMYWoje0x5kgaaPq8WygHMGfg5N3PXlMAudw\r\nyiDB2rRW843YyYstvCE5uuuo6juRAsiv3eMn1Sz0XHnQFBLOzGaX1hCTZ0O+\r\nL9/Ysnq8p+lJ3qYvamczafRfDNl2xIpV0Zc1cU/gfaurT+qT/8VIya4h/BbH\r\nFJwaz9yBBZLe3eTOLQL76nC9SRvSEreoovaaOPij/ppihyywZiSf0lejMIMQ\r\ndfb+Q/p3kzNXW6veGxzfrJS33ksqt4Ni7aw0v0srj682iAZY7lJHSH6Vi7Bl\r\nJpVyQfVVOshwle5hnkYv2ixvNitBcWZPxP8=\r\n=zGw0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.4_1650516571767_0.6819207034798662"},"_hasShrinkwrap":false},"1.0.14-beta.5":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.5","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.5","dist":{"shasum":"dbd8614c91d6d6f90895ad710d0015173cfd4c1e","integrity":"sha512-vCECzUfRqOUOg7LwxRzGgbIsfUYM2weaSGiQuiyH7T9D6UQuy0zSo2Pa2MyxShLx1/FzPi2wFr8aL2c4reitTA==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.5.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSViY7HQ8S5RUrRbRJ3SfHPsaa1jAyMDqf92iydkGKZgIgFH10I+nx4WQ1OkoJmZV3Qp/2ZdlQP8Tw8UvSS1EH1/I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYOJ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAcA/9GnBwAzCxlY7jxkuhq2pVoqyK87GZdE8/T7pju+k7HFNuz4zn\r\njPEAWSRBcsUzn6Er3KXVgn7HbVhDRVGXDmtW48yVM50MqLscGJNPnpmX9Ff6\r\n1cKWh2B8uC6c3NKmUILmjhIFijR6dkGKt6PAlsrdPVzJ6dPE8iitq1m/GXW+\r\nm3aVjt+YaZNQNKE6JndJJ+jgr1diVgP6SIfNz+jsMAJHy+A4cHZWKGYd5uW1\r\ngzi4o1WIsbGUxMygX37JqJ2l3UI4DOWCSTvUKwRZCtKFCE0sU8phs1s2120s\r\nFYNknkAPPqAVoljmc1VhMpUfIl5YIt9rUQd+EwwHZs86pBy90EeNHYba7tNn\r\n6NIhQUbTD9nGt4tofNYrj+oE4DZbf2QE2EyS4lMen3sxMlYLFAGr7hSHTJUm\r\nWH8WaKDi/nJEwYCaneXDv3RHaZNT+/PQqR4rSOxXCKv/bffT1g4Y7J+urycs\r\nVfTQTjaVvpQvv0JdA/f1zhaSCmsGL/mbRoP5Zb3B3SxCNSrtbK0VI0V+TboV\r\n59LFtcGoiEGR4mgkkMNchGDsaKzzwsoSOcCsv/uMLntYmHRMyUW9OS+/xyiM\r\nZn/n3MeADvFAVau8JvjM+bfGt6NyeegKM/c9SH8JfbKKX/qeAUtg9WpKwxst\r\nm7+NhAIKcOXA77rV/Isth/jMwZvJQggArlg=\r\n=jDnn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.5_1650516603098_0.47293233403105406"},"_hasShrinkwrap":false},"1.0.14-beta.6":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.6","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.6","dist":{"shasum":"5a83bda9dc0ee2c36da527e3c128a0284b064b8e","integrity":"sha512-KYUkqQw4g1LrXQ4L4soVRr/ZgWynwmMmiD+CUodrUJ7tEZ6UWFA+iiPV8UzCBheiwQLL4+joTCX4PbO9R3IA1A==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.6.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9F0Zn98qX0q5TnmF6WT/X9TncpOtJy2pqn/iGdJsS8wIgBIMduDMNUP7d2C4No7i6t5qKeVX6SeovCoTB1VarbTM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYOKWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO4Q//T8mHl1rsS3z+aCxnpaWghRpgljxnkQsvNENT7dDU85mMX/lO\r\n+uQ1EwO0OS68yxqif4UyToMNE5WMsNODQ1hcxzFCrNi9mxmbTmr8RCtzsDlQ\r\nAlZKPjzqn+7eTELR8NgyMFaW344BYxjybePIMMNFfIncb9Jp3SbVzGgywmvo\r\nbJUfuXp8AwxnmiZAmFpdnn1TSnl7Fz9+2Bo/q8ewrdnuJk7iioKipdWAhYSA\r\nPCZhWXS4ud2aOEzMh/7UysYkFKFFLNZO2rTAYURjJvLEOIU2kmHQpDPW1THE\r\nn6lTPr4xExu1DyzNRFRJdXHPr1BX5PYi0+Pt4Z4ZR9QLohaK15hzBfXppT7J\r\nkb/u0XXmScAoZC8CM+Xyk2vDQG3Z8aZoOeoK7Aj25ARFrEuJK3yROpCInH1Q\r\nppEZWXAApP2TIwEbYW4OBLVyPGSZGS96ucfAwutaNC1O5itpUb0z87ZDXOf1\r\nfSFVXju7Py6KYZV40RPi6FYKBYMBUbIZHQy81jQ+dQHPP7QBC02B8OF6RR91\r\nJPd1LRvajJCY1mRhlBQce8CCP43Z5V+cphE/UvxEAJfHC1VDc304EHYdbumJ\r\nb6yYtcz+LekWocqyrI1JeOLN9jJD/UhofYu08EjAtJNaVTM4Eu1TKcLshqD/\r\neIpOBNB41PD+JASFxpkWW0NOJvX48iptWx4=\r\n=7kQc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.6_1650516630453_0.3166618875363838"},"_hasShrinkwrap":false},"1.0.14-beta.7":{"name":"@bits-cr/middy-joi-validator","version":"1.0.14-beta.7","description":"Middy middleware validator using joi.dev","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"],"private":false,"scripts":{"build":"tsc","debug":"tsc -p tsconfig.json","test":"jest","test:check":"jest --coverage","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand"},"devDependencies":{"@middy/core":"^2.5.7","@types/aws-lambda":"^8.10.93","@types/jest":"^27.4.1","dotenv":"^16.0.0","jest":"^27.5.1","joi":"^17.6.0","ts-jest":"^27.1.4","typescript":"^4.6.3"},"dependencies":{"@middy/util":"^2.5.7"},"readmeFilename":"README.md","readme":"# Middy joi validator middleware\n\n<div align=\"center\">\n  <p><strong>middy middleware validator using <a href=\"https://joi.dev/\">joi.dev</a></strong></p>\n</div>\n\n<div align=\"center\">\n  <p>\n    <a href=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml\">\n      <img src=\"https://github.com/bits-cr/middy-joi-validator/actions/workflows/tests.yml/badge.svg\" alt=\"tests\" style=\"max-width:100%;\">\n    </a>\n  </p>\n</div>\n\n## Install\n\nTo install middy-joi-validator:\n\nUsing NPM:\n```bash\nnpm install --save joi @bits-cr/middy-joi-validator\n```\n\nUsing yarn:\n```bash\nyarn add joi @bits-cr/middy-joi-validator\n```\n\n## Options\n- inputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input body (request.event.body) of the Lambda handler.\n- inputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- preserveRawBody (boolean) (optional): This can be used to preserve the original input body at `event.rawBody`. `Defaults: false`\n- inputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an input schema validation error.\n- headersSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the input headers (request.event.headers) of the Lambda handler.\n- headersValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the headers schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: { allowUnknown: true }`\n- preserveRawHeaders (boolean) (optional): This can be used to preserve the original input headers at `event.rawHeaders`. `Defaults: false`\n- headersErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an headers schema validation error.\n- outputSchema (Joi.AnySchema object) (optional): The Joi schema object that will be used to validate the output (request.response) of the Lambda handler\n- outputValidationOptions (ValidationOptions 'joi') (optional): This can be used to override the options for the joi any.validate method for the input schema. More info: [joi.dev - any.validate(value, [options]) ](https://joi.dev/api/?v=latest#anyvalidatevalue-options). `Defaults: Joi defaults options`\n- outputErrorValidationMessage (string) (optional): This can be used to replace the error message in case of an output schema validation error.\n\n## Documentation and examples\n```javascript\n//# handler.js #\n\n// import core\nimport middy from '@middy/core' // esm Node v14+\n//const middy = require('@middy/core') // commonjs Node v12+\n\n// import some middlewares\nimport jsonBodyParser from '@middy/http-json-body-parser'\nimport httpErrorHandler from '@middy/http-error-handler'\nimport validator from 'middy-joi-validator'\n\n// import joi\nimport Joi from 'joi';\n\n// This is your common handler, in no way different than what you are used to doing every day in AWS Lambda\nconst baseHandler = async (event, context) => {\n // we don't need to deserialize the body ourself as a middleware will be used to do that\n const { creditCardNumber, expiryMonth, expiryYear, cvc, nameOnCard, amount } = event.body\n\n // do stuff with this data\n // ...\n\n const response = { result: 'success', message: 'payment processed correctly'}\n return {statusCode: 200, body: JSON.stringify(response)}\n}\n\n// Notice that in the handler you only added base business logic (no deserialization,\n// validation or error handler), we will add the rest with middlewares\n\nconst inputSchema = Joi.object({\n  creditCardNumber: Joi.string().min(12).max(19).pattern(/4242424242424242/).required(),\n  expiryMonth: Joi.number().integer().min(1).max(12),\n  expiryYear: Joi.number().integer().min(2017).max(2027),\n  cvc: Joi.string().min(3).max(4),\n  nameOnCard: Joi.string(),\n  amount: Joi.number()\n})\n\n// Let's \"middyfy\" our handler, then we will be able to attach middlewares to it\nconst handler = middy(baseHandler)\n  .use(jsonBodyParser()) // parses the request body when it's a JSON and converts it to an object\n  .use(validator({inputSchema})) // validates the input\n  .use(httpErrorHandler()) // handles common http errors and returns proper responses\n\nmodule.exports = { handler }\n```\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/bits-cr/middy-joi-validator/issues) or to [submit Pull Requests](https://github.com/bits-cr/middy-joi-validator/pulls).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). Copyright (c) 2022 Diego Arce and the [Contributors](https://github.com/bits-cr/middy-joi-validator/graphs/contributors).\n","_id":"@bits-cr/middy-joi-validator@1.0.14-beta.7","dist":{"shasum":"8030e6f0962af7031e0bd7a8277e014b9e53a119","integrity":"sha512-V5js/6jNOyhYzbgG7hjNIdCblJ1933p3tLUPBWiGNSBlzJb8trdnmx4Fonzn0agLVc45bk660IlQfGZwHSc1Sg==","tarball":"https://registry.npmjs.org/@bits-cr/middy-joi-validator/-/middy-joi-validator-1.0.14-beta.7.tgz","fileCount":11,"unpackedSize":15355,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiPx4m04je9/pEc13WsHyp5Ht3eWi5VdrX0r4sLnDFxwIgdBz8K/H1yUGlDrNmoDUd+/TlZjdKA/sWf12kKQy9Dhw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYOK9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdAQ/9Hjy67suKpi/qtto/KpNXHVUwbQwIIDMQCdEz1uCQOS2kKYwX\r\naf+iYNWXeP1oVfer0V6T2cpvIgnls32EjrgxS9Xa3P4tBq5hL+OJNyv6tIQX\r\nZEV7uX89NuAnKwr0DudScJcdc3yFRErRrbGB/+4DtIWUYOO1AZK/kL4LnnOW\r\nVB4lUBTB6JU5tQg2lD+drLzeVhOpTaOM13duVyfbZwzjyLBRFazv1YSSSr+c\r\nqhd8maUIR2uDFv+QPLN54qVD/GLbmFf1wcgh/6UJtlepL4mxJZQ+ItOZ3Jda\r\nOyfbRCRm33p8KmQL1lH4fB/fNy36+Seg7xOXBRLafnmKjozTDrvH5BpSh4WO\r\nnuWUXxYTePGr6gYZKGAvpALgEFLr6n6qP3xTpcEEiBtWD73Z92RwULx4+dER\r\nBkxTIMybXBNKHVjnKis5ORFRjYsYgt60YTgh+8vQI2Yfro+gkvzTxtKgGlE1\r\nQ9QQhI6TRPzP4m6JntCxt7wzOtlvm+zmiGv8Pt0jifxvsZEFZF5yBVsOzd1A\r\nChTNkyjWz5icYXPx80gSXV80YW9NginX33sNhk8AkPicF9WBuGyNbr5djY5R\r\nR7+Jnzpu4scOzpj0xBCt7dXwHB9mIRT2DYHFTJ/yY10I4C3oqwQmykFfupfn\r\nnpLU5or21ZqdR5VBJvwGGIpDxvcU381aLjU=\r\n=4pZe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcezd","email":"Diego@arce.cr"},"directories":{},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middy-joi-validator_1.0.14-beta.7_1650516669101_0.8283286275194823"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-09T05:38:02.542Z","1.0.0":"2022-04-09T05:38:02.815Z","modified":"2022-04-21T04:51:09.393Z","1.0.1":"2022-04-09T05:47:28.674Z","1.0.2":"2022-04-09T05:50:06.835Z","1.0.3":"2022-04-09T06:07:42.789Z","1.0.4":"2022-04-09T06:09:00.466Z","1.0.9":"2022-04-12T05:59:50.727Z","1.0.10":"2022-04-12T06:14:34.783Z","1.0.11":"2022-04-12T06:32:47.353Z","1.0.8":"2022-04-12T07:06:57.384Z","1.0.12":"2022-04-12T07:20:50.571Z","1.0.13":"2022-04-21T02:35:34.452Z","1.0.14-beta.0":"2022-04-21T03:31:03.134Z","1.0.14-beta.1":"2022-04-21T04:14:01.923Z","1.0.14-beta.2":"2022-04-21T04:32:29.743Z","1.0.14-beta.3":"2022-04-21T04:48:56.066Z","1.0.14-beta.4":"2022-04-21T04:49:31.949Z","1.0.14-beta.5":"2022-04-21T04:50:03.344Z","1.0.14-beta.6":"2022-04-21T04:50:30.609Z","1.0.14-beta.7":"2022-04-21T04:51:09.275Z"},"maintainers":[{"name":"arcezd","email":"Diego@arce.cr"}],"description":"Middy middleware validator using joi.dev","repository":{"type":"git","url":"https://github.com/bits-cr/middy-joi-validator"},"author":{"name":"bits-cr"},"license":"MIT","readme":"","readmeFilename":"","keywords":["middy","middleware","serverless","framework","AWS Lambda","validator","joi","schema"]}