{"_id":"gerrit-event-emitter","_rev":"26-9bea97f2310217fc8b271fe7dd3a07c1","name":"gerrit-event-emitter","time":{"modified":"2022-06-18T07:43:28.012Z","created":"2014-04-18T11:22:28.744Z","0.1.0":"2014-04-18T11:22:28.744Z","0.1.1":"2014-04-18T14:42:57.376Z","0.1.2":"2014-04-19T02:57:16.310Z","0.1.3":"2014-04-19T04:16:06.462Z","0.1.4":"2014-04-28T13:53:08.690Z","0.1.5":"2014-07-29T03:35:10.909Z","0.1.6":"2019-03-09T03:11:01.453Z","0.2.0":"2019-03-09T03:11:56.746Z"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"description":"A thin wrapper of gerrit-stream.","readme":"# gerrit-event-emitter [![Build Status](https://secure.travis-ci.org/shiwano/gerrit-event-emitter.png?branch=master)](http://travis-ci.org/shiwano/gerrit-event-emitter)\n\nA thin wrapper of [gerrit-stream](https://github.com/fivetanley/gerrit-stream) for Node.js.\n\n## Getting Started\nInstall the module with: `npm install gerrit-event-emitter`\n\n```javascript\nvar GerritEventEmitter = require('gerrit-event-emitter').GerritEventEmitter,\n    gerritEventEmitter = new GerritEventEmitter('gerrit.example.com', 29418);\n\ngerritEventEmitter.on('patchsetCreated', function(eventData) {\n  // do something.\n});\ngerritEventEmitter.start() // start gerrit-stream process.\n```\n\n## Documentation\n\nThe `GerritEventEmitter` class inherited from [EventEmitter2](https://github.com/hij1nx/EventEmitter2).\nSo you can use EventEmitter2 methods basically.\n\n### Constructor\n\n```javascript\nnew GerritEventEmitter(host, port, [, enabledAutoRestart ]);\n```\n\n### Available events\n\n* `patchsetCreated`\n* `changeAbandoned`\n* `changeRestored`\n* `changeAbandoned`\n* `changeRestored`\n* `changeMerged`\n* `commentAdded`\n* `refUpdated`\n* `gerritStreamWrite`\n* `gerritStreamEnd`\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n * 2019-03-09   v0.2.0   Fix the failure to parse a JSON string sometimes.\n * 2014-07-29   v0.1.5   Fix process stop bug\n * 2014-04-28   v0.1.4   Support auto restart and gerrit-stream events.\n * 2014-04-19   v0.1.3   Add start/stop methods.\n * 2014-04-19   v0.1.2   Fix dependencies.\n * 2014-04-18   v0.1.1   First release.\n\n## License\nCopyright (c) 2014 Shogo Iwano\nLicensed under the MIT license.\n","versions":{"0.1.1":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.1","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shiwano/gerrit-event-emitter/blob/master/LICENSE-MIT"}],"main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.4","chai":"~1.9.1","sinon":"~1.9.1"},"keywords":[],"dependencies":{"eventemitter2":"~0.4.13","inflection":"~1.3.5","gerrit-stream":"0.0.1","grunt-mocha-cli":"~1.8.0"},"_id":"gerrit-event-emitter@0.1.1","dist":{"shasum":"f073cb1c8d0fc2ccd9e22927e758b85bd636f84d","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.1.tgz","integrity":"sha512-xYjRofwMQp3veB0xBTFFd1jbWPNxrXkUA4GxKq6z40MT6BV8Bs8jkF9kcMeQI8HDIVaHHfcN2dHRwySHWIdqFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZKS/0utQZ09R1trPhcMpPBTZsqcjKOeL6mDeL7P8AtgIgaoEnkhj7LWDsrZRYEUhQL3T+Ge0So5+KgeIG9Yrly34="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"directories":{}},"0.1.2":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.2","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shiwano/gerrit-event-emitter/blob/master/LICENSE-MIT"}],"main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.4","chai":"~1.9.1","sinon":"~1.9.1","grunt-mocha-cli":"~1.8.0"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~0.4.13","inflection":"~1.3.5","gerrit-stream":"0.0.1"},"_id":"gerrit-event-emitter@0.1.2","dist":{"shasum":"6d9d977f81161c7119af9e0e5d611ce27010eb23","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.2.tgz","integrity":"sha512-8YRREGIABVKNF7hK3qJPpR/O6vr7aAhcLcJsb4O6KsU9Q5iuwT+71vql+biGBfoxlViihjrzWb0eCaghZQk8Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwt6BSS0ibdpo5fyFA4DQ5TlV94PMls5iVaircikFaCAiAlXQ5I4uQCMm6DLRShwTfSC19yd56yYv2K3QyfeZnaFg=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"directories":{}},"0.1.3":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.3","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shiwano/gerrit-event-emitter/blob/master/LICENSE-MIT"}],"main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.4","chai":"~1.9.1","sinon":"~1.9.1","grunt-mocha-cli":"~1.8.0"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~0.4.13","inflection":"~1.3.5","gerrit-stream":"0.0.1"},"_id":"gerrit-event-emitter@0.1.3","dist":{"shasum":"206cc85f7e25eed026b16426ed94e6f21833c049","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.3.tgz","integrity":"sha512-jsG6nnJwbGbml6JjfL/WtkZmC81EyWQ88H0BLV//Pb6ZSFCn7P+BbW9oKduaAxe5JDZqjYc8vT7biAtLydgyyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRnO9ZN5NkbPse8tMUxOuVlNh9k2zQLLzZlG+E1voGMwIhAMLDGf8Lm9S5ctQkCvP63NoDvYc02zcr3ObaF6pZH3Rd"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"directories":{}},"0.1.4":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.4","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shiwano/gerrit-event-emitter/blob/master/LICENSE-MIT"}],"main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.4","chai":"~1.9.1","sinon":"~1.9.1","grunt-mocha-cli":"~1.8.0"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~0.4.13","inflection":"~1.3.5","gerrit-stream":"0.0.1"},"_id":"gerrit-event-emitter@0.1.4","dist":{"shasum":"81187e6b4f788f049cc3d0cac9a8550588403519","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.4.tgz","integrity":"sha512-aM6OHQGkMWspkGg+t0cVDpl38vvhPchT+uKRNKaAXktU6K7oI+SwSSJERk6+Oul2eIqdrvJJo6rPOcyBy/sUYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQezbWAWtLugxmr/X+j44KXkozZHQFoRWUEZzMziLImgIgCRK4zQt3LaFRHYM4IDh/5kVovAdGXSsgTdly2gs8i3U="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"directories":{}},"0.1.5":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.5","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shiwano/gerrit-event-emitter/blob/master/LICENSE-MIT"}],"main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.4","chai":"~1.9.1","sinon":"~1.9.1","grunt-mocha-cli":"~1.8.0"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~0.4.13","inflection":"~1.3.5","gerrit-stream":"0.0.1"},"_id":"gerrit-event-emitter@0.1.5","dist":{"shasum":"dcf9f716b2b7e0bc8facf716a62e71cea9fb700a","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.5.tgz","integrity":"sha512-EfuAwlmtkjdF3d7y2iUWPeMKEl1Z4tXvH3DHXq5XGzgXsHkfsrxj93AtqcWT27BgDXnq/4MxZJBzuP/htXACEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY+nIeaA+hyk4d65yI/J2BgUiet+6stu9vW0rFroSLfAIhAIq8E9eprOJrujyctpvnk3XJD6norWXS+uyE8bzsPAu+"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"directories":{}},"0.1.6":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.1.6","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"license":"MIT","main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"$(npm bin)/grunt test"},"devDependencies":{"chai":"~4.2.0","grunt":"~1.0.3","grunt-contrib-jshint":"~2.0.0","grunt-contrib-nodeunit":"~2.0.0","grunt-contrib-watch":"~1.1.0","grunt-mocha-cli":"~4.0.0","sinon":"~7.2.7"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~5.0.1","inflection":"~1.12.0","gerrit-stream":"0.0.1"},"gitHead":"78ea23864f9ae5d7e6885dda9e947da0565d3fef","_id":"gerrit-event-emitter@0.1.6","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"dist":{"integrity":"sha512-4S5ctZtVbtMirT3BzHdHpyWbereOZl6Z6PLUzO277yuZrc6CvLy4aSaVhhx2rgGSePpcW9xka2i9a1Pb4tQcCw==","shasum":"64dffc56282b721a66145098a61d83841f1c4656","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.1.6.tgz","fileCount":8,"unpackedSize":11346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgy7GCRA9TVsSAnZWagAA2P4P/j839USTHgcnE0iPymZP\nv+HB4/hiAu64+Xz7LcWvOBfvK6wuwt1KPVUHzYl9rqajMVxCnp9Yba1P6/D6\ncn4gZBD5EuOF8SUJzwD71Wc3CQuTHPR1Exj0VEh3LD04b/hhCPtXRZ9Whdob\ngUABin4m/APanJOhMeWabgLReUxelfXKjQAmpiSaqJU+JtOdHGYr6ovbwXcn\ntnA7b4kY5e3YkAobKLDBhm1uZFmYg8Qt3pOe547xclJZWLx8/dV92BXll9Vf\nq15aDaRLcVS3CoYAh37cMgyU2UCaYttf+O8kP28VXSsEIQ7aLi34YtodT7aT\nMrTNw7t1ERvrGHzqjnsg/YQ6kSUu9vlELjm21HYu9aWXFUSjwLVyLBHR3Dpt\n3O+PEUxaF8RjLIG8O77wIBjB7l9Nijm8f9a9u5CYVqsQnb+2Uc8YRlEr7P5k\nyuW/1kbMBS/eXhOVLQ3PC4q0YYESv7kVghGtthtkXbX8VemUg641s41Q4/ft\neMljfDSVWUWPbZsMlilOhBKK6Qrpoqzzlu4smO3VCvABh8PUD12T0Xj1rVLC\nSIW/dscAjpacuVlQ7GBOaIrzBPDPRtpIi6n9R6l+CldCPCz8iJVNY6/oufwy\nr1rVCInskgcSKxOn44xoSm3Z2NBjinv+6IfHM6Ss+sGO9FsgKdeWd/oAo6lu\n2mGe\r\n=FoJf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW+fHOrLu1pHuez0T01J9HaGkAUeZd0tUy3AA5gIDJBwIgUfOOamWT8h1896MmQ7OBK76gSHM/LBNY+ZXcmIi5Eq4="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gerrit-event-emitter_0.1.6_1552101061256_0.6298972645104057"},"_hasShrinkwrap":false},"0.2.0":{"name":"gerrit-event-emitter","description":"A thin wrapper of gerrit-stream.","version":"0.2.0","homepage":"https://github.com/shiwano/gerrit-event-emitter","author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"license":"MIT","main":"lib/gerrit-event-emitter","engines":{"node":">= 0.8.0"},"scripts":{"test":"$(npm bin)/grunt test"},"devDependencies":{"chai":"~4.2.0","grunt":"~1.0.3","grunt-contrib-jshint":"~2.0.0","grunt-contrib-nodeunit":"~2.0.0","grunt-contrib-watch":"~1.1.0","grunt-mocha-cli":"~4.0.0","sinon":"~7.2.7"},"keywords":["gerrit"],"dependencies":{"eventemitter2":"~5.0.1","inflection":"~1.12.0","gerrit-stream":"0.0.1"},"gitHead":"c7cfe63fbd4255c7ece949978372ff82e24d6cc1","_id":"gerrit-event-emitter@0.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"shiwano","email":"shiwano@gmail.com"},"maintainers":[{"name":"shiwano","email":"shiwano@gmail.com"}],"dist":{"integrity":"sha512-MHg9/xFRNuoXAYWEEsDJhUBxmpWdcG9srWk/thAVjKTtr3Okuhu/NI8Uc4QLdoxHlcd5wPGf69B1PELjtqX4zA==","shasum":"1a73ca6bf8c1663f2fee263fb93d159d745d011b","tarball":"https://registry.npmjs.org/gerrit-event-emitter/-/gerrit-event-emitter-0.2.0.tgz","fileCount":8,"unpackedSize":11346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgy79CRA9TVsSAnZWagAALOEP/jR1x9DTioREDU8D7zD5\n1Ezc1HgudK+ZP0RYW+CmZms+40LnnVHMZz0S4eiEQZrphmHbsfRJ8/s0vsWG\nIyZXnjAuAh/6Nzx5v6xJ3+apLFBsHUqiK8oT8WuKMEhsvoCf/bZdD0SODB8C\nID1v8Ra2aQzADGM2uwfyjcM5Zhp99hAUWdN/8Bt4ImcVA9EFFlHMSlLt2inU\nSq1jpX9fjx81n+LxLS7UY4GVNuFcw/4Gp6BkluRTfJvOPASzgldvXnQqOS+D\nZbUWQnJNOoiVicC1sVvalHJZ31vyJZPxUd48KesqOXkETloKbHOjFOxH+2gx\nwirEA3FYUYLrHz2iI0PUwUh7/HluktVdyaxSiXgSjdM8JqrkASUoqQi08Lsr\nPyUPLpBi4VmyxbzI8r/8Qh5toR7J40RGk5OrOOtNzturWHD8WMctRSWsdQRK\nKUuZHY4vUPPUgCg7MuFUml/O6PbbmFz7MXejE55A66Ibu8z2Fhxd/OChwmVI\n8rxE1cOd4ZWEyKl84jdN/i5hDIznbQ+LW7Vahhl2WnXLsGdITF462wEw3Q7G\niNRf+VgsJ4GaYtyHfD8jfhVQyXWfqStw0N45RE5pRFfb4Rk2m+SKzbBNPX0r\nIi8UePUs0bRgS48/yPE8ZbhZKSMOLAD5bAJEDxfsewLg53GC9vcba2QzRRiE\n7MCC\r\n=DvmK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaP+BSUzOq7Qo+lrZEm85MLK4CcFYEddfOyduck1K4cAiBt8+m8kr2fsW7UnpB2WpBKlewaNUWQhC55uyKH82WpHQ=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gerrit-event-emitter_0.2.0_1552101116607_0.27321517305683507"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"0.2.0"},"readmeFilename":"README.md","homepage":"https://github.com/shiwano/gerrit-event-emitter","keywords":["gerrit"],"repository":{"type":"git","url":"git://github.com/shiwano/gerrit-event-emitter.git"},"author":{"name":"Shogo Iwano","email":"shiwano@gmail.com"},"bugs":{"url":"https://github.com/shiwano/gerrit-event-emitter/issues"},"users":{"romansaveljev":true},"license":"MIT"}