{"_id":"@dannyfranca/eventus","_rev":"3-2993cb7b7a32feef922899c858ff8cef","name":"@dannyfranca/eventus","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@dannyfranca/eventus","version":"0.1.0","description":"Event Manager made with RxJS's Subjects, inspired by jQuery's event API.","license":"MIT","author":{"name":"Danny França","email":"contato@dannyfranca.com"},"contributors":[{"name":"Danny França","email":"contato@dannyfranca.com"}],"source":"src/eventus.ts","main":"lib/eventus.js","module":"lib/eventus.mjs","unpkg":"lib/eventus.umd.js","types":"lib/eventus.d.ts","repository":{"type":"git","url":"https://github.com/dannyfranca/eventus"},"publishConfig":{"access":"public"},"scripts":{"dev":"cross-env NODE_ENV=development jest --watch","build":"cross-env NODE_ENV=production concurrently -n microbundle,typedoc 'microbundle' 'typedoc'","test":"cross-env NODE_ENV=test concurrently -n type-check,lint,jest 'yarn:type-check' 'yarn:lint' 'jest'","precommit":"concurrently -n type-check,lint 'yarn:type-check' 'yarn:lint'","doc":"typedoc","coverage":"codecov","type-check":"tsc --noEmit","lint":"eslint --ext .ts,.js --ignore-path .gitignore --fix src/**","publish":"npm publish --access public"},"keywords":["event","on","off","subscribe","unsubscribe","trigger","next","handler","manager","jquery","rxjs","subject","observer"],"bugs":{"url":"https://github.com/dannyfranca/eventus/issues"},"homepage":"https://github.com/dannyfranca/eventus#readme","devDependencies":{"@types/jest":"^24.9.0","@types/node":"^13.1.6","@typescript-eslint/eslint-plugin":"^2.16.0","@typescript-eslint/parser":"^2.16.0","codecov":"^3.6.1","concurrently":"^5.0.2","cross-env":"^6.0.3","eslint":"^6.8.0","eslint-config-prettier":"^6.9.0","eslint-plugin-prettier":"^3.1.2","husky":"^4.0.7","jest":"^25.1.0","jest-extended":"^0.11.4","lint-staged":"^9.5.0","microbundle":"^0.11.0","prettier":"^1.19.1","ts-jest":"^24.3.0","ts-node":"^8.6.2","typedoc":"^0.16.2","typescript":"^3.7.4"},"dependencies":{"rxjs":"^6.5.4"},"licenseText":"MIT License\n\nCopyright (c) danny <danny_vcf@hotmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@dannyfranca/eventus@0.1.0","dist":{"shasum":"304406eb287f8021d017a84ea667013136eef88c","integrity":"sha512-2fNof6LgRQXNdO5YDcJY8x+gSbp3j6Caqc1uLB00cNJLlmNTIgM4GNV8bEdqSyEka/1ZbIRyZ3UD3CtYx/6f4Q==","tarball":"https://registry.npmjs.org/@dannyfranca/eventus/-/eventus-0.1.0.tgz","fileCount":55,"unpackedSize":504785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK4G8CRA9TVsSAnZWagAAAFoP/j4pVxtm4dKMvzCjGiDB\nyTaUhcTtGZri9+12esT/1rOXZKhEGolp1K1WsXE6h0Sy0JXiSdpb/H5L8IVY\nWqNE1ZSjTIPIKoH2ay+NkwxyqRUdhk9P41r+XK42jqkFdRwVPNhxkgxkAe7o\n7qfKheBhw0NRb77c0z+HhHT4mGTc2qeaDDSrbvcuy1AEpvDHkH3RIhHY4YfS\n8kMqzkntO+by8wHtZzpj+w2aGMbwBa+gg+X1tFB7b4KzwpaYbcLs0+vAtV8d\nHSAF01i2l+LVJSRkDEZd0QXvobJcHwrFjxGQU1SP3a1iKfvblzQk/EH+bWlZ\nvk38TO7QEw8FNkG/2eWQhbirvC/2cy5wIndzpsTcIRimbQmvsA0GDiVa3HGO\nPTXOc9gVvibIrwR2iEtQx1ULnXdpJgodMZTL8tiopJAp3hBHhEthcf2sfLWm\nn5JmpyCKDmDF5kKDxxknA9hFp0VZcTg1H505cy+8smlBcAxOANguypA/sQ0+\nD8WjWBZHGI9kcAHIZgcqaAkyojMoKNTrRKffFsDuloLyPyAf4F9JMF+XKE7/\nr1uR9g29P/Iv6XzVd/Z+w+OxTnrWXNlrgZQXnmLsROlmu+BJz918rcLFDiti\n/M1S9OPArhl6cOWXf+tIxySPYo2/6AJFzTNBhvjKyMotIAYR+JUEmQTyIQv4\nRwjx\r\n=TAZo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDD+3W3fxYd8++GBmUXUqtjfpU/x52NJjdZQs9a3MajAAiEAuUQEO+aeetHW94BwkToaUnLaXZOfog5urRajShdXVrk="}]},"maintainers":[{"name":"dannyfranca","email":"contato@dannyfranca.com"}],"_npmUser":{"name":"dannyfranca","email":"contato@dannyfranca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventus_0.1.0_1579909563762_0.8820160987790959"},"_hasShrinkwrap":false},"0.1.2":{"name":"@dannyfranca/eventus","version":"0.1.2","description":"[DEPRECATED] Event Manager made with RxJS's Subjects, inspired by jQuery's event API. Repository moved to @dannyfranca/radarjs","license":"MIT","author":{"name":"Danny França","email":"contato@dannyfranca.com"},"contributors":[{"name":"Danny França","email":"contato@dannyfranca.com"}],"source":"src/eventus.ts","main":"lib/eventus.js","module":"lib/eventus.mjs","unpkg":"lib/eventus.umd.js","types":"lib/eventus.d.ts","repository":{"type":"git","url":"git+https://github.com/dannyfranca/eventus.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"cross-env NODE_ENV=development jest --watch","build":"cross-env NODE_ENV=production concurrently -n microbundle,typedoc 'microbundle' 'typedoc'","test":"cross-env NODE_ENV=test concurrently -n type-check,lint,jest 'yarn:type-check' 'yarn:lint' 'jest'","precommit":"concurrently -n type-check,lint-staged 'yarn:type-check' 'lint-staged'","doc":"typedoc","coverage":"codecov","type-check":"tsc --noEmit","lint":"eslint --ext .ts,.js --ignore-path .gitignore --fix src/**","publish":"npm publish --access public"},"keywords":["event","on","off","subscribe","unsubscribe","trigger","next","handler","manager","jquery","rxjs","subject","observer"],"bugs":{"url":"https://github.com/dannyfranca/eventus/issues"},"homepage":"https://github.com/dannyfranca/eventus#readme","devDependencies":{"@types/jest":"^24.9.0","@types/node":"^13.1.6","@typescript-eslint/eslint-plugin":"^2.16.0","@typescript-eslint/parser":"^2.16.0","codecov":"^3.6.1","concurrently":"^5.0.2","cross-env":"^6.0.3","eslint":"^6.8.0","eslint-config-prettier":"^6.9.0","eslint-plugin-prettier":"^3.1.2","husky":"^4.0.7","jest":"^25.1.0","jest-extended":"^0.11.4","lint-staged":"^9.5.0","microbundle":"^0.11.0","prettier":"^1.19.1","ts-jest":"^24.3.0","ts-node":"^8.6.2","typedoc":"^0.16.2","typescript":"^3.7.4"},"dependencies":{"rxjs":"^6.5.4"},"gitHead":"64402feec6de5941422677f5b3b4e29aadca605f","_id":"@dannyfranca/eventus@0.1.2","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-9QtjSI5a7UC2X3KflK0DDcXhWRPYvm71J2WBl264kYfhp2Vgu7Vfwt8TUn6LaJGusSse8XFEZS2LwD+ipIgazA==","shasum":"e909d1a16c5c60d44e9c778ae066dd14d8b67ac9","tarball":"https://registry.npmjs.org/@dannyfranca/eventus/-/eventus-0.1.2.tgz","fileCount":54,"unpackedSize":530022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLau2CRA9TVsSAnZWagAAXWIP/24Iri0AqoMUS8iXMnvJ\n+u/RUjuKCI547wj4CFLmN2yGtnpLTEQ/8U3XVCJR6wJ6HzklYIPwjV/TxWPe\nzmheVJP2agmQwX5UtIS9iak+vabQ36lc2njGC0tL8LIC3M4C1XvWtlRCPMl7\nz0ejOkcC+Jy6+mCV8w/wZRlbzTC3J/EyvyvrfZSD8x5EUjCQ3CIEgXuBSgAh\nIiGaxak4sstHRwubBlBAhRtHz12YhGkMmV4EBKmlHAOBDYnaRTalAqKj2cTa\nsr8zU92ohQJal2TFhcLKMg2hkLvZgfSDr7RB7JzqJICLhhiyZYfsgL9m9T9u\nwhz10c1gmGjthUbLL/J8fAquEKe1RqMlgouq590Io/Y+FwFgYoOrzv0/tSc6\nOVy2XXVA8R2/3ldhZkCLyhAxHKQM+qQTfF7H7qD2/CvPHRtftjxy23kcb8XQ\n6hWSP/n7qMnV6tpLdqHfNHb+oPKFbsz5zwUWjbo9YUjsXW1aqtvm6cwsCQ8h\nuwCiVlKJirT0SryATJR/nNxiaebfEupUmJxLXAc9CaxSIceGPREEA4eIKJBG\nVpA4J3c/Zaks/EIMLfcpQ3f6NyiAy0JIOLHssoroMJWBd4DAsfhTBieqw9bB\ncwfAIjxucUdygrnqJdL8ewzoD5+frGGYfPNCHz0atPjm1z5gvSgFuN4HkUyq\nZxpB\r\n=6Gng\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVcof2o9mhHoODEs+wgSyZALb4Uc7d0tvXYEgGNcNUXgIgczR6AXdB7cgZJ4ufAUtFGWcblBFeRveADntFONoaikM="}]},"maintainers":[{"name":"dannyfranca","email":"contato@dannyfranca.com"}],"_npmUser":{"name":"dannyfranca","email":"contato@dannyfranca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventus_0.1.2_1580051381835_0.6640069825389026"},"_hasShrinkwrap":false},"0.1.3":{"name":"@dannyfranca/eventus","version":"0.1.3","description":"[DEPRECATED] Event Manager made with RxJS's Subjects, inspired by jQuery's event API. Repository moved to @dannyfranca/radarjs","license":"MIT","author":{"name":"Danny França","email":"contato@dannyfranca.com"},"contributors":[{"name":"Danny França","email":"contato@dannyfranca.com"}],"source":"src/eventus.ts","main":"lib/eventus.js","module":"lib/eventus.mjs","unpkg":"lib/eventus.umd.js","types":"lib/eventus.d.ts","repository":{"type":"git","url":"git+https://github.com/dannyfranca/eventus.git"},"publishConfig":{"access":"public"},"scripts":{"dev":"cross-env NODE_ENV=development jest --watch","build":"cross-env NODE_ENV=production concurrently -n microbundle,typedoc 'microbundle' 'typedoc'","test":"cross-env NODE_ENV=test concurrently -n type-check,lint,jest 'yarn:type-check' 'yarn:lint' 'jest'","precommit":"concurrently -n type-check,lint-staged 'yarn:type-check' 'lint-staged'","doc":"typedoc","coverage":"codecov","type-check":"tsc --noEmit","lint":"eslint --ext .ts,.js --ignore-path .gitignore --fix src/**","publish":"npm publish --access public"},"keywords":["event","on","off","subscribe","unsubscribe","trigger","next","handler","manager","jquery","rxjs","subject","observer"],"bugs":{"url":"https://github.com/dannyfranca/eventus/issues"},"homepage":"https://github.com/dannyfranca/eventus#readme","devDependencies":{"@types/jest":"^24.9.0","@types/node":"^13.1.6","@typescript-eslint/eslint-plugin":"^2.16.0","@typescript-eslint/parser":"^2.16.0","codecov":"^3.6.1","concurrently":"^5.0.2","cross-env":"^6.0.3","eslint":"^6.8.0","eslint-config-prettier":"^6.9.0","eslint-plugin-prettier":"^3.1.2","husky":"^4.0.7","jest":"^25.1.0","jest-extended":"^0.11.4","lint-staged":"^9.5.0","microbundle":"^0.11.0","prettier":"^1.19.1","ts-jest":"^24.3.0","ts-node":"^8.6.2","typedoc":"^0.16.2","typescript":"^3.7.4"},"dependencies":{"rxjs":"^6.5.4"},"gitHead":"64402feec6de5941422677f5b3b4e29aadca605f","_id":"@dannyfranca/eventus@0.1.3","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-hBRg7SECwhdw8Xy+6LpHSuHJ0up0IV1KYwd52QZoW3Em5Ljxg0mVrQj62UQwt4cEoMiuR164KLxyYusRxZxjmA==","shasum":"db7f40301b6a6c5714b730199fedf5dce92a0527","tarball":"https://registry.npmjs.org/@dannyfranca/eventus/-/eventus-0.1.3.tgz","fileCount":54,"unpackedSize":530076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLaviCRA9TVsSAnZWagAAQh0P/1VJp1ohAmgY1TGHnECG\n1L1PpkGRrCFqZ5GzWeysiwfN492Z+L3kgfBrcmXq50PNGQQjXzK8t6C/b6D/\nHXlOHhsJD96PT8TfU85VOupZyeRDidai6RKYigrbk6LnFAd16Syh5JJtRpnP\nMG4o1OzFL9g2scDk5enkVIOG+UZZX+Qy0I/gzglNaw9I5BKRqM6cfYeVE8TE\n2LwNNpZsrfqSNu8aJNfFOiHvRv0ST3bnJ9uV130aa4y8L5Z6oqFSTuR0w5RI\naCZqMWSOcLvEKzL9JG5LN76aROL5Io/DcycTFTbnsDg97vGqIp8HQ2GJNoLj\njcKeca142EANTRmBy8xh/L99ezD+n12M4fV3QYbak+vGvoiawzYXX6N83yAf\nichWTPXKz5g2lsZ+f2qW3mZdWORg/E6pYXGFGB5UfjSvbkhDrxv1bUbXn8WJ\no+Knd7aclU2juTt1iXWJtR0HfKmJsZBHF0BSWamDO2+5ieOABPFYXB3ahTT4\neTzePXUZum2yEM2IDwC/Vsh54s2A8RaitWM9unTigBKSBqk5oUXVK8twnF5K\nwxoeJzM56U6SGe7+hSWH4Zs5MHL+tbe3XpeFgn2rxThUfRRQ7zkCRs8iggaz\nWTyk9Wp7XwUAgURcHqB6Z3Y26oWcuYZ1ebFLCGbVHUWO49otqYT6f9xOYC46\ngmP5\r\n=PK5p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0oKHUhUcv6WQ3/dGFoBmbh85UkLw8jn7SJMt80NIYGAIhAKOEm2/C5mUnbQxQnnzw7NuMYJ7oXUsahcLO0DCEWXJw"}]},"maintainers":[{"name":"dannyfranca","email":"contato@dannyfranca.com"}],"_npmUser":{"name":"dannyfranca","email":"contato@dannyfranca.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventus_0.1.3_1580051425883_0.22912441556259"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-24T23:46:03.728Z","0.1.0":"2020-01-24T23:46:04.012Z","modified":"2022-04-05T02:42:21.917Z","0.1.2":"2020-01-26T15:09:41.973Z","0.1.3":"2020-01-26T15:10:26.073Z"},"maintainers":[{"name":"dannyfranca","email":"contato@dannyfranca.com"}],"description":"[DEPRECATED] Event Manager made with RxJS's Subjects, inspired by jQuery's event API. Repository moved to @dannyfranca/radarjs","homepage":"https://github.com/dannyfranca/eventus#readme","keywords":["event","on","off","subscribe","unsubscribe","trigger","next","handler","manager","jquery","rxjs","subject","observer"],"repository":{"type":"git","url":"git+https://github.com/dannyfranca/eventus.git"},"contributors":[{"name":"Danny França","email":"contato@dannyfranca.com"}],"author":{"name":"Danny França","email":"contato@dannyfranca.com"},"bugs":{"url":"https://github.com/dannyfranca/eventus/issues"},"license":"MIT","readme":"<h1 align=\"center\">dannyfranca/eventus</h1>\n<p align=\"center\">[DEPRECATED] Event Manager made with RxJS's Subjects, inspired by jQuery's event API. Repository moved to @dannyfranca/radarjs</p>\n<p align=\"center\">\n\n<a href=\"https://npmjs.com/package/@dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/dt/@dannyfranca/eventus.svg?style=flat-square&logo=npm\" />\n</a>\n\n<a href=\"https://npmjs.com/package/@dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/v/@dannyfranca/eventus/latest.svg?style=flat-square&logo=npm\" />\n</a>\n\n<a href=\"https://travis-ci.com/dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://img.shields.io/travis/dannyfranca/eventus?style=flat-square&logo=travis\" />\n</a>\n\n<a href=\"https://codecov.io/gh/dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://img.shields.io/codecov/c/github/dannyfranca/eventus?style=flat-square&logo=codecov\" />\n</a>\n\n<a href=\"https://david-dm.org/dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://david-dm.org/dannyfranca/eventus/status.svg?style=flat-square\" />\n</a>\n\n<a href=\"https://www.codacy.com/manual/dannyfranca/eventus\" target=\"_blank\">\n    <img src=\"https://img.shields.io/codacy/grade/addca1007fb044c3a994c7e0ec504092?style=flat-square&logo=codacy\" />\n</a>\n\n</p>\n\n## Getting Started\n\n-   Install\n\n```bash\nyarn add @dannyfranca/eventus\n```\n\n-   Import and create a new Instance\n\n```js\nimport { Eventus } from '@dannyfranca/eventus'\n\nconst eventus = new Eventus()\n```\n\n## Usage\n\n### Listen to Events\n\n```js\nconst state = {\n  count: 0,\n  lastNotificationType: ''\n}\n\neventus.on('notify', () => state.count++)\n\n// receive any number off values as arguments\neventus.on('notify', ({ type }, ...data) => {\n  state.lastNotificationType = type)\n  console.log(data)\n}\n\n// subscribe is an alias\neventus.subscribe('logout', () => {/*...*/})\n\n// can use namespaces\neventus.on('notify.namespace1.namespace2', () => {/*...*/})\n```\n\n### Unsubscribe from Events\n\n```js\n// by event name\neventus.off('notify')\n\n// unsubscribe is an alias\neventus.unsubscribe('logout')\n\n// by namespace\neventus.off('.namespace1')\n```\n\n### Trigger Events\n\n```js\n// pass any data to an event trigger\neventus.trigger('notify', {\n  type: 'info',\n  message: 'Just an ordinary notification'\n})\n\n// pass any number of data\neventus.trigger('notify', notification, ...data)\n\n// next is an alias\neventus.next('logout')\n```\n\n### Native Events\nNative events has reserved names starting with $. Until now, the only native event available is $error.\n\n#### $error event\n\n```typescript\n// listening to $error\neventus.on('$error', (error: Error) => {/*...*/})\n```\n\nEventus check for an error handler. If you don't set your own, an ordinary Error will be throwed with a message.\n```typescript\n// set your error handler\neventus.setErrorHandler((error: Error) => {/*...*/})\n```\n\n## License\n\n[MIT License](./LICENSE)\n\nCopyright (c) Danny França <mailto:contato@dannyfranca.com>\n","readmeFilename":"README.md"}