{"_id":"mongoose-unique-validator","_rev":"76-0d9d27855806d4c96e6018c2babca67a","name":"mongoose-unique-validator","dist-tags":{"latest":"6.1.1"},"versions":{"0.1.0":{"name":"mongoose-unique-validator","version":"0.1.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.1.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"2d65a7f553b99209a48df4d4f919b783e5186379","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.1.0.tgz","integrity":"sha512-6o04oWZ9Sf84nZ7x/DsXrrfrd+PRgD5o3aLURg/l4RZWv6HmcDHdWULn3ebq2WNhFfJilWZ0krmRhmkQ4GKlUg==","signatures":[{"sig":"MEQCIFIW0Lq5x//DMQOcMCRvobrHJ3b/DSPbwMUPEMpMXP6JAiBghqzgY5cY6z2HlXpLKpqoVUOukVULDPal2+4kDzWdRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"./node_modules/.bin/jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.2.32","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"dependencies":{"underscore":"1.5.1"},"devDependencies":{"mongoose":"3.6.14","jasmine-node":"1.10.2"}},"0.1.1":{"name":"mongoose-unique-validator","version":"0.1.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.1.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"1e7c42fb373d03c69d9aca1e03551010ce117ae8","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.1.1.tgz","integrity":"sha512-9Mc4qkPnDNR4FEAxiFyYKbO6iA7ZmsAFfsSzQkOBKhrjYZ1DLY/aDW3pogN1y4U572aQAlxW3iW5j/AMJttH1A==","signatures":[{"sig":"MEUCIQDdKmnOQzFsK0UTswqyV/ykX2x6fAq/pkCPe0g8yNfeQgIgGI5Yo7Uu4l9X7a4jw/tifyOk2OBtTBxV3oF/5kuxfpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"./node_modules/.bin/jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.2.32","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"devDependencies":{"mongoose":"3.6.x","jasmine-node":"1.10.2"}},"0.1.2":{"name":"mongoose-unique-validator","version":"0.1.2","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.1.2","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"dfd17aad6b90e835b17b89d15cc8c9225941f6d2","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.1.2.tgz","integrity":"sha512-3B12Huii+rv6ROrD7LpSQEwnOcU+wUfL1/ufKFJhHCbBjSxORBGsCjJZDE09Bbo2uGR/GcRqAmQ/UfHiQWf7sA==","signatures":[{"sig":"MEUCIAhj3Om8UQl1p66Rdh2XLmwlHtBjsQi1MUF9eaRCiSBdAiEAhpXjCTFQGGh+WxDsA/kd4p6MCPe4ZBF4Tu6aUDsPMw0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"./node_modules/.bin/jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.2.32","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"devDependencies":{"mongoose":"3.6.x","jasmine-node":"1.10.2"}},"0.2.0":{"name":"mongoose-unique-validator","version":"0.2.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.2.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"4314aff931c6557a28b05e254a54c4f442d800ee","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.2.0.tgz","integrity":"sha512-Wqizoa2oKxydZqE4qUCRMX7Im7k/PVDEnJ90zHqnnWLTgZIKDZPqDwvW8nduBeVh0Sw8Hj0JcaM2AItK9vt7Vg==","signatures":[{"sig":"MEYCIQCKyIJpmoETpugEb7Spg0V2lwQ01Mz/v+kTOuDR6ZvZWQIhAMjxiCCxDBP9nsOzD7hDE7aoCZTtFCcM4jB4pjbmxpUy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"./node_modules/.bin/jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.2.32","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"devDependencies":{"mongoose":"3.6.x","jasmine-node":"1.10.2"}},"0.3.0":{"name":"mongoose-unique-validator","version":"0.3.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.3.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"a1d23bd393583377d3836bb87d0154a409946d99","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.3.0.tgz","integrity":"sha512-aAKTX8+foVPEPbhpMQYV/X2o6ZYWwpIT7Fwocd5Pvle1DEasUcW1w2T7QM7mKoGYLwf/7mJV98nsIGyemzUOng==","signatures":[{"sig":"MEYCIQCXx7ypse5XpBVKj+d2I3ZH/1M6qP0lP0dTkEOtOyWqkQIhAPtc883IIVnUxjlptc/zTxfw6TLp9Gi8cyLSyBvnqXLa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"./node_modules/.bin/jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.2.32","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"devDependencies":{"mongoose":"3.8.x","jasmine-node":"1.10.2"}},"0.4.1":{"name":"mongoose-unique-validator","version":"0.4.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.4.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"f679c737b85455bc12bc85ad6dd180fa2d4d5682","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.4.1.tgz","integrity":"sha512-xp5EoV2LS4VWnhhOlVOGVQoa1CPPBvudTF6uDK1CZYGH9CG9uQcQdwCk8DizpvE0iSBbSSk0R7UQFyEqELBTHQ==","signatures":[{"sig":"MEQCIF57kHGR3j/Jllk/lo3smqlffP4MSgF1yww9396AwqSVAiBPUM7Z9AdNmTuTU7jP6bEQa8zBRdlhW1/5zFsKbgHnGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f679c737b85455bc12bc85ad6dd180fa2d4d5682","gitHead":"b8ef07098df0c5cf26d6fcc3284ac00a0115e63b","scripts":{"test":"jasmine-node spec/ --forceexit --captureExceptions"},"_npmUser":{"name":"blakehaswell","email":"haswell00@gmail.com"},"repository":{"url":"https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"1.4.13","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"devDependencies":{"mongoose":"3.8.x","jasmine-node":"1.14.x"}},"0.5.0":{"name":"mongoose-unique-validator","version":"0.5.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.5.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"9d9cb2ce241f0d4f6a51c898516309f5eb3f4d02","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.5.0.tgz","integrity":"sha512-5auqU5WuSPd28ZlrgfYXz3qiu6D79PGIEhDRKVXTAh+Q1lW8wtbct9ed1MCYufgtNSM3xLTSo5GEskLkqH1Axg==","signatures":[{"sig":"MEQCIHtWX1TPeV2FOZyzAfVoRvNW0bkRRU2i7Fl590js4gGFAiBaf4YcurFlhI2iR5g7Qxma6NfRr0kwVv7nH5/QVVkszw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9d9cb2ce241f0d4f6a51c898516309f5eb3f4d02","gitHead":"f4d95d02394a00b5c9402e8bbcdff2eef3d70c2c","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"2.14.2","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"0.12.7","devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^2.10.2"},"peerDependencies":{"mongoose":"^4.1.10"}},"0.5.1":{"name":"mongoose-unique-validator","version":"0.5.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.5.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"8dacacfaddac8d575b04251cd616fc8b697616b0","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.5.1.tgz","integrity":"sha512-x4e7a72+tLhWGmmtJMfGMyOHsa6Zyu68X0HSUzsYY3dlHDpQQVe3KmrjjtMsQa5IGFPjbiSKYoPQP8spw8e4og==","signatures":[{"sig":"MEUCIEy5XQlSHuY/OKOXRQMHSSd4bgiRGxE9JH73zNpGv/ekAiEAtGaFXE1nUuK0Oo3ejVAL2/NoOlbBVmxENh0EIqAGtTQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8dacacfaddac8d575b04251cd616fc8b697616b0","gitHead":"c17a98717ed7e5f69fa3c8c1bdf6f153798f60c9","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"2.14.2","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"0.12.7","devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^2.10.2"},"peerDependencies":{"mongoose":"^4.1.10"}},"0.6.0":{"name":"mongoose-unique-validator","version":"0.6.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.6.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"ca9d6836ad5f07a61f7ae4e1d327610bd33566ce","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.6.0.tgz","integrity":"sha512-VZivpi2a/KCs+l4ZodezN6RKaCgoVbxCQexcd0/5ayJHltE0psNE5zctDe9p5F+qTFWCuOHDHn4nrvxvMbsZfw==","signatures":[{"sig":"MEUCIC+w2VzxipNiczM/T/ByTKsXmb20GJRNbGk7u96sYbDnAiEAgUwnt2kin9hS7NxGvuQ6VGuZvAC1rUOllTHAsWyFv38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ca9d6836ad5f07a61f7ae4e1d327610bd33566ce","gitHead":"5d828a8844abc08f2924fb3f36c883b0dc4f533d","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^2.10.2"},"peerDependencies":{"mongoose":"^4.2.2"}},"0.6.1":{"name":"mongoose-unique-validator","version":"0.6.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.6.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"bd065afc71029cd12a38e42b7c969bf29fa81943","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.6.1.tgz","integrity":"sha512-6TpDCgZgBIMqIuE+O7t469pX4MdBaA669aSaaJv4vJjMEWRCkHs/UaDyFLgbG2jZa+ed1OO+Vx1W8QEmosuM2A==","signatures":[{"sig":"MEUCIAfUBEdTNMXZFciZpFlaJs6VrBmLQWvki/oNB4lu8NeWAiEA9lDBRPYDiS6+JQkJVTduVQOXMw7JB+ZoDytotyEdHmQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"bd065afc71029cd12a38e42b7c969bf29fa81943","gitHead":"77c8d28ffb509e56443f41d25d7474762d7474b6","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","dependencies":{"lodash.get":"^3.7.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^2.10.2"},"peerDependencies":{"mongoose":"^4.2.2"}},"0.6.2":{"name":"mongoose-unique-validator","version":"0.6.2","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@0.6.2","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"273bb48a9679fcd1f70e6aabb80ab52153de4820","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-0.6.2.tgz","integrity":"sha512-wv5y30mPXbs12/prb0TNTUV3tL2xS/9w1llMH0J4r5cszPi9Bxi8HG6A1ExYDPH8EBmX4qBUXgYpf56t66k4+Q==","signatures":[{"sig":"MEUCIH2J39fW2NtpI4h1j7SD/f1tcr4vTxh52UFzX+CllE6yAiEArRSS3PacVh/3ZMfasLAass4evtcu7WtPkcKSB5P77Ro=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"273bb48a9679fcd1f70e6aabb80ab52153de4820","gitHead":"e3bfce37779291a7626a5d3a6a48beb3e74a108f","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","dependencies":{"lodash.get":"^3.7.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^2.10.2"},"peerDependencies":{"mongoose":"^4.2.8"}},"1.0.0":{"name":"mongoose-unique-validator","version":"1.0.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"6481306e133afb123f00eabab4a220e2874d8c6a","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.0.tgz","integrity":"sha512-Av9GySVFXgMgoptf2m1yp88hl0MfXkSvXZG/KkIRNyRC0rHzDEGfLJCz5GQsBmGUyNz+f2kQ26MLtyY4u7w57A==","signatures":[{"sig":"MEQCIFXngY8GKPTie0pI0hlCeCXRP6cVm4Nx+ijMDYOetk/FAiB7+c1ZrTFPMniTwbkpQEexoztFm804pVMzTrPxxjTa4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6481306e133afb123f00eabab4a220e2874d8c6a","gitHead":"f953a748e820b0d1f2cbe578f02e16aaefa14868","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","dependencies":{"lodash.get":"^4.0.2"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.2.8"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.0.tgz_1454713724535_0.17745648906566203","host":"packages-6-west.internal.npmjs.com"}},"1.0.1":{"name":"mongoose-unique-validator","version":"1.0.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"87d4a6c3c1f5f4de905d24dd17e92cd2f22090bc","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.1.tgz","integrity":"sha512-9Ew2DC7kKOsKlBG9pnY8A5qXAgO4CiV0957DooGMLpVRIYtA1zC6tBEWNCfKYMW89C2x0h1s+daB5EbFPvuXkg==","signatures":[{"sig":"MEYCIQDEt2WmzUMM3PEua8/efJS5pSjlyYaYQNems0q/FWmthwIhAJRH+pQfCC7Xs5F6EGZSf/Kx3Q2FEt4OPEVMEt1xAnk1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"87d4a6c3c1f5f4de905d24dd17e92cd2f22090bc","gitHead":"7e566ed2f2ae22eda0efe2d15af25a4d3f14cdbe","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.2.8"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.1.tgz_1456194823086_0.8372565545141697","host":"packages-9-west.internal.npmjs.com"}},"1.0.2":{"name":"mongoose-unique-validator","version":"1.0.2","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.2","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"f12bb892918bd95e19cb62beb3c00b044ab25ea0","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.2.tgz","integrity":"sha512-5CGX3bmAyHLODXvMSOqjl0uP7AV8vXylw6sFivAIn1LhW2NP0Wml2nlBxa2bZyIl1CNL6LHOWMurfCv3VRObpA==","signatures":[{"sig":"MEUCIFHE3K3PJIh8jU6fRODZP7qWu/S3K3WjSolhfTfti5vCAiEAmo8p0NOSD7sboug6p3Moq69PV0lXMoUMnec7EyhjFDY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f12bb892918bd95e19cb62beb3c00b044ab25ea0","gitHead":"b5c675ee82536e1950d31f8c467c0f05853f13f6","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.3.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"4.2.1","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^2.3.3","eslint":"^1.6.0","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.2.8"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.2.tgz_1456503405127_0.050946819595992565","host":"packages-5-east.internal.npmjs.com"}},"1.0.3":{"name":"mongoose-unique-validator","version":"1.0.3","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.3","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"a2e97da44a85f31f9d6381655ad0d4707b562bd6","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.3.tgz","integrity":"sha512-lgu1LS5boIvcWXlx6bmBHMZrPVCQkzdUmiXVDUAns2DKPtpwvaKKdhFKLU7w+GGxxjCceAqKv0Y+/pmxyw2/vg==","signatures":[{"sig":"MEQCIQCWMAdOmmAP244pnkjVS4oCtGfkOMcCYDV+gtIHL+DDDAIfHe0iozODk//OvTktgxg37nOd3W/CtoCQbn+8cZhcTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a2e97da44a85f31f9d6381655ad0d4707b562bd6","gitHead":"1739d2aeafa7624f0258a08b0ffe13f0fadc3531","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"3.10.8","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"6.1.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^3.1.2","eslint":"^3.10.2","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.6.8"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.3.tgz_1479844501654_0.7119452864862978","host":"packages-18-east.internal.npmjs.com"}},"1.0.4":{"name":"mongoose-unique-validator","version":"1.0.4","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.4","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"dc1a7c80bfd5968cdfba75237056c4656b146cea","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.4.tgz","integrity":"sha512-fP48QwqP9/CAR8TckxPLrZLJY94nKRoww/z0xg/UvD3H7k8tuN2TtukkiVF38dzduzZrZS2vYgRt+Q9jEv7Xtw==","signatures":[{"sig":"MEYCIQDBtbW/1+/Z38KmrphCtW1OBniR8Vxz3OEvMaZRa1AwMAIhAOTOA5KhyOoqo6kSaufhJzsNoB/LZIgp0iP+hk2+8X90","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dc1a7c80bfd5968cdfba75237056c4656b146cea","gitHead":"45e968a7183c8b387c71186cd9bb3cea24baae11","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"4.1.2","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^3.1.2","eslint":"^3.10.2","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.6.8"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.4.tgz_1488419657720_0.3862243848852813","host":"packages-18-east.internal.npmjs.com"}},"1.0.5":{"name":"mongoose-unique-validator","version":"1.0.5","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.5","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"591872fafe0830939f0b756b6554243c93163aa0","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.5.tgz","integrity":"sha512-9fH5M+FRtejzX2D1otoyHO/MGyYF7FBC6IIsAKNNaaGlxzXBVPmfu+xa4aikmksJx/bLQGsKFeorqzewyYb+Bg==","signatures":[{"sig":"MEYCIQC7pcqpmQP4AuuTcrQrmrPLqGf66PwYPC3i8rJUamLChAIhAJbxNV7ck5yLHlaSMSjdfXo+AT0EjZgVzrgi5y6vdNXO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"591872fafe0830939f0b756b6554243c93163aa0","gitHead":"3b4408a68479ae398827e83082271887218878e2","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"4.1.2","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^3.1.2","eslint":"^3.10.2","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.9.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.5.tgz_1490135317036_0.55056945187971","host":"packages-18-east.internal.npmjs.com"}},"1.0.6":{"name":"mongoose-unique-validator","version":"1.0.6","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@1.0.6","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"fab31e68c1a5ba6f5b05da8e93842db55eb0a3b1","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-1.0.6.tgz","integrity":"sha512-hJf1eiWPw9O5ed7HUtFHtHhqnWDpm42Q5iC3xs6p99kr1qrVMq8WR2x+yobx6rY5F26Ki2NqGvJTe8v/Fax0kw==","signatures":[{"sig":"MEQCIEZy4QVT6eE6DUvWTH68GBwltYKj2ksqEegeGJk+o1oHAiBePLGfNx+ALv1MJsn8jzcB+2KdCG9TUWBe8GkhyM0VGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"fdfc957673f701e61657edaad23e147b6c3b3954","scripts":{"lint":"eslint index.js test","test":"mocha test && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"5.4.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"8.4.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^3.3.0","mocha":"^3.1.2","eslint":"^3.10.2","bluebird":"^3.2.2"},"peerDependencies":{"mongoose":"^4.9.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-1.0.6.tgz_1505261026504_0.16437719739042222","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"mongoose-unique-validator","version":"2.0.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@2.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"76e406cd0b322bbbb79496e2b7425d885ce661c4","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-2.0.0.tgz","integrity":"sha512-oBIFoBQW0n1Pusjabpv5g/JMqOF2QOqZHFTRFLuKrAQx9UeuXchqSR72BdoW0S3gSxFJ/oMSi9YAOLBD0xJtOA==","signatures":[{"sig":"MEYCIQChxIk6ZkUZ8Hl+IhRciWtlhe8vKWYDFsfEJRhBuC4LLAIhAJttjDCDNvIoE19tbEXRThyvUF6M0ThgltwvEEzm1f/B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"0faa525f8dbaabaef2b6d890d4ac60ae491a83c2","scripts":{"lint":"eslint index.js test","test":"mocha test --exit && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"5.6.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"9.4.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","eslint":"^4.16.0","bluebird":"^3.5.1","mongoose":"^5.0.0"},"peerDependencies":{"mongoose":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator-2.0.0.tgz_1516756149044_0.9997967132367194","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"mongoose-unique-validator","version":"2.0.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@2.0.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"34c64f097cb5e1c61f822116b0a5b07667e6de92","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-2.0.1.tgz","fileCount":14,"integrity":"sha512-Eqq7lZMy0nPSojG8UyDZvlBie1aBZJXk68GDMBXXQH0TAi0hZHf76nCrwuipReNK1jLkjyKzV7eIZotja5eEBw==","signatures":[{"sig":"MEQCICSGpCA6S8KV8MLfa8RUtf7wQdmCI89cCyOLqzugz3UGAiB3c9pleOXhZsgJxnI/Z+BiBZb2rtQ84XEnXQFecJgNgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4zOoCRA9TVsSAnZWagAArBMP/iPa87wpzbff3/pLtWwZ\nw+4bvve79IG9xr7F1sFkaGbCZhzzVgQyhfTLoSYfXRgO8EIAVibx9MibgzWq\n1+G3peVgEbiFBr8a42Jbuy0MXCLfsfDSsWiOJt+HT5wcxgV1trLYjIhcbkHV\n+O+dy00WOq7wggpH35mpEmJ243IIJ7P0FXMIuoVb6La6+zq1xGBYBt1BjPKL\nclQxECaMr+5nwekLUa4s1Q/T7tgPXDh5inbWdyzJbv/JmQs/w0SvPmOhEaft\n+ZMpFMMxy/9hE9o8ejiLbmG0C7558F7bP7Qs1r1cfRWDGggaMJJNNWouDa6h\nnj3ZzouYlCmP8rvg2jT7L8+Fs9ERe/Tc+1bUB4keqOchzSmHiVi5znPV7WQd\nRUC6FyFgxmwao4tQ5x1wv3yNd4noZjurSasCuP43k43CR9D9Ik1EVV1PKyJ5\nHNhHnaDwe5amiiDmSJzHvtYmgWP9458gCpPYKO4D7krUsYfvVJiDIM+kAf+1\nhXuYbpTgyItgMwdM24AQW2MagojaQQc0vWgukus3r2eTGGuz2gpOBQ0ggepe\n3I/I6+1aog8yY/PJW5IH57KQtYTwoPnRr3FMNdt5YVWPXZTEeHPNV4RutI79\ndvl9zR/DWc71sFJn/JYfw6tMtGpN1ZN+VK1Pzwo/nB6iTmKcSt08al9Q2Ba5\nEkKl\r\n=y+FU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"dbaad90668155c65dea5b1dc4a4f4993f94e1f89","scripts":{"lint":"eslint index.js test","test":"mocha test --exit && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"6.0.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"9.11.1","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","eslint":"^4.16.0","bluebird":"^3.5.1","mongoose":"^5.0.0"},"peerDependencies":{"mongoose":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_2.0.1_1524839335558_0.004869501252483088","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"mongoose-unique-validator","version":"2.0.2","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@2.0.2","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"a980e68638157cd8fcea86d754eeb2cf67e6bb76","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-2.0.2.tgz","fileCount":14,"integrity":"sha512-gbKFiEzWQi8wZvZFeeEkx4nCV1qWaeRoQBNm+672+h54/0u/Y8rSdNubScn/1H2ScCPO55asDow+OXq67RQDmg==","signatures":[{"sig":"MEYCIQDtUuHYP/Ha5u7o+tApRVGy5d4A39tHGyaKgLyJNByk4gIhAPpDtJ0V0+k8idPKJj8oz7XosMdfhwOLJNeq/bWQVDDx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbouLDCRA9TVsSAnZWagAAb8gP+gNiq8aH+2WTLSiFczDr\nv3WiGRI0Ypz0mxOaFBfeqliD9fp6y7dhJmUa40sWAVW81OiTyXTGXdRMFqB5\nf9UIOdg7qSY4NvqSFroQtT6edW6YcAYi8hOo2ARy5Sn1cAdjTOtfo/l+O2hh\nJara82aPMqK/vr3Sg4E4hgjX2RYak/XzP7GTXMQe/jzWhwCKEAwA7USnT1eh\nsqXJ0yMxMjAWh/NLtGEYVjF25H/Yd4LUosFLmLi01jvVTwY/S+gk6m4X8Py9\nzh9knp9QLQqlUhSag4zjYxbWi7KHX7zlgqXbh1M9BIFaeUHZF48IJ+9kkhud\nn+3NKBEjF72OMDYSgDmJRUf4jC+WTgCb1bDw2eteaaUh3YO6fqed/PsBLFxx\n8+9nTDb+U3sdGbE/Iwc677wFGcHDpqFmRPiz7yVkB2h8mjteHt2BgC1V5syS\neVO3lOtqGxoFT4Wlw/VHDFSYMsg7EdV6S1SNVnOt3FgQl9liYZvPUh1gXUrH\nzJYB6CThawnKhK1boo1tBbPdcnEJya/8n+mKDmFd7qZhZwPxtiBRmwsfX2DZ\nMKuWm3u6MQNO7qzKtMBs6UV53WxoVtLlSIM9DhRUxy+z11Ciglkkj3kSH4gn\nHZy/Gu8qnljJlkspaJprJ/GbJLeB1lC9kDyLw3RQmlV6bFyOpWo0mVF0GETZ\n+xMU\r\n=SD6z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"1cc09b14d4fc630521e91557fda2681042e66f03","scripts":{"lint":"eslint index.js test","test":"mocha test --exit && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"6.4.1","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"10.10.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.0.0","eslint":"^4.16.0","bluebird":"^3.5.1","mongoose":"^5.2.16"},"peerDependencies":{"mongoose":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_2.0.2_1537401538676_0.7102568594586536","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"mongoose-unique-validator","version":"2.0.3","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@2.0.3","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"247adbcda391bf5bc63fc3dcd43286a9ec833fa4","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-2.0.3.tgz","fileCount":5,"integrity":"sha512-3/8pmvAC1acBZS6eWKAWQUiZBlARE1wyWtjga4iQ2wDJeOfRlIKmAvTNHSZXKaAf7RCRUd7wh7as6yWAOrjpQg==","signatures":[{"sig":"MEYCIQD9zdmtkRvuoE6ePnmGFTiuQsrkvP2ieFez5biEtxFSOAIhANybyIEID+izuUIDVwkInO1DXz56Ehe4n+aO+aGyz05C","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJct3dJCRA9TVsSAnZWagAA3L0P/0gNsRAXgYAxGE8di5sB\nu/pCOQBy5FHTCLmL+m9ydxXr7/FCQBQBvVzpSEgVEqyBXY/u/w6ugZou872H\nRHHWnv8gGNCLeKRxG92qE2ra8FZ4W7WMX9HxX6Ihb8ws30+uK2J2eDeml1Zq\ns1PS/Cb55s//pW+O8GsRd/n9bZ7cY3sqU8JzOJ1v7WKZc8Hze/tUvOdW7rhz\nIRh/b+aqrI4OE3TGSXl9FEtKwZ+GBq4N9DOLyU/ohPEFMnrwl0YRTJg38mWd\n2KpKo9YUZmZskM8N0JnsM7vVVueT4l6JpLZtXP2LNPD0pclGqgIlhSYnJ9Eb\nG2/+aTUm8+kxYBYZnm2YMiwqB0MyCHpJ1opQEsQKAgcN1u26rR+gTf8RLe7T\nP9N2PrL5XGyhal1n6rwiknawbNGQiOY6OqT8tA7p+aymtDRhkGLmJqTw7hkr\nLeVNgoQP1yy1TfCZ8llpDzkDktUq5bxkax75DG29U1/ehbKYHT92/fqU1wVH\nS0MdXzP6q/GrczKAq2xBzMwmINwDfVOklk0ZQeRx5wkE0eq46QZNe9D3ssO8\n3rdP+cMhSdafGROfzmYKfxSJgDmg9cTsEZ/SIdxhgWuBWhhs/KRxEMm4zV1r\n4ahYFtr9Gj8VnxPdd4S/DKwZX+C9Jl44T+gd0nIvdGk3tgquGjSEwGdh5+oB\nEwYX\r\n=uKmu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"da52b0c0de8951f271f5c8ef4be8a41e52fae68d","scripts":{"lint":"eslint index.js test","test":"mocha test --exit && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"6.7.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"11.11.0","dependencies":{"lodash.get":"^4.0.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.1.3","eslint":"^5.16.0","bluebird":"^3.5.4","mongoose":"^5.5.2"},"peerDependencies":{"mongoose":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_2.0.3_1555527496698_0.6031636420286719","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"mongoose-unique-validator","version":"3.0.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@3.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"cc65a7237573cfc82d848f2fb9fade8627575760","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-3.0.0.tgz","fileCount":5,"integrity":"sha512-WwC09CN2OQ39ONCEN2quR2L5CLHau3p2VYegRMitoVwdKA738uuJRlrTHXt5J6WyJBSloCILxwDZ5qbu4yEXcA==","signatures":[{"sig":"MEUCIQDKNyQEeIK3uedNZNzI1Q4DsM3MGcTHAw4XTMS2lx6hzAIgcEB9pzwzrCK3f3gdmxJ0iCcf7ugNbdTJZ92q3iXYqUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2znXCRA9TVsSAnZWagAArBgQAJq1lBp9d/NUS53+C6Lx\nWWhRE+aPwQN64+ZJpjqy6+F3evTg81ESQT4X+XR25d2mQI0+7zqFbE19euIC\naZbW7BZxLDIGLYg/wB9YjLbTmpTOXNnhR8oUiQrZDT2JpwkJCwvka5iQL4s3\nHgh8jQL33gBfDB4qTxK4I6fSwfm/aYrGrhtYiCjsVkD5XnEnI65h7WLtqWmV\nLAt0C+cHqciG2gVe/QJ2Ww7SzBK9Kne+4/b/Q+YES9fZBf3QqFpIRU5N6Z8w\nTw4c2FLn/d/mJzX0YlCpBqplegZtkBdV/nCafdSKkRQT6gX0jGRSrM4Qm5Gt\nLPuEOd3Qu5GxjRrnjNKFGtDRf2HqPCllN4LblQvX5ln+IZxSIpsRSXkxP5ZM\nSx5PjyxTtsM5Mz7fibd9p7jULYKyKOwAsTDuVaOsu16B6ziXiZ4aBanVI5A5\nBjBNkWr7joYgbBq3PiYHAFV1vYwuf8wR1pvhDoR/3CeNxvteWdzeesTx+0xy\nISn/0Xj8AoVG9Sk2y4qYsJFAphUkYA8BBjVm8IncVLM8lvzU6GRKCTtKPV9o\nCm41AlLWcpCGXvbwgfritg7j0M7oIR698RLvMr/r4onZ4m/g/0t87g2z8m22\noxsMtDXGt06hu7GfPjOaKiW9Idn0QBJeTBS/iBGztYTEu/PIyTrZ5SfoKdhF\n1itW\r\n=lBou\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"bbe8566b837b4f23362706e1f899f945475c0976","scripts":{"lint":"eslint index.js test","test":"mocha test --exit && ./node_modules/eslint/bin/eslint.js index.js test"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"6.14.4","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"12.16.3","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^9.1.2","eslint":"^7.32.0","bluebird":"^3.7.2","mongoose":"^6.0.0"},"peerDependencies":{"mongoose":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_3.0.0_1633360357737_0.25721400235041525","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"mongoose-unique-validator","version":"3.1.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@3.1.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"10d6fa10ccf5515461e3b5693f193d227546d60b","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-3.1.0.tgz","fileCount":5,"integrity":"sha512-UsBBlFapip8gc8x1h+nLWnkOy+GTy9Z+zmTyZ35icLV3EoLIVz180vJzepfMM9yBy2AJh+maeuoM8CWtqejGUg==","signatures":[{"sig":"MEQCIDQX73j6qrelb9EnjEPfWOek3s9c7sAp10R4bffAH3i7AiALcj14gHdxZjWVLE0TrAHszNy+ChTHizhKozwaaqaCTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiln9HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoczw/+ORcCH8lf0LTqCGAqEZzzktxIlHm6o6Iy+ueeeVPcHn2VOpxO\r\nFDcEmHRLWg/1qHcpaHB99fO7ECBLcEFBIw79kStIpQD+pExlU0QoskbvEJU3\r\nXZlyDP82LYRdwOPBdXeweDNHY5sKrSfEera2sjCp7uhCKrIH8BlGlOyRHNDb\r\n66uz307y55I1KGjHas+4tzS7Ep3Z0A+BFTwhX4QLTnunOIzLiKIEYaNfU9hw\r\nTIaqYVSGivXO0O7f+9Yupgfnv6vMLPqibg1e4OIvHIOMZpr5gXEyvNPdFPP/\r\no0bMFHDDlpz7tLra06CHqSAalgn3BollVfmj6GGfJXXL5b2sfwU+pMkPhExS\r\nEl7zzJoPVIb4dmszx2bqvgzeK7qhrSOF2bUkERen+RuyyjBuG1alYuOt/SiM\r\nAFfNWqKFDI8v08YfH8R2L008R1dW4em7fJ6QOs1Eu5CE9y2c1UAvbpoxk2vr\r\nIkYtuJKZ7JUQjX3kp/1ZUTTlGHedX/cJzeImoQKaHcARMLJgWzjQf+iNEnRu\r\nMoqcBPeWzavVPVmNQA1E/RMoF0R+qQ5dCH3Zpsp8elkHtALovvPHon68iVNd\r\nREBFFNgE59MDi8iDdsxmygGKyGJNwIKhOFGwRKNpup+kQqOI2EJr6pFWyH1k\r\nRXj+H/Ml4Dz2kHPD/iTXpU5/Ywc4y/9U2qM=\r\n=YyRS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"8fe3246719efeb2d562cf44af74b70b1723f789c","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"6.14.13","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^10.0.0","eslint":"^8.16.0","bluebird":"^3.7.2","mongoose":"^6.0.0"},"peerDependencies":{"mongoose":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_3.1.0_1654030151040_0.8580989597869846","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"mongoose-unique-validator","version":"4.0.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@4.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"b9310fa6b67482f4daccc2807af1bd68e6e91d4d","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-4.0.0.tgz","fileCount":4,"integrity":"sha512-lOvL7wOZ8wM2Kggk6zPZuglmld7hmzf6TdNk/h9EidTH9iZNLl3Y2ZgRPjYd/so1AODLawehY56roa6HjX6jew==","signatures":[{"sig":"MEUCIHLQfnkj2Ar2KLPL9BC4tbfdM4cMEqgrww/zBpyOeCK1AiEAnPwrL+5vKg94kt3ODdKYXayaNOOqWGeVHH6jRsTl1+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNYDCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/pQ/+MsbLe7BNsTirI2KH6gcH0d8HK13+m+IRVchxfcliF9lG83NI\r\nkzdC/F8UynPAH2Sm7hrxSlBBvgPv6027f1hcDH3xfh3DYDiiP8MmKvuyUDTC\r\noWzjcDa1iS8lWnz/7ZD2cAOdqgJlogYwuDmH87va1h+b9wEETJYS6/elpXNv\r\nUXn1a/U6TCEJVRvlbWrmoOq6F+ETNJMZkoEuiaQTqUbAEnxqoX+ym5dEtNKN\r\n0jwM8JpItrTX+j6Qx2G8Zf9g79fc8VILaLFThSXTYgFZF/zhgJb/o08hB6i6\r\neVdOZPhPmRdXc1mvrSYgMrGUT9k+jr8NhvpDGdhQyrMuUF9uEBCux500uOhC\r\nu+tEeTflTt4bUFBx1g4Vjm5CUeDtjoL2cRS6O99McgI0PvDn46ettewOvHkD\r\nesXDqJpnHMwv+HTSdzKIySCcW+Z0zVYLKuKHjmCPVCCKaLv1yez3MND7pmDH\r\nP59p0ia2ls2TJFer6TBMDSQz46fqWIU1JTjW1Ji7FYrHrRp0uAoZ4pfqC8lK\r\nRHt0prExtjrwbuCmYDojlfomB6soUu26Jz+/1+sy+D6pvRyGJK3DFIJpVT4M\r\nnBSiBKwJ14qA1YeE7OitxxT0x5UsbsCYKGuxC9nh+ugKLSsxxib5RvPOlSQW\r\nS8dPLPFNxybwv5ePKrtv49/gbjGuWmA1mmQ=\r\n=HuRS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9b2ebd9697f84aca572b6fe59aa16649206a4b02","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"9.6.4","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"18.14.2","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^10.2.0","eslint":"^8.16.0","mongoose":"^7.0.0"},"peerDependencies":{"mongoose":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_4.0.0_1681227970761_0.7644471192772517","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"mongoose-unique-validator","version":"5.0.0","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@5.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"dist":{"shasum":"c8ecd32510eedb2ee2dff9fff5f156aea2b478a6","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-5.0.0.tgz","fileCount":4,"integrity":"sha512-PhJfzP4fww0lhynIXqHU2FuTTqbv8ILL9AqVcz8BB3AlQQirvvqGlhhKn39wURH6u5GssJziN2qALiu//EQiLg==","signatures":[{"sig":"MEYCIQDVJDFloVaS36zmxrtRejIn+9g7yRz5s6TMLy8JtM1ThQIhAIQvjbsDVOR4RFDpung49IZTfZFvtoekfdPo9vJWAZLR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15589},"main":"index.js","gitHead":"730be394276a594c8f35c1a73bb5d1afad696d3b","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git","type":"git"},"_npmVersion":"10.2.4","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.0.3","mocha":"^10.2.0","eslint":"^8.16.0","mongoose":"^8.0.0"},"peerDependencies":{"mongoose":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_5.0.0_1706765442257_0.5610802497716825","host":"s3://npm-registry-packages"}},"5.0.1":{"name":"mongoose-unique-validator","version":"5.0.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@5.0.1","contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"dist":{"shasum":"c14824d675997f25c1a1779c3223eabf15bd1103","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-5.0.1.tgz","fileCount":4,"integrity":"sha512-nLu4PZCHDdOexyVrnWQHW1bwunxJdqyFPJEskZGuLY1GIUB/1+HQrWtFeeVpc7b2q6rCzbJK7DQ191hEivR/ew==","signatures":[{"sig":"MEQCIB5rLpf5fI/cpnsy83+4Xqski5K8F94dsN/qejb5UoDmAiBCl10iT01/3Mw5BuV/3A6/kycgjrSRaBKZM5ALZlC6og==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15660},"main":"index.js","gitHead":"8629215bdf4d7d9fa58201c6163955f267130893","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git","type":"git"},"_npmVersion":"10.2.4","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.0.3","mocha":"^10.2.0","eslint":"^8.16.0","mongoose":"^8.0.0"},"peerDependencies":{"mongoose":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_5.0.1_1719328966025_0.15242951406161565","host":"s3://npm-registry-packages"}},"4.0.1":{"name":"mongoose-unique-validator","version":"4.0.1","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@4.0.1","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/blakehaswell/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/blakehaswell/mongoose-unique-validator/issues"},"dist":{"shasum":"fc63365ab8d223ad1b186e4018b0fea6a043476a","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-4.0.1.tgz","fileCount":4,"integrity":"sha512-kd080ytRa6SmTOJlQPlAnsJHz7eH/b27dMHsN3WO2PeJc1lkcZ+ns6dLvcsu7Kx/f4SQEXu9JfL8kFkr4aFqFQ==","signatures":[{"sig":"MEUCIQCiJLbEeMDenUDSYucnYU+3f+eSNNVeyR72WwcBzQ6adQIgOok3JHznv1RHxpEnYV/bZnTrX7taA3PgQd8FQQ8iwOQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16040},"main":"index.js","gitHead":"9095fd3c0bef8d3388b0e166e49b3bb6600523b6","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/blakehaswell/mongoose-unique-validator.git","type":"git"},"_npmVersion":"10.2.4","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^10.2.0","eslint":"^8.16.0","mongoose":"^7.0.0"},"peerDependencies":{"mongoose":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_4.0.1_1727715560645_0.08783256670229855","host":"s3://npm-registry-packages"}},"5.0.2":{"name":"mongoose-unique-validator","version":"5.0.2","keywords":["mongoose","unique","validator"],"author":{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@5.0.2","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"name":"Mike Botsko","email":"botsko@gmail.com"}],"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"dist":{"shasum":"08ca7bb0c408007a7d8e7fdb7cd289ad82909332","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-5.0.2.tgz","fileCount":4,"integrity":"sha512-yk6x6R3vjFeV4V3I0V5Mg/v1+VDVagPFolJMoaZeXh/bDoXy/XzXohz4qlIxEJFqCgGP3p3M1zrbOR+808JV+Q==","signatures":[{"sig":"MEQCIH5JYfMwA7vK/PjfyaUndCrvDKfNFWnMz8z1xRiCBFcXAiBkxrdHG22xm1ZT/N1vM8ltb58kA6OIMbraL6VrzUPFjw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16220},"main":"index.js","gitHead":"e0b02ea18d08b49eacece80f44d728c8d409a2b6","scripts":{"lint":"eslint index.js test","test":"mocha test --exit"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git","type":"git"},"_npmVersion":"11.7.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"25.4.0","dependencies":{"lodash.get":"^4.0.2","lodash.merge":"^4.6.2","lodash.foreach":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^6.2.2","mocha":"^11.7.5","eslint":"^8.16.0","mongoose":"^8.0.0"},"peerDependencies":{"mongoose":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_5.0.2_1770485630291_0.795993291844435","host":"s3://npm-registry-packages-npm-production"}},"6.0.0":{"name":"mongoose-unique-validator","version":"6.0.0","keywords":["mongoose","unique","validator"],"author":{"name":"Mike Botsko","email":"botsko@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@6.0.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"}],"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"dist":{"shasum":"fcc27e7472ce4fb0892cc1857c0eff6a28a8b68f","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-6.0.0.tgz","fileCount":4,"integrity":"sha512-jhpo+MMy4BMbKQtdYyPHPPdP7JvwOXmSmZvYO61dStM27bcdz4u7YZPNmbV3xRelIIZApNksAgKzXfcRXLimOQ==","signatures":[{"sig":"MEUCIQDe0wt+y4UGjcvFnBLT1bz7CKo5a46y6WA+gh+SfjolTQIgDL5VAOdHirCVl0rjusovEloTkAOCrFewZsEjBTDESmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19785},"main":"index.js","type":"module","engines":{"node":">=22"},"exports":{".":"./index.js"},"gitHead":"fff203d061efa56941471f16c7e8e26a28c294b6","scripts":{"lint":"eslint .","test":"mocha test --exit","format":"prettier --write \"**/*.{js,css,cjs,mjs,ts}\"","prepare":"husky","test:docker":"docker compose up -d --wait && pnpm run test && docker compose down","test:docker:mongoose8":"node scripts/test-mongoose8.js"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git","type":"git"},"_npmVersion":"11.8.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^6.2.2","husky":"^9.1.7","mocha":"^11.7.5","eslint":"^10.0.0","globals":"^17.3.0","mongoose":"^9.2.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","lint-staged":"^16.2.7","eslint-config-prettier":"^10.1.8","@trivago/prettier-plugin-sort-imports":"^6.0.2"},"peerDependencies":{"mongoose":"^8.0.0 || ^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_6.0.0_1771488651612_0.45161748055242357","host":"s3://npm-registry-packages-npm-production"}},"6.1.0":{"name":"mongoose-unique-validator","version":"6.1.0","keywords":["mongoose","unique","validator"],"author":{"name":"Mike Botsko","email":"botsko@gmail.com"},"license":"MIT","_id":"mongoose-unique-validator@6.1.0","maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"contributors":[{"url":"http://blakehaswell.com/","name":"Blake Haswell","email":"haswell00@gmail.com"}],"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"dist":{"shasum":"9b1055119fce794cf4337c2e66bc908547bdf048","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-6.1.0.tgz","fileCount":5,"integrity":"sha512-quvhoFf9Jmn21IZfBxpmZbUNzIQGF0TisWo2pnXrlcNkvq6YimR5NObNa/NDoYWCNcBogwQbSVL2ESzV1+hfPw==","signatures":[{"sig":"MEUCIFKjcXZAtxFugaoMKC3ZikoBGKltRYEdYnHB/kNsC4YHAiEAq99zCKLbjgsspqHXmYfEYC6ncRrHUCjx8p68Gpw41ks=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20791},"main":"index.js","type":"module","types":"index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"9622a5f8c9828556685d326076539c1735414fdb","scripts":{"lint":"eslint .","test":"mocha","format":"prettier --write \"**/*.{js,css,cjs,mjs,ts}\"","prepare":"husky","typecheck":"tsc --noEmit","test:docker":"docker compose up -d --wait && pnpm run test && docker compose down","test:docker:mongoose8":"node scripts/test-mongoose8.js"},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"repository":{"url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git","type":"git"},"_npmVersion":"11.7.0","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","directories":{},"_nodeVersion":"25.4.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","chai":"^6.2.2","husky":"^9.1.7","mocha":"^11.7.5","eslint":"^10.0.0","globals":"^17.3.0","mongoose":"^9.2.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/chai":"^5.2.3","lint-staged":"^16.2.7","@types/mocha":"^10.0.10","typescript-eslint":"^8.56.1","eslint-config-prettier":"^10.1.8","@trivago/prettier-plugin-sort-imports":"^6.0.2"},"peerDependencies":{"mongoose":"^8.0.0 || ^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mongoose-unique-validator_6.1.0_1772604255496_0.7429166690933289","host":"s3://npm-registry-packages-npm-production"}},"6.1.1":{"name":"mongoose-unique-validator","version":"6.1.1","type":"module","description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","main":"index.js","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"scripts":{"test":"mocha","test:docker":"docker compose up -d --wait && pnpm run test && docker compose down","test:docker:mongoose8":"node scripts/test-mongoose8.js","lint":"eslint .","format":"prettier --write \"**/*.{js,css,cjs,mjs,ts}\"","typecheck":"tsc --noEmit","prepare":"husky"},"keywords":["mongoose","unique","validator"],"author":{"name":"Mike Botsko","email":"botsko@gmail.com"},"contributors":[{"name":"Blake Haswell","email":"haswell00@gmail.com","url":"http://blakehaswell.com/"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git"},"bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","engines":{"node":">=22"},"devDependencies":{"@eslint/js":"^10.0.1","@trivago/prettier-plugin-sort-imports":"^6.0.2","@types/chai":"^5.2.3","@types/mocha":"^10.0.10","chai":"^6.2.2","eslint":"^10.0.0","eslint-config-prettier":"^10.1.8","globals":"^17.3.0","husky":"^9.1.7","lint-staged":"^16.2.7","mocha":"^11.7.5","mongoose":"^9.2.1","prettier":"^3.8.1","tsx":"^4.21.0","typescript":"^5.9.3","typescript-eslint":"^8.56.1"},"peerDependencies":{"mongoose":"^8.0.0 || ^9.0.0"},"gitHead":"6b13f234c7e781d4f88303dcef16ef90f8740cbd","_id":"mongoose-unique-validator@6.1.1","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-SH7GHKGWVGD5U8MmAMF4pDkriD37qQGkhzN8qQSHkBqlLKjxsAJ+Y6HA0ulnA3u88gPLx0ath/3T46YkiPq+Zg==","shasum":"0ae7ec84efa4b17a869314da5c331a88dfad855c","tarball":"https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-6.1.1.tgz","fileCount":5,"unpackedSize":21082,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDDwLXlI4YyP5PQvNDUUI+bmR9Xia7sWif3zMqYRimICAIhAN/S58NWOduKTNKhCphgifA2tHMkB4KAIMRu7ir/g/oE"}]},"_npmUser":{"name":"viveleroi","email":"botsko@gmail.com"},"directories":{},"maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mongoose-unique-validator_6.1.1_1774384536311_0.19525389081997635"},"_hasShrinkwrap":false}},"time":{"created":"2013-07-09T06:47:22.054Z","modified":"2026-03-24T20:35:36.551Z","0.1.0":"2013-07-09T06:47:28.006Z","0.1.1":"2013-10-29T22:43:15.320Z","0.1.2":"2013-10-29T22:45:27.998Z","0.2.0":"2013-10-31T12:19:44.953Z","0.3.0":"2013-12-22T12:13:33.782Z","0.4.1":"2014-10-02T00:25:54.906Z","0.5.0":"2015-10-11T20:25:55.361Z","0.5.1":"2015-10-14T03:44:08.599Z","0.6.0":"2015-10-23T01:41:02.479Z","0.6.1":"2015-11-12T16:57:34.273Z","0.6.2":"2015-12-01T03:40:28.793Z","1.0.0":"2016-02-05T23:08:45.291Z","1.0.1":"2016-02-23T02:33:48.402Z","1.0.2":"2016-02-26T16:16:47.767Z","1.0.3":"2016-11-22T19:55:03.679Z","1.0.4":"2017-03-02T01:54:19.550Z","1.0.5":"2017-03-21T22:28:38.915Z","1.0.6":"2017-09-13T00:03:46.582Z","2.0.0":"2018-01-24T01:09:09.112Z","2.0.1":"2018-04-27T14:28:55.668Z","2.0.2":"2018-09-19T23:58:58.922Z","2.0.3":"2019-04-17T18:58:16.812Z","2.0.4":"2021-10-02T18:00:55.388Z","3.0.0":"2021-10-04T15:12:37.938Z","3.1.0":"2022-05-31T20:49:11.242Z","4.0.0":"2023-04-11T15:46:10.912Z","5.0.0":"2024-02-01T05:30:42.411Z","5.0.1":"2024-06-25T15:22:46.174Z","4.0.1":"2024-09-30T16:59:20.824Z","5.0.2":"2026-02-07T17:33:50.432Z","6.0.0":"2026-02-19T08:10:51.783Z","6.1.0":"2026-03-04T06:04:15.646Z","6.1.1":"2026-03-24T20:35:36.452Z"},"bugs":{"url":"https://github.com/mongoose-unique-validator/mongoose-unique-validator/issues"},"author":{"name":"Mike Botsko","email":"botsko@gmail.com"},"license":"MIT","homepage":"https://github.com/mongoose-unique-validator/mongoose-unique-validator#readme","keywords":["mongoose","unique","validator"],"repository":{"type":"git","url":"git+https://github.com/mongoose-unique-validator/mongoose-unique-validator.git"},"description":"mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.","contributors":[{"name":"Blake Haswell","email":"haswell00@gmail.com","url":"http://blakehaswell.com/"}],"maintainers":[{"name":"blakehaswell","email":"haswell00@gmail.com"},{"name":"viveleroi","email":"botsko@gmail.com"}],"readme":"# mongoose-unique-validator\r\n\r\n[![npm version](https://img.shields.io/npm/v/mongoose-unique-validator)](https://www.npmjs.com/package/mongoose-unique-validator)\r\n[![CI](https://github.com/mongoose-unique-validator/mongoose-unique-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/mongoose-unique-validator/mongoose-unique-validator/actions/workflows/ci.yml)\r\n[![License: MIT](https://img.shields.io/npm/l/mongoose-unique-validator)](LICENSE.txt)\r\n\r\nmongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.\r\n\r\nThis makes error handling much easier, since you will get a Mongoose validation error when you attempt to violate a\r\n[unique constraint](http://mongoosejs.com/docs/api.html#schematype_SchemaType-unique), rather than an E11000 error\r\nfrom MongoDB.\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Quick Start](#quick-start)\r\n- [Find + Updates](#find--updates)\r\n- [Custom Error Types](#custom-error-types)\r\n- [Custom Error Messages](#custom-error-messages)\r\n- [Custom Error Codes](#custom-error-codes)\r\n- [Global Defaults](#global-defaults)\r\n- [Case Insensitive](#case-insensitive)\r\n- [Additional Conditions](#additional-conditions)\r\n- [Caveats](#caveats)\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install mongoose-unique-validator\r\n# or\r\nyarn add mongoose-unique-validator\r\n# or\r\npnpm add mongoose-unique-validator\r\n```\r\n\r\n## Quick Start\r\n\r\nApply the plugin to your schema:\r\n\r\n```js\r\nimport mongoose from 'mongoose'\r\nimport uniqueValidator from 'mongoose-unique-validator'\r\n\r\nconst userSchema = mongoose.Schema({\r\n  username: { type: String, required: true, unique: true },\r\n  email: { type: String, index: true, unique: true, required: true },\r\n  password: { type: String, required: true }\r\n})\r\n\r\nuserSchema.plugin(uniqueValidator)\r\n```\r\n\r\nNow when you try to save a duplicate, the error is reported as a standard Mongoose `ValidationError`:\r\n\r\n```js\r\ntry {\r\n  const user = new User({\r\n    username: 'JohnSmith',\r\n    email: 'john.smith@gmail.com',\r\n    password: 'j0hnNYb0i'\r\n  })\r\n\r\n  await user.save()\r\n} catch (err) {\r\n  // err.name === 'ValidationError'\r\n}\r\n```\r\n\r\n```js\r\n{\r\n    message: 'Validation failed',\r\n    name: 'ValidationError',\r\n    errors: {\r\n        username: {\r\n            message: 'Error, expected `username` to be unique. Value: `JohnSmith`',\r\n            name: 'ValidatorError',\r\n            kind: 'unique',\r\n            path: 'username',\r\n            value: 'JohnSmith'\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n## Find + Updates\r\n\r\n`findOneAndUpdate` and related methods don't run validation by default. Pass `{ runValidators: true, context: 'query' }` to enable it:\r\n\r\n```js\r\nUser.findOneAndUpdate(\r\n  { email: 'old-email@example.com' },\r\n  { email: 'new-email@example.com' },\r\n  { runValidators: true, context: 'query' },\r\n  function (err) {\r\n    // ...\r\n  }\r\n)\r\n```\r\n\r\n> `context: 'query'` is required — without it this plugin cannot access the update values.\r\n\r\n## Custom Error Types\r\n\r\nPass a `type` option to control the `kind` field on the `ValidatorError`:\r\n\r\n```js\r\nuserSchema.plugin(uniqueValidator, { type: 'mongoose-unique-validator' })\r\n```\r\n\r\n```js\r\n{\r\n    errors: {\r\n        username: {\r\n            kind: 'mongoose-unique-validator',  // <--\r\n            ...\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nYou can also set this globally — see [Global Defaults](#global-defaults).\r\n\r\n## Custom Error Messages\r\n\r\nPass a `message` option to customize the error message. The following template variables are available:\r\n\r\n- `{PATH}` — the field name\r\n- `{VALUE}` — the duplicate value\r\n- `{TYPE}` — the error kind\r\n\r\n```js\r\nuserSchema.plugin(uniqueValidator, {\r\n  message: 'Error, expected {PATH} to be unique.'\r\n})\r\n```\r\n\r\nYou can also set this globally — see [Global Defaults](#global-defaults).\r\n\r\n## Custom Error Codes\r\n\r\nPass a `code` option to attach a numeric or string code to each `ValidatorError`:\r\n\r\n```js\r\nuserSchema.plugin(uniqueValidator, { code: 11000 })\r\n```\r\n\r\nThe code is available under `properties.code`:\r\n\r\n```js\r\n{\r\n    errors: {\r\n        username: {\r\n            properties: {\r\n                code: 11000  // <--\r\n            },\r\n            ...\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nYou can also set this globally — see [Global Defaults](#global-defaults).\r\n\r\n## Global Defaults\r\n\r\nInstead of passing options to every `schema.plugin(uniqueValidator, ...)` call, set defaults once at startup. Per-schema options always take precedence.\r\n\r\n```js\r\nimport uniqueValidator from 'mongoose-unique-validator'\r\n\r\nuniqueValidator.defaults.type = 'mongoose-unique-validator'\r\nuniqueValidator.defaults.message = 'Error, expected {PATH} to be unique.'\r\nuniqueValidator.defaults.code = 11000\r\n```\r\n\r\n## Case Insensitive\r\n\r\nAdd `uniqueCaseInsensitive: true` to a field to treat values as case-insensitively equal. For example, `john.smith@gmail.com` and `John.Smith@gmail.com` will be considered duplicates.\r\n\r\n```js\r\nconst userSchema = mongoose.Schema({\r\n  username: { type: String, required: true, unique: true },\r\n  email: {\r\n    type: String,\r\n    index: true,\r\n    unique: true,\r\n    required: true,\r\n    uniqueCaseInsensitive: true\r\n  },\r\n  password: { type: String, required: true }\r\n})\r\n```\r\n\r\n## Additional Conditions\r\n\r\nUse MongoDB's `partialFilterExpression` to scope the uniqueness constraint. For example, to only enforce uniqueness among non-deleted records:\r\n\r\n```js\r\nconst userSchema = mongoose.Schema({\r\n  username: { type: String, required: true, unique: true },\r\n  email: {\r\n    type: String,\r\n    required: true,\r\n    index: {\r\n      unique: true,\r\n      partialFilterExpression: { deleted: false }\r\n    }\r\n  },\r\n  password: { type: String, required: true }\r\n})\r\n```\r\n\r\n> **Note:** `index` must be an object containing `unique: true` — shorthand like `index: true, unique: true` will cause `partialFilterExpression` to be ignored.\r\n\r\n## Caveats\r\n\r\nThis plugin validates uniqueness by querying the database before save. Because two saves can run concurrently, both can read a count of zero and then both proceed to insert — resulting in a duplicate that MongoDB's unique index will reject with a raw E11000 error rather than a Mongoose `ValidationError`.\r\n\r\nThis plugin is therefore a **UX layer**, not a correctness guarantee. The unique index on the MongoDB collection remains the true enforcement mechanism and should always be kept in place. For most applications the race window is negligible, but in high-concurrency write scenarios be aware that the E11000 path is still reachable.\r\n","readmeFilename":"README.md","users":{"hbj":true,"laomu":true,"samar":true,"nhutle":true,"abhutch":true,"draxcyn":true,"gpuente":true,"jinmatt":true,"jzelaya0":true,"nukisman":true,"robermac":true,"shieldax":true,"skarface":true,"joemalski":true,"jparmenter":true,"justincone":true,"kostasxerv":true,"oleg_tsyba":true,"hongbo-miao":true,"hypersprite":true,"iaincollins":true,"marianoviola":true,"viktorivanov":true,"crazyjingling":true,"markthethomas":true}}