{"_id":"mongoose-history","_rev":"33-efcd3eec0932035ac5f95cd1e0310498","name":"mongoose-history","description":"Keeps a history of all changes of a document.","dist-tags":{"latest":"0.8.0"},"versions":{"0.0.1":{"name":"mongoose-history","version":"0.0.1","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.6.0"},"devDependencies":{"mocha":"*","should":"*"},"_id":"mongoose-history@0.0.1","dist":{"shasum":"9e849ada2f71f21101562d6a0b5014a113f8054d","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.0.1.tgz","integrity":"sha512-yJKcFRvEjO50sd1XMjY4myJlKcXterGJWMd7tD8jCNJuxNyFN/hm4+4X4D2w+WPz3SO9cEcO6SfsAWnahJN4HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvnWyxgVppeSG2NHtoe2SP6ruDbmjpbsyG/E74hR5O9gIhAOvZrX6T8oHUI2TD/mtQ/1QWGqhazSlFywpbqK5UFFya"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.0.2":{"name":"mongoose-history","version":"0.0.2","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.6.0"},"devDependencies":{"mocha":"*","should":"*"},"_id":"mongoose-history@0.0.2","dist":{"shasum":"f9f711ff208060a3f69444da8f6946c045d8bfc6","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.0.2.tgz","integrity":"sha512-NJbg3Ros+hnEGPZQqo9aN3WXPs/QR58JsBvGp085RCx/GiKzoWkWU+bAUrkajUB/0PQPgZR7qY80CXofpM0kkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpm4au/2uxx41SxUA7ue7+JZtp2FQ2ATh5S+2ude2dvgIhAM0xfqQ9IiiYshCTNJ5DgvHfwU9LvD0Lb4Kstf5e3jP0"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.0.3":{"name":"mongoose-history","version":"0.0.3","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.6.0"},"devDependencies":{"mocha":"*","should":"*"},"_id":"mongoose-history@0.0.3","dist":{"shasum":"719a6d8d56953a0e792241c64095b4919ca1e1a6","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.0.3.tgz","integrity":"sha512-ocO0icPsCg/PU1XLxmNov/rsRvBE/zt0hG/UXPcufqSpsZfoSx11TWBPI/dDbQBff5Bh7AlzpbB/cwdTZUSCqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8dXsT/7XUF6LhjthtBaplgrGW8cRqhSfCBjbtfeHSNgIhAPaPiRcFfdPAsq2UlQ6cFRNy0PuOXwKy269o9NTWHzgB"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.1.0":{"name":"mongoose-history","version":"0.1.0","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.6.0"},"devDependencies":{"mocha":"*","should":"*"},"_id":"mongoose-history@0.1.0","dist":{"shasum":"94dd62c08b02bc595642af143f4bc4d89f538b0f","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.1.0.tgz","integrity":"sha512-vm/4SMMZUKfoiIjJflkj+/gk0Ej7p2ilNkqOkYNF0ELc71XlDK8YLXH2U35cabYvpby8Gjy86Dm2n7Gyx43BWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe1+/pX/JpyzDL50e8bEfTDoRvJvlqo4la6Ej7jc/49AIhAPrREiVVo3ikVWNtXz+Kb7tvDoIRg1iZkNcaNXl1vWOw"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.3.1":{"name":"mongoose-history","version":"0.3.1","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.8.0"},"devDependencies":{"mocha":"*","should":"*"},"homepage":"https://github.com/rossan/mongoose-history","_id":"mongoose-history@0.3.1","dist":{"shasum":"af46449636fd40e9bd19f6b4b8103679a620ecbe","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.3.1.tgz","integrity":"sha512-3wJquaL1JAfnYYv9YSooeXykhXwxZVNYT9n0pOSReBxhFCKqWdkF1kE2of6C3wnAvSUXgTu/n9mOIeO8j55Tsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9+ScOiveiTH+X8MZmRJonc1Z25/1+zZWNq1gS1IiYCgIhALF76Zf56OoUViG4ZFl0tmyMdcEdq7ZqCH7i1lBXtayI"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.3.2":{"name":"mongoose-history","version":"0.3.2","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/rossan/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/rossan/mongoose-history/issues"},"dependencies":{"mongoose":"~3.8.0"},"devDependencies":{"mocha":"*","should":"*"},"gitHead":"d55afcd0ce67a6819100e7122efe0617cdf175bb","homepage":"https://github.com/rossan/mongoose-history","_id":"mongoose-history@0.3.2","_shasum":"4a9ff2815e32b5eb89702065c31cb88a655dd84e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"dist":{"shasum":"4a9ff2815e32b5eb89702065c31cb88a655dd84e","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.3.2.tgz","integrity":"sha512-aZBN3JX6JWKMIl+5y+PJqR5236ASFXxamVQPHXx4vPBjvNq2wiCv51sLDgMTd4LQ70XZGYbY+6+9yaVFACwBQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAoqrWvDlj69tPWlLh+A1arllHurOVUg81j5CIz0YOzAiEA68LTRc3EpQw/qWHB5infM31gwc0te/unQG6Ucwyu/Vg="}]},"directories":{}},"0.3.3":{"name":"mongoose-history","version":"0.3.3","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/nassor/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{"mongoose":"~3.8.0"},"devDependencies":{"mocha":"*","should":"*"},"gitHead":"07c524f101ba071c06d212e3b2d0112ecb33a30e","homepage":"https://github.com/nassor/mongoose-history","_id":"mongoose-history@0.3.3","_shasum":"817bd0f8a5469b8e1785d4bc744aab7eea9494cd","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"dist":{"shasum":"817bd0f8a5469b8e1785d4bc744aab7eea9494cd","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.3.3.tgz","integrity":"sha512-vD0LzOGXZn7Zd3r7W9dVu5FHmd7bFLIFCRXKDJMwzrIgSd9dmIiB3Lt603v9NavIvj93piBll/+YrgxuHyrXHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDEfYi6sCrjnUj4GMW9QcetdHoUYRIn0Iv5jZDykjKrAiEA/D7dmrbWO3YnTS0uLle+3W9CdKq/y3x5+MTK06oq1dc="}]},"directories":{}},"0.4.0":{"name":"mongoose-history","version":"0.4.0","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"github.com/nassor/mongoose-history"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{"mongoose":"~4.0.0"},"devDependencies":{"mocha":"*","should":"*"},"gitHead":"fd529d0258f6aa69d2e009009b4292e8ae56fadc","homepage":"https://github.com/nassor/mongoose-history","_id":"mongoose-history@0.4.0","_shasum":"2542ba61f28961a2b07f66f3ea72b0a5247d9601","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"shasum":"2542ba61f28961a2b07f66f3ea72b0a5247d9601","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.4.0.tgz","integrity":"sha512-A4qC7uxqASMO7qfEu4F8qK7oIw4SYuNnC+8taKFQZU9FPgc+uKUu5JijuWcTNZXFxibj8JVeBFS0/eFUH5CXcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBodyHkrweoCMUCs1ya9cwsPksEFO8fquOhCbWGl0o5gAiEAj+nVWYMzAHqdhFclZqSuNAyZbXX1G54HR8taDGSUUPc="}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.4.1":{"name":"mongoose-history","version":"0.4.1","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","files":["lib/"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{"mongoose":"~4.0.0"},"devDependencies":{"mocha":"*","should":"*"},"gitHead":"ff4be137715d7b824182950cbd121c484421ac6c","homepage":"https://github.com/nassor/mongoose-history#readme","_id":"mongoose-history@0.4.1","_shasum":"b86d758867589f0b4b16660902060c9a2fa45674","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"shasum":"b86d758867589f0b4b16660902060c9a2fa45674","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.4.1.tgz","integrity":"sha512-YOJg/QQfjVeyDYInYJ8PBLvn28uIfaVm8Ef4j5Aj9czBOVtVyC792/AHYZQ5MmNJmUyOnl/huOsa+XE1EEy43w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDahvDJv2e3QEiNxdZuKyzxyn8EYIvcM8pyBnGMbKhzCAIhAP/vxzDcsvdkBbsfsN2xdtYTTcs8qeCdDrPd5BNo5WYQ"}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.4.2":{"name":"mongoose-history","version":"0.4.2","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","files":["lib/"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{"mongoose":"^4.0.0"},"devDependencies":{"mocha":"*","should":"*"},"gitHead":"a7bead1bf798b3f744523e5fbd5ed15a5e6c6216","homepage":"https://github.com/nassor/mongoose-history#readme","_id":"mongoose-history@0.4.2","_shasum":"ac1fde8f86bcea196fb8d5ca56ff7ed07dd51ece","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"shasum":"ac1fde8f86bcea196fb8d5ca56ff7ed07dd51ece","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.4.2.tgz","integrity":"sha512-JIUJk7ZnnVxsfIhdhZ+LJIo/LWjfmRvtkyYTEDLe6wsgV6sGnZSTv6lwc3sIz90M/sPAfOHPmDijVMiQ37Si0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdSL4fDLtffjJPAUBq7EA1QsL5wRupdP4bmKGbpgV4ZwIhALhoidBVPLhms0Iipu+agf2oXQ/bWQI3YGWOpnHsZPsj"}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{}},"0.6.0":{"name":"mongoose-history","version":"0.6.0","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","files":["lib/"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com","url":"https://github.com/nassor"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"},{"name":"João Manoel Pampanini Filho","email":"joao.bontorin@gmail.com","url":"https://github.com/jmpf13"},{"name":"Sebastien Vaucouleur","url":"http://vaucouleur.com"},{"name":"Victor Parmar","url":"https://smalldata.tech"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{},"devDependencies":{"async":"^2.6.0","mongoose":"^4.0.0","mocha":"2.4.5","should":"8.2.2"},"peerDependencies":{"async":"^2.0.0","mongoose":"^4.0.0 || >=5.0.0"},"gitHead":"5e80b7094edd11b132b756f0849a8920cdea171d","homepage":"https://github.com/nassor/mongoose-history#readme","_id":"mongoose-history@0.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.5.0","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"integrity":"sha512-c5P8PG9THq35U0m64Y2pGrTklc7MkFOs3w69AfCGzagZCYjsdb+LcaZOvvJAfl/9jfQ7jukgZIlU7JOBhjyJDg==","shasum":"008c1240d9d4404b399adb3907665b93ae2019e8","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJcjW2eMv+6iiXjv2WYlv8zfcRJFu2S1gOJMzjxgSr+gIhAKyE/BZAd2oIxyx9v23Jav6PkfHF8fmyssDBNq5/N+uY"}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-history-0.6.0.tgz_1517835312504_0.22583432751707733"},"directories":{}},"0.7.0":{"name":"mongoose-history","version":"0.7.0","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com","url":"https://github.com/nassor"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"},{"name":"João Manoel Pampanini Filho","email":"joao.bontorin@gmail.com","url":"https://github.com/jmpf13"},{"name":"Sebastien Vaucouleur","url":"http://vaucouleur.com"},{"name":"Victor Parmar","url":"https://smalldata.tech"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{},"devDependencies":{"async":"^2.6.0","mongoose":"^5.0.0","mocha":"2.4.5","should":"8.2.2"},"peerDependencies":{"async":"^2.0.0","mongoose":"^4.0.0 || >=5.0.0"},"gitHead":"68e17e03ba9e262ab4499f56498a942ddc2590ad","homepage":"https://github.com/nassor/mongoose-history#readme","_id":"mongoose-history@0.7.0","_npmVersion":"6.4.1","_nodeVersion":"8.5.0","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"integrity":"sha512-utxz/hfldAToXudH+s9j2s0qy9RnPdMfFTjkzG4cCS4RzVJqcj9iCz3M/ToI91hTYQ4EiHacSgJVi6ruHWE81Q==","shasum":"4a5fda39216aab2a52a2f6c7481cb620e28474c9","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.7.0.tgz","fileCount":5,"unpackedSize":13221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb01gNCRA9TVsSAnZWagAA8nsP/3rmBTC5BCH9dtisYuBH\nPQCyKH5/dK5LlNYPngoojNmz8XeCqfVtS/wP43m9DyBRKezYi8SdAArm1WmD\nNaQo8Tpx/+InyEuvG3tlb+oDmhceHdEWv1jUtZ2pmJYFo88wKSpDKpBCL/SY\nRu9tsJCKdxzrb6HQkW2XUuzvx+rbuG+74IK0BaSDd29Qa2Zr42CvI/rP4jNK\nlsXn9JVT2zImq3Z2KWmVN3B1usq8Tr49Y1qi3GTENC9xHNysAQvGjDDSXNN3\nRjXT+ETdmhedUhYqHH00OfLXDW+id6tVZHD7CeYgAyICJ9zzRwPXMx037Pz7\nHRG8U3MdN+RyJLTxF0KRdgoh4HeC17iHwjQIXB1TMbKZaCz3UKoVjBTdNQZi\njxw1cfZih2Te0uLrkjjzT7iAvA1awM6Yie/cm4EGljXzaZL7axJoVALSEtwP\ne7cSs0qiFOX3naM2mpDy+x2Tyt524cBIiykMtIVk0EB6+yvedVqPgWAKRuS0\nqo2xsRKHysDJsxIVr7PG0/JgpRUjRjqEk+4EfZvIyh0RuiOFO6MLIHStr4Ik\nuOcTtPcBpglj7Ol74HpPjIrDgpAkrgoz83pCy4Qjfs5MjRJVbusRKb7V/9DS\nsTwJFxMArpmKZYxbyUO5SDwN6jrisb+71+745wSP7F8hVtai2HdR0brrcKxk\nsj1f\r\n=e5hx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsaCZx7R4TUvc90L5k9a4QwKNEivxDMTV8q6qhEJqs7AiEA/697HxR+F989ydjUZDFb+8HwMdwZhz06EHPTsmmBAMc="}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-history_0.7.0_1540577292564_0.570272019915756"},"_hasShrinkwrap":false},"0.8.0":{"name":"mongoose-history","version":"0.8.0","description":"Keeps a history of all changes of a document.","main":"lib/mongoose-history.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"keywords":["mongoose","history","safe","cqrs","backup"],"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com","url":"https://github.com/nassor"},"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"},{"name":"João Manoel Pampanini Filho","email":"joao.bontorin@gmail.com","url":"https://github.com/jmpf13"},{"name":"Sebastien Vaucouleur","url":"http://vaucouleur.com"},{"name":"Victor Parmar","url":"https://smalldata.tech"}],"license":"BSD-2-Clause","bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"dependencies":{},"devDependencies":{"async":"^2.6.0","mongoose":"^5.0.0","mocha":"2.4.5","should":"8.2.2"},"peerDependencies":{"async":"^2.0.0","mongoose":"^4.0.0 || >=5.0.0"},"gitHead":"c983faa3db234552492f8b8a3f4ee9a5f08561d6","homepage":"https://github.com/nassor/mongoose-history#readme","_id":"mongoose-history@0.8.0","_npmVersion":"6.4.1","_nodeVersion":"8.5.0","_npmUser":{"name":"nassor","email":"nassor@gmail.com"},"dist":{"integrity":"sha512-9ZaTXYbs3EpOl+dyPCCQtkbFUFPL1fw1BZ6qdRSP820BKEgdLp2JuQs6b6SBKZVkbn5TcQ2ZW2rxkghvYy8Q1Q==","shasum":"68383dbcfd428d05e4cbc3f8fbc454e1c5c34e4a","tarball":"https://registry.npmjs.org/mongoose-history/-/mongoose-history-0.8.0.tgz","fileCount":5,"unpackedSize":13899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb15OpCRA9TVsSAnZWagAAN4cQAJch8kYk4t0zWsxFL4tw\nyUjsEZ1eYvWd7abcOZKGzhRj5RH6T2BNcUF0LpUC9vUR25m0MUux3HZoWCUv\nGBrY77jMeKCNV3wh114uvUjZrPN3ZZFZk983SplyzzJeTrnFfxaBPAeywIr6\nhA/56ovvLiGJRWhPMQZ+ysFEJgQ5JNwQwNFLyk6bqW11yHnyjQWLRUrBv1Ib\n1HwzHh9F7Yj+YnRA0DcofwZsIgWXXViqw9zZsH8CgCIGoakssDEOpy0Y/1R5\nkm/JbduWzmXvR8DO0WiwMvxUt0MyLQVo+1ekJVNnjRpl4pde5C0v4YKn7HoM\nUadJNQtVQZYyizTwjMIHQeupjKSBMzF6EdqqZClP/x+XXhMe6hB2i72LIJd4\nhluS49QQM6JSvnpIo7VutiMuz4pNujREuLjaokBx0E5c0rkW+iq7a0R5o1EM\na89EMZCFJZxoBIgqXIhuHr4XuNRtqdRhf0xJ/iO+awefvAILC2cqRWwcU6Yz\n1rh74Os07l6++8+s8labeZc0ZYbDZq8ur068zTUM8g5fAlu11kJz+nG/Wl7k\nvgUow5swFQKnxH8m5o0Ieygv/jLJ7tocefNzSjtZvklZNLt8LAcUoBAnohLr\nPikza//j79J1qVGs/XMVuT4pf/9YupLq5EyIAUrOjPBCqWVtRLcebpHDe5lH\nYS4p\r\n=ejAc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnkBqJsDawc0C+DuFST3b2Qly9fiM+4JQ2wpl/l2O4nAiBo+Nb91MERA6ZMM8BF8zcdk78um6BgzTShb74OtWm6aA=="}]},"maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mongoose-history_0.8.0_1540854696860_0.25300959734765227"},"_hasShrinkwrap":false}},"readme":"# Mongoose History Plugin\n\n[![Build Status](https://travis-ci.org/nassor/mongoose-history.svg?branch=master)](https://travis-ci.org/nassor/mongoose-history)\n\nKeeps a history of all changes of a document.\n\n## Installation\n\n```bash\nnpm install mongoose-history\n```\n\nOr add it to your package.json\n\n## Usage\n\nFor starting history of your collection, you need to simply add the mongoose-history plugin:\n\n```javascript\nvar mongoose        = require('mongoose')\n  , mongooseHistory = require('mongoose-history')\n  , Schema          = mongoose.Schema\n\nvar Post = new Schema({\n    title:       String\n  , message:     String\n  , updated_for: String\n})\n\nPost.plugin(mongooseHistory)\n```\nThis will generate a log from al your changes on this schema.\n\nThe plugin will create a new collection with format: originalCollectionName +  **_history**, in example: __posts_history__. You can also change the name of the collection by setting the configuration customCollectionName:\n\n```javascript\nvar options = {customCollectionName: \"post_hst\"}\nPost.plugin(mongooseHistory, options)\n```\n\nThe history documents have the format:\n\n```javascript\n{\n    _id:  ObjectId,\n    t: Date // when history was made\n    o: \"i\" (insert) | \"u\" (update) | \"r\" (remove) // what happens with document\n    d: {  // changed document data\n        _id:         ObjectId\n      , title:       String\n      , message:     String\n      , updated_for: String\n    }\n}\n```\n\n### Indexes\nTo improve queries perfomance in history collection you can define indexes, for example:\n\n```javascript\nvar options = {indexes: [{'t': -1, 'd._id': 1}]};\nPost.plugin(mongooseHistory, options)\n```\n\n### Send history to another database\nYou can keep your history collection far away from your primary database or replica set. This can be useful for improve the architecture of your system.\n\nJust create another connection to the new database and link the reference in __historyConnection__:\n\n```javascript\nvar secondConn = mongoose.createConnection('mongodb://localhost/another_conn');\nvar options = {historyConnection: secondConn}\nPost.plugin(mongooseHistory, options)\n```\n\n### Store metadata\nIf you need to store aditionnal data, use the ```metadata``` option\nIt accepts a collection of objects. The parameters ```key``` and ```value``` are required. \nYou can specify mongoose options using the parameter ```schema``` (defaults to ```{type: mongoose.Schema.Types.Mixed}```)\n```value``` can be either a String (resolved from the updated object), or a function, sync or async\n\n```javascript\nvar options = {\n  metadata: [\n    {key: 'title', value: 'title'},\n    {key: 'titleFunc', value: function(original, newObject){return newObject.title}},\n    {key: 'titleAsync', value: function(original, newObject, cb){cb(null, newObject.title)}}\n  ]\n};\nPostSchema.plugin(history,options);\nmodule.exports = mongoose.model('Post_meta', PostSchema);\n```\n\n### Statics\nAll modules with history plugin have following methods:\n\n#### Model.historyModel()\nGet History Model of Model;\n\n#### Model.clearHistory()\nClear all History collection;\n\n## Development\n\n### Testing\n\nThe tests run against a local mongodb installation and use the following databases: `mongoose-history-test` and `mongoose-history-test-second`.\n\nCustom connection uris can be provided via environment variables for e.g. using a username and password:\n```\nCONNECTION_URI='mongodb://username:password@localhost/mongoose-history-test' SECONDARY_CONNECTION_URI='mongodb://username:password@localhost/mongoose-history-test-second' mocha\n```\n\n### In progress\n* Plugin rewriting.\n* update, findOneAndUpdate, findOneAndRemove support.\n\n## TODO\n* **TTL documents**\n\n## LICENSE\n\nCopyright (c) 2013-2016, Nassor Paulino da Silva <nassor@gmail.com>\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\nRedistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\nRedistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","maintainers":[{"name":"nassor","email":"nassor@gmail.com"}],"time":{"modified":"2022-06-20T07:16:45.633Z","created":"2013-10-06T17:33:51.266Z","0.0.1":"2013-10-06T17:34:13.803Z","0.0.2":"2013-10-06T21:38:30.086Z","0.0.3":"2013-10-06T21:42:41.374Z","0.1.0":"2013-10-09T08:27:19.754Z","0.3.1":"2014-04-08T21:01:36.283Z","0.3.2":"2014-09-19T22:04:39.995Z","0.3.3":"2014-11-28T09:14:53.359Z","0.4.0":"2015-04-16T04:51:08.520Z","0.4.1":"2015-08-04T21:43:25.613Z","0.4.2":"2015-10-07T03:08:52.855Z","0.5.0":"2016-02-13T08:34:31.140Z","0.6.0":"2018-02-05T12:55:13.461Z","0.7.0":"2018-10-26T18:08:12.697Z","0.8.0":"2018-10-29T23:11:36.987Z"},"author":{"name":"Nassor Paulino da Silva","email":"nassor@gmail.com","url":"https://github.com/nassor"},"repository":{"type":"git","url":"git+https://github.com/nassor/mongoose-history.git"},"homepage":"https://github.com/nassor/mongoose-history#readme","keywords":["mongoose","history","safe","cqrs","backup"],"contributors":[{"name":"Christopher Britz","email":"britztopher@gmail.com","url":"https://github.com/britztopher"},{"name":"Allan Nienhuis","url":"https://github.com/allannienhuis"},{"name":"João Manoel Pampanini Filho","email":"joao.bontorin@gmail.com","url":"https://github.com/jmpf13"},{"name":"Sebastien Vaucouleur","url":"http://vaucouleur.com"},{"name":"Victor Parmar","url":"https://smalldata.tech"}],"bugs":{"url":"https://github.com/nassor/mongoose-history/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md","users":{"kukulili-labs":true,"brend":true,"hypersprite":true}}