{"_id":"express-mongo-sanitize","_rev":"18-dfa52fa2f4024e3e31abaa21c5940e2e","name":"express-mongo-sanitize","dist-tags":{"latest":"2.2.0"},"versions":{"1.0.0":{"name":"express-mongo-sanitize","version":"1.0.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.0.0","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"ceee41c7d32c7e65df8e36cc00844286321f34c5","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.0.0.tgz","integrity":"sha512-oLKQo9FxlKyxASD2TKxbyPjLe51a9xMY1QQcVHtmIRK2tG2S4HKOw/nPqlsgyz36fVhNva6jn7x3fl0o+CSvgA==","signatures":[{"sig":"MEUCIQCWHaBitEQVCOexRCR7FmVbjayutSmLDxEOSb+gihjMwgIgBt4km2XWrkhRdE90MKOYFQgEM85gs6Z2zvtmxBloYzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ceee41c7d32c7e65df8e36cc00844286321f34c5","engines":{"node":">=0.10.0"},"gitHead":"341a9fa7fc24de661ece60d61b73ade974643f61","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"2.14.9","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"4.2.2","devDependencies":{"mocha":"^2.3.3","express":"^4.13.3","supertest":"^1.1.0","body-parser":"^1.14.1"}},"1.1.0":{"name":"express-mongo-sanitize","version":"1.1.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.1.0","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"b7383d3a3988c05ac42cee54f1518a39e37c3fef","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.1.0.tgz","integrity":"sha512-ywOhBkHNpj6CcFGDkGRbyueT8rTSmkAzvb0POstJT12z1kIF12FGR2/+j475kbLOGteBHX651GWY63xwhzcnNw==","signatures":[{"sig":"MEQCIBmUAtNUQodoDPRaOlapjNkHlkxrc5U1f++sZsjM8LR8AiA3t8rWt4053yxElrSjN0S6kszOe4W92ItZyUY4VG0VZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b7383d3a3988c05ac42cee54f1518a39e37c3fef","engines":{"node":">=0.10.0"},"gitHead":"10d865cb0a6ef940adecddb84bd0bc8c36c5ddec","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"2.14.15","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"4.2.3","devDependencies":{"mocha":"^2.3.3","express":"^4.13.3","supertest":"^1.1.0","body-parser":"^1.14.1"}},"1.2.0":{"name":"express-mongo-sanitize","version":"1.2.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.2.0","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"18e18dea35004066aac1740a6e7ede6c15f54de1","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.2.0.tgz","integrity":"sha512-yWDbhXR19FU0AJA7eGOVV0lecE15gkCkW38vDSG+pB66RAOFF/IGaA4X9R4nh1Pg1ZnXCVO43eDkqh6y05RCKQ==","signatures":[{"sig":"MEUCIQCeIwjbwO0+XPyGP3Sgm+OAruY41rMIR2l3aqm60cbBLQIgFF5LtG08psFtBFjdjXqLyeuLR5p/r0ku4ypTp/x0i1w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"18e18dea35004066aac1740a6e7ede6c15f54de1","engines":{"node":">=0.10.0"},"gitHead":"e81024c7f4b63cbadea6344d86d219c9d8ce9d16","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"2.14.15","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"4.2.3","devDependencies":{"mocha":"^2.3.3","express":"^4.13.3","supertest":"^1.1.0","body-parser":"^1.14.1"}},"1.3.0":{"name":"express-mongo-sanitize","version":"1.3.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.3.0","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"33fe02df3b138c64e8dac6d19d49aaa833f661fe","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.3.0.tgz","integrity":"sha512-Rn9dPKGRf95fOnxps/Hn/B/Rk6IMbBgprHddUGaLubDaMvTM+WqEmd0yQedjtbTh1cJY9lVAOBTV34AeG85JNA==","signatures":[{"sig":"MEQCIFkAMYJENH6wl2eNgtrKuX9Wrh3BaWJ9q/rxV7gOd+wNAiBgR1jha9d0wHwn0AVZLi0OmLW9baTdhdEdWQmz8lC+6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"33fe02df3b138c64e8dac6d19d49aaa833f661fe","engines":{"node":">=0.10.0"},"gitHead":"c359acddc62708897b7985cf997309e5c6ac2faf","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"2.14.15","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"4.2.3","dependencies":{"chai":"^3.4.1"},"devDependencies":{"mocha":"^2.3.3","express":"^4.13.3","supertest":"^1.1.0","body-parser":"^1.14.1"}},"1.3.1":{"name":"express-mongo-sanitize","version":"1.3.1","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.3.1","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"f66b42768773189e6fe32a58dfe0ccfd525f7953","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.3.1.tgz","integrity":"sha512-gJxrvIF2Kochjcsm6AJfibdQww9PXjMZmm45U5d87JDV+LTIVxrRlfJN86tGClrUXfW5N/KVDw7Qnp+oqlWPFA==","signatures":[{"sig":"MEQCIC8U3GHJwxN/RGe+rvZ3hCubOqlgaiyjx8EP3+s/KE1HAiAylfG6Y1ajwHUmy+YPiLnUVcxpYmVVM0t952xP/Ds0sQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f66b42768773189e6fe32a58dfe0ccfd525f7953","engines":{"node":">=0.10.0"},"gitHead":"1e92ce674c0cf59846f3661c18a3e2617d3d841a","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"3.10.10","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"6.9.4","devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","express":"^4.14.0","supertest":"^2.0.1","body-parser":"^1.15.2"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize-1.3.1.tgz_1484219608396_0.5313839341979474","host":"packages-12-west.internal.npmjs.com"}},"1.3.2":{"name":"express-mongo-sanitize","version":"1.3.2","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@1.3.2","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"fba404f6c041577cbeeec4dd9057cefbb439de5a","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-1.3.2.tgz","integrity":"sha512-MB0AawRYDYsrDvLv66d+NCYhWDSXbkCeGSY7fZ5IE+jgRQKhPsOcFID6fTSH3sWZPwaiS6TM+VqiMi7ZpFh44A==","signatures":[{"sig":"MEUCIFn8U+t+1sQE3hkVqNfu2Mk6z/4QPTQ7ZXL8b0vPVHrXAiEAlmCRkgACiuq2cQfA9kPrY7yE19yjLX+FVOGHgNv7SCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fba404f6c041577cbeeec4dd9057cefbb439de5a","engines":{"node":">=0.10.0"},"gitHead":"ae45543284ec19e8883754d4d390c8e7b818a2e6","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"3.10.10","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"6.9.4","devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","express":"^4.14.0","supertest":"^2.0.1","body-parser":"^1.15.2"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize-1.3.2.tgz_1484251782214_0.4981868080794811","host":"packages-18-east.internal.npmjs.com"}},"2.0.0":{"name":"express-mongo-sanitize","version":"2.0.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@2.0.0","maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"0be68c6d5e3828553e0de08b786ba6439d88bf0f","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.0.0.tgz","fileCount":8,"integrity":"sha512-tqGqnKsibDfKqypC6QDYjp4VRLqtTlwuHDfK7KECZvq9fDOq8yi0MdzCJe2DWhv54/IoQV+7uXR7h9eD+Fc5LA==","signatures":[{"sig":"MEUCIBxnts1nyRaasygs4XJ/P3a1KkoTWdXQVYsFLw2Qi7etAiEA4+q5KV61XcHOt+B8rQRKVb410L9m0bCHCWkCiFTJXbU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee0MKCRA9TVsSAnZWagAAQC4P/207SF8WRMQC5bGZml+c\nPIrnpea8ul0IsCQE/EYnSzEeNAgKpNX5kMYH94tFe7Bl2mCyNv610+xdOhbj\nS4EGP4uFCwB4UBtBO8IvCqzD652qh1/Xvg9NwJ6vTvmJysQ/i0NiuXPmdcS4\n45UW71UVWxsPy6V6RGdvC1TYO2kKJcvNn/v1KOzl4Eriue8DyDLaPX4WZ94P\nwQ02FicxzhTHYwoL5bG1szfMb2DZzTt9uF5KHu2qGqBmnkwxmQ4Mhozkzgrq\nXEXkxdf0YEtGQeaRrNK3iRYQ3D2DLnqIjh5Ua1cfSnovEGkffbVFwpgnVOE9\nEMSttGhxKL7gBzx4igeM295Ueg9XyUi/RLh/Dpbb8wZfSHeYdO3qVqtX+lbZ\nV9DgSZBVa+4eJKEl5j+tm/6NEx37wsbdaaviDMuuPa7GAhviJShQqfJ8F8cU\ng3byOCjgx4EHVLRdU6oJW1KNbtSWYkNSlQcngzuljkFio/ohMtldWHzfO+Mw\nzRf+zwpdK36VSfC6RBDyURHGJz6B3nyTdsAhqg64rZNpDmQ1vydiW5hem8eN\nu0fM+pYvgJyOvx0z0m7+1JdkY/mgMqjr+I3SeqI9Gvwx31V9/3Mc1Rnrxb14\nrbwxFzW8gCPXOb/AivcMX0ZaOEtKnIBFdv9/HxJzoHaKOb/+qZzM3WgFnWdZ\nHpl9\r\n=ORAS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"9ca7cd813bd184760b8cfdb57361a7140aea7edc","scripts":{"test":"./node_modules/mocha/bin/mocha test.js"},"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"6.13.7","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"13.8.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^7.1.1","express":"^4.17.1","supertest":"^4.0.2","body-parser":"^1.19.0"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize_2.0.0_1585136394395_0.8454676198257216","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"express-mongo-sanitize","version":"2.0.1","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@2.0.1","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"18c9de723b747834f86e6077d164ef16f8d5c5b6","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.0.1.tgz","fileCount":8,"integrity":"sha512-aeI5s31m5HlR9SedUlhXVuWwm3alVxcyVr2cUq6jFr/0FcCr5Vz5qItEcrtVz5YUdS5HvOAUG8hF6eRGgbQQ9w==","signatures":[{"sig":"MEYCIQCQIN+BoC22mL8dFzOWnGtKC517v12K8Zi0aE+/0El3dgIhANiephFPuaVEAfg7knggakH5hO+DionYb+jGjLmi5//E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx2ytCRA9TVsSAnZWagAAciUQAKOJRXlg9BA95MYUdhAy\nxVX5Lg9Owq2yzYCxQ6+nyhkJNDsIIiAjJnoNxZqNcA1OSDue1ABDLjA6mi0i\nXtPOlnjwx4tR0hquASABEn2sNgndMwOdOw8YIKRkWSwyeH0q+t+bFQeHDXo7\nU6QrwxGXqjVG0Pa7n6s8dkKXdhmiOLmpKdyvf6vY6DZEjz3PFVsokPlNs9uO\nFoEUbln/aICmp3YGHuvj9msKjVgkP7NwdFveyai3HZs1oxxE0SAQ8/BDeGyA\nbHz/psI138J6w5UUFtT4wLm1EekmkBdO/ps68yesfiLcBOqdkJEyhlU/R85Z\nGZPzX/wQeAeNbLV8GzRCuyEMZZ2aMGVoX4MVu0IZiivLXCqVpWwTeNIPUv9/\n0HjQf0DEKgxbD5gtdA6GT0HZAkqq3MPF5vtFsnfLF79zkUEB9U5W+Kpu5Zn4\npe9zUdksceNSQDLB9T/KfRv52Dl0o2oZaaCMRRm2pqsw0zOLhtxxGdcrVPoW\nhO3pEDcvdYVunT7iisR1EC7S7G/dTwtCNDEtjR3vPjcjYJu1ISbm+LMk/UzM\nOjsayQKJhBrwe0Ah5QCqnhOzmnIple3IXPx3yf6dBMxZN9u+5uFhnm7jwTXD\n6TRDLrkfGhWF1exhx3kgqpfL7Ctt9qR7CaaWQeDXuf0/7D5TDRrNNcFO4KAQ\n+I1J\r\n=WZn5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"ecc1cd02d4e665d07ab12032d4aaa2e2335b0adc","scripts":{"lint":"eslint \"**/*.js\" --fix","test":"mocha test.js"},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"6.14.5","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"12.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","eslint":"^7.14.0","express":"^4.17.1","supertest":"^6.0.1","body-parser":"^1.19.0"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize_2.0.1_1606905004745_0.9906560977149996","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"express-mongo-sanitize","version":"2.0.2","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@2.0.2","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"72560ce453a2738d5c8301f48c4dd0965f76d6ab","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.0.2.tgz","fileCount":9,"integrity":"sha512-JKdeb6EBW++5Uo4F5Ed66p3FSjqNfqc65WrO2H6iWJjyI+IYb4pWq6HjFho/8p95t7ccjr9aBz8QQszeLM/bcQ==","signatures":[{"sig":"MEUCIC0eBYlKvCgNU2Wctnrt484hTJAltXFA4gzLMgJFJhAhAiEAxudvPZJleTLB0YOwgMq+aXzOaxvCqRB4gnGEeAVLQMY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9ullCRA9TVsSAnZWagAAMWYP/0mHmFXI3V+yKbFBIh4a\nRQJpxPHdSw0A0xk/LSctx2QQ04OWPPzYYBw6Kl3Hcbags/S5worrdGMEqryJ\na8MjFosrRtyhDlDPUtjM9oym2GGCKo7sHJbFCpGDaeoqWU9vT5cVBPDEGDa8\nZnVL9YZYjpaJyIyBfR2voxiAeFi7puT/5iyTAXvS5h8SHKHlqteDS0LQU5zP\n+2jkzA6lt0xwXamLzGiRYFdyGSm+dqkTpU+LYpj7bKXRmqAH/htObE83jCRR\ngXLq3TpliaWWbK+UW4V8HW0BtwIt0t5JJzOl9XtNavcPowvqTHdBrAA4FNWL\n8mKQe4A+QS2rkv7EyX5WvfMxe+fGu6LDTqBmNtQQN8JYmgxD1oO7p7wXOsrj\nkOGDDPbkdBcripHSXHQ77+sW6ApzXWZ79r7g3HS4Rn7xS4/v98UsIff3CdHe\nj5doQYgxN+oFeb3Z9C2NQU2YCtQkyhpZIhbMhOerHGKNLf7GPamCa87YPiJK\n/mNYZlYnX/u345r1DifR3RflqHNxA1BZEzeeGy5JwVHFNH97Jjt9qXYTcw4P\nf/5g3wEkd0OjQ/OUL107QUlUa2ghO4bbt3jxc20ezORzp6CqOxPvRw4vlzeB\nFYqXyQl62cPQX5ngaGPE17R4CuqqedIYa/4LpIKygyRuUHqquKgOSevG/d1v\nqTJn\r\n=sXgv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"95cbfbad1d754a701ab5d3e7875954eb59e794fa","scripts":{"lint":"eslint \"**/*.js\" --fix","test":"mocha test.js"},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"6.14.5","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"12.18.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","eslint":"^7.17.0","express":"^4.17.1","supertest":"^6.0.1","body-parser":"^1.19.0"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize_2.0.2_1610017124662_0.4115761749352842","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"express-mongo-sanitize","version":"2.1.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@2.1.0","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"a8c647787c25ded6e97b5e864d113e7687c5d471","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.1.0.tgz","fileCount":6,"integrity":"sha512-ELGeH/Tx+kJGn3klCzSmOewfN1ezJQrkqzq83dl/K3xhd5PUbvLtiD5CiuYRmQfoZPL4rUEVjANf/YjE2BpTWQ==","signatures":[{"sig":"MEUCIF+EV1/6/V6DsBjw/Dlqn61DgZ86KYWPfK6HUpHR80htAiEApFA6wA5FJGSHdh1jF6XJmy8Yjxj/RFsCwt6BQvlabR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmqdNCRA9TVsSAnZWagAAcqQP/igeSKfIPn1CPxzLN+Pt\n521vcC6bDCFjfr28uTqhkQF88QhTgqsLbdUBj7IvCx17o3AGvrCXTEoGK7T9\nDP9FRox63YEvsJvAlaZ3dWsfJU7Zuf2b8AbtdieAfid3ZOygBoOPxZbsL4Qr\nCEZMYt7ErtZGL6NnQY6ila7PiRkmYf/o7LWLlWmQr+kxI2vqZLTVyDq/WZKm\nzv+gWdNLySYTkTOxIaLy7MHxjI7Dp8n+sH92zzJzrvjRHTl+U4G72tLwHmaT\njfG5kIIhvMT5YXm8Yl5cjEcV4shcOR21X6vQ0/be3bmXi1rDM7Wqlf/zE3/I\n5HNGaTbjBSexMjdNq3nrRLdhEVQRJTCkoXByqjuUGxdI6zs6wLy2bS84JEwO\nVvlUeoM//45UaqdqnG1a1FaUhZEv72Frbq0mUZBeEkKwgQkqJDOh3lyaLsnD\n1ONq3F5twdAwR4/sgVbMs8xVf2ngALPgOEb/zH/4wdHNAIgJKH1tFYna2X8H\n203qGN0dqWX/cAxs3OmB5JkqEFyDWLrnnVF15J3mP+RbORYPbXFdQAsnN+kT\n0Pqn0t3CMSpEs9QVoty7lQqltOaxqIgNAT9/RVmcsb9o7/YwB+S318G7wdg1\nhBJbG+qRBt/VCwK1Y5p4Z4w7OFPtUyuEa+HpdafBxhR1eHux93PDvHLbGfYx\n5Bt2\r\n=PSdh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"565c1ea31e19f24e39ab1f59133cd655c9c8cf8d","scripts":{"lint":"eslint \"**/*.js\" --fix","test":"tsd && prettier --check . && mocha test.js","prettier":"prettier --write .","type-check":"tsd"},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"7.9.0","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"14.16.1","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.15.1","chai":"^4.3.4","mocha":"^8.4.0","eslint":"^7.26.0","express":"^4.17.1","prettier":"^2.3.0","supertest":"^6.1.3","body-parser":"^1.19.0","@types/express":"^4.17.11"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize_2.1.0_1620748108929_0.796937762325912","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"express-mongo-sanitize","version":"2.2.0","keywords":["mongodb","express","middleware","operator","injection","security"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","_id":"express-mongo-sanitize@2.2.0","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"dist":{"shasum":"c8c2d45e137f213950f70bf586704e0db5cfe356","tarball":"https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.2.0.tgz","fileCount":5,"integrity":"sha512-PZBs5nwhD6ek9ZuP+W2xmpvcrHwXZxD5GdieX2dsjPbAbH4azOkrHbycBud2QRU+YQF1CT+pki/lZGedHgo/dQ==","signatures":[{"sig":"MEQCIH0sSug2D7EJTpKKfO6XMaCS2GCCZVZC778ffBEZLW3wAiAZ5oFngXQi+nOEpoVN+J/N3aJ025Z7OD2UdGWeySgu5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4VrFCRA9TVsSAnZWagAA724P/0p/P3GEEeCQTzAtcbAh\n0DL65PAOhp0y0iApQ7T+9BHVvAfXZLRUAAWSRfOzxQ5D4JpIP95b5meg216Z\nbAoGl9j/po83ofGWZBkaveVrTS0mlegONqZiQwFGzaEoHQM3Ko5iwyCi60Uy\n9pSb4v9hcO5eQeFJ8EElY2UleWvzprzwZ4TyJOrJnUQiE1sEpNcZu2ujdK37\nfdXFCTcVX5Qud7suwFABWb0DDBwdf3zHzPAFWPPEpm8HEgdXy6A66ZqFobqO\nukk2RCav0ntJzCmHSx2wf53ruIg76OrXH0kfiTWtz3kPVy6NC+flE3E6nrF1\n3QXSuehZBnYiKj65XXidurR8yKljiBsOjVAIMsmEG8Xh5GCCQrLUtPxW0lVq\niN89HA87hwB4/LNjMlPPnYqPtG36sb9Cqg0jcqcGkBmdX2FMFM2Yx0xBQeAA\nb1hATc8gZCIiOC+n6KCil4ZzbKnoXc31CWMnTSn8kFfaU1yguBqBUvbsWRrS\n0402isRJW5dvPwaHBT1vAYJtfrMBksJ5eIru4savDpGhLLaBbGw6xqFXgKqd\nlOdc2cl0HxBb/MtNTAI1RYvtkTdjChxbjq+aSs8mfLqmqRFVveM6lJZPBfw+\nvW1YiBBjsPBX4+VicKr8QSChJxqeXwKcL4nlfhj3MJTdXTALzGeiEJZphjba\noWQl\r\n=+gbM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"c59c279ad2c6d0c14408049c9f1ef9b94e4bb353","scripts":{"lint":"eslint \"**/*.js\" --fix","test":"tsd && prettier --check . && mocha test.js","prettier":"prettier --write .","type-check":"tsd"},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"_npmVersion":"8.1.2","description":"Sanitize your express payload to prevent MongoDB operator injection.","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.19.1","chai":"^4.3.4","mocha":"^9.1.3","eslint":"^8.6.0","express":"^4.17.2","prettier":"^2.5.1","supertest":"^6.2.1","body-parser":"^1.19.1","@types/express":"^4.17.13"},"_npmOperationalInternal":{"tmp":"tmp/express-mongo-sanitize_2.2.0_1642158789515_0.363104853014538","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-11-11T17:07:54.131Z","modified":"2025-01-11T15:55:54.932Z","1.0.0":"2015-11-11T17:07:54.131Z","1.1.0":"2016-01-13T11:29:55.909Z","1.2.0":"2016-01-13T12:09:00.230Z","1.3.0":"2016-01-15T12:44:25.408Z","1.3.1":"2017-01-12T11:13:30.329Z","1.3.2":"2017-01-12T20:09:42.806Z","2.0.0":"2020-03-25T11:39:54.529Z","2.0.1":"2020-12-02T10:30:04.945Z","2.0.2":"2021-01-07T10:58:44.818Z","2.1.0":"2021-05-11T15:48:29.079Z","2.2.0":"2022-01-14T11:13:09.713Z"},"bugs":{"url":"https://github.com/fiznool/express-mongo-sanitize/issues"},"author":{"name":"Tom Spencer","email":"fiznool@gmail.com"},"license":"MIT","homepage":"https://github.com/fiznool/express-mongo-sanitize#readme","keywords":["mongodb","express","middleware","operator","injection","security"],"repository":{"url":"git+https://github.com/fiznool/express-mongo-sanitize.git","type":"git"},"description":"Sanitize your express payload to prevent MongoDB operator injection.","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"readme":"# Express Mongoose Sanitize\n\nExpress 4.x middleware which sanitizes user-supplied data to prevent MongoDB Operator Injection.\n\n[![Build Status](https://github.com/fiznool/express-mongo-sanitize/workflows/Node.js%20CI/badge.svg)](https://github.com/fiznool/express-mongo-sanitize/workflows/Node.js%20CI/badge.svg)\n[![npm version](https://img.shields.io/npm/v/express-mongo-sanitize)](https://img.shields.io/npm/v/express-mongo-sanitize)\n[![npm downloads per week](https://img.shields.io/npm/dw/express-mongo-sanitize?color=blue)](https://img.shields.io/npm/dw/express-mongo-sanitize?color=blue)\n[![Dependency Status](https://img.shields.io/librariesio/release/npm/express-mongo-sanitize)](https://img.shields.io/librariesio/release/npm/express-mongo-sanitize)\n\n## What is this module for?\n\nThis module searches for any keys in objects that begin with a `$` sign or contain a `.`, from `req.body`, `req.query` or `req.params`. It can then either:\n\n- completely remove these keys and associated data from the object, or\n- replace the prohibited characters with another allowed character.\n\nThe behaviour is governed by the passed option, `replaceWith`. Set this option to have the sanitizer replace the prohibited characters with the character passed in.\n\nThe config option `allowDots` can be used to allow dots in the user-supplied data. In this case, only instances of `$` will be sanitized.\n\nSee the spec file for more examples.\n\n## Why is it needed?\n\nObject keys starting with a `$` or containing a `.` are _reserved_ for use by MongoDB as operators. Without this sanitization, malicious users could send an object containing a `$` operator, or including a `.`, which could change the context of a database operation. Most notorious is the `$where` operator, which can execute arbitrary JavaScript on the database.\n\nThe best way to prevent this is to sanitize the received data, and remove any offending keys, or replace the characters with a 'safe' one.\n\n## Installation\n\n```bash\nnpm install express-mongo-sanitize\n```\n\n## Usage\n\nAdd as a piece of express middleware, before defining your routes.\n\n```js\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst mongoSanitize = require('express-mongo-sanitize');\n\nconst app = express();\n\napp.use(bodyParser.urlencoded({ extended: true }));\napp.use(bodyParser.json());\n\n// By default, $ and . characters are removed completely from user-supplied input in the following places:\n// - req.body\n// - req.params\n// - req.headers\n// - req.query\n\n// To remove data using these defaults:\napp.use(mongoSanitize());\n\n// Or, to replace these prohibited characters with _, use:\napp.use(\n  mongoSanitize({\n    replaceWith: '_',\n  }),\n);\n\n// Or, to sanitize data that only contains $, without .(dot)\n// Can be useful for letting data pass that is meant for querying nested documents.\n// NOTE: This may cause some problems on older versions of MongoDb\n// READ MORE: https://github.com/fiznool/express-mongo-sanitize/issues/36\napp.use(\n  mongoSanitize({\n    allowDots: true,\n  }),\n);\n\n// Both allowDots and replaceWith\napp.use(\n  mongoSanitize({\n    allowDots: true,\n    replaceWith: '_',\n  }),\n);\n```\n\n### `onSanitize`\n\n`onSanitize` callback is called after the request's value was sanitized.\n\n```js\napp.use(\n  mongoSanitize({\n    onSanitize: ({ req, key }) => {\n      console.warn(`This request[${key}] is sanitized`, req);\n    },\n  }),\n);\n```\n\n### `dryRun`\n\nYou can run this middleware as dry run mode.\n\n```js\napp.use(\n  mongoSanitize({\n    dryRun: true,\n    onSanitize: ({ req, key }) => {\n      console.warn(`[DryRun] This request[${key}] will be sanitized`, req);\n    },\n  }),\n);\n```\n\n### Node Modules API\n\nYou can also bypass the middleware and use the module directly:\n\n```js\nconst mongoSanitize = require('express-mongo-sanitize');\n\nconst payload = {...};\n\n// Remove any keys containing prohibited characters\nmongoSanitize.sanitize(payload);\n\n// Replace any prohibited characters in keys\nmongoSanitize.sanitize(payload, {\n  replaceWith: '_'\n});\n\n// Exclude sanitization of . (dot), only sanitize data that contains $.\n// NOTE: This may cause some problems on older versions of MongoDb\n// READ MORE: https://github.com/fiznool/express-mongo-sanitize/issues/36\nmongoSanitize.sanitize(payload, {\n  allowDots: true\n});\n\n// Both allowDots and replaceWith\nmongoSanitize.sanitize(payload, {\n  allowDots: true,\n  replaceWith: '_'\n});\n\n// Check if the payload has keys with prohibited characters\nconst hasProhibited = mongoSanitize.has(payload);\n\n// Check if the payload has keys with prohibited characters (`.` is excluded).\n// If the payload only has `.` it will return false (since it doesn't see the data with `.` as malicious)\nconst hasProhibited = mongoSanitize.has(payload, true);\n```\n\n## Contributing\n\nPRs are welcome! Please add test coverage for any new features or bugfixes, and make sure to run `npm run prettier` before submitting a PR to ensure code consistency.\n\n## Credits\n\nInspired by [mongo-sanitize](https://github.com/vkarpov15/mongo-sanitize).\n\n## License\n\nMIT\n","readmeFilename":"README.md","users":{"ackhub":true,"isa424":true,"ashish.npm":true,"jkabore":true}}