{"_id":"@arguiot/broadcast.js","_rev":"5-d2d83cccda861e1853db5af8e548aa2f","name":"@arguiot/broadcast.js","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@arguiot/broadcast.js","version":"1.0.0","description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","main":"dist/broadcast.js","scripts":{"test":"eye"},"repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"keywords":["broadcast,notification,global"],"author":{"name":"Arthur Guiot"},"license":"MIT","bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"homepage":"https://github.com/arguiot/BroadcastJS#readme","devDependencies":{"eye.js":"^1.1.2"},"gitHead":"9a92fc2d54f6593b44d3abcd68c0b13c736b7df0","_id":"@arguiot/broadcast.js@1.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.10.3","dist":{"integrity":"sha512-K74BVkOmVvIZ4yx+BrSFeXRCyvQiz2wbemcJPgZnMGleAZTbKU6RX1HGnwCFOCeOyT4KI0yfP/Hap8SciPVE3g==","shasum":"36aed9e4988baf734faeee7ac48dc365477b6051","tarball":"https://registry.npmjs.org/@arguiot/broadcast.js/-/broadcast.js-1.0.0.tgz","fileCount":6,"unpackedSize":9153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVXT3CRA9TVsSAnZWagAABCYQAKMXhc0I5j+geTEu9ZH3\nkyXUgQoj9N3Ykpi4Rp9Lr07oS7FmJZMJS8/GpCZpNE8zV5O8R2FtsBvyEAUw\n/8bM6sa7uPKO+DmbzwxLbPNL+vGni0zJ3J5/yhE7w2u2LrHT8ZtoLwbVgiA8\nuk+RprS5MY89v+lCbT+eGbxg00PnFmGyOCatJZo1rIPMAQSSaaM64Euf8+dZ\ntQ+zRUkt+JE2RkeFrL12KI+8RZN8dQVFAU5RNHI9/aeq3vCwgACJ6+95ep33\ndK2Uxu8PzdLD1F+MDwDppFwPpAm9i61uaGWg2Eg1xsWuSGnwbJ1LGHwSv2TV\nR1l6HyFwzELrexBp9G0Y0GgRE706fr9QhJ65g3TqMXOU4RH8UqtTgcDqB98c\nNftZ2XkFkjvUvzTO9BYWLuBsyDENdPbdd1bDFWtSSaDu1UL9noxodPf3nTGi\npfHJZfY+msYlF8ivg1fVje5p4wVg9kVfTiBPYwjHX9mqP+9RpMG6timtEi0O\n0LFGOhnjCJ/0MJCG7bJc71u7nvmn8l+sg8l2h9DVOmRPdrk2Y6TumOq5lnzV\nW7BszoXdML7Y20nyz3fIzSpODBIlbEDTuxci9gIaqcOPO8Unj02iYZfthyT8\n/EMq5u/zr05QE4FcQskj9xpDp6Tms5dAvAazM9/ZqWsi9lEtDL6S9aplcIRg\nU3LE\r\n=dMhq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSlTEH2ULeZOpeWIKLVYleSb19mvV0aHpw7DkImfkUmwIgZdbq/0fQhtTVdJJ3MSl79mOpqiYIM8qmRfdVkqvHeX0="}]},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"_npmUser":{"name":"arguiot","email":"arguiot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/broadcast.js_1.0.0_1565881591271_0.1072183298573346"},"_hasShrinkwrap":false},"1.0.1":{"name":"@arguiot/broadcast.js","version":"1.0.1","description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","main":"dist/broadcast.js","scripts":{"test":"eye"},"repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"keywords":["broadcast,notification,global"],"author":{"name":"Arthur Guiot"},"license":"MIT","bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"homepage":"https://github.com/arguiot/BroadcastJS#readme","devDependencies":{"eye.js":"^1.1.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Arthur Guiot\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":"@arguiot/broadcast.js@1.0.1","dist":{"shasum":"c7795775e21e4c5a1021c3c6f41146cb773fe8b3","integrity":"sha512-QAbZwpcvMS1xCYdgAretEv4k1ssgAedBLfKwwEOzHtyQAQO9FdovTOOrU3bEVNvayLt74Nl5xwcN4gub7cjrsg==","tarball":"https://registry.npmjs.org/@arguiot/broadcast.js/-/broadcast.js-1.0.1.tgz","fileCount":10,"unpackedSize":38144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqZZUCRA9TVsSAnZWagAAmw4P/161Z5yaImcqy2hZPTqd\n70zyYb0N2ChYeKWuFfJOuyC2c5sUAAk0mWb/6lOciif+cOB4H/J0r7+N896V\nhvvyw6xY6NX2ZUIolXV7wCp8Hk71hBJPsWJjxG/oUFoLAg7C0A+bCxr1Dlvf\nqvKCuqTRC0O8zdiyBrd5wi55ZCmIKVk+1CXmm80Bhiu8KcDjtctC3QKIBOg2\n2wvgKsykxRG386LQXWCAWkTJdbfnzTJOa9MxLuGhguzPZcEbHlX50gPz3Q9K\n7odUFsdqN/XU8RHHHSMJIGP5pnXY3RBRJ1Qoc/eM9CRa6Qy4D6K7zruFbM5h\n3G558kFX65I1JBO6FvRI/k10ggfGeuxo+Z3hHNt/oKZY1g8wltgblE23yXve\nWRB1Aap3it/Tk4GtRyI9qQ6+AwTytIFDUfIYbvwbeNPVKv7oiCCZ5oyhWHTJ\nvJPkM0iLDN7Mwxpy8PIYMMUyZD92rVTJjx7+8bd1H716WY/aOhcdh8lqC71/\nMrGufUOV5YGlepRU+QPBTpKkAlGyox13RwY+K7BY/aNQqU7GMyT7j36CneC/\n2oTxfjJ+Mfda38LmHrS/mvmJlical3CPbJLeAUI+YlH15ZBKZ6ayuV940NOO\nLEkF2xi0/cdwQ4fjXflq5Tw5V7oC1aAbGr60y2qbCYpr8zYGWHCyr9xoDavD\n6Wni\r\n=YhFy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBQjVPsAgynE2IcMrfFlSCbvXEiRsNaObvHr0VmXJ5KAIhAJ7maQwBdPHoKlxs+1yIvzAw5uueti3pe9j2rt5Dp6Pu"}]},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"_npmUser":{"name":"arguiot","email":"arguiot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/broadcast.js_1.0.1_1588172372160_0.6444141054738104"},"_hasShrinkwrap":false},"1.0.2":{"name":"@arguiot/broadcast.js","version":"1.0.2","description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","main":"dist/broadcast.js","scripts":{"test":"rollup -c && eye"},"repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"keywords":["broadcast,notification,global"],"author":{"name":"Arthur Guiot"},"license":"MIT","bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"homepage":"https://github.com/arguiot/BroadcastJS#readme","devDependencies":{"eye.js":"^1.1.2","rollup":"^2.7.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Arthur Guiot\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":"@arguiot/broadcast.js@1.0.2","dist":{"shasum":"1bc9c7c800664338d448af55faa23492a1dcf391","integrity":"sha512-4THEB0cbzwwhHXCZksyhAefFX+rS4LkuQUtwYyvXbhoBFEfEM8V0r9jwHFChHEP28r0si8G3xh55dY07qXZRXQ==","tarball":"https://registry.npmjs.org/@arguiot/broadcast.js/-/broadcast.js-1.0.2.tgz","fileCount":11,"unpackedSize":36513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqbMaCRA9TVsSAnZWagAAsc8P/1Tf/U3JM/dHxnmTwxqx\nlIuCvPyAFC5QIxfmJsY1FKB3przq9YnHhs8bqCXCMe+lKt3uwgyPZ9mZ6TRi\nGNnhGwNhFmC6SKvWdzH9jo1dBh4fyS50A2cKD0KLD48PbyhMvafDnokvRIpt\nGzRqJ8gNAOHaGK+raYfccuQ2FsYY6OuNRhAGu/EfC1ES/b8RkjPaRU2Lhvn1\n3GzoS6qTiDXIcJZg2BaaFmA+HtYWu3K+CaVpU4p+YXU3EE23FewAQugUCawA\nkBniH9IpORvqRfPyJfjFxORQnWsPCAp6FmS7nEkA0RjEfSZa3Z3Nar4waW4n\nljpzqS2f+wMv+wCEh2KGennEs0IDsJqujhF4+S+CoYTv/sczekvgllQdyzJT\n+mOTmtGiRS2svvk0n7LZndxbeD/34K/ZMON+mmJAVJKBDkm7WukWExEfuZaz\nf0mZqzLjlF07ca/sWITrIIinKTZ/Vr+sdEFZM0U2Cg+XAgkOac2VHBC+NK1K\nAGdyyc2iNpvalJaK2CX2WLZKjc4FXnw6zRB+U2yvL0AbhKPbyGAEcddpvdwG\n9nht1ceCpP9D/ceLjuC8FvEK+cWIn9e/Q+XFFyulEG1Z5BseVMPaDnsBsqjx\nCPPgqwZpcQhmqF+CcCMCTK86j19RuZRCBgEDtgJhgGBKFc3VTroC0q3ggK3J\nvviO\r\n=PW5I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFIl/hB3b+7KeutJa/UAaRfdt40Ahv0ZaHzmuSr6zn6AiEA4orK0Gf/MDcHj0C3RRqaXO5Q4ZN7B792MeR9pTnn1UE="}]},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"_npmUser":{"name":"arguiot","email":"arguiot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/broadcast.js_1.0.2_1588179738115_0.9930204576667565"},"_hasShrinkwrap":false},"1.0.3":{"name":"@arguiot/broadcast.js","version":"1.0.3","description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","main":"dist/broadcast.js","scripts":{"test":"eye","dev":"parcel broadcast.ts --global BroadcastJS","build":"parcel build broadcast.ts --global BroadcastJS"},"repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"keywords":["broadcast,notification,global"],"author":{"name":"Arthur Guiot"},"license":"MIT","bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"homepage":"https://github.com/arguiot/BroadcastJS#readme","devDependencies":{"eye.js":"^1.1.2","parcel-bundler":"^1.12.4","typescript":"^4.1.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Arthur Guiot\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":"@arguiot/broadcast.js@1.0.3","dist":{"shasum":"057949d7be3ddc6120c984c20e33989247ea166f","integrity":"sha512-fH2hZ+kHpFTbXKU0MrwkI0esQFdM1T+x1fZGaDfnmw+Y6ElEVoTdNdmEWSloMNIwZ4YgOZf6YUZhUQfEOjRwow==","tarball":"https://registry.npmjs.org/@arguiot/broadcast.js/-/broadcast.js-1.0.3.tgz","fileCount":11,"unpackedSize":38718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf16oYCRA9TVsSAnZWagAA+fYQAI/Lejb6AH5Kp9fzQgc1\nIUqwyTyJ6x0JmS5AuHye4GrNl7JWp4bWEsho2xbgcocyLE/GytG8p2g1y6gO\nEOYcq837rLjwP1ES4lvltYs3G5uCOmyqgL8h24aRWdzcgoNS13R9P1mSd2gH\nDhDU4kAPu4DM927/tJJMPcjiwQQmqjjX+ypWDo0Q5JLIUV+Sg6mIhL9B77vt\nHqM5Mk/uOTae1KwrlcBfBR23DEubfRm0Rfu9Xd8ekV3dRaLxsZvKoS+4l3yZ\nxuKm1nbcQ/LSJJYWmQ/a5awWPU1C+aFDJ94+C2iFEbfEOeK5JK8q0CHnrPGx\njoAuG7Vbd6jaB1oUCkhPZYGyXtxDGaxNPnE/34DjIYQVc90ZNJQcvaTJ0rN0\npx0PTjVqGdgAKhAIN9qXl4s65ZDCk++5wBxB/uPEzesZGekQAvji5p74egGZ\nrZKfvR6a4yzG1n12la4fohOn0tQo/SdtaeRbpCkvJsuSfEJP97H105FyqbZx\nKYfR5us/zRRnJsbW6aSC911C1Jk7k3leHVS4zG5JK8o6xHLDDssU/sSVvuDa\nmMCaTMxkoOzbKV8zQc4h35O576l+wcMVskWBm0NrTRM7NryqMsxeEmkvua9q\nZ30Ja8Ruo2Ac8rby0bsiUxnv/+KQO5HqisDc4WbaPH47fjyDS59NRpoAeasY\nLSoq\r\n=iBsZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYqhMaQ0vk319fBMOYJO7TsSncG7WBAi5XrjOqsDiCOAIgCoayQ0knGtQMHVT4mpy6otkE0CpJmscwtWN50Nvf9xg="}]},"_npmUser":{"name":"arguiot","email":"arguiot@gmail.com"},"directories":{},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/broadcast.js_1.0.3_1607969304359_0.3773956228476827"},"_hasShrinkwrap":false},"1.0.4":{"name":"@arguiot/broadcast.js","version":"1.0.4","description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","main":"dist/broadcast.js","scripts":{"test":"eye","dev":"parcel broadcast.ts --global BroadcastJS","build":"tsc && parcel build broadcast.ts --global BroadcastJS"},"typings":"broadcast.d.ts","repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"keywords":["broadcast,notification,global"],"author":{"name":"Arthur Guiot"},"license":"MIT","bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"homepage":"https://github.com/arguiot/BroadcastJS#readme","devDependencies":{"eye.js":"^1.1.2","parcel-bundler":"^1.12.4","typescript":"^4.1.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Arthur Guiot\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":"@arguiot/broadcast.js@1.0.4","dist":{"shasum":"dbb89cf791828af8932675b97e46e5567f9bdbe4","integrity":"sha512-okTFQqhCpJ/IZNqjEz3hedU1D60+PJaxy52+aA7C/5KfiJh6bnjmoIVtfWm5wOsLbp8eM0rfiLCJCjxheZy2rA==","tarball":"https://registry.npmjs.org/@arguiot/broadcast.js/-/broadcast.js-1.0.4.tgz","fileCount":13,"unpackedSize":42469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf164ICRA9TVsSAnZWagAAFHAP/1RfCVluXEgOF00r0Dsj\nlbL4WsOBi9vD7bbNnJTu+JZYYepo/ctzOTlmI2xTN70saRwkeP4ugwO2Ruzx\nbZ5gqNT1bnyBvg5zx5NoNlbsE5woRXftAh9aCrM78EgS4kf3lZ2oIdXg5vPu\ne3XTR92Sm9TvyDmvB1nPaWRhgMrCPvNLdVJqtT3aJtfu5F61lZuHo3fCQrcp\nytolXcHKOuffyaSXCNUTZdHMcG4Z0VNxkqyLbf5+AbyoDtM/w0vfPxHchVnr\nRxxd2AHjmdt+2KfcDIcWaVHQid7Cio8VTh45kKxijqdZ3Rv7q+EB53vmhYPR\nO7Sr6QZX4oNTd0hQB07YaqGlqMdLWIFSasrY48SN5ylvwNIChb4d3mG7GrZs\nFPJxmHhDF1Dnf/Ytj+RpcI/pM0BN3tLzVGZTJ8JgJz7zXeTXaDVpYuSAusl0\nXbFdrt2QGB1ORHaw1b8swmVcrElDSvMDEw5rNyEArIDVNdxC/d/grNMAJ7+E\ncguHXJvcNr2+6T1UgBvCkfVZxcR8GuvvuZbE3PFxSFjeMBq3OOVGWMXVRhie\nzC7JvcVRLM5OM3rb4G97/cZg8vBCYNnU3iwVU5GJwXzzsLyLzUzrdRC8HXOZ\nNOPo3PoqRDPb1EdVbpTJ3eeJo8C2SFu2m1hRyQyJ5lEkW4/9+z5pnlo2tFN5\nF0HE\r\n=Sg9Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFpbskyFiFQfG9AH215SZVn4iQp72hePL+HAFUDD0NfAiEA9kar6Oj201rkiF4BSNOEL7cOKuFgQ3AKuU9aHBj8CxU="}]},"_npmUser":{"name":"arguiot","email":"arguiot@gmail.com"},"directories":{},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/broadcast.js_1.0.4_1607970311913_0.5926406228397127"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-15T15:06:31.033Z","1.0.0":"2019-08-15T15:06:31.400Z","modified":"2022-04-04T15:24:36.564Z","1.0.1":"2020-04-29T14:59:32.305Z","1.0.2":"2020-04-29T17:02:18.247Z","1.0.3":"2020-12-14T18:08:24.537Z","1.0.4":"2020-12-14T18:25:12.076Z"},"maintainers":[{"name":"arguiot","email":"arguiot@gmail.com"}],"description":"A simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.","homepage":"https://github.com/arguiot/BroadcastJS#readme","keywords":["broadcast,notification,global"],"repository":{"type":"git","url":"git+https://github.com/arguiot/BroadcastJS.git"},"author":{"name":"Arthur Guiot"},"bugs":{"url":"https://github.com/arguiot/BroadcastJS/issues"},"license":"MIT","readme":"# BroadcastJS\nA simple notification dispatch mechanism that enables the broadcast of information to registered observers within your code.\n\n> What is BroadcastJS?\n\nBroadcastJS is a tiny library for a notification dispatch mechanism that enables the broadcast of information to registered observers. Basically, it helps you escalate your data without caring about the context within your code. So, it enables you to send data to a different part of your program.\n\n# Install\n```\nnpm install @arguiot/broadcast.js --save\n```\n# Notification\n\nA `Notification` is a container for information broadcast through a notification center to all registered observers.\n\nA notification contains a name and an object. It is broadcast to by instances of `NotificationCenter`. The `name` is a tag identifying the notification. The `object` is any object that the poster of the notification wants to send to observers of that notification (typically, the data posted by the notification).\n\n### Structure\n```js\nclass Notification {\n\tconstructor(name, object = null) {} // object is the data you want to share\n}\n```\n\n# NotificationCenter\n\nThe `NotificationCenter` is a huge part of BroadcastJS: it's the object that will help manage all your observers and contexts.\n\nWhen an object adds itself as an observer, it specifies which notifications it should receive. An object may, therefore, call this method several times in order to register itself as an observer for several different notifications.\nEach running app has a default notification center, and you can create new notification centers to organize communications in particular contexts.\n\n> Please remember that a notification center can deliver notifications only within a single program, and cannot share data across windows or tabs.\n\n### Structure\n```js\nclass NotificationCenter {\n\tget default() {}\n\taddObserver(name, callback, reference = null) {} // reference helps referencing a specific observer that may listen to the same Notification.\n\tremoveObserver(name, reference = null) {}\n\tpost(notification) {}\n}\n```\n### The `default` NotificationCenter\nThe default getter helps you get a global instance of `NotificationCenter`, so you can share notifications within your entire web app.\n\nIf your web app uses notifications extensively, you may want to create and post to your own notification centers rather than posting only to the default notification center. When a notification is posted to a notification center, the notification center scans through the list of registered observers, which may slow down your web app. By organizing notifications functionally around one or more notification centers, less work is done each time a notification is posted, which can improve performance throughout your app.\n\n\n# Demo\n\n```js\nconst { Notification, NotificationCenter } = require(\"@arguiot/broadcast.js\")\n\n\n// Somewhere in your program\n\nNotificationCenter.default.addObserver(\"test\", data => {\n\tconsole.log(data.data) // will print \"Message\"\n})\n\n// Somewhere else\nconst msg = new Notification(\"test\", {\n\tdata: \"Message\"\n})\n\nNotificationCenter.default.post(msg)\n```\n","readmeFilename":"README.md"}