{"_id":"express-body-parser-error-handler","_rev":"10-183f5f05ad7c8647dd388fc9092dc7a7","name":"express-body-parser-error-handler","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"express-body-parser-error-handler","version":"1.0.0","keywords":[],"author":{"name":"naor.tedgi@gmail.com"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.0","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"8c9ef3adabe5085fe1ff24aead5bdbd0b97f083d","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.0.tgz","fileCount":5,"integrity":"sha512-YCvP3MSvwoykOK9H266VW3whu8JlCXfrfmryxhaMFC3UdeAtpnl95tVFt/6Fjfd72eHBKHvqr19yf6TAzqtdlA==","signatures":[{"sig":"MEUCIQCbcLEwk66ehrlA4EADT/BKOCU92cZbql80x/0C2z63BgIgYqSgUfmIyKTFwAZ0Ud+rNwROTzmipILTYSgKocDT1R4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxZuDCRA9TVsSAnZWagAAUnEQAIRwFxbXMh8rkffl2tJz\nobIekvXakO5TDGd/aXjbRYuBOAa9ThkkVB387Hfb2eNnxmZSoTGCVY/60w7F\nWl/PGmG3bEpFRz9pEWevGb9E30tcA5eij281BhDBHZRMAKPwJ4EhOIkChM1s\nh5cuvQNPRb8118AJoGWtHt/tPPtSRPSjE33OTMSXKME9uAKfqDY3s/OlUZd2\nDLbCBGFVvAH6GDzZzNTY1LHqdvA/sfZAecoMO8Uk9kDK07FXPld+NESSWRKu\n8R1APHp21mFaEm+rA2nac+eAP9o2p8AgH9Sv9WQeSCAZF0PrD049V2ZDmVFc\nD/L231uOdrHB8BuR2aI7DTRYshybJR6ZajOiMT1N3NYsKPLgVTzEsRWY2GuV\nelIzql+xDbKHu1kk2OAD7K3gcoJCKmOnGLaYPCBibqG73yY1vczmelGvN5FX\nlPU0r8YcQX52k8MFJAoDmCESIseoEpjIu13e4TiyF9ghCkF9GpVg1QUWGWKx\n/CrwKiD0mlXVAO2GJpVqtxcIBztt/b6YOkxfZCObX5LrKs1BrG7w3dGKr4RY\npYRfqBKqscQ4AskWeKLJqoiJt2TPnJM4mI4pzcZ4KtetihOG4m4AZg9izCtO\n9FMtTXRaeCAHJxz+zFFoWQzzEHaFSsN63MyDR7jrv1MzsPcUhrd35a6C44PW\nWv2w\r\n=n6fo\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"0dffe3134acb17cc0da1a7f797beee69232a0024","scripts":{"lint":"standard --fix","test":"mocha tests/*"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","before","it","after"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"8.3.0","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"14.17.6","dependencies":{"chai":"^4.3.4","mocha":"^9.1.3","sinon":"^12.0.1","express":"^4.17.2","supertest":"^6.1.6","body-parser":"^1.15.1"},"_hasShrinkwrap":false,"devDependencies":{"standard":"^16.0.4"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.0_1640340355343_0.9439275818172557","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"express-body-parser-error-handler","version":"1.0.1","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.1","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"d64474036d60336d1d4f9ee95e7c6d4bf30fec5e","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.1.tgz","fileCount":8,"integrity":"sha512-Hx161RUUQZ7hQCLXGcI6iDYJCHxwIQ4EKgD3JY9U9wIVde6ZTKodI6IsZAWR6Xi8WuWltvFlD1hpHQcxxdoYXg==","signatures":[{"sig":"MEUCID5lJ2zhSBBgL3gm6fUibyI9q6P+6I8RS+1uYI4uf4QQAiEA2ylRHBaoMiaSjUYP8mU4cNtdNIvTTN4nQPUGFrQpR8k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxhSfCRA9TVsSAnZWagAA4ZsQAIQ3Ces5+1V7tUW7p0m/\nR+UuAhllw6SOpQgzPbljg1nBJyUIrhkftv8G2h3c2UZmWEvh1+o0bZ/w7avC\nREBGtGhuqiGsETaAev/ixWhbZm2Uwu0eN1mAnJbyLSmoITRjHQSNIQiso+DI\nCZBtEZTkervmlSjx/y8zMXlEPDcpdW3yUW6vb0qLqxh6peg8fQHpCX85p2gh\nKRrMhRbIz0noSBzYzErW83yN6yICtVHHyt/91R6ZBFybFMbOSavx0qdDB1CK\nGWvm3XVR0TWZpCay9Zt68jjr0InJCKmf6UUBHv2gVqvIdSwfqJqniaOiRTHb\n4VIkkz35zBpDgFBXsmJjwim5SnuhS8zWJohtxnyhFVr3vHz+41sSTMJxr2bN\n/IWzxzUR3Ee8CV8Dovt7XLzFRykcUP6j/RVjcR+Eorm0j4fJ5+Rmx6Dw0xSk\nvbI070ADnTUZRSwGE7CLDdDBnriCBMPj4qweIWAOYgt4RIvfFlx4cOOEUw8Y\nwimNNZIG/vxX6lVl7YqDYlkGsJNdV5LihF7irP97z3+4PS6cBqG/+6G+CJOG\n6rWmDG1T4srnJGZQhNMVwFmJRrQuo9qya4fbiJNXDSahTsSXaD5BQtN5kF15\nRnyMo+X3fO0vgeOp2lFrrRQ/b2cv42VSFXmlbdDviUIGNjjByN/CYM9eXUwb\nMEo2\r\n=aRww\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"f657a94ea0a4cd88b2cf53a652b9a4cd9ebdd0eb","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","before","it","after"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"8.3.0","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"14.17.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^27.4.5","sinon":"^12.0.1","express":"^4.17.2","standard":"^16.0.4","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.1_1640371359630_0.6152777091013142","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"express-body-parser-error-handler","version":"1.0.2","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.2","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"f36de9eb4c5b817e6965efb34767b444ab63e8e8","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.2.tgz","fileCount":4,"integrity":"sha512-xrIDu9Y+U2Anni5dTP3H3FSdDGBTd+/qyDZRHM14ZO2rlYC2q1EMiACmjJO0nL9cHiwJTUOfAmBWZcn88BW1Rg==","signatures":[{"sig":"MEQCIHcWJFrkBDJfqzQBoQNRBFw6DPabr9Al7CrCViNTkQG7AiBRaUEX65xrC17Qg2vN4NKT8u7LLRS37J568d3ieBnJqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxhWcCRA9TVsSAnZWagAAVG0P/A/j6Rmkwzki5ENvXoT1\nFqJ5H4+PscRJidiU7HwQ6b8BeBOI2E5+ARucqJwlAGOXME4qfre8U1QPpvF+\nK+Z8npl22IEc9lV7b1i+CiSekHIbh030TVLz1MfNyX8HIxBNYtnhhxaED0IO\nAD3XjoHyrM/tlt90CM26V8nGrGX2hi8au6WGpNilStlT+J3Tny4cr0scnWcB\nYNfliI/+3W3gvB527wOet3M340flA0wJd1uHpxJF+J3548qNRtbg2iB4reqT\ncxhIQr22KMywUCUU5PqaHwHcqlUK9jMnmVFvCQ5hWQRFsZfigBxDE0RmCWXL\nckP7wgW3CCFO5MIZix6o95XcgWzdLWQ3LEvfmIe6qr7LgvtRNOMe1BYXTk9R\nHH1qu3w0Kiu4+P1vPhvE7tEMwquN02gA0X3zO5tYYX+k9CBeAsPupjIA70k7\nfQXS2NbwC5IFw1+Yb34YEXkD8cJllYxMCPD3np57zcx73YmDuOUwP8+NLUzb\nNFqkDD56S98iIAsnG3ccMXElN05FYZZ/T+cIccf0C+SRtojKunsk8ejY8Dnk\nKkJ5B8q/HTYXZMc4oJWb7LZgQWKxPc4dkzMRGxYtIcjqWLwV/H7IVvmsB3Gi\nnxa0kSxrtmCEy1J6Ki6xcHK099O9yIcLisJY9uPIKBzL7loexL4hvb6oeo/j\nsfIR\r\n=sla2\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"0e5e9e0abc3558c9a3f388097e105524edd8745b","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","before","it","after"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"8.3.0","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"14.17.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^27.4.5","sinon":"^12.0.1","express":"^4.17.2","standard":"^16.0.4","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.2_1640371612082_0.05950440216716868","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"express-body-parser-error-handler","version":"1.0.3","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.3","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"87020a263fad67b5c86c0cb8cbfbbf79b11c8bdf","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.3.tgz","fileCount":4,"integrity":"sha512-HwP1QbDviYwMmiPtv/HWLb/o7nhhmfapMpCmkfqRldEyazcjn7tYHTq0TlnKrk0dyb3Fv2yGsdH41396D00UYQ==","signatures":[{"sig":"MEYCIQC0AwnF6HFMpYusUc9hgaMKHmhYEP5hs68qtm5wVqWQigIhAKz5F4bMTUgGfZTWP54H1rTX4tOlmIJ/y3EeIBltXDQK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhx0PTCRA9TVsSAnZWagAAQAYP/2Twe14e8GZ7lQN5zsX8\num1AE/fdTfKK6PM2vNGWpcXzbBPd3sRB1vo3Wzc+pAaZuBAog/o9E5WMSkwD\nTFxT9fFdNRH3aErD2MndEmWbmVlmgq3qKVDl5bYI+Pqoj9XfPJx9An0+kpfz\nyHRqYIT+i9tAbeLfZDVvtzJJhobjuoz+sNsgnP7E1Pos+LA6vS0DnqRYkyPc\nNcIObX6ocaj0Dp/OQ+x5YaC52nQXGUrIqVSNAvtcMwmpzMmD/QXUcyucd2m1\nvZdErUqtTMOYfR4UQzELw/X92s5v9CMjwWc6R45R77pu7D/7+qiFGTikJ/Pg\n7o6fopzixPVOR/5LgeJR9Ky5RCnRmBZlaxzMLq5Sq8cOmhOAmUTuwOR0pBlN\np0VtIvdAdgr3QM+38NxrCDElDmZHy69CVU08Pi71+XkyH23z/l/5fN1GOWcM\nqAC+kxBK+cOyhHt3s+xURJ2U14lMOYAGCpn9izAy4hR+VEijgXyMhnqYDJWw\nOhHwvhv7aDVeDdEH6Dd2qD51ddHWKgspuJhDCwmGngZF/AcsKxlk7xd4nk35\n5ITeZXUdDH1/MHj2PUn/XVTG0wNX9W6SyAtN6jkSIVKbFdzZA5++MJYTZwy6\n9kMhgoYwV3AqquJmJzPl/WxFfTrRmieZvOpp9o0YON9dV2vGMz4faiGth0EH\ndmKq\r\n=k5LT\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"805ea433817b9cc1dc5b9472a6e279b2a2f72a4d","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"8.3.0","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"14.17.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^27.4.5","sinon":"^12.0.1","express":"^4.17.2","standard":"^16.0.4","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.3_1640448979513_0.7935947815212785","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"express-body-parser-error-handler","version":"1.0.4","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.4","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"ab948ca4e1525a0e0f9ae501a1ae9bf6752f2729","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.4.tgz","fileCount":4,"integrity":"sha512-RUpblgIt9PU7y7gfdCrXnXJQ+XD8msEoLFSAKO1qoFZDPlwh44tc7/+GWx9gQFuLeWy6hzz7jq+YCXvWL8FdYg==","signatures":[{"sig":"MEUCIQD3j9J+Dek36jfC0AAYMBbOM+vJpzy8MX4KtE/QLneCaAIgJZFmze5vXKz2sydWE3T1BLcxS/U8HbKqxsCtdEJ5g5M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh59inCRA9TVsSAnZWagAA+7QQAJaCoysFkSwDe6+1LvJq\nCjp+iCfA01dXQlFa8i1W1OBJvcdngC5QEZJV2K70FiE+KyWH7LJbFS+KdlHq\nadHda0fU1dRVEKkViQNqd+jRKJxkZpwx1rVrMVMIf1PGin8b++QW4NtgiTS2\nH569QeorldWpUGY48zL0iohyDoytmnr7OKlMnfSBpbu5FRNxWra0T2L/Gtt5\nuEXTsUPelDxud0VeYAmMLpFS6hNqCKIlBtCZQummJIb1i7nH86eeGsgRmXIe\npzo9pNWIYpCdAs0O9rYsrqvr+xM4/ts46rqCxzlmYLiG18kDGjPKzFUZTVh3\naFcEt5o/HkzkxgMXx7m+soUfw8J1T7vCmyjtz+WbxqLGMSHAWF2re8/vmbz8\n/HCeQaFJuqlxuFfC6De1vrPeuSDsb3jVUTgbM2bIFUtqrKXJA/D6GJ3nWF5J\n0dASDtwfAsqBuv7A/jgYAglzpp5l2lG/hnDcZ6HSxILPJu0I9IYIM+D/mj07\nqwfqjsKQ4qDdArLQklVuhrixpjrDWxBLnLG5GOBt9DVvD5a4mp9CVK1yLmvN\na1nrTE1ftby6TDW1DUWXD/69cKMC0jtN0Q3DvRdqy3eFmMnAD2sxLwlQm2jt\ne+tr+SlaEB+/V6wlCCqcsbXHPHuo1eWCAI07dHAs32d+FZU3lmuh/ItrAwV4\nHC2B\r\n=xclE\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"00de289d5d673f5e57e0aff86379b61930dbef1f","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"8.3.0","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"14.17.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^27.4.5","sinon":"^12.0.1","express":"^4.17.2","standard":"^16.0.4","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.4_1642584230894_0.3124418442074426","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"express-body-parser-error-handler","version":"1.0.5","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.5","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"62e5d7f4614b1b18f7b612a14752b5feecb71444","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.5.tgz","fileCount":5,"integrity":"sha512-NeKnlAlnpt6J5UXYYGX+syWC/GBpgc/mHs/MynT0DvEj7Fp+DzlxjSWeAKIWGsxOhqWRTv9WDWYgXdi347ep7w==","signatures":[{"sig":"MEQCIF4O0zkA9nAo8sHZPXq00uFoxG72KAEKZPqzM/EATAWFAiBOwyUlmrvos3fAspkU+u3mBYSK/ND92H2V860UwOR3Mg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7532},"types":"./index.d.ts","gitHead":"2c8f84bf488bf899f717141efbacdc0b9eaaf86e","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"9.6.7","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@types/express":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^29.1.2","sinon":"^14.0.1","express":"^4.17.2","standard":"^17.0.0","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.5_1687861654322_0.7215712670981385","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"express-body-parser-error-handler","version":"1.0.6","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.6","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"a81bc37d1eda1e62beeaed29c020c29b61770712","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.6.tgz","fileCount":5,"integrity":"sha512-3DRF4U5nIVCwEV4GYoItp6GzUqsJKYbiG5340Yx4nTdE8zPElmffnKLNKoWcowSV6+bfbCQiVPvPQ75Q+wjfLA==","signatures":[{"sig":"MEYCIQDB6fzDXJfqo5UY8Yazz66yYmUSGR9pF0wZUAc0XFvxCgIhAMe1LZExL9noVXkMWt1nQA8GxaWMokvD86QWqwQRx9PS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7501},"types":"./index.d.ts","gitHead":"fcd88653753f3b7c59b56bd7d16a5a081981ef43","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"9.6.7","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@types/express":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^29.1.2","sinon":"^14.0.1","express":"^4.17.2","standard":"^17.0.0","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.6_1687867879610_0.8567852947199543","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"express-body-parser-error-handler","version":"1.0.7","keywords":["express","body-parser","middleware","error-handler"],"author":{"url":"Naor.tedgi@gmail.com","name":"Naor Tedgi"},"license":"ISC","_id":"express-body-parser-error-handler@1.0.7","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"dist":{"shasum":"8476ec4bd0b64da739c3172d6694be5313e5f3e0","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.7.tgz","fileCount":5,"integrity":"sha512-QNhHyCbFFFI/SqMMb9P/p7jF0muIziXkOqe6VVXNGRbK3fxRa9qOX5qAcwLv7xa4rg70h5KahDuok0xsqqsKMw==","signatures":[{"sig":"MEUCIGZGbayHll3d2kWnYIGHCVspLVqGE4CB9fhjdlXuVUqmAiEAoPkjdkJ0bYGvhUMrGbYVUgxADw5m3QM0wzl8QGD+0yc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7501},"types":"./index.d.ts","gitHead":"a4c04780d7754ae28dc3d750055f93e30061a518","scripts":{"lint":"standard --fix","test":"jest --clearCache && jest --coverage","coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"repository":{"url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git","type":"git"},"_npmVersion":"9.6.7","description":"middleware to be set right after body parser in order to return 4xx error back to the client","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@types/express":"^4.17.15"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","jest":"^29.1.2","sinon":"^14.0.1","express":"^4.17.2","standard":"^17.0.0","coveralls":"^3.1.1","supertest":"^6.1.6","body-parser":"^1.15.1"},"_npmOperationalInternal":{"tmp":"tmp/express-body-parser-error-handler_1.0.7_1687868244611_0.10141071106938693","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"express-body-parser-error-handler","version":"1.0.9","description":"middleware to be set right after body parser in order to return 4xx error back to the client","scripts":{"test":"jest --clearCache && jest --coverage","lint":"standard --fix","coveralls":"cat ./coverage/lcov.info | coveralls"},"repository":{"type":"git","url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git"},"keywords":["express","body-parser","middleware","error-handler"],"author":{"name":"Naor Tedgi","url":"Naor.tedgi@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","dependencies":{"@types/express":"^4.17.15"},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"devDependencies":{"body-parser":"^1.20.3","chai":"^4.3.4","coveralls":"^3.1.1","express":"^4.17.1","jest":"^29.7.0","nyc":"^15.1.0","sinon":"^14.0.1","standard":"^17.1.0","supertest":"^6.1.6"},"standard":{"globals":["describe","beforeAll","it","afterAll"]},"_id":"express-body-parser-error-handler@1.0.9","gitHead":"8c91cb2183c0f93f3c5cd56d8d758e430c98a7cc","types":"./index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-3+g4eRSx4ShaYfubqpm8efWoBY6A5fgk/oNV4qZ8peH9EWMuPCS1fCOnlnDgCjCwd1wtll/WHYMy6PnLMtEcZA==","shasum":"e5a6d07a70c9ec09a4a95897a1a2a27c8944a6b7","tarball":"https://registry.npmjs.org/express-body-parser-error-handler/-/express-body-parser-error-handler-1.0.9.tgz","fileCount":5,"unpackedSize":8414,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDFt0SLA2hvf4HMZHGA2RNQElnDvUIGSCMgJNGZomKZjAIhAIevwJHbY8vewwhc78lCFqmuv8DoPMHql+Am9t52Czbr"}]},"_npmUser":{"name":"naort","email":"naor.tedgi@gmail.com"},"directories":{},"maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/express-body-parser-error-handler_1.0.9_1742724209422_0.7683309775941207"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-24T10:05:55.286Z","modified":"2025-03-23T10:03:29.850Z","1.0.0":"2021-12-24T10:05:55.507Z","1.0.1":"2021-12-24T18:42:39.817Z","1.0.2":"2021-12-24T18:46:52.219Z","1.0.3":"2021-12-25T16:16:19.680Z","1.0.4":"2022-01-19T09:23:51.037Z","1.0.5":"2023-06-27T10:27:34.506Z","1.0.6":"2023-06-27T12:11:19.840Z","1.0.7":"2023-06-27T12:17:24.828Z","1.0.9":"2025-03-23T10:03:29.669Z"},"bugs":{"url":"https://github.com/ntedgi/express-body-parser-error-handler/issues"},"author":{"name":"Naor Tedgi","url":"Naor.tedgi@gmail.com"},"license":"ISC","homepage":"https://github.com/ntedgi/express-body-parser-error-handler#readme","keywords":["express","body-parser","middleware","error-handler"],"repository":{"type":"git","url":"git+https://github.com/ntedgi/express-body-parser-error-handler.git"},"description":"middleware to be set right after body parser in order to return 4xx error back to the client","maintainers":[{"name":"naort","email":"naor.tedgi@gmail.com"}],"readme":"# express-body-parser-error-handler\n\nmiddleware to be set right after body parser in order to handle all body parser errors and return 4xx responses to the client\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Node.js CI](https://github.com/ntedgi/express-body-parser-error-handler/actions/workflows/tests.js.yml/badge.svg)](https://github.com/ntedgi/express-body-parser-error-handler/actions/workflows/tests.js.yml) [![Coverage Status](https://coveralls.io/repos/github/ntedgi/express-body-parser-error-handler/badge.svg?branch=main)](https://coveralls.io/github/ntedgi/express-body-parser-error-handler?branch=main) [![Build Status](https://app.travis-ci.com/ntedgi/express-body-parser-error-handler.svg?branch=main)](https://app.travis-ci.com/ntedgi/express-body-parser-error-handler)\n\n## About\n\n99.9% of the time your going to use body parser on your express server application , even if your going to use express.json,raw,text or urlencoded under the hood it also uses body parser [express source code](https://github.com/expressjs/express/blob/master/lib/express.js#L78)\n\nThere’re multiple kinds of errors raised by body-parser.\nThey involve sending bad headers or data that are not accepted by it, or canceling requests before all the data is read.\nVarious 400 series error status codes will be sent as the response along with the corresponding error messages and stack trace\nthe problem is when errors thrown from this middleware you need to handle them by yourself and all errors thrown from body parser are usually 4xx errors caused by client\n\nfor example:\n\n| Type                 | Code |                                                           description |\n| -------------------- | :--: | --------------------------------------------------------------------: |\n| encoding.unsupported | 415  |                                          content encoding unsupported |\n| entity.parse.failed  | 400  |                                                                       |\n| entity.verify.failed | 403  |                                                                       |\n| request.aborted      | 400  | request is aborted by the client before reading the body has finished |\n| request.size.invalid | 400  |                             request size did not match content length |\n| stream.encoding.set  | 500  |                                     stream encoding should not be set |\n| parameters.too.many  | 413  |                                                                       |\n| charset.unsupported  | 415  |                                           unsupported charset “BOGUS” |\n| encoding.unsupported | 415  |                                  unsupported content encoding “bogus” |\n| entity.too.large     | 413  |                                                                       |\n\nuse this package if you don't want to handle them yourself :-)\n\n## Install\n\n```sh\n$ npm i express-body-parser-error-handler\n```\n\n## Example\n\n```js\n request(app)\n        .post('/')\n        .set('Content-Type', 'application/json')\n        .send('{ email: \\'email\\', password: \\'password\\'')  //  <==== missing \"}\"  - invalid json\n        .expect(400, function (err, res) {\n          expect(JSON.parse(res.text).message).to.equal(\n   ====>        'Body Parser failed to parse request --> Unexpected token e in JSON at position 2'\n          )\n        })\n```\n\n## Usage Example\n\n```js\nconst bodyParserErrorHandler = require('express-body-parser-error-handler')\nconst { urlencoded, json } = require('body-parser')\nconst express = require('express')\nconst app = express();\nrouter.route('/').get(function (req, res) {\n    return res.json({message:\"🚀\"});\n});\n\n// body parser initilization\napp.use(urlencoded({extended: false, limit: '250kb'}));\napp.use('/', json({limit: '250kb'}));\n\n// body parser error handler\napp.use(bodyParserErrorHandler());\napp.use(router);\n...\n```\n\n## Configuration\n\n**onError** - function(err, req, res) => { }\n\nCustom on error callback useful if you want to log the error message or send metrics\n\n```js\napp.use(bodyParserErrorHandler({\n    onError = (err, req, res, next) => {\n        ...\n    }\n}))\n```\n\n**errorMessage** - function(err) => { }\n\ndefault:\n\n```js\nerrorMessage = (err) => {\n  return `Body Parser failed to parse request --> ${err.message}`;\n};\n```\n\n```js\napp.use(bodyParserErrorHandler({\n    errorMessage = (err) => {\n        ...\n    }\n}))\n```\n\n## License\n\n## MIT ©\n\n```ts\nif (this.repo.isAwesome || this.repo.isHelpful) {\n  Star(this.repo);\n}\n```\n","readmeFilename":"README.md"}