{"_id":"@hyext/communication","_rev":"26-384f387db62f65f411f09620d1d71656","name":"@hyext/communication","dist-tags":{"beta":"1.0.7-beta.1","latest":"1.0.14"},"versions":{"1.0.0":{"name":"@hyext/communication","version":"1.0.0","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.0","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"e8c7bac8cefef6d80ade04284fafda1b9d8ff8e5","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.0.tgz","fileCount":8,"integrity":"sha512-wTBQ0+WBol0+0r+9H3vZ4k2TvvcHaTJnBSgkStFDi8r8Jmok1ozBZHj6i/HPi2d71lOxFyzAg1oskUz/UKQqSg==","signatures":[{"sig":"MEUCIQCDAz+GBZjYgJlCBRUZKn7Nu6YevR2ddrIx592OIvpxDgIgWecksLdOcSUvkIuGJtJynuVNAHnbnlZtJZoLrW9GQxg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsGK4CRA9TVsSAnZWagAA2U8P/ivbB+BKoPFV4CeYD7tO\nW2AZshUkK63hszXs2l6FhOk+d8k8gm6JSxuV4vsvFwmbKP/NVaFNKj2cIfk5\nDdijqSiFCQKW8OR7uwPrAJZligonnh6dNNgk7xfkT0IHdBUt+Dxym7my3jvp\nZq8Fl8W+86LR9uxUo7aKpXNBQhGm+EGR6vuywTktxDG3Mr8v+S+eITY0As4m\nWqVc0vzl+B17xMjXrpDRluEtEZC/FtmF/4D0/n3tPP5bvjjQTd7nSpLmE+f5\ndsf7EhhVL4vAWv3DjhZfp3pv9/TkHEVBXg4GL87IdPHiI3eAGQFpSlgz5PIp\nEDAPnrg8+SaQFhdMYzQ+At7y+vO6LeaV/XDeFianvJWM83aUJ+O0wBNq+MXK\nT9FqTA/NI1GyaDOeeDr22+qd/SK0CZjAH9BE0U1BO1m6z1bHfnPS/74H63e+\noL960BjLrq3LtYJVQpMmcGUKlo2O2CLkhumq3ZOmZJcciuUlLqZ8s9IGmjKF\njA9goOQZbek82SdbyttWGrgGfTisioT+i0SD0RksTW5vX3lmxFe+thCi3jZ0\n5R7leD5AXqhNAGebkmII1DF6TcprRFB+M8BmgLbd3cU96fgGQ+VpK7aivOFz\nku/uXqB2wtSpocYg6P31YHMRfQSi+FvbwHGyMjapB+9Bs6iJ7t437diNPwaq\nuGnT\r\n=iLRl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jwt-simple":"^0.5.6","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.0_1622172343712_0.1153718115724276","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@hyext/communication","version":"1.0.1","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.1","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"d8d5813426d0c71bd12efddac022b6bd6d7d8439","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.1.tgz","fileCount":8,"integrity":"sha512-Mx6KIoFftCE9Ow3DebiAgDpF6mm/c8EOiw9FWIITt5224gT0M2QvR9PmJjEvwasVopoKZ4JQ2MIaYQ8ds6fz7Q==","signatures":[{"sig":"MEUCIAoxBGyfbDj+f7ES/txlmdRkJYoGOIIVJWbCB7awro5PAiEAprN7MOC8tH4/nczOcQEppvo9WY5xIYXn7TOsAcNykrs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsGVrCRA9TVsSAnZWagAARiQP/2PW++/F9jXtmxbpWMz0\no6VCVqakoOBr3JKFkSyvPIZMr6Cz1ZJ/uD+nOw1MfMEWoziPfbt6NofUxPjX\nhyiKFtyVenqYYZ/bQspWbFnhD1ny5rCJwm2d1GevSuopRKKJd7zAWfF1RKoD\n+/Pd4gO1l4JT8RtjMnhW/ss9U036qYuDFdwYP08XdJUDLGmL7fUEJ1RxyD4b\n8NY2B/bRgJOqrhbggelUkxrl60mRfGId1IXyXSAi9lV9aK7XpuINlOtG4Uh2\nf6HSQSxQyeXbR4QqibixVD7pB3jeta5kHaw1aMW48UEip/0ROKsdP7dU4qkR\nLZhRXmFEJjMB38MvAVlDxoRFOBXXZ8D5c/KcshLm1NOmDSBNRbGebt8/obwI\nWhHqJ+2zbDO93Vm5gK0nbkDp5ThzpKd1QBb8edAx5qji3iUsYw9bX9SSWkDB\n9bVY0KuDpz73dQIeTZVJczR93Cpy48JetuooAp0yIuMEGhsaKqlI64BGTMSX\nDw2ZUCTzdlkYe0I/Od5w8wctMtKseM0SJwBF7voBnyH00l2o8ceqopUn4Yc/\nLT4LtruDh2x68jj+oryF7XLAE0b2EZcsl568vVzaaabV6SWT47JhlKL1ndbn\nTs2TlK9SdePTKCQRr4NqcAjhj39DuRwSfV97B+bLPrPkr+Ktmt/Xd9NMbOeW\nx+so\r\n=2NP2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jwt-simple":"^0.5.6","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.1_1622173035123_0.07898648707187172","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@hyext/communication","version":"1.0.2","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.2","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"a44bc7a8e08bbd713c5bc1618620f875452b010c","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.2.tgz","fileCount":8,"integrity":"sha512-ZWnjgv96XO12VUApAw4XwPNvjlmi0LhdmPsqHjdvEVDp0TpXfMOrTDiNGxma8BL4fhe/XOStYbh+I4Y9apZuTw==","signatures":[{"sig":"MEUCIQD7vj0l/yrs7et9N1CIZ5PXcBEyy5EWMTKk2+NOxuIWNAIgMP7JPlk/iiRtaiU3iB1eu51tfe2Ixwdw6r6JP+/n1vc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsGWcCRA9TVsSAnZWagAA2GUP/3LDXLn0wtzkmlvEFiFf\n635yJP8k/4fkvDw/6I2OMwcBiaUGwpvZyCzz/jZNgfaRLbcpRUWynjQXM/qy\nYdIXuwEAePem0jCs+7TYmT3uvqIiRupHABJk69AkOVu78uIzDDBvNB5z2Mk+\nqn2IiP1DeohUju5jjRbmuuvIhQGeCsTzGvKo5WraBaxQuU3kpjk3+B7hQXgq\nQxeJ/07oKBbwOH2OwD/M89IjoVr8NFbluzLo8lgis6WiuzaRYaZrYU/Xb7sG\nFsqqjoU3lfBEkppjYRqPTr0ba4XixOHnF1i2BALjO8Br1m29qp8hDWRrfC7M\n5U1MExpShas2YnKo5U71c4N6TzTHXIx5Ez6a0s8wEW1ugbJxsKDmv85oL6uT\n8xhLaqRVdC9MvHPpURQMqzfXcgVgSdCsh117UDcKCWAkGkcSbC5WQKSPRJyR\nanI3hbQ+GFXuW+/1fDF4wgpvtV5ibD2QrvQFxKZcuQZ5t/I3I39cUVo6F57V\ntecx3zopTcLBHo1J8kjZvHrAJywDpCnfArPCgu7CUBnJPJuSDYLzbfQwTFn7\nXdom40NfqmQx5xBfC6Tb/p6GRwcnsVIJSBncYr5Yf4nDR3sAcyypCKO7ujth\nR6oXVcBCacIIaBmn0z301X0qUxx3wMaptueqPDnK/raIL9R3J2qoiN0z9kPd\nrIY7\r\n=BgUJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jwt-simple":"^0.5.6","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.2_1622173083856_0.5611932574328777","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@hyext/communication","version":"1.0.3","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.3","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"986b80ce9f0d58d0cbe89962b3aa6f2fb5557fcf","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.3.tgz","fileCount":8,"integrity":"sha512-IRm6OUevPbbue4JCBUWu7B4jA2u1GnL8owaIIdNRMPwX99k7nAImv2Ioli7tF4DDCjtkJLqBMxHgw7/zNRGRaQ==","signatures":[{"sig":"MEQCICxKsjBPEyuETVPUyUV1hBgq30hUwiu30oIcIKzPVUccAiAJGDHHrNz34XXr49xmyHLfRRGU7K747w4+U05W7ZXW+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsGb8CRA9TVsSAnZWagAAi/YQAJERboegBwfTqFv5HOy7\nx3veeOnJl3Zp2PYe4F2ao3HC16dY6sYHDP2iAZsvdQvJ7ab+sAVHnkFBB9oM\nO25fqpGslyVD9UZNW7L2dVETgfi4j4d99u56Uk2xfmfy63ffEdHuOZNibbeB\nFF0SpsAHHiOfXJdc/+OA3lGXmSXHtaoQIoWtfYOBo8K1DYInvMv0s7HGYOLi\nLMnR1+2ZhTzTnow+ExIYsJRGt2UWF8rv/14f4yJfF1h5Qr9ic44fFRREGApY\nANGvYO3QzjRZYEwW0lhN64bs6wXWbKvlKn5lF0rWTbspCTTE0qg/FGHuQn73\nptCzZvE+nW6m4DeMj0Ols70PzueFXJqvrfjo+uDT5oe5ibDJWle0PnKb0YE8\nxhbusyu+uF0dxmDSuMLy4MQOLDf6zICYyp5KDQQaPyUPmB0hkz/2CZimKKEb\nk8bZBq5Lg9mLU/I3m2b3pVFnRKHxAtn+vti/yyAPi4Y7Eso75G78fujCIKH7\nlXkZAwNzUIelRFzI3RWKpYuVX1C0Tl1UuJMmWfwaWqKHAHFILJZAE7nQOUef\n3PlfJ25v5iOiZY3EoArItNeEfUBmC9Io2XF4UgB+8g5DGD+fwFR9ar8IvTJW\nZuunZkx1BOaXC9VmGpqBkgG9Bo5VxShEtpwVAUkMHxnz6dZz3q21FxYuDv6H\n61I4\r\n=zE5/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jwt-simple":"^0.5.6","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.3_1622173436190_0.10020260597723074","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@hyext/communication","version":"1.0.4","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.4","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"0063b9e5497ce7b9cf1c9b81c98860f0f2d27e52","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.4.tgz","fileCount":8,"integrity":"sha512-Vz6eMJ5LPrZ2D3++HoewuSqNMVHRDh8UV31ikkf2BlN2YAV1Yb0PMPtVL4FLrkxIPh4a2T6dZ5tG3GNEF7anrg==","signatures":[{"sig":"MEUCIQCuBC6xowDhW24o3kVjXrDJJAgYxr724LSloFVMIG8KVwIgcx0Jh2SSQVgc/W8p1Og5z4gk10LP/YLxB/fS06Ceqdg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsGgfCRA9TVsSAnZWagAAqesP/3cdNfP9W4YbN0S2NzgY\nJBg+eGIeWN8/Wwexkx9yW1zhEnTwKWNuRFf/kz40cnVN3kh208BEKr7UN+Af\nVFyON43LmG7U9Qpe/g8NOyIxltnyy/7ykpQ+lPgNIFG5Z+hc7YTBrB0TuEli\n9QsQ6MDdBGYNq0GhWGTxftMy4NTrixFWc1uXT8GlvTngL+VqORPlGWQAYBp7\nw5ir3BVW36n7cwt0YQrZMy+EKjHRPIn55ofX+snCK1IZoTq4yHQmWUjCZ9Ue\nssSZsQMFMMIHRwrP8X9Z11LjDLKh02ycK3q68xTOpFC2Vr1A8OYfcVE2P+/Z\nPQgrFvQTt7BPc0Yw5B+k47tX7FiZMt5SGC7Mf9wCqGYcIDALs9MGzl29riCP\nGcsgV3TKBhrPFCKEX6f6ddufdOVvE32l560+/W8q7Fcw1+of1hZDAm/uF3hq\nRm6ed6L5xb3DSn1lN+3n9du72N29e0kvMlYjM6XGWoa0JWbmWWh3X2XrPizG\n+3Q7LTtwy5gWas1aWXh5Ew+rjJGujI6k5IZVyVCladqhgugk+YZ+gxT4vuyQ\nIlVPs8pL1hx3xsuaFDWVd7owbcNvN9TxzEwPOBd4cytXCFuq2IqagioF//Qu\na5DjUqkTwOIksaqaYRBYPQCRnAxUCRV+14zUKdH0AbcBtV1O9U1XIND9Lo3y\nKi0q\r\n=+O+d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jwt-simple":"^0.5.6","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.4_1622173727386_0.738835571994217","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@hyext/communication","version":"1.0.5","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.5","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"9dc8a3103b6b31aadfac846e1e6c804d3809f805","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.5.tgz","fileCount":8,"integrity":"sha512-1EaEtTyLv+fKq3ipwZFHpGxU+vXdqaCkjzI9umuzthZXl1FrCWPH8tBSlIx0StMofAn9puZF2MQZ8ca6SnC+sA==","signatures":[{"sig":"MEUCIQDvHHLdvuG03FLPCW0Rj3tXZbyzGyBg7rZwGgU4oW++/QIgBIyzGonPV86sEJEkWfkgCpeb/Sm8OLzeviHEOIfwNKI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgth4RCRA9TVsSAnZWagAAcdwP+gJVJX7QmRqcTETpZdua\neiNAT/FZyl/RQTmTFMnPTbfsQAFmrpwNx7fER2trNwUrj/9e1wlEDgesRg8K\nYIoOALphXF7Ubg8TCyzeyOX8pRknvlouSh8n7BDVB003aMWrK+59OThQYYXm\nVJJW3wk5+suTjeMM4uQ8yCmJs+MgHvdPb4Bc5tK84KcdgvfsFsuNr/r9gW82\nNItEyx1nbjxVAsJ9ylSC4UYMx77s7Y8F91C87ZP+jahCYlzlZ4dq1ycBNXKl\nVstCsIXtSGZyEKHvD2HcJ/X+m/krgJ/S+AyLMaj6fNcgSLrR9h7FjZMMtWPu\n/avEMUxtFuCg7zavku55cRD6Frp9bJ+kg3N/m2spkbATnOR2Edkh6BJr9bKQ\nvxqn7DOeerlSjHyh/My5VujLUJMG8BKJiyuNPTf9AadFdemMYgoxjxbB91JX\nio48xp6TAVRa1crGny/F1Yl5ks+ZFOVwnUtq6m3m7IhbBURHerVn0YgHtrcq\nAxL0GcIkop/dzgPdBnVxC+tlt8jElZTTARKXGoj/ysRpPCwef+4BXMXKYVZy\nyJJJaqYG8on703HrREhU9q4BX0coIwtvKOkvgFZC1QYi0S8HIZ2MVTttzIiy\nlPkMmmV/OYVeDvH719u1mr7e+UDTIHdIgRktgSXtZOF7ZM8RptG5tVonCP83\nidaS\r\n=0HaY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7","crypto-browserify":"^3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.5_1622547983505_0.2123091481971795","host":"s3://npm-registry-packages"}},"1.0.6-beta.0":{"name":"@hyext/communication","version":"1.0.6-beta.0","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.6-beta.0","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"3e7d5932bcdf12595f40f0401514124c227d597f","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.6-beta.0.tgz","fileCount":8,"integrity":"sha512-PVMh/v5sbET/RbPiIWcTK+mOKXdzz+KTBIrfSZbUUfIrefTtBY7qBQWRYVGNBHO6YacH9Q6dMcMjz90fF5Ajnw==","signatures":[{"sig":"MEQCIALf3cId8YbEz/nuEV/dkRxTHZI1pNCvsgX2daHv5dxLAiBowzFgk5D1Jg7P0mbeKHbNhr08PHXtMC8DZj3Assme+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1074571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtwEKCRA9TVsSAnZWagAAS4sP/jqHflxlroqUSYPoUhVs\n2RPTh21PgsNQ638dyvIwROtZ8t+96X2xgzexwX8o6ivjOzc8lNXtep7BzGSH\n4m8KN1rvecGjEEJVfMme7PtCUlul0DNm3G99IGuVxKvryRLhOUHneXXKyKGn\n9gV0x9KvunwACnJMBif2QYjE4aKI6jR7rs2OW+Dp2k8VDMP4t+c6+/L1ub8l\nddrm32qBQdCx4bD4PN7hfKk5JBcossieBjvDx2r2gTXQ97O7iOfHkun7hokj\nuI9CAnNG/frlBIg6PC7fGjYxWeQU3UER5PYFMYs1Qr6AMFHiadhKq6gPSDst\nmu35q3UjZLqWnmdwZlGO4Y3cq3xcHQ3K0FOGu8wvtW4F5MF0waL+HXCZdeHd\nEHxtVjKO5EkMw+/FkIm7oDo4SiIHPAAE5mFNs/sR/CXSQghPtXHxqBp/1xGf\n3O7a4EM+A5jtvoMwzfpnNT20AT90r6fpyt1wvawRIPgJ6jBbRwoZj0t3WgjD\n3zaqZK6FgyXraAWu5ZA+La958soXkonDKlcR78zZ514DFW1lg+nND5KFXGFV\nBGE95XG7WmrDwwoRACOOvSYDvu3YvjA2z/Pc2UWe7lg4FdqsqSLV0ZtjBt2j\nFFpj+XLj4U7mFN9P/JBQeTZEUZM8JQhWa2LkFqnhTzxXhXb0oMySxxgRiumx\n0pI5\r\n=H86D\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","readme":"# @hyext/communication\n\n> 基于虎牙小程序开发接口封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { OpenWS } from \"@hyext/communication\";\n```\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### Constructor(options)\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interface\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事情：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件。\n\n##### open-api 事件\n\n- 普通事件\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n- 高级事件\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { OpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = new OpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api内置事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    }) \n    ws.on('getVipBarNotice', (data) => {\n      console.log(data, 'getVipBarNotice')\n    }) \n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"util":"^0.12.4","buffer":"^6.0.3","events":"^3.3.0","stream":"0.0.2","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7","string_decoder":"^1.3.0","crypto-browserify":"^3.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","@rollup/plugin-alias":"^3.1.2","rollup-plugin-commonjs":"^10.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-node-resolve":"^5.2.0","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.6-beta.0_1622606090126_0.7532596285210362","host":"s3://npm-registry-packages"}},"1.0.6-beta.1":{"name":"@hyext/communication","version":"1.0.6-beta.1","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.6-beta.1","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"87c4ad1d2566cc5eeddad2daa13433f5effcc805","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.6-beta.1.tgz","fileCount":8,"integrity":"sha512-Ag3QlhA3epC9qSu6a3RskKdhFVcg5P6ee6023BixhG8P05Wb/2tPKNXY5Q1ctXhdFizccA1mSpsEbqewj7XhWw==","signatures":[{"sig":"MEYCIQDa18BOrwXnQE94DIOsgoXX+d2TKiM629qDIheHePFZhAIhAL/Vq44PyR4Emy8klANUnMlH6uLSO/4kxDx99z/M8BHM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":937280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtysdCRA9TVsSAnZWagAAm34P/jna0X5rxsDpKycVjF7M\nYqMY23vdufvWzn6AxEYugTjSMtg7XpRHlsIBfVJF2o8A8Ic2YzjUEzjMsEc/\nU4zd1uwnK3ALL0/uZNJnJvh1cblNcKpW5D/zalLFyGx38NmOXySUBTxHPAmQ\nQE4V81eL/8yZJUhlwDXBWAtIeEtS+rWhftrLNwNm2Yozd3vb/zPOfRryedEm\nG2FU7wj6+kbOJgCtD2RM7c/GxEq29uztwO9B1IF7CWELyR2JUmIfdmGqwiLy\nif1bxCSTRzKr0LqDzxZeQ0/F5R8vG7RX0ihFbejbZytAQpLyPh3j4wXiV/x7\n+n1IMvYvJjhhgKoZh0pXTOJelc20wYBeJTz3OEgtHZBy4t/KdRM6jTD71/eI\nnFsLzJrQFYewppTS8excEGl/drEk0QonWz2aeejuM22GqSjmBlllXbCTv/3I\n1c7b3DGOcaJrMWAKQZubzQkqpMYi13eBili0VzVJudA6KXY/qyfO4eFw7klt\ndvMM8RanJmdyOEHJWPhmKmP19VTi3cL53cuEyZmnTqqZ4qYHa5TtUBwxMWnX\nyuC0FDdK5VLecshwivBH+wflBO70gQ00C6BX9yi0N83ghb925r7UqrN4rMK1\n0oyT54GH+szaZBtwD0wT9lE/X/lvKo80MDBMZUMDjd8Nv5x8omoyoiv6t/o0\nUuvV\r\n=EYkH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","readme":"# @hyext/communication\n\n> 基于虎牙小程序开发接口封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { OpenWS } from \"@hyext/communication\";\n```\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### Constructor(options)\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interface\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事情：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件。\n\n##### open-api 事件\n\n- 普通事件\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n- 高级事件\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { OpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = new OpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api内置事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    }) \n    ws.on('getVipBarNotice', (data) => {\n      console.log(data, 'getVipBarNotice')\n    }) \n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","util":"^0.12.4","husky":"^1.0.1","buffer":"^6.0.3","events":"^3.3.0","rollup":"^2.3.4","stream":"0.0.2","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","string_decoder":"^1.3.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","crypto-browserify":"^3.12.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-alias":"^3.1.2","rollup-plugin-commonjs":"^10.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-node-resolve":"^5.2.0","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.6-beta.1_1622616861389_0.07568920814172997","host":"s3://npm-registry-packages"}},"1.0.5-beta.2":{"name":"@hyext/communication","version":"1.0.5-beta.2","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.5-beta.2","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"981a50c81789619daa933639d44e8cad0b0ee544","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.5-beta.2.tgz","fileCount":8,"integrity":"sha512-JlONUFrr6pXquRZRKtRA56C6/QGVwecIa0bYDqHcXKdSwAYj4AduKlug/lwEoo3RW2LNEHDZwRHpPTKBYc13Cg==","signatures":[{"sig":"MEQCICg6vDwc+rLtd+hWV7MgZi3+Z8apF9bcAkyvm918nYoQAiB5+wE4FfRpMq19TX4g8nCs6WSw+R88zjTAo02sfWK/7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgt3PmCRA9TVsSAnZWagAAC9gP/2X0Lfi0GC7DYjxzz4xd\nUVY9vrGCpLv8MgBmLe4F6MHEz9r0hAieEW6Pshr89lTcrEmGCYoPVq8yGru6\nz9Z1i9q/5ayad8M03vVPMcaxTdqTYWn4kNWZQQbROStMhlLgNLX0OtEkHERB\nDR5iIYxtAYPEcXtV7ioJk3VK5eZZsKIcpfP/RxQHvLNBEKgfAtf72BJL3d1T\nqOROlCS8BKCrGsyx7K+wg7ZQm+AyY1d0qIjwJtfXtJ/Iz2DdT0g5LCKfhw34\n33Co750FzFlzxlT2W49CET4ju5YqJJ36GEgQg0DNm4PzWWpLYvkn6YeE3GVa\nxZ2sxaxBqACpz2iFWZyegK4C1g52/iFl1y9DoQa07S1z3xEAc4ohwHr0ToOS\nP/AlkwWSgDj+QIYPvQIq3gXQZCIPVtMoin+zq8xzb5RlFiPMz9uFQC4H8Ahh\n/rqKyu9Igkk67IC8aFY4qIIPi8pjXIx0W/WA8Dt8hkaocFpGOKTXbsTCH6aF\nEruhGTWKS5Ap6VSKednTfOEEi2Wj/d+kR2610VhH8WoABhHuR2jbZ490HDF4\nsFobbbnS4qQJXF0BY+4G5ahKNrtrNsqj5xHozf0+cGo1kSYj7cBYWCsJeXFY\n2JQ+Pk5Ju7TQlB0bTwsTTKp0Gm2Ze/Z7/0DRr8AKXZFn28ebYJ42oPyB+sym\n7spP\r\n=P/kY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","readme":"# @hyext/communication\n\n> 基于虎牙小程序开发接口封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { OpenWS } from \"@hyext/communication\";\n```\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### Constructor(options)\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interface\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事情：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件。\n\n##### open-api 事件\n\n- 普通事件\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n- 高级事件\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { OpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = new OpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api内置事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    }) \n    ws.on('getVipBarNotice', (data) => {\n      console.log(data, 'getVipBarNotice')\n    }) \n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.5-beta.2_1622635493857_0.9136338430053244","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@hyext/communication","version":"1.0.6","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.6","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"4ef8c9c64ef9501354f74f4e15ebce0e8acf5cf6","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.6.tgz","fileCount":8,"integrity":"sha512-dVcZCXC4E5g9TGdrJfyOhQu1kj8DNJBFDc/Je3GZxMdfOVLnzuSvKeYww01juetNjANruwuMyNxPIS9xEXW3uA==","signatures":[{"sig":"MEYCIQC1NyllFCSISeevizVNL0opsGVY1lvq4osNk+A+4GtjcAIhALEb22fvM1iNNeMSlOLpnE+nWX/JxMJgHcCMWa1fZFmG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgt3U5CRA9TVsSAnZWagAAp+QP/1ZQU3LYD0Z4zU/Of47B\nLye4m0osQrxSOsPBDZde4aBhJFFh9Egdz/KCKMZOiij+OA3tqAT7ftdcuYmv\n9T5n/Rre16iz0omVawrIrWKZGikZSM8woJ+w7NqySxYleDKbTeFIT9KzMJgL\najuCS+M0uCtmyqH+hx4+4fGlPM9b63APxLAfJwQnnnlDcTUpB/qhghGpN3Yv\nApppx4xQ3kCPYLrgEJTwEmlCxsN2LwNivdCj3edDX2csVbIvxiiTHo1Mx2QM\nDsaHAKvoS/YZdWieOdcC+HkOd0oT1tAAL8QSg46p4EAhds0NZMbGvGAWINlr\nj3koOBVkE5Q4an2gAbKoqkpsivAwo8PLa9fRujZFV/Hh03b1RYkksC8HFiyw\nNMx6lrDOS25hhDa6JrQHQktDRwFaBK2RobG5kV3wcs1OWtCJudx50ivkDyJ2\nCygX/jrIkYX0yrfEQVvlR+lZclpSa8QLmo6JT0S02/vfaqvV3oq+ubrUr2/6\nNVdVKOv6311vUGQBOA5NIjcLQdDsndI7YB7EENSApWEajX+mRsA6sKHOSKt3\n0Hxg8wNPT3yb/bwVRHq6yIiPtalqjCtR0+f6m1klaaiTsTvQ+FI3dTlgPrar\nUR54cQM6UO7r14jOnZD/uvsHrKIzmyHhCqJ7yOBlBVdw4tIKxt932G5hq2U5\njLtM\r\n=jnx6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","types":"dist/types/index.d.ts","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.6_1622635833481_0.360956063792119","host":"s3://npm-registry-packages"}},"1.0.7-beta.0":{"name":"@hyext/communication","version":"1.0.7-beta.0","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.7-beta.0","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"9956c6adb501ce66f0e21725e438a14c33527911","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.7-beta.0.tgz","fileCount":9,"integrity":"sha512-62qJgGVBHqAzwNeO6+C5/x3YJvpkwcQf74X3dBMA4hDnTxLXgLcHzX68m+xANNjr9+u6AZGIeJBhlh5PoRR4kA==","signatures":[{"sig":"MEUCIDrOBu1lryp2mvvDetQBNlNTHLb2cxd4yLejONlYtqL+AiEA+/p1nwDE1Ev2ORn+ahYw1qmM83LY+PYazDwHMSu3DTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguD/vCRA9TVsSAnZWagAAvXMP/iK2v5jNR8Pt49QNWkBS\nZ1r4BNwWheqkA1OBFi33hu3RMjEEcxjTUx4oHtyzb/XRSvm6p2TAVSwwjso9\nyOL6YamyNi44wY2ymjJTeATLGYEprDE+oEuYyHWNMsOW4jv+kp+YjegKm4rP\nprDvQ678S9i//kYg6WEJ58Oo9Ke3rt+Qsb4W1KYOEMqsejSVvA5NM2vw2NRe\n1nAJ+TIuJ9UX/L9HBjLaqc8z1xT0cTkiRTf8cGrToESoGypYLDTdGh+tfiiW\ngpBIDu759gLiU0QFy9vQDUmUJbu2nI4a3xe1Jex0lJEyhUnVjTW+vPBiYl6T\n7lU2USIVaqkZTW0/1IsjpWX8KFyb/CrMx2ZdlB07wHJXX1tnHWZAJsMwo5by\n12m2uS1hMIIx8fly2yWpl+ZcO7J8VCnmOY1Yot5vpdGMb/3PhX0u87AmYUT+\nr84FuC6b3EisKOWcgOYhiwur9i4DDpkPKFoSZHS2Z8O4conmcSIY46sOyYMr\nI9ggGLYzHiRmnwD9J01vJhSrMPJk4gxQWk5kT7ijk/GBa0EXoVZu3BMZb2Zp\nw5+6IJuDCuP68kykwO6ktW+5PGQTrHivLF4xG9Yb5YLPMem405puKIYuAfU9\nj1/+3fjA02AuKJFpfUIfCvCG6O6CjNrDybznNnutUZY9J9b26LuRfo5RkI2g\n9TRC\r\n=3Yx3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","readme":"# @hyext/communication\n\n> 基于虎牙小程序开发接口封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { OpenWS } from \"@hyext/communication\";\n```\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### Constructor(options)\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interface\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事情：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件。\n\n##### open-api 事件\n\n- 普通事件\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n- 高级事件\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { OpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = new OpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api内置事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    }) \n    ws.on('getVipBarNotice', (data) => {\n      console.log(data, 'getVipBarNotice')\n    }) \n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.10","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.7-beta.0_1622687727247_0.23349292044593772","host":"s3://npm-registry-packages"}},"1.0.7-beta.1":{"name":"@hyext/communication","version":"1.0.7-beta.1","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.7-beta.1","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"031b7cd80150f681b48bb74b518b6762f4870807","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.7-beta.1.tgz","fileCount":9,"integrity":"sha512-nDUebKKmfnabhhLcFdkuM/SQSKXDFfhAaAB4ifMUSuCGNm1Ukr88p0wHc3nQHZRQ6qlq0KQEaSFPx4bdG6QVLg==","signatures":[{"sig":"MEUCIQCZbplwawQoL+PkELGa52vi28GQ+BemrevPdAh5Y7XWLAIgWAAssVRIU6/1dTBdaDnUOuRBLcTDE9X/N30ogcZ505Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguENqCRA9TVsSAnZWagAAeI4P/jO2K1fi3vl0yPxn2zXL\nkLBuUtS+gp1PhrmIrCF2TquoCbSoX98iUBJKQUMVC+0amxesyu3DbOtkDPTU\n27JgGWf/Ot/USfVkKT7kHgKmk0IaOavI9vmxPz8xH3WOqNHyxxQjypSxkTcV\n0WEISuy4ggHS0txtljhtcLQnDEJ/UASWa/D7K3WBnihvpnu5JL3IURqsiU59\nKWYdMp122cvp3P+sOZhQiI1CFYkGDbzLjZbW48PGtNiUd8dDIAwvyStMJSqZ\n+VEmtFB0HG2/s7qRHHQx2MPSRs7l0I5T3oINnsNy2kzH4ndx1YztheXng0Uk\nNoskGgSheW9AMXXzdnm25p41FS+eOurz2gcwdM2LhKrP7X89J4uIHtceJeWj\ncXmVYs50zCMIETZdPeWPFKITNozFzMVJj1IQEXhH3uSvPeEC/RGPpCJe3FcI\nS04BTjp5IBM8VAGV12o6tK8SxvTOVl6+8UpIyQZUJPT9mkQUaVPsqIppvXk/\nGG2LiVA/JbBOkMJxrSl0ihie/hemysrIuc0OTCJ/6OQct9+R6hTRrasImylR\nIZ4U0Q5HttAKe0sJZge5ZZd52rD2t736ITJVm2LKYISZje/OBsTMQttm7c6X\nWHIMYwIZKzH5a+n1xG+Ze+lwicGNPp7j48yYdundgmGR7XjYz+6Z2PM6yqRp\nGv+c\r\n=ZDgt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","readme":"# @hyext/communication\n\n> 基于虎牙小程序开发接口封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { OpenWS } from \"@hyext/communication\";\n```\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### Constructor(options)\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interface\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事情：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件。\n\n##### open-api 事件\n\n- 普通事件\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n- 高级事件\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { OpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = new OpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api内置事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    }) \n    ws.on('getVipBarNotice', (data) => {\n      console.log(data, 'getVipBarNotice')\n    }) \n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.7-beta.1_1622688618545_0.3787325242782671","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@hyext/communication","version":"1.0.7","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.7","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"307fccb5c3a70e39acbcb6ae4633f9dcc057e580","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.7.tgz","fileCount":10,"integrity":"sha512-iWvU80WrGxmlqKABSOk3oewNHLOphJQbMtrNGTrV9AODrjQ5yGWWuI8+CQRkOeLkzozdj0CDtKs5EookJEd5tA==","signatures":[{"sig":"MEYCIQC6ztnzuKD9Ez7o287/NVLDhAkPdhei0ZeMkkNMtQdhgwIhAPlcqfSYP/ze4LrsO/49DTQRvanBDiKZhDeYUoih2KO3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguFLCCRA9TVsSAnZWagAAGDEP+wVTO9Bimny7QoLwM1n6\n35szz6csOpgTU/5b6ZtRt7bo2o73Yout30HM2jwcTZcvGja36lJOkMBV1YjB\nItg6qAjvJkEAextfUVv6aTw/lFrSFTSye6wvTw9xq0+EXnBlQ/qycqFPRrpb\n/7TDaAvJcY0uxZV+zhcZ2tb5pO5Ws+hQh4jX4V8Z78AcEb7utK+5yn5lFlUc\nSBChEVUNyUPZzWj64avzSEG9SA8uAeMIyX4bZ1qwgoQmJqKIO1jSmfngI+ye\nddLv75l6VEtPBKQ1+OUPiYiZdp375JqqonQBgXlnEStDMMd52JBDCWi2pOyi\n7MnpS18FXo5uBuiy2BpbnWbLv69QR6u99eFgyjufORX3+tortS/Te3Z8hXI0\nwTB3Jz+NyEYX3ht6rjG6YT5X2t6IiaKlnDzyqFhMu1fQzA+6M2Gk/5A5bPAY\nMi/ZGbUI19KE1XsPnwPo9vYOePYcSRP81rcBpjjlybZhw/aNjkUvqdJRVXPN\n3+7g0qIFIV76y5Lv1U9gVWOZ2MQBn0UkzB5hbulX96AA76PK+A+GDtBTN/hX\n18tkVph38KNO82o6ctxLSwD5gn7pigShU1y3VykSllvhVCNuv9QWP5eCE3Rf\n/P6Ssm4/+uczg4Me9a4//x6QWqwbVhc3vB5YGf1QphjyfDyvXuk3lQCTbASi\nmBRQ\r\n=8YtA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.7_1622692546419_0.44919167097200874","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@hyext/communication","version":"1.0.8","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.8","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"c3f427b559afcab5511473a28e487154a2e4eb2a","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.8.tgz","fileCount":10,"integrity":"sha512-ysM4+uN/QSfdVzG0RCau2BWr0vf/AjaJcFUwpd3ttKIQMVvzAiW4ZsYuh7iuBthHMZqEnmocgLmrLSx7jq4QZQ==","signatures":[{"sig":"MEUCIFqsl+FECyCgg0Z/bPfjSjmUQkWm+gs8JLXUD6mSlnLfAiEAiZFY0vmv0P9xF6E0mlzrUMgcR8/CqoPVTCriM++c2+4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgug+MCRA9TVsSAnZWagAAEkcP/j180e3ZygJu867Oh6ji\nBylrKDYFzbuo4oCPU0M7rdhlZHrmJmuRLe9BZ5Ipbvts7eJAej6e5qMVsCJ4\ntAu72+Xd769hkwLXLw4P2NeDxpiFbphmCWOb5/eqbp9Itll+41TxcUynnepX\nRfPO0JjDEbn5EEEmNpTtyRqXnl2T08bfUMFUPud3jUi3xktl9pU8B0YcW/mQ\n1BmVKy2jbWsPv25pMzlBiUUUViA2lygnEd5Jgaue/9fCcQ5B+VuIBPR4id6k\nyHMF26EGhIuGMuNHpSJdpB1S9a0LTDqlLkv7bEtE5uwCmGEHhMvRvN1ebPqV\nbm2EZJQYwZ94Ii0NrmuDeV+R+PmGsfYBvXALHAp4egOBPU9AsiVYeHRcNtLj\nXCplp3W3JkZ/5fV4lLUCtKDo/gEjvLlwue7I++CrBI+8VAEsM5hOu0nMx6U7\nllOGsOH1WvTgds8bZ54scQMdV79mBEB4uiCTKXBZhnRj69QPfRNzu06gEqK2\nGXwoGIwgHYRTp9c2z6n26zc2hXmsL9DssZuULEJnUx1+EcHMpiE8ZwZ75Ct3\ngLaFin/wE6z8cdLnqeAIv3f6P8zzxNZeyp/vDICz0HyzzO9emsMwRx393+6B\nXzZAqocvY1MGYo4hOp7vcrZPOCaMegJPRcYB7doyMQEeoXVzKoRR6ge8hETJ\nHGLM\r\n=Lcip\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.8_1622806412085_0.7935488632543799","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@hyext/communication","version":"1.0.9","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.9","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"7cafa2f417d32a9dbee3984a95bb71a3c5fe9611","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.9.tgz","fileCount":10,"integrity":"sha512-2ghZ+iMKVYboWP19bsSHKhq+QJo3svA5xzCd2TvdF+jZaX6A8fY56ofygzefYbgD2V9O2t7LaqH/LaO7bJdCXg==","signatures":[{"sig":"MEYCIQDoecjdWEAu8km6qVhfb8y0J3T+W67BIHFBzKYNZC2O9QIhANGfDMdP5TL72ibaDRs1rYr0njI7uB6Ag+SoxAfHHnbq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwYwLCRA9TVsSAnZWagAAjJ0P/j608xmwgOG+3J4EQ/6V\nw+X4fi+q+DIPs4Bf2xqb92vQzSTclc2kp4HAjPiLzvgyCWh/M0PlJ1potlUH\n51EzMDfUs8NBXgPQTIfPWpFfjclw7RaIFnyORRItkWLPORc626hfhtVP4IuU\n/QDsRKu1bE4u0h6QjDUBPKfoTomQrZs11Lrf9BjctxGAFyPt0Fri9WU9Musx\nN4OfB9CJz4kkAM8rFNJXf4iaxZ5WUx1ANjKh725/PVJGL3ARAjP/6N9PiuZs\n9g/3vMFr0VHwV1+4lt1gLxSM4TGiuQfqh0jtRviqo6IK2yHZbDBRPJpqPYPf\nxeT0P5m+YXLUNtZ8XvUXHYQDPTgvd1Bph2Q7WmcwlXpHG90Uq9gRoPXEzLXP\nzZ1JKxnYhjdUFqKoTZxkasWyRRiasdOsRFRwXqWUBjANcQr3tWviBqFlAwyP\nWgUvYvvB9avflKBbBdlEdmzbnKgxaGz9BY1MZde9mQfTf1/QAEQj7O/b4W1z\nJZzrXytjJhAjFEEoSjE+35m3GqOXYACu0AVF+uqof+lkf5UbztqpXulFMHCl\nXSzwWS2aQmVNRJQcn1Ti20KWCcjvaxvJW31LmCK3P2le56IA19um9rZmzDZZ\nlUXiv8+qOvtHUGdJHww1qPtgevTkRvxZHITUCUHtCZZnQN72oiMRGuri9HpP\nUQRI\r\n=4L55\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.9_1623297035255_0.44919353690648456","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@hyext/communication","version":"1.0.10","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.10","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"b0d68b1967b016719800472d499979fbc3a494ff","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.10.tgz","fileCount":10,"integrity":"sha512-oCjMzVF9aP8QQAVgH7qCBOFaPhTz4fIf8ttZ/MDs9EoTdCZpzGE9c5k/eYFbBGzcGSrrQTQ0Z4O2vBUAv+jNRQ==","signatures":[{"sig":"MEYCIQCNxxKBo35ggMe+O9Q9MjrlzhwMASJC8BGfZnLw2SPybwIhAMfshUuQcCif1gVmPP/xwFvUWDIXFA7u2ESXk3Jr5HJU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwY1GCRA9TVsSAnZWagAAR1gQAJAwDBYrbgflJhoYNdPJ\n3y0pkqZUyk/ybhbzOBmlqjCBrU6apVylJtCYu2QUlIje2CyM6Z2yT+RcAn+D\nXVdwdY/MZep/ZMh9n4Rz1K7TFwMdxbRi2WLGfOoMZejgGgJNN2M80eN4Fdj8\nBdSSkO3045k1/4n0jHLsybLZy49hSBkqA27sTiCmX5Q9VjyUCkPSD4gl7MQG\nGzUYqr34d6iLb7SQP/agJ8DZREENCzAN0Ts4hjsmpMECrvU4liJJkn+mA55S\ndtt8L9eCgK2xK3BUhLijaJnieqKn+NJByKO0CEOwE5zz7j2i7KMx6aUGbAGJ\n8yMmqVT7ShW21LqhyF38EOTWzcZ7FA9Ud5LwD5XL2BjtgGo922Vs98PaTrKI\nvuNp7DbJuub+l+RbJia2GrghRxbQEu3tOWGVGRrKatnKkLxIFY5J1AX0RYUx\nOUVMRwH68rs4HBn2QtI/QeOSPw2EwvSy9OtfvBPmLxYmJdnwK5u0ZUB4j37W\nCoZJHsveJhvjcEIYnwy/mVhr42BbC6tPD0fXaZzbAkyUg558Tp7adp+chESf\n2DH1eI/KxOqXmoJ9uuCaOsPG65lEV+AroBJXQJHPOrgyLcqlnq0Ymu51qWK4\n1x0/ofNUJ4fxeS7aDitTt1AKy/SyC7MBpDz+0Uw+V9o+rflcUcT81YtyE+Ao\nBDZC\r\n=+nZn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.10_1623297350622_0.4351899524554095","host":"s3://npm-registry-packages"}},"1.0.11":{"name":"@hyext/communication","version":"1.0.11","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.11","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"cd03300cc089d2ac0dd2453ab37d8336bd4f4d39","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.11.tgz","fileCount":11,"integrity":"sha512-qes2Lv5ZNv7ercYy/AuECkSXCCgDuO+eUBA+CvZx7vS3FhCS/fFlT2fiKbs42WOZwBHU1xshxGK0COR64tMeZA==","signatures":[{"sig":"MEQCIHMxPWWQgFyRc0lQnyNs5hAyasA+Do/0fjkfmZp2GTu1AiBZEUKyCxV0ghads+EUmqcgSFIFC69XJYOlUkhePHjvYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1aSvCRA9TVsSAnZWagAAxHwP/iypXmeqDrxurvqvckTw\nHeZErNq03tB5rRF2gcz4dwWckB4YTcMAtIlFAbEj+Hqus+nROxU8y4EKzX41\no+2ZjCQRhJYhrdoKIi/4tz/iFkrLBlCQ/1GmBVc3IekHKLe45mrWTfL9wcWe\n+P5G5iEX05K16x+SUBe/JcS1D4Pxnjnnk1AGNmd6MOu7/32xNooIaS3vrzCn\nMu47ScwYvQMPxh6LjjCwzaV+4H5tPU59W1MgKu5YYxsXGXQzy2ZNy7Dh2OOK\nhfG7leCrn90HY4CKPOUpGY93UHmVklN5B2bR+RRHums3R9OERQ5nfSZwEHGR\ns3v7cKElrP4J/zMYOFoqb5UnxpN1q2PD5iz6/LGmmRw9+J58E2QjJgSfhB97\n8tK7+Zd8QMFEnm67aGJ+4yE0g9x9sxtiqQDlOJOxEbah3MqW0D+cCv/okXON\nuFwbRKcKOOrTyxXamMJmjPUxb66ILqcWP9RTigaNHToKnJ8C5N1zoYJzw2/2\n2QDa8oRqUvgARTDTfoZ4XaGkiXfQQXEkJTboL6kW88k/2l+W/JN2Bx69cJ+f\n0wYfWDeuvc35mJYEB2DAzPdvdejtcoKMAG+AFLZXp9E7Jm4BmOVyTt0HslDb\n3fkqrM4ff+3dFIo4uqMIlzS0Ppa8wFW4R1pm2ufT86L/qnbzVKNGVau0ZNvy\nQINE\r\n=4xkf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.11_1624614063302_0.4338399082468736","host":"s3://npm-registry-packages"}},"1.0.12":{"name":"@hyext/communication","version":"1.0.12","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.12","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"c075fb0cd3cfdceefabda2eba58b98a00fe13062","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.12.tgz","fileCount":11,"integrity":"sha512-E6h9T2CG/5zaXuFn2ClKonspPnA2tmsRNbNPOErVWiA41q/uPQ3Dwy9mYH4d/d3AzZPFHitZ4qpUJpqt3+l5rQ==","signatures":[{"sig":"MEUCIQDIOlB+O4UxBvl+0qvPOAa6QBT0HVFKPfQn4FYA7bqOeAIgY3DIsS2G+2zhVGMg6Q4acURt75jESBhznGQVLfbMeNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1akgCRA9TVsSAnZWagAAP4IQAIKWbCLmUx5cavprOdcZ\nzNVEKAWYoex+gRkm445DJ9KzcPeD6H+tqmu/eRPUEnB9Si2+Izl4IQve0q5d\n0b2giVVBKsgEq0SXGuQrAYNteV0Waop1H6OULEwzNaNy31typlcALLpvwc9l\n+YegJM8l7YuXy7Uo9Q0W8rDxTJn/aiHRLJZtsCKtniwmWspEeM7ntoyTINAW\neyXo7IuuEByl2Suv23qRmTaoFGSraLRYVIDbMdH0mqbKV5SIYWanO8wsgahW\n8KRhgpEHB90ETCihxrDDgW40AvF+xE3FPePXB7xIebuDGfKGIg2fRwtj0C6z\nfJJGLXCf13BT6lg+hiBWuFR1wTpqw2PtdpzC505lbrzs8RcdPMdIygVifoMN\nVPnxjPLNs2xx4izXHVr/pB7pGNvcGoBxzj+kUwFod0v1d6zesSIrxT6f9CBL\nCVd03Zjw1PFQulqtlZGJJ3lwFYBp4WMl/2bG6+HNkUsDP+aPL2IXN5m6uICW\npzfES0eI/KE8DB603G/SvuFcS1iQ2PUrLI/7HAMgJfhTRiz2dLy371zE4PR9\nggOX+3VwPOjsjVM07ARwKj46iQVuJpWn59F8pFO4JKO9iA2TV0NECG9E0dG0\nmzbXsfPYN8Ahma86ogtpwPriAy2bv9oFp9wWvpn+15ZJfTA1tmx73YOaBmX+\neotS\r\n=CYpx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.12_1624615199845_0.2350827749870541","host":"s3://npm-registry-packages"}},"1.0.13":{"name":"@hyext/communication","version":"1.0.13","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.13","maintainers":[{"name":"mylhyz","email":"mylhyz@gmail.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"b5fb1d3228433d18a0b8af0bf69d4388a043ce5b","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.13.tgz","fileCount":11,"integrity":"sha512-zxadGSQACZpB7fRjsvNHT7rKN1VzUSzUKj5iuwuR4PtjeWFIHh/2xT5EoeRgeqvXOBQWAJgPtOCJwlA2hgvR/Q==","signatures":[{"sig":"MEUCIQDR4oMTxGapO5ntBQ10gf64lTlJF2WodInPFcE/YJpJngIgQXeoz5yE0IP0MVfbE5DCIDnAmH9If4xXN4mnpxB+JKU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2TSCCRA9TVsSAnZWagAAfwsP/ifZpfVyBSyaC/3ib8T8\nKVa3uPS3PbccTxDIeiK/ONRRMUSCMGlduObuPi2g2uGCsEc1BC2W+UazthHK\nVeRxnMIFB9uEW7bdwNEESjBZRGS69lVSy4MXOBLrXEIiv6rXzkb4egqwig+P\nVfmDueL/E6bPw0q7HQ8Ky214AX7u3All6WS7TERQDem57cPOQov7lVch+mfS\nrjlEKvXhZyZPeqQCLI5AQYSbDKWoHIrt/iqydyk7t56rJO6IeF6Vw2HWUVvO\nOCvdPBUGu9EJNFeTjkHHnjgKWDgy6tipx0ldvxr5/eDgs3nt9frEDBZ5YtgG\nQp5iGM9ZQ0izBnRZnHumg1mx+Z3LLX33NuCCAMDneMBdx10FxxW0yvtTjHEb\nEzaBcSGeg8wXBVDGPN5+qxsZOLDyMEY04jHv40BBhtmxUDwdE3GypdH3QKaa\n+m7htdz3fHaWrY4cq24kYUUVoajZDRj4foi5mxHBhRj5vNdRAWbGlBWXNLNU\nNAA1UXYufbkOxIZStzxpzJ3FQUyBUQq22/2Kv6WsR4MvWf98/o/siNoFgid0\np5F/djmxXLsc8YWefLI4cWMIS19P+ykkxZTajLLqz+0i6lyWcwiQ1Z9BiMQ/\nB7rfrgHtgd8PwCyZF6vhQTW3Gfrdve5qAIujXcnaQSRYKS9nxqzO/Sup8p1G\npa43\r\n=ShXU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.13_1624847489455_0.7234649104131714","host":"s3://npm-registry-packages"}},"1.0.14":{"name":"@hyext/communication","version":"1.0.14","keywords":["communication","huya","miniapp","business"],"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","_id":"@hyext/communication@1.0.14","maintainers":[{"name":"hy-ext","email":"luzuoqing@huya.com"},{"name":"menglexing","email":"menglexing@vip.qq.com"},{"name":"wundereye","email":"icymindt@gmail.com"},{"name":"maizhiying","email":"zhiying.mai@gmail.com"},{"name":"xiangwang123","email":"wangxiang@huya.com"},{"name":"jch2020","email":"jchjob@163.com"},{"name":"zhangjiaheng","email":"zhangjiaheng@huya.com"},{"name":"limingyi_100","email":"limingyi_100@126.com"},{"name":"quoc-vi","email":"13580557171@163.com"},{"name":"mylhyz","email":"mylhyz@gmail.com"}],"homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","dist":{"shasum":"e15c55a03b76d58ff435cc51ae83bc78502c0105","tarball":"https://registry.npmjs.org/@hyext/communication/-/communication-1.0.14.tgz","fileCount":11,"integrity":"sha512-RJBoayIBKboC3OqrSngKFucFWoCwbFO7PUWvrPEZbW7/DCLbVcfX71eudgMVqWpgCTsVQ+SFIVM5zz1xhoGLzQ==","signatures":[{"sig":"MEYCIQDG1IK2g7nC3rsS4GLTG4LGhytLl740vbNlcOIHIOM6kQIhAMNrRWKM+ymy6gLLF/8Ay/U+T0IBgT0w9XDfZMuyenWV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCf+yCRA9TVsSAnZWagAABVYP/2Ecw/1Gyc0rkF5gKndD\nu59lBp1a1wIPKeox3GAIZNb++lt+jrwpUIrhqD8c+rSioULmShCGwS5+bNrY\na/JDXFVU53p6WII2jtLGlrIM6AZ1Q72pmduiPubg7UyTiuJv6aSDK3ZavNBD\n77nRFrDTjRPYr/Lzm0u6KvXZFLzCTynZZLp/fSdq4layPVCy/z62iH9ldExq\njf+i7FsvjO4e5KMFn7fnO/rFbchWtZizQfL6zstNF16EjoKBeTcWnwIsgo78\nn/GHGdnTH4LY+9xSSTkqAcrNQQZbS9Ufpyy2CF4R556v93uutHKqbyimV8EX\noEckHwHFzhU7fqW0EbfR7BrD3w2L5i5D9G7MEd4v8h490EKrgn6Hf1UMYXxq\nHO3LSVx7pmWpI/KgZFH4uuJGxUjAqTS5EsqpRdMyCgAP2p0eX9wXjfe6zbHz\nOpDNvCkJkpQP3ervg5kVLhgO9I4oQIsUFwyhexbhd5u9gOYXF7gXWo2nNKeP\n9JCiZE0qYYrnaaM5d0UUD777LPR3QfBgoqimYdjkrUCsLROmB1VWsSIQvSPR\nOP5LRkI5VhSx2DZ9Vl7s0K/2FYFmdNfXdBFCEHXTFwXKRkHMT6qc4isP72Hk\nCP6poF1PWy3eZNJSh7vcvlbAtFSXSzhDmYSGiyWPXTUJpQRtwBbVgQit3x2e\nCaJk\r\n=NR7a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.esm.js","scripts":{"test":"jest","build":"node scripts/build","release":"npm run build && npm publish","test:only":"node node_modules/.bin/jest __tests__/promise.test","build:watch":"node scripts/build --watch","release:beta":"npm run build && npm publish --tag beta"},"_npmUser":{"name":"hy-ext","email":"luzuoqing@huya.com"},"test-port":"--inspect-brk=5858","repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"_npmVersion":"6.14.8","description":"A communication lib for huya miniapp business development","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"10.21.0","dependencies":{"jsrsasign":"10.3.0","@hyext/utils":"^1.2.11","eventemitter3":"^4.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ject":"^1.1.0","jest":"^26.2.2","husky":"^1.0.1","rollup":"^2.3.4","tslint":"^5.11.0","codecov":"^3.5.0","ts-jest":"^26.1.4","ts-node":"^7.0.1","prettier":"^1.14.3","coveralls":"^3.0.2","cross-env":"^5.2.0","ts-loader":"^5.3.3","commitizen":"^4.1.2","typescript":"^3.0.3","jest-config":"^26.2.2","lint-staged":"^8.0.0","@commitlint/cli":"^9.1.2","@types/crypto-js":"^4.0.1","@hyext/ext-sdk-hy":"^2.6.3","@rollup/plugin-json":"^4.1.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","@rollup/plugin-commonjs":"^14.0.0","cz-conventional-changelog":"^2.1.0","rollup-plugin-typescript2":"^0.27.1","@rollup/plugin-node-resolve":"^8.4.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/communication_1.0.14_1628045234254_0.6430201605789776","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-05-28T03:25:43.459Z","modified":"2025-04-25T02:57:30.577Z","1.0.0":"2021-05-28T03:25:44.014Z","1.0.1":"2021-05-28T03:37:15.251Z","1.0.2":"2021-05-28T03:38:04.005Z","1.0.3":"2021-05-28T03:43:56.342Z","1.0.4":"2021-05-28T03:48:47.544Z","1.0.5":"2021-06-01T11:46:23.640Z","1.0.6-beta.0":"2021-06-02T03:54:50.333Z","1.0.6-beta.1":"2021-06-02T06:54:21.617Z","1.0.5-beta.2":"2021-06-02T12:04:53.983Z","1.0.6":"2021-06-02T12:10:33.647Z","1.0.7-beta.0":"2021-06-03T02:35:27.451Z","1.0.7-beta.1":"2021-06-03T02:50:18.666Z","1.0.7":"2021-06-03T03:55:46.559Z","1.0.8":"2021-06-04T11:33:32.208Z","1.0.9":"2021-06-10T03:50:35.450Z","1.0.10":"2021-06-10T03:55:50.766Z","1.0.11":"2021-06-25T09:41:03.495Z","1.0.12":"2021-06-25T09:59:59.988Z","1.0.13":"2021-06-28T02:31:29.566Z","1.0.14":"2021-08-04T02:47:14.369Z"},"author":{"name":"Alex","email":"857276958@qq.com"},"license":"ISC","homepage":"https://git.huya.com/exc/web/hyext-miniapp/packages/communication","keywords":["communication","huya","miniapp","business"],"repository":{"url":"https://git.huya.com/exc/web/hyext-miniapp.git","type":"git"},"description":"A communication lib for huya miniapp business development","maintainers":[{"email":"hy-ext@huya.com","name":"hy-ext"},{"email":"zhiying.mai@gmail.com","name":"maizhiying"}],"readme":"# @hyext/communication\n\n> 基于虎牙小程序open-api封装的专用库。\n\n## 安装\n\n```shell\n$ npm i @hyext/communication\n```\n\n引用\n\n```js\nimport { createOpenWS } from \"@hyext/communication\"; // 虎牙小程序 or 虎牙小游戏\n\nconst createOpenWS = require('@hyext/communication').createOpenWS // nodejs\n```\n\n> note: nodejs宿主需要安装`ws`模块，操作如下：npm i ws。\n\n## 模块\n\n### OpenWS\n\nOpenWS 模块是对虎牙小程序[open-api]()基于`websocket`部分的封装, 可以接受弹幕、礼物、贵族入场等等消息。\n\n#### createOpenWS(options)\n\n创建一个OpenWS实例，其`options`数据结构如下：\n\n| Name            | Type    | Required | Default | Description                                        |\n| --------------- | ------- | -------- | ------- | -------------------------------------------------- |\n| roomId          | number  | true    | void    | 直播间 Id，一般可以通过 SDK 的接口获取             |\n| extUuid         | string  | true    | void    | 小程序 uuid, 可在 开发者平台->概要->小程序 ID 查看 |\n| appId           | string  | true     | void    | 开发者平台网页右上角点击头像可查看                 |\n| secret          | string  | true    | void    | 开发者平台网页右上角点击头像可查看                 |\n| expireTimeDelta | number  | true    | void    | 内部token到期时间差，例如：600，代表当前时间 + 600 秒到期   |\n| debug           | boolean | false    | void    | 开启debug日志                              |\n\n#### Interfaces\n\n- `ws.on(event: string, handler: (data:any) => void):void` - 监听事件。\n- `ws.close():void` - 主动关闭连接，`此时ws不会再重新建立连接`。\n\n#### Events\n\n##### 内置事件\n\n该库暴露了一个 WS 事件 ID 对象`WSEventIds`, 内含几个内置事件：\n\n- `WSEventIds.open` - socket 建立连接事件。\n- `WSEventIds.close` - socket 被关闭事件，此时ws会尝试重新建立连接，并恢复已订阅的事件。\n\n##### open-api 事件\n\n- 普通事件\n\n  - getMessageNotice: 弹幕消息\n  - getVipEnterBannerNotice: 高级用户进场消息\n  - getSendItemNotice: 送礼消息\n  - getOnTVAwardNotice: 上电视中奖\n  - getOpenNobleNotice: 开通续费贵族 \n  - getOpenGuardianNotice: 开通续费守护\n  - getUserMutedNotice: 房管禁言\n  - getShareLiveNotice: 分享直播间\n  \n- 高级事件(需要向`hy-ext@huya.com`发送邮件申请权限)\n  - getVipBarNotice:用户进入贵宾席前100\n  - getConferVFansNotice:授予钻粉\n  - getOpenSuperFansNotice:开通续费超粉\n  - getFansBadgeNotice:首次获得粉丝徽章\n\n具体每个事件返回的数据结构，可在该页[查询](https://dev.huya.com/docs#/open/%E5%BC%80%E6%94%BEAPI%E5%8D%8F%E8%AE%AE%E8%AF%B4%E6%98%8E)\n\n#### Demo\n\n##### Client\n\n```js\nimport { UI } from '@hyext/hy-ui'\nimport React, { Component } from 'react'\nimport './app.hycss'\nimport { createOpenWS, WSEventIds } from \"@hyext/communication\";\n\nconst { View, Text } = UI\n\nclass App extends Component {\n  componentDidMount() {\n    const ws = createOpenWS({\n      appId: 'your_appid',\n      secret: 'your_secret',\n      expireTimeDelta: 60 * 10, // 10分钟\n      extUuid: 'your_extUuid',\n      roomId: 111222, // 直播间ID\n      debug: true\n    })\n\n    // 监听ws内置事件\n    ws.on(WSEventIds.close, (data) => {\n      console.log('The ws has closed.')\n    })\n\n    // 监听open-api弹幕事件\n    ws.on('getMessageNotice', (data) => {\n      console.log(data, 'getMessageNotice')\n    })\n  }\n\n  render () {\n    return (\n      <View className=\"container\"><Text>hello world</Text></View>\n    )\n  }\n}\n\nexport default App\n```\n\n其中`roomId`可通过`hyExt.context.getStreamerInfo`接口获取，详情点[这里](https://dev.huya.com/docs#/sdk/hyExt.context.getStreamerInfo)。\n\n##### Server\n\n```js\nconst createOpenWS = require('@hyext/communication').createOpenWS\n\nconst ws = createOpenWS({\n  appId: 'your_appid',\n  secret: 'your_secret',\n  expireTimeDelta: 60 * 10, // 10分钟\n  extUuid: 'your_extUuid',\n  roomId: 111222, // 直播间ID\n  debug: true\n})\n\n// 监听弹幕的消息\nws.on('getMessageNotice', (data) => {\n  console.log(data, 'getMessageNotice')\n})\n```\n\n其中`roomId`可通过`client`端或其他方式获取。","readmeFilename":"README.md"}