{"_id":"@ainc/onion","_rev":"6-9389636c3d957ffd3c6c2a7aebc76902","name":"@ainc/onion","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@ainc/onion","version":"0.0.1","description":"Let's do something nice with @ainc/onion!","module":"esm/index.js","main":"dist/index.js","types":"src/index.ts","scripts":{"start":"esc ./src","build":"yarn clean && yarn compile && yarn module","watch":"yarn compile -watch","compile":"tsc -p ./","module":"tsc -p ./ --outDir ./esm -m ESNext","prepare":"yarn build","test":"jest","clean":"rm -rf ./dist ./esm"},"repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","dependencies":{"@ainc/utils":"^0.0.113"},"devDependencies":{"@types/jest":"^26.0.22"},"licenseText":"MIT License\n\nCopyright (c) 2021 edonet@163.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ainc/onion@0.0.1","dist":{"shasum":"b5c4ef605594c3955798c58a87224055622789c9","integrity":"sha512-vNam4xKYktQ/6TgTGYg+n4joYyggxA3Lgto70n7XN0iWHTKUHVrMCzrqO3xOzsoz8UagRWtOGtrACgSiRNK2RA==","tarball":"https://registry.npmjs.org/@ainc/onion/-/onion-0.0.1.tgz","fileCount":10,"unpackedSize":15244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeFlqCRA9TVsSAnZWagAA1y0P/RsdRNnRNGwkQ2hDmlid\ndkbHygDg2Pl3sDsgHZxdvCVYzxIxW7qP3BOj+gF1KYRqfecjziYhRSEvODuT\nkBQQEk5AFrlzoLsoKI29ZEf0WnjYrI0ZVYE9DAa65ICJcEY1woqrwqt2pKUx\nQ+qcWaKy7Ff0UmczeuCPB4WQwckoN8bWdi3OqQX9cNvgdzG3iuEScFYBH93L\njFy0UZ4xa7Mdq9/vqf/aVw//HPow7MqLS9C7wsF7PRR/Qw5jYIzgDOEV0N99\nh9WhhbqwCQD9D+7n0kDjkX4NxgMLMKd3DegC8euNG751rv7nZ/5fAXsxFnrB\nVAlJTot+6aB8ftCjz1ndErh8Us2PNsSsnDgfLS/mCdZwjwRHJsr5nl1AidcK\nBeUNtbfssyvl/0ORGobtNe1QYfgPjs+8buMfXG37tcR8MjEYtcmfz7YJqtP9\nxD7A3Quz9wO02pTiAR8KnFxh3Vj1sxhbNTSkZAnK0cEqOSoD9E30MnGuyQ3U\n4xgVUfOtEOCfVPzypxfZU6kMUtPLcEPfCW7UBUUp+SlfEpjRy/uiXFfp5424\nyzzaX7KCHUQ8iRPLMrbtws0Mx0fsI6Kcy7Tzv0xMD34hIwh8hrTB2ifX03rV\n3d5g7p39nbWizUUieA0/VJ70nSFBOQrMcNHV6aPzq/5ba1w7LbTh1ucldXGj\nUmJ8\r\n=/SiV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJURtp41yPpRGuwEkxzlEqUAcpwj3p5Aeb2M8AWb0AGQIhALJuofHByiGfk5p+T5E2bIxUjEI0/GwQjuBcOSgVpmuW"}]},"_npmUser":{"name":"edonet","email":"edonet@163.com"},"directories":{},"maintainers":[{"name":"edonet","email":"edonet@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onion_0.0.1_1618499946273_0.6146429056460962"},"_hasShrinkwrap":false},"0.0.2":{"name":"@ainc/onion","version":"0.0.2","description":"Let's do something nice with @ainc/onion!","module":"esm/index.js","main":"dist/index.js","types":"src/index.ts","scripts":{"start":"esc ./src","build":"yarn clean && yarn compile && yarn module","watch":"yarn compile -watch","compile":"tsc -p ./","module":"tsc -p ./ --outDir ./esm -m ESNext","prepare":"yarn build","test":"jest","clean":"rm -rf ./dist ./esm"},"repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","dependencies":{"@ainc/utils":"^0.0.114"},"devDependencies":{"@types/jest":"^26.0.22"},"licenseText":"MIT License\n\nCopyright (c) 2021 edonet@163.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ainc/onion@0.0.2","dist":{"shasum":"ef5acce1e24e9a7f18b635ac512ee849d8394184","integrity":"sha512-frbZu0H7Y0LDQd6rF8dBzQQheNJ4iUrmNCjghggup+3L6DgjdRc30Ol2/hBz5nAAdsRzyqtPvMA8s7mDzSaszg==","tarball":"https://registry.npmjs.org/@ainc/onion/-/onion-0.0.2.tgz","fileCount":10,"unpackedSize":15244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgelJ3CRA9TVsSAnZWagAAj2UP/0DGhR8seL7/SYVcEmtB\n4ZICQk3TYuVJcHNgCen0any/MR9Ig1aqW4NqjufpQVs00fp8gMayCIGdejI6\np1wlcmi+VvZh1VbhUsGZkH3rNiGVJLYtOmHSVAXIRZOwMh49t8GmannOEECN\ngOrigHkTwzJGKQocBOtWLUmE4vvcplunOZA9AZflgy0dCFZUiPJbX0NM2HKN\nsgBtYz9mKO77GdtGmFNbxbSUn8cwbbj9V9TrwTvgUhMvhNmWY9inNPAapbSm\n/Axtc6RUUtp2D47xcBNcqvDwPJHkuWRhoVELWw+6/FJkfYU8ph58pDz0+tdW\n367NvULAxwcI5ZqdpmkmJ/iaFFDyTnpuaRLuNhR3UNZlVZmLsZqZBZL9bkLR\nXvcP0meON1woTgHgfJKO8iWNqoccUPchTteeT3BGZ5igjLJFHN9XvgavqHdi\neuTGoK/3O/QLc72Lvx1i21QfzEKxPoPgfksRxHLQkP+RfMiA2Q0psO97S6p1\nY/P8tb9k90mGVN10Gt2AmYztoBzCf9df2I3OZj6OsnOph563KeX6BUSFpvuu\nak9xZUHoP3mJ5c/jVEM25DA0rzVoHKXAXALh/eKQ+9XYUmnvxbWUGomj+upk\n1ofzoqrbHgXBIGNiT0Ys7UCypuWUvC6DpwuESNPWJWf/Qx5rACGZ6T6kPVmZ\naBhp\r\n=Zp8J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBHxQczbZ17KdM62Atwto2WHeIys16x+witfapOQ9p9AIgP8X4J3RX1luvfqecIqdb1N+TVebQ7VGqUsQ7cfpVhRg="}]},"_npmUser":{"name":"edonet","email":"edonet@163.com"},"directories":{},"maintainers":[{"name":"edonet","email":"edonet@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onion_0.0.2_1618629238649_0.933143502021649"},"_hasShrinkwrap":false},"0.0.3":{"name":"@ainc/onion","version":"0.0.3","description":"Let's do something nice with @ainc/onion!","module":"esm/index.js","main":"dist/index.js","types":"src/index.ts","scripts":{"start":"esc ./src","build":"yarn clean && yarn compile && yarn module","watch":"yarn compile -watch","compile":"tsc -p ./","module":"tsc -p ./ --outDir ./esm -m ESNext","prepare":"yarn build","test":"jest","clean":"rm -rf ./dist ./esm"},"repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","dependencies":{"@ainc/utils":"^0.0.114"},"devDependencies":{"@types/jest":"^26.0.22"},"licenseText":"MIT License\n\nCopyright (c) 2021 edonet@163.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ainc/onion@0.0.3","dist":{"shasum":"e8e9be06f448984b4f63c9b9c8e437958dfc53f4","integrity":"sha512-FIgim3Jv/UdIwqAd5wtXv+7zG9Vit++osZWjkBtmH1lJ+EtuAtRHgfK3/8t1k6Lf3GXMcAJHzRwAHzAy+JbCxA==","tarball":"https://registry.npmjs.org/@ainc/onion/-/onion-0.0.3.tgz","fileCount":10,"unpackedSize":19911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggZ3cCRA9TVsSAnZWagAAabEP/06ivOHUYabK2iT19+AD\nR3ngZUE7m2leeBr1UiwG5J2LEC0Jilb1i8sx3GzzLoAG/pXDDs/FvdkhFWdv\n3xrwlwunv5HevtEKHl8RvQ6Fyxoyd9cDwzZM5h7IbD6dNMnG6YA9xUMDI43U\nfm3QDZ8jPzteshn/3IG4gpQ3NCKOnApGdWNJMxD7xJ7avJo4QAVDlT9RTsMI\n6M3QGRlCq11iKb0pe3OWYPEm4g/IoycQHCkhohfSQoUcocjHJoJhyiMkJ0Sy\n3UMGvMpl2UYRMy3tD4Vh9hlBC1cmPfB0nTyfjtkl16cIyJX6ihtAeuh3g+sd\nQYgCYWzNlw/6+2gCIDUgrSz9vlf8rHKk5sEsFtOqfLuch59UsN8B8emnD0Du\n+P0MeiOflFYsbplu7drKB/qA9RK5P1s+wEwgLE95PioP2eFIzJEf9Mby4JwZ\ngfECT42FD4nYUdVp9t5GG8nhUVdA7mDjwPIe+be1wZDttqIoXafjyIHgcsYD\n4usZDZbJaZXLkr5sVcauogYkqJqG0CadSFM3/2PzOq/+uiUoE6vmJmYur9hR\nLiBLS8F5xau8gYCid/gFAQnBgzvteI9US+F272sVEJOs0KBhgpQmphw4VWvB\nBk7Fcw/SCOdjpvw1eH32R+VkL3HqX3ifb5zgabsyaTAdZCHSXUtzPSD9avwi\nc1Lm\r\n=VtmW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgVd+ARApUJJOF4AAdH2aAh5BhJQj5dWHgEOFc+IZGWAiBb64L541wqlIlzeS0phCRGleZMHtl7iL7h/eHLKthfeA=="}]},"_npmUser":{"name":"edonet","email":"edonet@163.com"},"directories":{},"maintainers":[{"name":"edonet","email":"edonet@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onion_0.0.3_1619107292113_0.17802555970925127"},"_hasShrinkwrap":false},"0.1.0":{"name":"@ainc/onion","version":"0.1.0","description":"Let's do something nice with @ainc/onion!","module":"esm/index.js","main":"dist/index.js","types":"src/index.ts","scripts":{"start":"esc ./src","build":"yarn clean && yarn compile && yarn module","watch":"yarn compile -watch","compile":"tsc -p ./","module":"tsc -p ./ --outDir ./esm -m ESNext","prepare":"yarn build","test":"jest","clean":"rm -rf ./dist ./esm"},"repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","dependencies":{"@ainc/utils":"^0.0.114"},"devDependencies":{"@types/jest":"^26.0.22"},"licenseText":"MIT License\n\nCopyright (c) 2021 edonet@163.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ainc/onion@0.1.0","dist":{"shasum":"1596525710eb52856a85389d2fd080de19c90c12","integrity":"sha512-F/HlLK2VHdQFhc9bbLtp1iSlL/K/nnKh1eqWxZlBzwkbAoCdfn7PkjY2g/lwMpt03hO0S0qjiFhwGHNrdBprwA==","tarball":"https://registry.npmjs.org/@ainc/onion/-/onion-0.1.0.tgz","fileCount":10,"unpackedSize":19946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghsweCRA9TVsSAnZWagAAIvQP/3P6pye1Ps06jO1Re9E6\niKBeK9+NoGzxGvBrSFoxAdDEV1K4JPUqN8IQod46iI3ld0d30O25HzTdnBXH\n7w/KilvTpZE1S40k9ksN6myPQJVPhFMu3XfaIM9FKQFRdOMMgehTrCQeHdKC\nrR1IxWYaO1mnVbUt8hbLUiAXJazfHzL8jssbe4JeMFOk2wjKaFOH1VEKoPWP\nSmqkfx6j6+FRcFjg1u4F9LyqkZ4b0f7fxYgOC8Iss7hGogHzac7+tOP0ngPk\nNlC4j4JxP7JBt4vZ5LM+R6wskf1mamm5swg+J9YUjBLzYobTw1vwavq9Qt5I\nNk3l6mMwPPmeKNWArUmMQYwI5S/Lf2kHq7SC8FHhdtkyPhQX/GIIfeDQKdfq\n5BUsw/GVNzihTxA/bxn66l8I4IMbCJQE/sMujpfxRPyh7Whiq76ORB9HT/NS\nrH5qZF4z65wZC6QLAxKA1jkUroDvHF0N+Po37hOeYnIXjtEfn34XkDMJ5S8i\nz5TOaw1QJTgvLYRPisJLB7lYstaPKU25Vu5sM+puVrcM8vy/kZk7goQOWO8e\nWlGQ3seMoG13IP4nftHiFTPbN60ukDTQJF96ySOUYSjs65uPzuNhI6erpIJM\n9tQfCPStzH/FaKH1qUPiUKxqBuA3ck5VkGxMidnFftt1D6Gaw1geYIyo1W/R\n52bE\r\n=WT/j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFbPFQYGGYTPKELOVvmtWWX7/AqeW/XqQtsOCFcDbb6AIhAJw1Fy/6YixKY+FL1VAqJRXaUff40NXZfgPjGUkmFw3V"}]},"_npmUser":{"name":"edonet","email":"edonet@163.com"},"directories":{},"maintainers":[{"name":"edonet","email":"edonet@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onion_0.1.0_1619446814028_0.8518931424537954"},"_hasShrinkwrap":false},"0.1.1":{"name":"@ainc/onion","version":"0.1.1","description":"Let's do something nice with @ainc/onion!","module":"esm/index.js","main":"dist/index.js","types":"src/index.ts","scripts":{"start":"esc ./src","build":"yarn clean && yarn compile && yarn module","watch":"yarn compile -watch","compile":"tsc -p ./","module":"tsc -p ./ --outDir ./esm -m ESNext","prepare":"yarn build","test":"jest","clean":"rm -rf ./dist ./esm"},"repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","dependencies":{"@ainc/utils":"^0.0.114"},"devDependencies":{"@types/jest":"^26.0.22"},"licenseText":"MIT License\n\nCopyright (c) 2021 edonet@163.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ainc/onion@0.1.1","dist":{"shasum":"25fd20ad39e9a7da5d33013b7c3518ff6b43233c","integrity":"sha512-CPab9FzwUSisQlI5JOOk92RdGpwZ8W+CxRIsauLBZqL5AvchXCx5ml/XPW13zJNEKB4SUYp1NaQPMjn5cF8X5A==","tarball":"https://registry.npmjs.org/@ainc/onion/-/onion-0.1.1.tgz","fileCount":10,"unpackedSize":19940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgn/pECRA9TVsSAnZWagAARn0P/2u+zNZUMSAkP2eRURds\nRqR8XDV0VZgjx4P8Pv//CgJfiHQvIixnaMyT2b7+LmFUBwpTU0urHf3ZOtxL\nv58K3ziYZ8OerXa0RBuQc3Hl4tu3oI6rGyzPO5MF+uDVGaQjLrxQlBrFPfK+\neY9Q1n1cnII+i6hr2OE8rZROD688x92sJiZA3WDnuxRbhzFa+HGeyG1W3DJn\nD/u0cxZW9Pij0pBf+7HtLu6f2cap+brrRmKQXW+U0KK/hckhREEm8CMWBgHd\nJ/Tm/aY1EUma0C0cmzMg4pS67D4orHl6bDaZ/h6HbG//9046bm7Js6KRWxMT\nwZxRYiwXiAU2myOzxSNptzGxVYc9/ye1lOHHA6Qrg9it/c0bE4Tob6qtyu/U\nKrGr8IIaTzSRFdJn+sW4eH+sJzijKMxSm3WDCbFCcmvvlkMKiiydtqlnYuoD\nSFM4dLVn8+LDqvf9GO8Q/wYlvJ2g7uG58W5H1V+AzJVChlOpqGuOZwu0qhqu\n99SeY4SsIhp36x5hBXpP4LfbN8ol+/2QFxuINEyDoc7aTmj5YCIFybtWxeB2\nCIoW4qSeJ6CVjzvhMoN/bSbrZg53mXGHuOQmOyz0KIzMOdmQtKwj15Gr664+\nace/8DqAyu6Er9uUZAqMo8/vIlcix1sHgNqy7yqdETNqruYnJJYxxmHKugfB\n+0/K\r\n=lGry\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHYiN4wcbNRWJba1g1GK5Tx+c9pKp35x3rtC5BBXl46wIhAIULsw6LqYZlvLtCDEp2K939XOR94qjuFHk83bBC9+P1"}]},"_npmUser":{"name":"edonet","email":"edonet@163.com"},"directories":{},"maintainers":[{"name":"edonet","email":"edonet@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/onion_0.1.1_1621097028512_0.40641469666524555"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-15T15:19:06.072Z","0.0.1":"2021-04-15T15:19:06.403Z","modified":"2022-04-04T12:19:59.414Z","0.0.2":"2021-04-17T03:13:58.797Z","0.0.3":"2021-04-22T16:01:32.308Z","0.1.0":"2021-04-26T14:20:14.180Z","0.1.1":"2021-05-15T16:43:48.629Z"},"maintainers":[{"email":"absock@163.com","name":"absock"},{"email":"edonet@163.com","name":"edonet"}],"description":"Let's do something nice with @ainc/onion!","repository":{"type":"git","url":"lifx@edonet:repo/ainc/onion.git"},"author":{"name":"edonet@163.com"},"license":"MIT","readme":"# @ainc/onion\nLet's do something nice with @ainc/onion!\n\n## Install\n``` shell\n$ yarn add @ainc/onion\n```\n\n## Usage\n``` javascript\nimport { Onion } from '@ainc/onion';\n\n// create onion\nconst onion = new Onion();\n\n// add `increase` action.\nonion.add('increase', ctx => {\n    ctx.count ++;\n    ctx.next();\n});\n\n// add `decrease` action.\nonion.add('decrease', ctx => {\n    ctx.count --;\n    ctx.next();\n});\n\n// add common action.\nonion.add(ctx => {\n    ctx.count >= 3 && ctx.next();\n});\n\n// call untyped action, this will output '3'.\nonion.call({ count: 3 }, (res) => console.log(res.count));\n\n// call 'increase' action, this will output '4'.\nonion.call('increase', { count: 3 }, (res) => console.log(res.count));\n\n// call 'decrease' action, this will no output.\nonion.call('decrease', { count: 3 }, (res) => console.log(res.count));\n```\n\n## API\n* `add(type: string, handler: Handler<T>): () => void;`\n* `add(handler: Handler<T>): () => void;`\n* `call(type: string, state?: T, callback?: Callback<T>): void | Promise<void>;`\n* `call(action?: Action<T>, callback?: Callback<T>): void | Promise<void>;`\n* `clear(): void;`\n","readmeFilename":"README.md"}