{"_id":"async-event-channel","_rev":"30-805843d70850c8a2afb8e118366665b3","name":"async-event-channel","dist-tags":{"latest":"4.2.0"},"versions":{"1.0.1":{"name":"async-event-channel","version":"1.0.1","keywords":["typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@1.0.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"3791245cc447011c710859974d7dd6a71814a830","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-1.0.1.tgz","fileCount":5,"integrity":"sha512-71TWAQXpfwaHcna7geX6EaPOslu/UtE+DKVT9gt6IPkxy6eOyzp6rinFlCApsfWisKn8+XkcynexvHG6xzHRjw==","signatures":[{"sig":"MEUCIFMsm3h5y9rv1bsBfYX5q/kYnMmRhZkG67cUZ6pu1P7ZAiEAkR/eizSSxwdQUzBF35nsdvavuCs3WgQWyaRW8dyA1F0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15242},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"eecdb50e74dcab0c11cebbf2364e9384439d6079","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_1.0.1_1715530394793_0.3614345792715894","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"async-event-channel","version":"1.0.2","keywords":["typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@1.0.2","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"b9641b0894ba21986ba280876792c1b7a55165a0","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-1.0.2.tgz","fileCount":5,"integrity":"sha512-lQWJBHDrk0TX2pJuTTVG9nSEMFbR4CtsNRwsxtZn0rgYPE4xCEwMH80zx0nlGl02mc6QSIxvsHM8QFq2gCArCw==","signatures":[{"sig":"MEUCIQDnUQIM//WmWpWYIYTl+cf/L39oazMcKVLS2sP2YHmCLwIgY/qtwmDHgOPxk/9ZoVceeXvy6+Jf+yvv29fXC+Py4jU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17861},"main":"/dist/index.js","type":"module","types":"/dist/index.d.ts","gitHead":"6c834ef22c563f81f5805acc73e3cb86fa66b8a9","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_1.0.2_1715532581983_0.392161887720762","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"async-event-channel","version":"2.0.1","keywords":["event channel","task queue","async","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.0.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"3065182e500844d0d2a763aea0456e604ee3add2","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.0.1.tgz","fileCount":5,"integrity":"sha512-8Qgi7ijkc4+jW4fzASvMNuWY5TIzyVGB6uBSOlbOgR4oha60QcjI6L5sVbmm0YU4cZrrdhfLEVM7pGq7Uy+bog==","signatures":[{"sig":"MEUCIBlg8QIQluaqegalDe5lj1hgwDiRVku3g53cvoXXuFtPAiEAgg3sVUnGMc+11c/Q+dh6hMresC8YCCDpm5+MFzkIUi8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12979},"main":"/dist/index.js","type":"module","types":"/dist/index.d.ts","gitHead":"8839673e1206fe6365c1562f4b666aa857e2b791","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.0.1_1716079515124_0.22913766627518428","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"async-event-channel","version":"2.1.0","keywords":["event channel","task queue","async","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"bb5eb498e7c453cae6b52ef437be617f9d607b19","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.0.tgz","fileCount":5,"integrity":"sha512-QEUplKDrLnYZqR0BE19yeW953rXM8hQhbMDtnO0/ee6cc9JuyQQw6z4KIHGNcIbO0OdKDzTByPnu2Bj15J/nPQ==","signatures":[{"sig":"MEUCIQCMGryY8SdXomI51np8v76J7hFFa+mU2ZD4omDSorz8OAIgDkxG6hspNvribFVahpj2nBCBmZskEqHWiylIRMfulBI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20864},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"0e496ac0871461ba02690c157a176fe1acce0ea6","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.0_1716999105493_0.29129088269204173","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"async-event-channel","version":"2.1.1","keywords":["event channel","async event channel","auto cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"e796e6efc1807742348033319366dbe700b73c1d","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.1.tgz","fileCount":6,"integrity":"sha512-D07HYCZ4I5rD39GUwRvtg6N3gPJXBPcXesP607Fx6d5pkfd5c6G3ItR1OXo3AaDBC2SU4XLcUl0i/pW7xGyfOw==","signatures":[{"sig":"MEYCIQDjjW6ZUGmyK//cpR3PK6eEDpbEBg4nHrzd8pLm51sUzgIhAOUDzsXwQrd5qRTbdNe2+SQJz91QtET/g2U8IDig7p4U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41744},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"8b033586e2824dfef01ed61a3d43ceffe58785b1","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.1_1717086346605_0.1131459047957053","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"async-event-channel","version":"2.1.2","keywords":["event channel","async event channel","auto cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.2","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"5c47bcfdbf23cb31eacb2408648102ea5c0a0872","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.2.tgz","fileCount":6,"integrity":"sha512-Ge+BmaV8COg91/Y/6tZj/JV/MNLEu7agaRK31pL8LIbjVpbjd3N+sf9pSHlavTApCa5oRuOMyDiLM67Jq0LGfQ==","signatures":[{"sig":"MEYCIQDUJfVwG+F/90B6OtVzfibiOnLQF8iSN813MdSfHLy/EAIhAKE4r4ag0m2oeXBKVJfl+UghIVXrJVacmTFVK0oXsQES","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42575},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"2e7d3c47602afa5230d75cdee960796c75ea6082","scripts":{"test":"echo \"no test specified\"","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.2_1717781851308_0.4021658671485484","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"async-event-channel","version":"2.1.3","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.3","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"e3579a5d55d3c7bab7eb5f92cc93d50c3dd508ef","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.3.tgz","fileCount":7,"integrity":"sha512-DK776hSQlHiXZA1xecow3WkJp77QnNC2dNlPN6WgRASdDmhKlWhDph6l3fpI/dgYBLI0OO6pZV3oqO3YYCHjfg==","signatures":[{"sig":"MEUCIQCJ1QMUPxgkZ1dsnDLjuXikA1wUHHw4bAfFLw7LkVjlQgIgFetfiVkR/Odtj4UZB1xyg5NhlSrIhyEp/1jRloTrGeE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55538},"main":"./dist/index.cjs.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","gitHead":"fd8c6de9b3f3d6808bdd19a039e72bf7881c2735","scripts":{"test":"echo \"no test specified\"","build":"tsc & pnpm run esbuild:cjs & pnpm run esbuild:esm","esbuild:cjs":"esbuild src/index.ts --bundle --platform=node --target=esnext --outfile=dist/index.cjs.js --format=cjs","esbuild:esm":"esbuild src/index.ts --bundle --platform=neutral --target=esnext --outfile=dist/index.esm.js --format=esm"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Asynchronous event channels","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.21.5","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.3_1718209012814_0.5777612527641414","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"async-event-channel","version":"2.1.4","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.4","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"8883bdf4020c943cce71e5bbf1f2a3d67fd386e7","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.4.tgz","fileCount":7,"integrity":"sha512-0qo22/A0GOfLcc55KwMZGXCu/IKfG+oBrePqK97066LtnXdjSnaaiN+dGFLy9mJdKiB1JEGCkeFKpnh+h1Ocfg==","signatures":[{"sig":"MEQCIG1QkFakYftTC4ysWe6KrJmV71Syk8WpSlpIO7ExdHhbAiAxtA7EMqIkKGdqCpf/ANK5uoJ9ruTnoyeW5yEJdfDrRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55571},"main":"./dist/index.cjs.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","gitHead":"7b46ea393f036b69fd0ff1c24bab4bd1af51f25f","scripts":{"test":"echo \"no test specified\"","build":"tsc & pnpm run esbuild:cjs & pnpm run esbuild:esm","esbuild:cjs":"esbuild src/index.ts --bundle --platform=node --target=esnext --outfile=dist/index.cjs.js --format=cjs","esbuild:esm":"esbuild src/index.ts --bundle --platform=neutral --target=esnext --outfile=dist/index.esm.js --format=esm"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.21.5","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.4_1718210236311_0.880575267678297","host":"s3://npm-registry-packages"}},"2.1.5":{"name":"async-event-channel","version":"2.1.5","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.5","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"6cb2bfd724c97bd35ca7c616642bd607e0172ef8","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.5.tgz","fileCount":7,"integrity":"sha512-CuE0k7YzSYktnuZzX5bhxJjXS/reIICneG46fMguN1r3BCvU7i4sJhWckdnFUwMphVMbuJfHVr2KQBif1qSGEQ==","signatures":[{"sig":"MEYCIQCgMTwLVD5UKlmCzwg2he2Ta3MUR2ReKFT/nNZ85hAbzwIhAKDe6oljyW/e2UUeV6rryQesQ/tib17Azn6zRgPWlNUV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56736},"main":"./dist/index.cjs.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","gitHead":"0afc4c4a68f2817045d5ac00d0a3ca9c94548128","scripts":{"test":"echo \"no test specified\"","build":"tsc & pnpm run esbuild:cjs & pnpm run esbuild:esm","esbuild:cjs":"esbuild src/index.ts --bundle --platform=node --target=esnext --outfile=dist/index.cjs.js --format=cjs","esbuild:esm":"esbuild src/index.ts --bundle --platform=neutral --target=esnext --outfile=dist/index.esm.js --format=esm"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.21.5","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.5_1718378654773_0.8017629025203128","host":"s3://npm-registry-packages"}},"2.1.6":{"name":"async-event-channel","version":"2.1.6","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.6","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"a9ca02218f0d3b8196aefd514964614a28227d63","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.6.tgz","fileCount":12,"integrity":"sha512-UvtSZKWSAvMkxCL4m5XMiBOnByhKRBUqYuc6Y49GjE/wZ4HmddbeTWMa3iyIS3GJi2aeJr4C8tmBpsfKbdSpRg==","signatures":[{"sig":"MEUCICKDcUXhw2ebr7cec7u/rZNhZDBbrjC0AkQhRGsY8zkoAiEAv8JvSNz0pf+XTK351Xtn4MWLtzCLAi67CA3qeOISaCs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217588},"main":"./dist/index.cjs.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","gitHead":"adb77f85e2875e1434b33974ea235e3f0117c4e1","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.6_1718447689810_0.45398887017297396","host":"s3://npm-registry-packages"}},"2.1.7":{"name":"async-event-channel","version":"2.1.7","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.7","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"e6ba1cd900df960dd32435bf776d51ce99532bf1","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.7.tgz","fileCount":12,"integrity":"sha512-WmGx09BBFN0Vqf0Iz9rhnAqA7CGXpAbdrRrKbckBWMOz31z85pKv17y/6hju9n3gzx1FBvqZ1E9EEWORlc/nnA==","signatures":[{"sig":"MEYCIQCbxIo0EeG1geeoAqm6w4pw2dLUHccZvunjJF/jR+yWiQIhALeQrniY32atXNJN15OrwA+01R8o2fA5MhXoVhgKcSqD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217887},"main":"./dist/index.cjs.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.cjs.js"},"./es5":{"types":"./dist/es5/index.d.ts","import":"./dist/es5/index.esm.js","require":"./dist/es5/index.cjs.js"}},"gitHead":"ea65faece70f1ba294dbc8ebfa7cea1d8379b5c9","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.7_1718449315344_0.43471530085959253","host":"s3://npm-registry-packages"}},"2.1.8":{"name":"async-event-channel","version":"2.1.8","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.8","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"838ef6c52bf5de1146288507a89a0e3cfdc80884","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.8.tgz","fileCount":12,"integrity":"sha512-UeC/ykqFwLvNK9OAdAD4jZPHOVi2Zt0V9EQnhN4AqcewLNczazjaLRkG3dmRg5rC98rIoyu5spPcE/sSBtqq+Q==","signatures":[{"sig":"MEYCIQDWHLYsepMnpTI34rU7pB+HV6pEq76vAh2ffORfsjiKvAIhAMBAHbNlvGT7HDF6xFFwqpRQmS1PAYm+k3lNT3phgV8S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217958},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./dist-es5/index.d.ts","import":"./dist-es5/index.esm.js","require":"./dist-es5/index.js"}},"gitHead":"3549e451c461d2d7d156062efb423636c0005e6a","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist dist-es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.8_1718453534548_0.41067021079115706","host":"s3://npm-registry-packages"}},"2.1.9":{"name":"async-event-channel","version":"2.1.9","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.9","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"c2c0c1c3c93f403c2070098cef25d48881dad846","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.9.tgz","fileCount":12,"integrity":"sha512-IUihCPWh3CiD5drwoBzL70nBzazVlflJxP4UUFGcuEeg08oPTA44WH673YCyJqRjTSb96REnTrnDb+nV+t29BQ==","signatures":[{"sig":"MEUCIG3HOj+Shbh8gilqLLmSnCpl/zg4QXTfsK/GiEna2rV+AiEAz9GzCS+4pX2nWFx+hdZWLrK0RuG+hF6pztG3N7wnPtg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217933},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"1ebfbd3e060ac0fc00757754032bd866a7b05f39","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.9_1718456034032_0.08111700939104183","host":"s3://npm-registry-packages"}},"2.1.10":{"name":"async-event-channel","version":"2.1.10","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.1.10","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"ff8db6d4b63249dc9b15fa97cf8307e9c62b7410","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.1.10.tgz","fileCount":12,"integrity":"sha512-Oe+nl6pU+0W5fGXtJe7h82SEVW5iSO9aRGwWndB6+Vl0+W3mYqxUFFhk0oJqKXJ9VpHjrMCOtFOJXpnKZ+03hQ==","signatures":[{"sig":"MEQCIBj0SsMJba2+78N9Bv9g1UzOXpIdYDZcHSodxb0aAVsQAiAlRonVV9QoebfhE9nvdF3O9+ipQ6FJIuBKd9dAB9gsHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":231999},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"63f943448df8649c4703dd0d013a1897c1063150","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.1.10_1718644499993_0.3083202088997896","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"async-event-channel","version":"2.2.0","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.2.0","homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"75fcbf012aa7f9e63caeab117268df4b044bf364","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.2.0.tgz","fileCount":12,"integrity":"sha512-Z8G0f2nM1f+PKXmLYghW4PoEJied9sx3KCvNzOEDHKHp34ufwqQVWKjaoaN+HjQ5S9B5q9XojFsXikbIEnRirQ==","signatures":[{"sig":"MEUCIQCOndWBSryr7DZ37iBOT6eqw1V8qsbeA1Ewl+rMa5kGEQIgFeH3crCuzV23IX14qcldryB014gQkElYlmj8SLV3CDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":272410},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"65c530f0b0d17ec2d8e40abf868cd114160908c6","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.2.0_1718998110726_0.0522342053314071","host":"s3://npm-registry-packages"}},"2.2.2":{"name":"async-event-channel","version":"2.2.2","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.2.2","homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"514b7d497d27f5e5637ef334af82d42867937c1b","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.2.2.tgz","fileCount":12,"integrity":"sha512-c1R8IrbxUGF0625rVh1Hi/F6fNoqZf/uAe3QyA6N1efT09La7uEDF6DDufQ75pPRjc2XThXSmCYA0KvOS302CQ==","signatures":[{"sig":"MEQCIBVF7X2HFfKqg9ROqiaPTtSzKGfk6OkJbg0DHXS4AiwnAiBgb0+akb8QtG6dmqenuJ/2J0rJX/nTeUkdDNfJQ8Re4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":273972},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"0f027db74fc6a32a64cde85211737661bcf4adca","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.2.2_1719000223252_0.006608508762078191","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"async-event-channel","version":"2.3.0","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.3.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"33ea1f8822143c6a579779caf0c6f8a3fad76d3c","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.3.0.tgz","fileCount":12,"integrity":"sha512-sVF9PWbrxxSBmhuTEJowGc/ZgXthpUVUrWPOzrBm+vD7JJOIbr158cU+wACQWQFGkU45mIYfTfUhuvhn3qaGog==","signatures":[{"sig":"MEQCIEqfkXkWXqzTPTvcBNoNDw+Vo1N+BylzA98lmq8FnP92AiAKXM0JhENANFgg/x5NFRpB8iPJvbwBVofvyRCYc2A28w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":343804},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"72aef34c1eeb2721916989161712bff1ca319422","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.3.0_1719942715205_0.30447313884840144","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"async-event-channel","version":"2.3.1","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.3.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"df2a9a74c777dd3b0d0dd597bfbc6c7e54c3a987","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.3.1.tgz","fileCount":12,"integrity":"sha512-RL/bcfkZFbeaGdhhjLIT/6cxs41xCpX9Qq981GERr05HQDRLC49IzVZ/DP2jLd5Fn/V1+cfeqGERjSRypwbbqQ==","signatures":[{"sig":"MEUCIQCLd/t7EKZgoJDF7iLBNIntnCX1htxuR+lOYYyYyZ5fBQIgdksMYfpjdu92AlaG38Aaok8MYCugURIG/gN4jVtBtdM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":355901},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"a780dcd0277cd87f1b7fc99d842e3b59c2034eb5","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.3.1_1721230160468_0.9842407804030755","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"async-event-channel","version":"2.4.0","keywords":["cache emit","two-way communication","scope cancel","task queue","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@2.4.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"umd":"./dist/index.umd.js","dist":{"shasum":"3e87d49f7dca88d2d31747c2b462b3236c7f26f6","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-2.4.0.tgz","fileCount":12,"integrity":"sha512-R5s/ib1VXhX7P5Bad7aMpKAYRRnzVx1M3kqYLg2S0Sf+quupZ2YB1S/8ZuFRQz2ITKJMw3iImgGCTRTXzjlhAw==","signatures":[{"sig":"MEUCIQDLRs98IU/JyOftcz6+lUFTkpY/eUM1g+ZOFXHzQJIuWgIgb96QBVvZiLNHk7g2U++oN6ZU8bMxTsLp0K2PTjFEPAc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":293311},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js","require":"./dist/index.js"},"./es5":{"types":"./es5/index.d.ts","import":"./es5/index.esm.js","require":"./es5/index.js"}},"gitHead":"a91a43a680862b06d31419f7d77870028a957c7b","scripts":{"test":"echo \"no test specified\"","build":"rimraf dist es5 && rollup -c && rollup -c rollup.config.es5.mjs"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.7","rollup":"^4.18.0","typescript":"^5.2.2","@babel/preset-env":"^7.24.7","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-typescript":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_2.4.0_1728463820741_0.8084730810734762","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"async-event-channel","version":"3.0.0","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@3.0.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"fd4657076b91015d00136a9301598e305434dd75","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-3.0.0.tgz","fileCount":6,"integrity":"sha512-klZPLxnyqHa+YhvVUTno40nQZcI6WEdnKQtdI+4YEYr1Q0ZdXb0/mUS1eW9sJOoZu+CDNEaJuAMvKDWf6k4qvg==","signatures":[{"sig":"MEUCIQCAVznH4+X56dbPKGkalD0LdRSrkEjjs9rxF22OMUbJwgIgRtmqSzXDGYOsYQpVbxZCF2MUt/9jdSH/ogqQ+Owbp2A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30041},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"ca87fd0fc77999b12d6d4a429fa7576a27b445fb","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_3.0.0_1733223768663_0.8677738269823454","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"async-event-channel","version":"3.0.1","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@3.0.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"a9f4f84ad86b81ef83c62847a3db946bdb4dd847","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-3.0.1.tgz","fileCount":6,"integrity":"sha512-VgDC7J5YR7RKBDWmxEcbdtKqx8aBgrpPOY5RmVRQ0eh+0mNIVBbQxlW3rHeaexScWQKzCqHuuCj0BkM9b1oPKw==","signatures":[{"sig":"MEUCIQC7T/hQZNB8QJA9fwfLmw/jYQv7NM2ufjaRwKmLm9vNRwIgF5O8QuOH0oNM/xNR08Bky7yUZ53syo4hpKme7s8MF48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31914},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"bc98b4c38b1afa3e1d14a4bd51fb5cca3d1e1259","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_3.0.1_1733711153744_0.2567209068805081","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"async-event-channel","version":"3.1.0","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@3.1.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"69a4acb5ffd2ba8e60e960b459b5b277d889a7c4","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-3.1.0.tgz","fileCount":6,"integrity":"sha512-kXf/krzfzbyJEBq2F/qJ6yt01fYY4/r9tAvUeHj0CoSiHmT9oFV0wSaJchAd/MbqXQREXDInGyLj8Ole/dH8ZA==","signatures":[{"sig":"MEQCIGCOIe0+pAD85aPB44ZgscxSpLjvMKIN6WaRahS/Vq+SAiANLZDzYpp/qXTCWVFkMAD9EHwyaHuz4wNXubxaSX68Qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34004},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"f0c39116ba5d588f8ab6f19508b37f6b3318da4a","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_3.1.0_1737130586410_0.4579674066744015","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"async-event-channel","version":"3.1.1","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@3.1.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"40777d3457c8248a9f086047bb90be314042c5c6","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-3.1.1.tgz","fileCount":6,"integrity":"sha512-ohFmFTfADM41PBlZ1nipItM/E64aawJHHB67o/REZhlU8rDoLyVqoWW3IbvPeH/fDa9iJxo3IlprhEMVCwzoGQ==","signatures":[{"sig":"MEUCIQCLLBvdD/KegejD+pqKMcSKYwdPO1aQC70lAEwckB9kUAIgJd1Rw/spnStXoh/Edp8Jhj6xrWndI0AcvlUcZKbB5UY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35670},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"ab7a5af7e3008fe2af518c4685d0e0254d9b82f9","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_3.1.1_1739540824496_0.33626135125453027","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"async-event-channel","version":"4.0.0","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@4.0.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"2d5e4ab56271c04f7445571570065146df2707d2","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-4.0.0.tgz","fileCount":6,"integrity":"sha512-uWNfzMDgL+TjxUxWnXoO6aRaqH7GWE4j14eWfgZeF7E8j/xqf+JmrIR0O5QNEuU+trx8PuY9Ewr+iUHvYC4Aug==","signatures":[{"sig":"MEUCIDN23Vp8boyIdsFg6JNzG4r8rCBjW+y+4vkAQ9M2ASggAiEAqsPchZkiNS3RCDNK2x1AMxGuIXx/vlN19b5pxDUlSH0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13013},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"62ec3cfffdc093fc62ce62b69cf792720c731f25","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_4.0.0_1744532025510_0.5364269256715299","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"async-event-channel","version":"4.1.0","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@4.1.0","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"4df235915623b9884c67fc34e49683fee33893e9","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-4.1.0.tgz","fileCount":6,"integrity":"sha512-kgKvW7qvJwBZjMLEwb2rN3jRev51XiLkR7nPENnt7abjYDxkG8nKUDz4u+FXBqPKJsWHJalOEEDvJa5QQDS8fQ==","signatures":[{"sig":"MEQCIDuCtvL0drFzb1e7VQBdoa2I7R5ODUydA0CzmkvwUm36AiA1D7p0m4xQ+mdXhXO0sd9jMeOhvJagUdeBUJmdozxLRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23991},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"3241d0a75299467378c48692ff1b4372c953dea9","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.2.3","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_4.1.0_1744714140715_0.9441484040551729","host":"s3://npm-registry-packages-npm-production"}},"4.1.1":{"name":"async-event-channel","version":"4.1.1","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@4.1.1","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"7f331a9d6cba66300dbb709d7fc55da9688794c5","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-4.1.1.tgz","fileCount":6,"integrity":"sha512-M57BlofDhaOzaewsBBwGSDdWiqDA7g8pXP4zddYGQ3oQ84YNaOZtoXqAGIZm7baIm9fvjxmEDGQDiqQUIOeMxQ==","signatures":[{"sig":"MEQCIG7MIfaS5dSOju+FKyBgGDdxqz2X1o243d6hqrYgi+zTAiBv5WGR5MorZbETU8Ff1bMU0mzMvy5pc/77z9Ajfr322Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23971},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"4d4ce26457b758d12c42a5c99fd087e6457f7ead","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.9.2","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_4.1.1_1744770719042_0.2699753919676109","host":"s3://npm-registry-packages-npm-production"}},"4.1.2":{"name":"async-event-channel","version":"4.1.2","keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","_id":"async-event-channel@4.1.2","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"homepage":"https://github.com/jian-qin/async-event-channel#readme","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"dist":{"shasum":"7b46239f40ba3b627ab91fd26b1b433bd99f60ce","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-4.1.2.tgz","fileCount":6,"integrity":"sha512-X7YhRJeXIQv6jrvsbnHMpdkslRlDHRyxksfD7iG/AXeifKBD6cwhbDz/Y0+ajhXWX+rmqJakm77zeZsr86DqlQ==","signatures":[{"sig":"MEUCIQD7/ddSV2/QWWWaijT/MjxDHJTD5H08JFaKfCLXHKdWngIgPU5UwOMeKYK8NcMhXOODEpyuTVVHcX2SUVvE/weFR9w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24374},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"6c636bdbe55adf051ba1cca17d259521ee450e5f","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"repository":{"url":"git+https://github.com/jian-qin/async-event-channel.git","type":"git"},"_npmVersion":"10.9.2","description":"Two-way communication asynchronous event channel","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","typescript":"^5.6.3","@jest/globals":"^29.7.0","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0"},"_npmOperationalInternal":{"tmp":"tmp/async-event-channel_4.1.2_1744777027940_0.6623273884984204","host":"s3://npm-registry-packages-npm-production"}},"4.2.0":{"name":"async-event-channel","description":"Two-way communication asynchronous event channel","version":"4.2.0","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","test":"jest"},"devDependencies":{"@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0","@jest/globals":"^29.7.0","jest":"^29.7.0","typescript":"^5.6.3"},"repository":{"type":"git","url":"git+https://github.com/jian-qin/async-event-channel.git"},"keywords":["cache emit","two-way communication","scope cancel","typescript"],"author":{"name":"jian-qin"},"license":"MIT","bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"homepage":"https://github.com/jian-qin/async-event-channel#readme","_id":"async-event-channel@4.2.0","gitHead":"749157ef8d84b591de9553ce6f89bb778eef4549","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-EQ2WEo98mEEncNBzszrB2ar1quZoPgT0wYgivoHtrW40wGmuW8NJ2edOWFLbovriny0h/i9ZDtQrVCJwyj4C4Q==","shasum":"a11c12568eae09c06175d141bb0b2e94212ca8e1","tarball":"https://registry.npmjs.org/async-event-channel/-/async-event-channel-4.2.0.tgz","fileCount":6,"unpackedSize":25337,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE0HxxHL4Zy13fve7fT414ShAeoCshNQcFrk7+Zol1YAAiEA2nTr2PQBtu9RgWskXoM5o896PZWvDdxN0RsB/TRS9h8="}]},"_npmUser":{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"},"directories":{},"maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/async-event-channel_4.2.0_1746611364242_0.34540657134317065"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-12T16:13:14.793Z","modified":"2025-05-07T09:49:24.595Z","1.0.1":"2024-05-12T16:13:14.950Z","1.0.2":"2024-05-12T16:49:42.219Z","2.0.0":"2024-05-19T00:39:58.937Z","2.0.1":"2024-05-19T00:45:15.284Z","2.1.0":"2024-05-29T16:11:45.630Z","2.1.1":"2024-05-30T16:25:46.810Z","2.1.2":"2024-06-07T17:37:31.498Z","2.1.3":"2024-06-12T16:16:53.025Z","2.1.4":"2024-06-12T16:37:16.467Z","2.1.5":"2024-06-14T15:24:14.992Z","2.1.6":"2024-06-15T10:34:49.997Z","2.1.7":"2024-06-15T11:01:55.514Z","2.1.8":"2024-06-15T12:12:14.733Z","2.1.9":"2024-06-15T12:53:54.203Z","2.1.10":"2024-06-17T17:15:00.230Z","2.2.0":"2024-06-21T19:28:30.940Z","2.2.2":"2024-06-21T20:03:43.418Z","2.3.0":"2024-07-02T17:51:55.409Z","2.3.1":"2024-07-17T15:29:20.628Z","2.4.0":"2024-10-09T08:50:20.942Z","3.0.0":"2024-12-03T11:02:48.827Z","3.0.1":"2024-12-09T02:25:53.901Z","3.1.0":"2025-01-17T16:16:26.581Z","3.1.1":"2025-02-14T13:47:04.670Z","4.0.0":"2025-04-13T08:13:45.729Z","4.1.0":"2025-04-15T10:49:00.896Z","4.1.1":"2025-04-16T02:31:59.247Z","4.1.2":"2025-04-16T04:17:08.120Z","4.2.0":"2025-05-07T09:49:24.417Z"},"bugs":{"url":"https://github.com/jian-qin/async-event-channel/issues"},"author":{"name":"jian-qin"},"license":"MIT","homepage":"https://github.com/jian-qin/async-event-channel#readme","keywords":["cache emit","two-way communication","scope cancel","typescript"],"repository":{"type":"git","url":"git+https://github.com/jian-qin/async-event-channel.git"},"description":"Two-way communication asynchronous event channel","maintainers":[{"name":"jian-qin","email":"yi.ji.qi.xi@foxmail.com"}],"readme":"# async-event-channel\r\n\r\n[English](./README.md) | 简体中文\r\n\r\n**双向异步通信**\r\n\r\n> 特点：emit 能等待多个 on 注册，并且能接收到 on 们的回调函数的返回值，还能等待返回值 Promise 的结果再接收。\r\n\r\n> 轻量级、无依赖、支持 `ts` 和 `js`、支持 `node` 和 `浏览器`、支持多对多通信、双向异步通信、钩子监听、代理实例统一注销等功能。尽量覆盖了大部分单元测试用例。\r\n\r\n## 安装\r\n\r\n```bash\r\n# npm\r\nnpm install async-event-channel\r\n\r\n# yarn\r\nyarn add async-event-channel\r\n\r\n# pnpm\r\npnpm add async-event-channel\r\n```\r\n\r\n## API\r\n\r\n### `on` 注册事件\r\n\r\n```ts\r\nimport AsyncEventChannel from 'async-event-channel'\r\nconst ctx = new AsyncEventChannel()\r\n\r\ntype Result = Readonly<{\r\n  id: number // 结果 ID\r\n  has: () => boolean // 是否还未被移除\r\n  off: () => void // 移除\r\n}>\r\n\r\nconst result: Result = ctx.on(\r\n  event: string, // 事件名\r\n  listener: (params: unknown, result: Result) => unknown, // 事件回调函数\r\n  options?: {\r\n    wait?: boolean // 是否等待事件回调函数执行完成\r\n    once?: boolean // 是否只执行一次\r\n  },\r\n)\r\n```\r\n\r\n### `emit` 触发事件\r\n\r\n```ts\r\nconst result: Result = ctx.emit(\r\n  event: string, // 事件名\r\n  params?: unknown, // 传递参数\r\n  options?: {\r\n    wait?: boolean // 是否等待对应的注册事件\r\n    once?: boolean // 是否只等待一次对应的注册事件\r\n    onReply?: (params: Map<number, unknown>, result: Result) => void // 接收注册事件的返回值\r\n  },\r\n)\r\n```\r\n\r\n### `off` 移除事件\r\n\r\n```ts\r\nctx.off(\r\n  target: string | number | RegExp, // 事件 ID、事件名、正则表达式\r\n  type?: 'all' | 'on' | 'emit' // 移除类型，默认 all，传入 id 时无效\r\n)\r\n```\r\n\r\n### `hook` 钩子函数\r\n\r\n```ts\r\nconst result: Result = ctx.hook(\r\n  target: string | number | RegExp, // 事件 ID、事件名、正则表达式\r\n  listener: (params: HookParams, result: Result) => void, // 监听函数\r\n  options?: {\r\n    type?: 'on' | 'emit' | 'off' | 'trigger' | 'reply' | 'all' // 监听的类型，默认 all\r\n    once?: boolean // 是否只执行一次监听函数\r\n  }\r\n)\r\n```\r\n\r\n### `size` 获取当前注册的 `on` 或 等待的 `emit` 的数量\r\n\r\n```ts\r\nconst {\r\n  on, // 注册的事件数量\r\n  emit, // 等待的事件数量\r\n  count, // 注册的事件数量 + 等待的事件数量\r\n} = ctx.size(\r\n  target: string | number | RegExp // 事件 ID、事件名、正则表达式\r\n)\r\n```\r\n\r\n### `emit_sync` 同步触发事件并返回结果\r\n\r\n```ts\r\n// 语法糖：emit(event, params, { onReply }) 的简写\r\nconst value = ctx.emit_sync(\r\n  event: string, // 事件名\r\n  params: unknown, // 传递参数\r\n)\r\n```\r\n\r\n### `emit_post` 异步触发事件并返回结果\r\n\r\n```ts\r\n// 语法糖：emit(event, params, { wait: true, once: true, onReply }) 的简写\r\nconst value = await ctx.emit_post(\r\n  event: string, // 事件名\r\n  params: unknown, // 传递参数\r\n)\r\n```\r\n\r\n### `effectScope` 收集注册和缓存的事件\r\n\r\n```ts\r\nconst ctx_scope = ctx.effectScope()\r\nctx_scope.clear() // 清除在 ctx_scope 上注册和缓存的事件\r\nctx_scope.destroy() // 清除在 ctx_scope 上注册和缓存的事件，并销毁 ctx_scope 代理对象\r\n\r\nctx_scope.on\r\nctx_scope.emit\r\n// ...\r\n```\r\n\r\n## 示例\r\n\r\n### 异步通信\r\n\r\n```ts\r\nctx.emit('test', '传递参数', { wait: true, once: true })\r\n\r\nsetTimeout(() => {\r\n  ctx.on('test', (params) => {\r\n    console.log('接收参数：', params) // 接收参数： 传递参数\r\n  })\r\n}, 1000)\r\n```\r\n\r\n### 双向通信\r\n\r\n```ts\r\nctx.on('test', (params) => {\r\n  console.log('接收参数：', params) // 接收参数： 传递参数\r\n  return '返回参数'\r\n})\r\n\r\nctx.emit('test', '传递参数', {\r\n  onReply(params) {\r\n    console.log('接收返回参数：', params) // 接收返回参数： Map(1) { 1 => '返回参数' }\r\n  },\r\n})\r\n```\r\n\r\n### 捕获异常\r\n\r\n```ts\r\nctx.on('test', () => {\r\n  throw '抛出异常'\r\n})\r\n\r\nctx.emit('test', null, {\r\n  onCatch(params) {\r\n    console.log('捕获抛出的异常：', params) // 捕获抛出的异常： Map(1) { 1 => '抛出异常' }\r\n  },\r\n})\r\n```\r\n\r\n### 多个注册/触发事件\r\n\r\n```ts\r\nctx.emit('test', '传递参数-1', { wait: true })\r\nctx.emit('test', '传递参数-2', { wait: true, once: true })\r\n\r\nsetTimeout(() => {\r\n  ctx.on('test', (params) => {\r\n    console.log('接收参数-1：', params)\r\n  })\r\n  ctx.on('test', (params) => {\r\n    console.log('接收参数-2：', params)\r\n  })\r\n}, 1000)\r\n\r\n// 打印结果：\r\n// 接收参数-1： 传递参数-1\r\n// 接收参数-1： 传递参数-2\r\n// 接收参数-2： 传递参数-1\r\n```\r\n\r\n### 等待事件回调函数异步执行\r\n\r\n```ts\r\nctx.on(\r\n  'test',\r\n  async () => {\r\n    await new Promise((resolve) => setTimeout(resolve, 1000))\r\n    return '返回参数'\r\n  },\r\n  { wait: true }\r\n)\r\n\r\nctx.emit('test', null, {\r\n  onReply(params) {\r\n    console.log('接收返回参数：', params) // 接收返回参数： Map(1) { 1 => '返回参数' }\r\n  },\r\n})\r\n```\r\n\r\n### 监听执行\r\n\r\n```ts\r\nctx.hook('test', (params) => {\r\n  console.log('type：', params.type)\r\n})\r\n\r\nctx.on('test', () => {})\r\n\r\nctx.emit('test', null, {\r\n  onReply() {},\r\n})\r\n\r\n// 打印结果：\r\n// type： on\r\n// type： emit\r\n// type： trigger\r\n// type： reply\r\n// type： off\r\n```\r\n\r\n### 收集注册和缓存的事件\r\n\r\n```ts\r\n// 可以嵌套使用\r\nconst ctx_scope = ctx.effectScope()\r\nconst ctx_scope_child = ctx_scope.effectScope()\r\n\r\nctx.on('test', () => {})\r\nctx_scope.on('test', () => {})\r\nctx_scope_child.on('test', () => {})\r\n\r\nconsole.log(ctx.size('test')) // { on: 3, emit: 0, count: 3 }\r\n\r\nctx_scope.destroy()\r\n\r\nconsole.log(ctx.size('test')) // { on: 1, emit: 0, count: 1 }\r\n```\r\n\r\n### 语法糖 emit_sync\r\n\r\n```ts\r\nconsole.log(ctx.emit_sync('test')) // undefined\r\n\r\nctx.on('test', () => '返回参数-1')\r\nctx.on('test', () => '返回参数-2')\r\n\r\nconsole.log(ctx.emit_sync('test')) // 返回参数-1\r\n```\r\n\r\n### 语法糖 emit_post\r\n\r\n```ts\r\nctx.emit_post('test').then((value) => {\r\n  console.log(value) // 返回参数-1\r\n})\r\n\r\nctx.on('test', () => '返回参数-1')\r\nctx.on('test', () => '返回参数-2')\r\n```\r\n","readmeFilename":"README.zh-CN.md"}