{"_id":"calamity","_rev":"43-63e41c507d5522397f436fc0dce8bc10","name":"calamity","description":"An event bus library for event-driven applications.","dist-tags":{"latest":"0.5.0-rc.7"},"versions":{"0.1.0":{"fullname":"CalamityJS","name":"calamity","version":"0.1.0","description":"EventBus","homepage":"https://bitbucket.org/kennethjor/calamityjs","bugs":{"name":"https://bitbucket.org/kennethjor/calamityjs/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"files":["calamity.js"],"main":"calamity.js","repository":{"type":"hg","url":"https://bitbucket.org/kennethjor/calamityjs"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamityjs/raw/default/LICENSE"}],"dependencies":{"underscore":">= 0.3.0"},"devDependencies":{"grunt-contrib-coffee":">= 0.3.2","async":">= 0.1.22"},"_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"_id":"calamity@0.1.0","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"7ae445fee51f87aa3d1cb77f9bdd6c3984b6f81d","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.1.0.tgz","integrity":"sha512-4hRATCin3L9C5fkyh1xmjbGorLuGKZZICu4rJbvewlWOvU+Qf1863BQF9XtfpfxWrNEVLdUi3tMMkurv8YabMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChXL39rzRmgsaZ003dboAlRBRjmd9w1pw8ztvZ0UElUQIgIrUI4W3s23djjzMORvK9/MzSNOpeLFjHEqijpWt3tg0="}]},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.1.1":{"fullname":"CalamityJS","name":"calamity","version":"0.1.1","description":"EventBus","homepage":"https://bitbucket.org/kennethjor/calamityjs","bugs":{"name":"https://bitbucket.org/kennethjor/calamityjs/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"https://bitbucket.org/kennethjor/calamityjs"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamityjs/raw/default/LICENSE"}],"dependencies":{"underscore":">= 0.3.0"},"devDependencies":{"grunt-contrib-coffee":">= 0.3.2","async":">= 0.1.22"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md"],"_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"_id":"calamity@0.1.1","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"97718d860126dfa7e6e825ebc72a5aac0e241e30","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.1.1.tgz","integrity":"sha512-sDuHWoac7/V6oYhTxf2lAQycQTUVn19jPSVSu6+HDPrsyhpjbcn0f/U15v54f+kt50RhWWVtbaVTkSYfDSVOuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOuJdaBei8zrykwWhYPaTUVEkMuhh9fUN6iixllJgKJAiBUFrSs9r/vsjDmixp1bXjwd/JtWO2ur0CCyk6hBF6tYQ=="}]},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.2.0":{"fullname":"CalamityJS","name":"calamity","version":"0.2.0","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamityjs","bugs":{"name":"https://bitbucket.org/kennethjor/calamityjs/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamityjs"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamityjs/raw/default/LICENSE"}],"dependencies":{"underscore":">= 0.3.0"},"devDependencies":{"grunt-contrib-coffee":">= 0.3.2","async":">= 0.1.22"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md"],"_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"_id":"calamity@0.2.0","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"94e4a3238c753cbf34336c63463e5a55ccfe0fdf","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.2.0.tgz","integrity":"sha512-rRUpzMiuX5ebQUHXZtYWflTX0Nx9jYISQx8oqZ3Y8GISdrtZel8I1UPAL+mwEtsmZD8ymcUQd7vpBnBPiXa7Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ29AImrItOqrzlU6FRO9YLvASxwhOfLSchmD4LVxcDgIgfdpPeDO+q89AONlI+n4ynNDBTexKw1Pj6WsahSUAlL8="}]},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.3.0":{"fullname":"CalamityJS","name":"calamity","version":"0.3.0","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamityjs","bugs":"https://bitbucket.org/kennethjor/calamityjs/issues","author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamityjs"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamityjs/raw/default/LICENSE"}],"dependencies":{"underscore":"~ 1.4.3"},"devDependencies":{"grunt-contrib-coffee":"~ 0.3.2","async":"~ 0.1.22","grunt-browserify":"~ 0.1.2","grunt-jasmine-runner":"~ 0.6.0","sinon":"~ 1.5.2"},"scripts":{"prepublish":"grunt && ./docs.sh"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md","docs"],"_id":"calamity@0.3.0","dist":{"shasum":"d2cf5ae9ebd848d7e4682d01b6de6749b176d217","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.3.0.tgz","integrity":"sha512-O1zd7lOFvOaPHrg7TuW2OkEhNf+bGxk4uiyQ8viWG7Xqd1+euCqf6RA9bt2wPQZ8F6h++5vo2gonc0IEkxmvWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqXjZxZwRGvQfWegOKv+BZGUZGFGpFyu6sc3weMuOM2wIgUIs3EPBA+iXvsk2E6Mw6RvVsodoWaiK8tEmm9iH8DLc="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.3.1":{"fullname":"Calamity","name":"calamity","version":"0.3.1","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":"https://bitbucket.org/kennethjor/calamity/issues","author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":"~ 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","async":"~ 0.1.22","jessie":"~ 0.4.2","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md","docs"],"_id":"calamity@0.3.1","dist":{"shasum":"cca9fb1cd9aa6c8675ead03be77302eff97806f5","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.3.1.tgz","integrity":"sha512-fVwE1OE6GX5AVI7MnQZUcprSav0aQJVVNDqGjAHr5pwV2cG3EBjLULr0LUkwa81S++tlRbOEdeEkTq0BrK4FEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCecZ0aNlK98QaxHPGqdXTJZE0VDxME5Ubvqm0bDwSVcAIgYTzozT+I3aJlh8MgsPcCBYheJzNCR7Kt726gfeuC5j8="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.4.0":{"fullname":"Calamity","name":"calamity","version":"0.4.0","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","async":"~ 0.1.22","jessie":"~ 0.4.2","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md"],"_id":"calamity@0.4.0","dist":{"shasum":"7364b015b92286f608d5227653c99093f80aea1b","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.4.0.tgz","integrity":"sha512-TiaOqoeO6qZQtzNStpYPJK8n/NZr1loO9yQFxIw5rBVoI6M0G1ts2HpaCrt09GbigpJDCa1+hVa0j5IyWqQNlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxt3X4Iqin64Kwurm+rodGelfb5HVUVfIbF+MJIHS+lQIgbvFbzt0OF0OLy4ApBToCmsLX9ZdLDEz/RvcLx0xmikE="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.4.1":{"fullname":"Calamity","name":"calamity","version":"0.4.1","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","async":"~ 0.1.22","jessie":"~ 0.4.2","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"files":["calamity.js","calamity-min.js","package.json","LICENSE","README.md","CHANGELOG.md"],"_id":"calamity@0.4.1","dist":{"shasum":"ef05ed0f2b1c035f95952a3a714d48691db3d594","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.4.1.tgz","integrity":"sha512-j8TjGWLHGoFMvs9ur+8wDhutL3j/qnjgjcA6Cl5EyFKDy4KUA/F4DAoPyn9uVc6Ts3qQemVyZLoFnluesz7slw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHac31CvReWI4Qge6Y4AtfGDnCxjOk5x2upy6YGS/eZnAiB6l/dnDyvyoQS68GSrETptc6Vxp7wSfa/LkZPy11wFSw=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"directories":{}},"0.5.0-rc.1":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.1","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","async":"~ 0.1.22","jessie":"~ 0.4.2","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.1","dist":{"shasum":"8ce90e8982bf7d9314d64e01f398924771371b98","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.1.tgz","integrity":"sha512-G45P5eymMS8jFrKpnz+YDeJOw/eGDY5qx6HaZ4tP5lb1ZeapjXd6G1j1zdvhfpQPJU2pSlrwbTV3fAIafZG3Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZ6lC9ZESynL5i3nVtWcpoZOMtZ1eAbe77h0ksX3mgsAiBqyFbtqtOymNU8TAe+KacFDWE+Dg1aa710HMPtDgx7rQ=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}]},"0.5.0-rc.2":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.2","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","async":"~ 0.1.22","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.2","dist":{"shasum":"834352e5747737f6422bac3e95428bca07ef81a7","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.2.tgz","integrity":"sha512-rbkZQGdabdgblcSLhPYtalVrR7EuYasxc0rGgIZL+L4AkdOU48n66axJ98Qv/7heLw12vW0t2JYa3v4NIx+2Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK9Qk2qoYXgRtnwQudvgzWPtznzrgouhls+KC//tAV1AIhAJEKYH3kY8CYw7uxFy4d+bG44eOr0IL3jIdH9P27TTxk"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}]},"0.5.0-rc.3":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.3","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","async":"~ 0.1.22","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.3","dist":{"shasum":"f996447354b24215c4be842e2efbcb6cfd28075d","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.3.tgz","integrity":"sha512-+hKbqapShMdfzxDhru3utnKcxPEtUkb9Wq4JEJDyfRU4sc9NuSyM0Yj/iw7JBqPUV/mz2/UZimpaYyXGt5bxTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDojZ67W11faK1JrAW0tDC6YtWTW7OHeheowbaZjzURAIgTjefIRGTea2lNcw8UVXI7s9H33O9Q2MhOgaBh/3hoNA="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}]},"0.5.0-rc.4":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.4","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","async":"~ 0.1.22","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.4","dist":{"shasum":"cba6150c8cc15d429c4b220791204364b51c49bb","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.4.tgz","integrity":"sha512-ibuxcHJBHKiW6gO65FpzjKvIwJL0izRWjAnsnD9YpyRfxizL4+mfpl5ETFEmeQ/xtxzeCg1UQqPhtoF3I0ql1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA09Y+iEjM3eMRW3b3TrZzHGhXgE+KIjotQ01zUUI4iuAiEAwyjkeZX8QVOgDOrdP9sn/XP+dWeg55ZtApAkEtrfg78="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}]},"0.5.0-rc.5":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.5","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","async":"~ 0.1.22","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.5","dist":{"shasum":"6b883051a00c7255874cbc64a067b91f43117b4e","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.5.tgz","integrity":"sha512-Ks4np3nos1zxgg5+NV5FK+qdW1wH0zLl4C01Cw7SY/sr0tbaWiBxh7/DW0itgdsyvG7L0ttBL6dMaUzUvddWkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFuIwbtuTmp4dkkGdlrD3tUfLUlVJRIPKQZBNpIxpEHAiAmq1RGl2pz0mtq/9Zt4ibW5PNzu7yES+nYHPLnagU3Kw=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}]},"0.5.0-rc.6":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.6","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","bugs":{"url":"https://bitbucket.org/kennethjor/calamity/issues"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":">= 1.4.4"},"devDependencies":{"grunt":"~ 0.4","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","async":"~ 0.1.22","sinon":"~ 1.6.0","doxx":"~ 0.5.9"},"_id":"calamity@0.5.0-rc.6","_shasum":"fd99b2e6160696de2f56ddc8bda23d00994bb9ac","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"dist":{"shasum":"fd99b2e6160696de2f56ddc8bda23d00994bb9ac","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.6.tgz","integrity":"sha512-sdXrmQNPqO+0G6wPPRl/6D4/ppGINrKEwjPr25mbIfbLdp8GP5DXW7GwiIDY6yveKVQjHWophDUEu4bKQIk7xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBU0iSD3XICNbID3/8vwXh0J896kRFcQqQPgWsfJDpTrAiEAugKWcO30S1ngMRN3khq5EGCfHD9sH1TmVBIT+nghs40="}]}},"0.5.0-rc.7":{"fullname":"Calamity","name":"calamity","version":"0.5.0-rc.7","description":"An event bus library for event-driven applications.","keywords":["events","pubsub"],"homepage":"https://bitbucket.org/kennethjor/calamity","author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"main":"calamity.js","repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"licenses":[{"type":"MIT","url":"https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE"}],"dependencies":{"underscore":"^1.6.0"},"devDependencies":{"async":"~ 0.1.22","doxx":"~ 0.5.9","grunt":"~ 0.4","grunt-contrib-coffee":"~ 0.6.0","grunt-contrib-concat":"~ 0.1.3","grunt-contrib-nodeunit":"~ 0.1.2","grunt-contrib-uglify":"~ 0.2.0","grunt-contrib-watch":"~ 0.3.1","grunt-jessie":"~ 0.0.1","sinon":"~ 1.6.0"},"_id":"calamity@0.5.0-rc.7","_shasum":"7a50f9b888ba1318496bef42d6c9aa222b931946","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kennethjor","email":"kennethjor@gmail.com"},"maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"dist":{"shasum":"7a50f9b888ba1318496bef42d6c9aa222b931946","tarball":"https://registry.npmjs.org/calamity/-/calamity-0.5.0-rc.7.tgz","integrity":"sha512-4qjRp1oZu1btDEQ5syJWwzsc/ZBTK9IzI5AzNfAy4nwAiiJ/l2K3sXNViKgMIWXv2t9RtqnLHLoDegJk8UK0Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdg6wValhA5z49NMUMxGo6rSgH0CtzhY48Ij0qyM3fswIgGxjCV/lYCbvbSYgJkgwluXQCGOWJRe1s3VHiU618a+0="}]}}},"readme":"# Calamity\nCalamity allows you to drive your application through a global event bus, facilitating loosely-coupled event-driven architectures.\nAvailable via [npm](https://npmjs.org/package/calamity): `npm install calamity`.\n\n# Local event busses with `emitter()`.\nLocal event busses are used on individual classes and objects to allow them to publish events others can subscribe to.\nWhen attaching a local event bus, two methods are made available: `on()` and `trigger()`.\n\n## `on(address, handler(msg) )`\nAttaches the function `handler(msg)` to be executed when `address` is triggered.\nWhen `handler` is executed, Calamity will automatically bind its execution to the subscribing object.\n\n## `trigger(address [, data [, replier(reply) ] ] )`\nTriggers any handlers attached to `address`.\n`data` is an arbitrary object which will be provided to the handler via its message.\n`replier` is a secondary handler function which will be executed in case the main handler executes a reply (more on this later).\n\n## Local events example\nConsider this imaginary `View` class:\n\n    :::coffeescript\n    Calamity = require \"calamity\"\n    _ = require \"underscore\"\n\n    class View\n    \tCalamity.emitter @prototype\n\n    \trender:\n    \t\t@trigger \"beforeRender\"\n    \t\t_.defer =>\n    \t\t\t# Real render code ...\n    \t\t\t@element.find(\"#closeButton\").click =>\n    \t\t\t\t@trigger \"closeButtonClicked\"\n    \t\t@trigger \"afterRender\"\n\nNow using the `on()` method, any code with a reference to the view can subscribe to events coming out of it.\nIn this example we can act on the view starting and finishing its render routine.\nAdditionally, the view attaches to the click event on a DOM element, propagating it to a Calamity event on the view itself, thereby abstracting it away.\n\n    :::coffeescript\n    view = new View()\n    view.on \"closeButtonClicked\", ->\n    \tview.hide()\n\n# Global event bus with `proxy()`\nA more powerful example of Calamity is using it as a global event bus which spans your entire application.\nThe global event bus proxy attaches three methods: `subscribe()`, `publish()` and `send()`.\n\n## `subscribe( address, handler(msg) )`\nAttaches the function `handler(msg)` to be executed when messages are published or sent to `address`.\nWhen `handler` is executed, Calamity will automatically bind its execution to the subscribing object.\n\n## `publish( address [, data [, replier(reply) ] ] )`\nSends a message to `address`.\n`data` is an arbitrary object which will be provided to the handler via its message.\n`replier` is a secondary handler function which will be executed in case the main handler executes a reply (more on this later).\n\n## `send( address [, data [, replier(reply) ] ] )`\nWorks exactly like `publish()` with the notable difference that only one subscribing handler will be executed.\nThis is useful for sending commands instead events.\n\n## Global events example\n\n    :::coffeescript\n    Calamity = require \"calamity\"\n    class Foo\n    \tCalamity.proxy @prototype\n\n    \tconstructor: () ->\n    \t\t@subscribe \"address\", @handler\n\n    \thandler: (msg) ->\n    \t\t# Proxy automatically handles binding to this.\n    \t\t@data = msg.data\n\nNow, whenever any object publishes a message to the `foo:bar` address, handler will be called and you can react on it.\n\n# Events and commands\n*Events* tell of something which happened and are transmitted using `trigger()` and `publish()`.\nNormally events will not be replied to and will originate from a single source.\n\n*Commands* are instructions to perform an action and are transmitted using `send()`.\nThe local events mixin does not include a mechanism for sending commands.\nCommands are much more likely to send replies than events, as they often need to report on their progress.\nCommands will usually only be subscribed to by a single object type, and be sent from many.\n\nWithin Calamity there is no real difference between an event and a command, other than the method used for sending it.\nBoth of them use the `EventMessage` class to contain themselves.\n\n# Working with messages\nWhen subscribing to an address, the attached handler is expected to accept a single argument: an `EventMessage` object.\nThis object encapsulates the entire message and everything that can be done with it.\n\n## EventMessage properties\nThe following properties are available on `EventMessage`:\n\n* `msg.address`: The address the message was sent to.\n* `msg.data`: The raw data object supplied on creation.\n* `msg.status`: The status of the message. This can beeither \"ok\" or \"error\". Error is used by `replyError()`. To check for erros, `isError()` should be used.\n* `msg.error`: If `msg.status` is \"error\", this will contain the error supplied to `replyError()`.\n\n## EventMessage methods\nThe following methods can be used to interact with the message:\n\n* `getOptional( param, default )`: Returns a value from `msg.data`. If the value does not exist, the supplied `default` is returned.\n* `getRequried( param )`: Returns a value from `msg.data`. IF the value does not exist, an `Error` is thrown.\n* `reply( data[, replier(msg) ] )`: Sends a reply to the sender.\n* `replyError( error[, replier(msg) ] )`: Sends an error reply to the sender.\n* `isError()`: Returns true if the message represents an error. The supplied error is available via `msg.error`.\n\n# Replying to messages\n\n# License\nCalamity is licensed and freely distributed under the [MIT License][mit]\n\n[mit]: https://bitbucket.org/kennethjor/calamity/raw/default/LICENSE \"MIT License\"\n","maintainers":[{"name":"kennethjor","email":"kennethjor@gmail.com"}],"time":{"modified":"2022-06-13T05:25:05.423Z","created":"2012-11-12T03:40:17.793Z","0.1.0":"2012-11-12T03:40:19.903Z","0.1.1":"2012-11-12T04:02:50.203Z","0.2.0":"2012-11-14T02:04:58.913Z","0.3.0":"2013-01-29T08:52:29.121Z","0.3.1":"2013-03-17T16:43:18.358Z","0.4.0":"2013-06-26T08:13:52.449Z","0.4.1":"2013-07-10T08:41:58.099Z","0.5.0-rc.1":"2013-07-19T07:35:52.903Z","0.5.0-rc.2":"2013-08-09T07:47:46.887Z","0.5.0-rc.3":"2013-08-15T08:47:50.951Z","0.5.0-rc.4":"2013-08-16T07:15:47.277Z","0.5.0-rc.5":"2013-08-26T02:54:07.231Z","0.5.0-rc.6":"2014-08-22T09:24:18.802Z","0.5.0-rc.7":"2014-08-22T09:40:22.699Z"},"author":{"name":"Kenneth Jorgensen","email":"kennethjor@gmail.com","url":"http://kennethjorgensen.com/"},"repository":{"type":"hg","url":"ssh://hg@bitbucket.org/kennethjor/calamity"},"homepage":"https://bitbucket.org/kennethjor/calamity","keywords":["events","pubsub"],"readmeFilename":"README.md"}