{"_id":"when-case","_rev":"31-4c365267b036fb6e88998300f82e8725","name":"when-case","dist-tags":{"latest":"2.1.6"},"versions":{"1.0.1":{"name":"when-case","version":"1.0.1","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"42078f76a8dc326f6e3def6abb623962520863cb","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.1","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-ki38o92wGf5GoUlNXY57pxabw7JOA+j/5dry+CsLgyhPLrxEXsKbejGO2em7W6fJTQmupY2WfvzIiVNzXYKXOQ==","shasum":"1215e66a84dff3535397ab3c74f8d5bcefe97f61","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.1.tgz","fileCount":11,"unpackedSize":18246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQer9CRA9TVsSAnZWagAACo8P/2G+Ds2hJ4K3kRW84cnU\nZnhuV15PoLADeb/Efwn2eZtI19OMg6NsRBY8Nv4M/h5CtdRihEIys7VWnjFb\ntaVZ6ByPpIwz+CdnlHMWqpANiGEhchB1zTlZhDAmBOT9nCOig5l+9mUoVz7R\njIShmxbS4kQyClcb2itnAnhEAthoySIL+eLaB+PWlC25ljdOVFcSEun0T/ji\n62Z/Mrv5SwfVRHBE0BQvN/y2GBc7E2u91S2iV7FqiKWlJJ6ZQECWoqk+GWby\n11G7skVDWr7oMnphAlR2h0zW5JrmkpgqmCxUBoYcCnkHfTw93xVRZfOmCYad\nXTlNbFiWpvmYZFhNZiH1JIA8HqJQlWC015huZNFfhdOb/QVkK4ejqXhKUKUc\nUbxhNzcwcZlne++N3IMoyv0j4sBd47t8Pxi/vOCMV3fXLmTZFg6orTaEgyR7\nf4fbAa09ZJNol78W96m9mVPGXEJGYHrRY4YDizG123My2OGU9uBMaI8iTGsK\n/SUeK05qSgQn4bNUUfFXNDsbvek72c38LI3DO2/OdUn2JG+VrMJTI3ZW2Sbm\nwAm5nCxBe1uUse7gSJLJC4TCrazLSdfBrwsba4azQdU/S00jqGv6YMhzrWiW\nFb94EhP0D8ppo3U8dQ2WFhr2tVoNn3sIF2jdVYqGdXsc2U9u/Gs61bCsspbI\nPxXF\r\n=rpu8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0yXB+jBQqQ5nzzK17FutdnyMQBHlNl28Q4NIJFOLxIAiAszUFl4lcRuYTVppumGGAoi3Ib377gho2eW0kXSZAaZQ=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.1_1631709949817_0.22206918915746554"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.2":{"name":"when-case","version":"1.0.2","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"42078f76a8dc326f6e3def6abb623962520863cb","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.2","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-OnWAfRcbb1Ybvs7jzMRgGWRe7EC0EXu/0gi2Jd3yJtLa1NiSewjr8dOI0CXEO9K8nEPRql2L8BAOYO9BFj5zOA==","shasum":"802b17ccb1b85c3896632ff7db2261b6557513bf","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.2.tgz","fileCount":11,"unpackedSize":18524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQe9WCRA9TVsSAnZWagAA3awP/iB6YrgjbIA6oEVGxDaA\n7WJD9Taf6Qhae7PuaidNyd3ZtYnog9E2Kar8jQ501l3KiG3nUDEIwGTyBYer\nWYPVVgbFQv1axaOoUwo2/Eeq94mWoPg/0VE6NbksfXjgqvrUnsrjkHX+LKkm\nIRX9chBcQVlua1VBSsnbLTqOvep3GaMtrnEc3Q3lmXTTR7YxYO2mKZCruXQq\nVY0jt1ptc3Gb2Fjcnqp3ULfbfCjEUBGwD/ABdAMlZCAERNqndp+qZ4I5tn9D\neYHLbTlsbXwUbSyEH6Ra9HX4VQ+vPkANcoHTQb7JLXEHaUaI/VbeM/iWsU/P\ngpfyvVovWBuFeO0TV3/+u9MyQcYlwV6mVzEngTLG1SzlwAvzmdLOwPi1aEZv\n7VoL3Gp6Hq/tEtZx5rfBl8KAD6cLOGEuHvfuDGSLlCDgtN+45VEbcWtcyx8d\nWCs8Zo/FVLdGTJqrk6mslN5wO12jwXOeaSecA0Sqbb1fj4MY+PUG4v7i4nZf\n1UF18N2yzpzqJL5ZAVU3CDLa14eipVpHKzqkd2rjRIUPPXrEnrS/abVS8Vy+\n8hZ/rYNt7BepIQO+4Num6pfXxnwlyVCEpWIrkSCQIXQjE8fVs8DmIUA8rGlj\neWb7TNL7jDHqchDW9B/UlCjVxc8vbb8p/hMRnkmsd+FfHfV8xZaY7bFCcfvX\n6mDL\r\n=aOsK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmtS4gDnYBXQFbQQ5hKjLuXQakUUNNt0Ta5/jFugw8egIga6LlkcSgXCszfN/NGC8g/fzzl5+i37Klk/Vp9oeiysA="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.2_1631711062481_0.3827923773083839"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.3":{"name":"when-case","version":"1.0.3","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"6316710f9a389568917110a581f20d8a3bbf1243","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.3","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-avwHAePwPDGZfaJh03InUuu6P/RDmeNE3qosS2WA+GvpVW9xr6R+vF1M3Eeij7YbS0LA+YBHYumpGJrWEWBPqA==","shasum":"d57ec739f8935d57182dfd3eac3a3242200d194d","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.3.tgz","fileCount":11,"unpackedSize":18574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQfCzCRA9TVsSAnZWagAA6I4P/jvQXskSwAKkYwTqZyh2\n/N3qYOKQ9t7egs6868e3/IRsbzxgYXn3o/0XM296jx//TLGlctLLRhI4bBSI\naaqR+tK/WlqBWrewuunWafMHq0UU9Si8BeOSqB74/WtcvOLL3auWXDZKKTgs\nzaQMTqH1kCUktIf8/TT0t7pl+bKhmTl4YFS+CV5GY0NOkJgLz6W9wmDc60pc\noiopv0jfBVNRzwiLITtJbpK74Noi2PHt/Y2OycH1HxxpEVdDopUHVrl1OS8w\nvif9E8Q+h4FgXW79w5SB0MNmrd9VSWJtqeRIP35mrxtGiKeRdBqEvb163BRX\nQyTAsl3ZHUyxbP3WBc53nxQoe/sByJqupBGBzqWQJpwHNkjW9WDIJGYte0QQ\nU9YpsDygXxsFIqpdgROes4dJPTwx+2smQaRYDqPe008fEY8hBZGEwSC/L0uo\n8LK4cRjMQwAnQSL3jttkKxIWM3txp9jnmj1oFL0BQpVk0pfbtOdRYFv/XBlP\nrR0XeHvP3PcR0XWAT0rFNYCX1cuNCaaQsfM2qz58AGo/HAeMYAA3eQhqY/rE\n71T5FuAYYOnn09dbEp6ujoUvBQdGEf6QpReafDlKvafAOZ601Gdj/h9w4v/1\n3+SJTf9BlrCaj8ugLgI/9lEwneO8dpYgyoYzPLvJc7wXHGhywEDE2/GvCBbD\nJt4O\r\n=kcp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC19mIPxNhC8tIKTX5lO1YlDvLF91ifs2syZIMts8fA1AIhAMWBNszfoj0AVeyAhZ6Y8HEjpgYY0fHWR9TqBxSeev6R"}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.3_1631711410974_0.3788615582570447"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.4":{"name":"when-case","version":"1.0.4","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"6316710f9a389568917110a581f20d8a3bbf1243","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.4","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-9ZUY7LdjHdimMVH9P6b9azatlzT7Nv+q5WbtbpwEAacNvTceQB5DB60jgUoAjdm+nE1p7zeJeid+IVjJ1oVlhA==","shasum":"f4c2914c03328241b4b9693a1e8c8c0177890dcc","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.4.tgz","fileCount":11,"unpackedSize":19746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQreZCRA9TVsSAnZWagAAtFUP/2T0EXQzDPAors4fxRka\nKrY/8ppQoitH7czDnPVxLGdGhCJ4dsOzkbRM/4QfbZqWI3gjF4KJlxQIeqZF\nuS5KQ77h9DiA293syrGRQG/6BeID8/GNgxI3dPujAubNY5kkLTr/QzAdudX/\nRhhUdKKs/Du4+zA/wDX/k8rlEQ+IXLRSXrbJmgjRUhYBRK6mBSh9k5I4eBgy\nWg99iKPofnLcvfhuBJIiAr46nKP1sur8buGpKionke8Nh0mAMHXaG3YqSMRP\nomw3xizfK3S+WiTzITF56i7TKe2kYS8ULUY+HHYPKfamktq4go2D7NUj6vTx\nBfXvULRuoygiJd9lm5LH26HMzP+f8MuaZvM3dZCzapdX2RN9HmBZ2lIWvYPq\nR7bPbGPVzpLjIpl4Ukk3U6zD50AACyDrQ0sTVdJpyTcGQPokpx6JwQf3EZ+k\nx6RNbFVb82A19yNAMmqwJwUyiHriqjxqiXhfFlsYzHVIbko1+ziUx0hzgjvY\nH+x7dUsegpWlybBeOHntodlDawE22BxMrz6yphPE3r1gOo0IqIjsjnemn9wR\nXOUqNzHz9MDR8hxYdW03uNmXMwL4/YH6CwnfwwL9SKo4sU6y7nd09yuSk2Pq\n03Z13v/hQe1oGJ15araYFgYVBTnBTAjwoI+f0xbe1e0uGnAfU911+pBjxrRT\nHEeN\r\n=rGb9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElraYs1BqPbr1Px2QsJIxFbMCZg6Zt6AaA4zZCb/XKFAiAeWRLILmsEpo5Ngbc4KkgztoM9hfKpjkJY+cheUqyBSA=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.4_1631762329173_0.667241447865973"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.5":{"name":"when-case","version":"1.0.5","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"7bf4d0a51d1dd6ed918cbed6a3c43ef95b19ad85","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.5","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-efIlMeqPKi21ee9AlWv/rRERzb/7JltumJBg+oeivbM0UVKR5lnuFWS4Cp3s+JNXfi5AO35Ecgy6/wC6DF8uxw==","shasum":"1f9320cd549908344910003d63c7a898ddb512f3","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.5.tgz","fileCount":11,"unpackedSize":20263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQxtgCRA9TVsSAnZWagAAZN0QAKF5JMcKKJBTV9LHEhLT\nGTyzUj3AfMZ7pm0usnANP1df7rZyIgTxzvMjclg3s6v0WWqTWUPwWoeRMAR1\n7TPg4gv8SymjCOnx+UslTEU/y1ZQnaZbOqPBc3v6GvhPFYlQgYm/YJaSoK0R\ntU6Jb5V7ef/tiG7JrHe/+SczKIaMAlFzBS1m/EV5TW0/3zh9943FMJ1dQqTC\nf9z6z9JRMfmS1KoB6nbLRjWfIWmK0xEg6HFV/hhCi9APIIoXNH4psJbwSjpR\nDWdAMUfcDl57OUqyAGPYydeoJHH+0JPNKrWEQSxmuAUK2DaxnyvFrl1k675K\nMnT4XGod6tLxBjd8GjHWIvesuK57lhc84gkvdaA4QhMqbY6NSbLG7+5iF3ug\nGmr4DdIxQhKAFVH9UbO+Gp290U9LTW4vz2GOoUYbAwPCpsu6xB+m/8paYQiV\nyix70IagDHmv1PkC+muw5+u9ZZqOgChr/R4QG1/DVzIAnLHitBngjzvnuRJ0\nPYCuxHrB0UB4/Sb5YwyREmPaKf8joIPAVyKuI+9UUOde6o8mhXhFW0YExhgT\no7nWmVVHA3fKNH3/fO+te8KVNfhYswViO0Pl+d+ZEIMNJUcybNwh0lGp6t8S\nqoCeDChy/zX072b6DhQKThfkxeLezqIJdhvrF1PIHM5QoSn366boZzvtsGYv\nrjyl\r\n=/o5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFm2yahkautFBvfu6c/Tlbi3Yo886OOPTMyxF2LEX/UGAiBu0DF475EmEhWsZBTcDBdX490cRGL9mFJTtmfGjGLoXA=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.5_1631787872255_0.5882426499559974"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.6":{"name":"when-case","version":"1.0.6","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"e1e765cf54dada71616946e6556a83f3ef3aa04b","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.6","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-eXtRmNj640iLp9Ze2GyrY1CDNPlmeKmZKnQO1AqVN4DMzFT18GdFM0yREVeltbwFqScwaD6QCSb22juhBHttEg==","shasum":"49de294573a038d21a2a89f5e7b16fee05f2a9e4","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.6.tgz","fileCount":11,"unpackedSize":19914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6Xg4zEPX0pO1B4PfRYrpS7aREQjUDiypqoX7qeE5zgAiEA7rsP9vNs8F0FysWS8X8jCU8gBJecQ54UI6Sng9CJM7g="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.6_1632299376197_0.22167818479684143"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.7":{"name":"when-case","version":"1.0.7","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"e1e765cf54dada71616946e6556a83f3ef3aa04b","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.7","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-5IQZnhuS1xVspxEC6Ilekef3YHiga1TJ8cwqNjAUtLUpCc14+u82SvMWXr1ClSTI8plnUjfgCqBOEDKUteeIXQ==","shasum":"07402e74e54f6ed43dde1ce395da9bb9ca5c50f6","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.7.tgz","fileCount":11,"unpackedSize":23048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQ+MLpgfsvUc1I8gq5dyXgUuFrcpOlKoTwR631v7XW9AiA8OxLPEuef04Hca3gEzTUfb6t7IHm80mIE8L2M1uLiYQ=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.7_1633160095749_0.42350620688875495"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.8":{"name":"when-case","version":"1.0.8","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"b6a0e695ab3c9e94faa9b748adf7c6420cde0905","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.8","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-VHnsDEwQWmM2rmuJjgjs/cQRazWDdhsGm01UMW0E101AQkqg33Af3gkdyIcaUeLqrjtzdQ1gqvvG6sVRUpsv6w==","shasum":"2c49ac634868cd02a0f4ea52161a05c467dde742","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.8.tgz","fileCount":13,"unpackedSize":28190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3BQYCRA9TVsSAnZWagAALDUP/28yiJsOXdhUkk7i120f\n9Duo4iUWTb3mv4cB/QRWw1nmYZx0VTccn+k5YzeM91NQxR3i6hLZWLrxE3tx\nURXs/sN0GellwH8se5zpLXFOoZa9sxLFnby6E2ewCGHXqUSWRNxLfy/nimtF\nSyc8+XyKD3Cjqm7YsHDOebKpGs09ydmu8ulsRNyqsUeXG3zq2dIzimyZmcjc\nwMVmytABG+pm0RZ3VdcIFoxAm6xh4vZWmxF+w8KVnEgi8fsxZqm2Hmup+ZPg\nZPjrjNRcBbyGK7dP5FBNGFrr+NnGk/I6hKzzYuV4izgKgKjScxDcIGwVHgiw\nXDfM4bC6gpe4AR3nCoHj70hezrKDke2KFRuJ6mL29z2+p7xfNMiTsz1Sy2ZY\n5rZ0bhzOk09LkVQYtSQ0YhoVE409YskmbX0a/YaaByLiWV1fNlVgM65Odd7k\ntltiB7JW8ER0aRbXgCDz2d4h6AQUoSey2WrcPGyXVnf+4q3HOTAOeQpDgdLl\nmZJPs5Us74rQ0ZBW+knNKjuYiIBDLQnq9VUiB+HeeFQo3PV99Vc9BgAEFEGm\n1/na9WgsWAbmCacKtx6YEx90AzQnZ/Syz5yw+bDC/QMa65fIJqKs5y95j/ng\nUFsfUTTTTlumry/gqw9yz3+j/2UPKqz1QNjA2PQNAkhkTSMypG48ufoX5Nzq\nF/EF\r\n=42pB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQINS7dzzQv1h+EWwIdp9Fs10cja1Gc+UjeZpu8zM8XAiEA6MC8AVSfGwODCSom9hxmw9FYqFVUt0UnQ+J0UQVNdy8="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.8_1633683025716_0.0809804425352052"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.9":{"name":"when-case","version":"1.0.9","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"b6a0e695ab3c9e94faa9b748adf7c6420cde0905","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.9","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-6LTUqJTOy1KAP9ZLGyUy46qR2aa+1YovJYwQdvorIBJA/Ye+/ivv93d9CjKSpc9gj9n+O0uAFLhJq8zk4laD1w==","shasum":"06870fe6e4666361e71454bd0ed954fb89796850","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.9.tgz","fileCount":13,"unpackedSize":28369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+N54CRA9TVsSAnZWagAANeIP/22gsVYHi47Mq5MK1Pau\nucq/tolg6r1ROJMeEm1RHSekeYQqA93RBOVVbwN85IDNDLZfnSwk0U8t2POU\nWtcD5sIRxmFwC4pyz9+HIcKWUW8B2z5PBJ+1ev6TnVjNTHU6WJLju4UrHVS6\n3STgnSgx+dVOAWyDbZUjr3kUcGeQ/dSLlK/VYdqZwr9tW+D9eiX29bXVNRxO\n9+/PI9GlUDt9D2qgnIWaoYoL0L3LWr4I0FMHRA8YOEBjiGxw5GvyadQa7NMh\n+Fd+dYRCLWrJMlsYurrwnan9pc2kA6bwHSgwEDO/gVb7B+03ZCxdaEIghXG3\naeL62Dx8ATM9KV+pJ3g0hBzCfqQRWe2AB4dLwqoJnpUibP0D4tBzvyGO29f1\n+QnbDWqg+wg6Oa1sl5u37hj3rNhOgGFRhpI3wsJ2iTqqhn+Ik2JhDaLG1wFt\nlpAw/Z9e9vsw4USmWLZfsQrZj3RPXAsD6MgVzjsFm9Dsh/kH04yl+fctDB00\nBCzCHT+7jSB1/DiDa1ouGnflx2MJRaeBmF6X2tuxPvSHh78TgfCGwYCBm1HJ\nEUkLNYKrRCvzdWy1cJl5AXD4g6NXVJo2xVnsqAjV0pwuRpoE2qPkZKrKFVEx\ngBO8RhvCMrLpbFZj3gIyq9/Erul7/+ospwPOMcLfSNTzuMC3YpLCm8sRPIEx\nGdgz\r\n=NNmB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZvOF9baHlQxUNBu+qFSOvnfkBVmgZXIx6prwnPNsQIAiEA7Q+8PxQpOu5TX14QOFcT3sgs5O7qq3gTKyWvKe59lIc="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.9_1643699832696_0.7917321884713491"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.10":{"name":"when-case","version":"1.0.10","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"a4bc6660097cb611f46c6943962f2df71e9fd876","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.10","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-mZ7SttZ5R6qKV9nRITbf7Ef4DZc/OgCvuFkB8ef6d3aGWMIh9swn0WgBYPMEbQKsc283fWw6u+wZDCwcGQvdxw==","shasum":"df50d1d38a6d7ab8594e1e1e05fdfd26fb2a43d9","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.10.tgz","fileCount":13,"unpackedSize":28372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+OSYCRA9TVsSAnZWagAAJPoP/1giC/zhRvkwqJB4SKoQ\n7f9HYwpeYG0VcWPTnVnSszVWhMN+CBUwCbFLKQ/moZRDmTYcLZK8pgfznHlk\n207QOp4T1FaUT9pHOq7tpnNnax0HcrsaZyJX9RjezaL80+bunPJEAZ167jBq\nF0hgKcIFpxyRGZbGWDwYixM0pyLmaQvKxOJIRxLwynFDV4UumgNTwkSDgYQl\nIVXRQFVRh39nL7xekd4Y/ZAHwVRk2EMv6+k18FYabloXslg7sXlZZYsSiyXm\nBKrxnzeY1mu8m83bBg3A3OoRHGwcgH6JI4I2JUtceK4sa+1ht58YNudTNB5R\nkRDvWgkAvGSFB6QRBcwW870TNiSuFz538ygAJRA8VLC5zYmUD2PSrblbIsDx\nFhR1AEw+O4gtuw1Do15W8oF/ClOY6H4Tg7LUD9XbIz93s4qY3QHewRTrCI01\nu7BR/26gmsstpYpmX/8s4Ly+B1CuA3Uilhq8jIHj1ypex0bJ6MKgyBmSsmwz\nCvVP/b84NsDHR/ZV2x7r0Kt5OpGCAygTXaEhAfC3R1P0MRlxi6KAI3L+5sbE\ntJNWZOjW+dYE7Tru8m/rcI3aSSnhjy19uf5TeyfZL45pvsfDY0pEOtaCwKL4\nVdk8R1YghdaM2EDDmgW109IhnY5zeluukqbWLwzESSwAfezRRnvZD4CQZb9b\nZbSY\r\n=MZT7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt1xPGgh0UmmmmJNxTJkpHwRMbGeMyI3dbMsLbQRNv5QIgOPjFrxj3Y60ejMql+UR+/ldUE9d353UHsKmKPeBcUGI="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.10_1643701400719_0.29135270701875804"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"1.0.11":{"name":"when-case","version":"1.0.11","description":"A simple syntactic sugar library that completely replaces switch/case, and has many new features, inspired by when in Kotlin.","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"mocha --reporter spec","build":"tsc"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"OUSC"},"license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"gitHead":"e7b558b882da7b9168346599c28f26947ed10d58","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@1.0.11","_nodeVersion":"14.16.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-KhAtyj5WhDvg5UsdtqHCLL9IYmw0nZsp8mU1i/eVr0ayeC+vnkeP3l9AcM7DSf7kXiR3T0OCEX6KCVFA1W7kBQ==","shasum":"1c51066b20382e2d342fea9f392c7aeec715308d","tarball":"https://registry.npmjs.org/when-case/-/when-case-1.0.11.tgz","fileCount":13,"unpackedSize":28399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+OXYCRA9TVsSAnZWagAAXWUP/ApvyKlfEzTNv75RFhED\nfGuVt5OzbjB/0soMNi5DSa2tO4fMLTlBoV5OHefR3H+pY4x2XrSoogI5uDOK\ng8GfR5GDTnYtxyDRuB+5a1GPMwYYC6YTK6SGdOqmUKwhpSNdwT9S37606YuD\nLUSleCjz/w9FgcKiPRGTKsFkDx1+f3r4W6HUIxE499KilETGDoi9n43OI5da\nKq6z6IREg7qveNxcRExfVMeyFRfVrYyJMxMCRoXJZRDZyt1ieqTqfltTwAgP\nPlBRoBX8IKANi9+K7mRUXsBkMPnSekXKoxs3wDava3dUKD0k0lMYJNF0rzL4\niIiFt9d7FR2CHTxQLSh51oyFE/5W7mYOvHRtCfj2rG3MUe0gNHZHKzWfvqZA\nGlgdcnsN9J+kwSHDSaAmDfmJPR/pwvJwtV3LXhIl2bsQ3p4E3wCrhI8dzk6h\nNKxH9Rg8L26jA2jOlCiBg1NHYGeFSFy/1PgJZuFqCj+e8jAWl93HxDtv6yw3\nBq3Ng09C3mF9cNxDjF5BUxEVmzm5vIMQpXyCED+NLhseG9HqLvPQSE5voI3g\npqBBWNjxA/eK4qxPA6Kjt0QaJfAtL5A8bC2osdRRc1zZR1HH/lcA8UpaJVJf\ncN+NvhtIwAu2AJOoKuBZ1wXDGaOuAGuMeme7Y4JaYqxMoSHN6+ZDyALEODr4\nwIvC\r\n=Yg/H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5714aP+AUO8wmNz3PeguYWj6IvnfxEpD0YzEksdVLMAiEA0+VLBznNPOetuA7rrm4fxZX+//i1r7o7pqGk+vEBcTI="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_1.0.11_1643701719966_0.887515813609584"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.0.5":{"name":"when-case","version":"2.0.5","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"2a1619d16ad1862f1adec13c92876b0483e0a820","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.0.5","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-jov9hNw1l9M8CADTYIaDkSftrx3IwTKWh+Mzt9XDBTkQl1QZnGkKkIa0U0T9+5IK2YTzbQfxNqcMXsrE3/yjsA==","shasum":"4799d7e787617a7cf20e1b0c2583788a2f0891cb","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.0.5.tgz","fileCount":37,"unpackedSize":107668,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTUObRs6nIWP8O2E/HptiLNDp85P6CYsZmK6J5GBQLmwIhAL24gNUchGJROqneirVwIOEQkXXD6DV9gEbDneb7yKhw"}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.0.5_1687603202482_0.8458692578951965"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.0":{"name":"when-case","version":"2.1.0","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"275f7c196e97242aff8a218ba51cf10d0deed75b","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-RsWhv7b8/WaeDObzNlBuLa5LUYXycNnS+4pWKZljnpQa+htj2WYJ4/2bXqH/GMvCNz6aILCsKM0hHX2PdSKoqw==","shasum":"cac2c9a16e0b1d9e4845dd8d380585fc2e9c8338","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.0.tgz","fileCount":37,"unpackedSize":107782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG1jHAOKQ9oIB5D0c0jbw141zIi9SpItIHCWoSvSHCKAiEAxyTigu5xCbzOXs8B0G87ap8+Yg3z2HhCe23kEkLGnhQ="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.0_1687604565726_0.6304332105838057"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.1":{"name":"when-case","version":"2.1.1","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"b4715e558622f3d0ebdeb21197e966fb853d5fb1","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-Z7IwTS3ya7psj48ndCZ5F82R0wUzzCGgfIt6SlRHGELOaFeLXbuDygi3LsKgXcf5KdeJ9hRgz3HDHa4XajhvAg==","shasum":"63c9a9ff3c1ac8efa59ca898efe417f69e101201","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.1.tgz","fileCount":37,"unpackedSize":107782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYeYWXJLVv6TemxTPWeLP2jtEvmz/GtX+kKpQm0XK05AiBL7ZmBU792rA+rm5HuShxDTrEgHEn5MSQohDC8bDbrMg=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.1_1687608919566_0.49299143760529396"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.2":{"name":"when-case","version":"2.1.2","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"d2c169f661d51eb158dbd786d8f2375155971c4a","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-m6m0SUXxoBteJINeqWgdBaZVTmaXBFen0hfbL7uGSxU0rfFKtf/e6KeO9z8fcx5F7pCKw8LffcoEA+o0lCU3AA==","shasum":"f53770b11d145fcf2c0716592fbafa3f640e6d1c","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.2.tgz","fileCount":28,"unpackedSize":78321,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJQhj5MDAWZdrFycad7wZvwL+0hSdXQDvRYUPajTio8AIgTXqY+BXN3B6hkeAjk1pCeHBhiOrFq2sJO75xRBZ9mbg="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.2_1687613138321_0.47806399931127475"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.3":{"name":"when-case","version":"2.1.3","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"71f920d8773f0118772ceb1450a41d6200e282a9","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-EJDmXR3dcfxQijoe3n10g31gzEPNctcs+4QZ+CfRKBP+qkrFYqJtuAOVNwvYQMv8E6gq3DSbmzgpVvu3FvU7uQ==","shasum":"58499b197c4bf11788f1378eadec8c3c3c7a57cc","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.3.tgz","fileCount":28,"unpackedSize":78321,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFt09hcN49rwCf3BN/XB9plTNoZDztDzmw7BoKNw0eR7AiBtIhVOfi5nLDPqgEs4zMicpQXM3oEBeOmO952rg8Vx0A=="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.3_1687613741677_0.06520496348538085"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.4":{"name":"when-case","version":"2.1.4","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"71f920d8773f0118772ceb1450a41d6200e282a9","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.4","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-kkhdVQI2E/YeZE6r39Mm8JpEnvny/bNxxP+Xyhoi4SYRYVwx6k2RUBrJf/JkMlRr4FHa9buQHipGC0WYr/daDQ==","shasum":"dd1c462376a3de1e870a8c1a2c1e4615196f4d35","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.4.tgz","fileCount":28,"unpackedSize":78330,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYYMMUm47SAezGkyvwi6b2kNORFGMhgV7BI2Up5aJFcAiEAsMKCba9Fb4bcQ9rNHqG6sA76jzrsIVe7XlF8PbIRUeg="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.4_1687613884049_0.6090996349095259"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.5":{"name":"when-case","version":"2.1.5","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"71f920d8773f0118772ceb1450a41d6200e282a9","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.5","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-tYQQxabAPt3DjdTPgsUUaYj51m4zOAparhDMvRIDO7pDyY3Y0sXLK8wQ1GoQXyVjVXukzSa0un76Pnvr7l/1Uw==","shasum":"6a00b6a8789be1ffc29d1d9c5aa06f873c07fc8a","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.5.tgz","fileCount":28,"unpackedSize":78532,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuAw16HOKrKTZWfIKO1sNzcXQuKwtYtllqv8owtrKt/QIhAMekys2nx7+zBnsjsQ1G+qILKaLV92p8E5i7PoRPlaej"}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.5_1689142630219_0.9789509335455828"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."},"2.1.6":{"name":"when-case","version":"2.1.6","description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"scripts":{"test":"npm run build:clean && npm run compile && tsc -b ./tsconfig.spec.json && mocha ./dist/spec/test/app.spec.js","compile":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:clean":"rm -rf ./dist","build":"npm run build:clean && npm run compile &&  node ./scripts/prepare-package-json"},"keywords":["when","case","swtich","kotlin","typescript"],"author":{"name":"ousc"},"license":"ISC","devDependencies":{"@types/chai":"^4.3.1","@types/mocha":"^5.2.0","chai":"^4.3.4","mocha":"^9.1.1","typescript":"^4.4.3"},"exports":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"71f920d8773f0118772ceb1450a41d6200e282a9","bugs":{"url":"https://github.com/ousc/case.js/issues"},"homepage":"https://github.com/ousc/case.js#readme","_id":"when-case@2.1.6","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-rHQkC3yAzg8BigWXyvwgDzPzksTduUDRBjoNDia5XTL0FJOH2AEt5K/sna9vgHWnyLoTuSAgaPxQj71hBsmVzQ==","shasum":"cfc5cd6837ceb56349aa012e1abacb177517e2e7","tarball":"https://registry.npmjs.org/when-case/-/when-case-2.1.6.tgz","fileCount":37,"unpackedSize":114645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBpfoNt7kv+160Zxo/TFd0UXaOvmaaSO/ylUiUZotylmAiEA7mw98jLvVZXVUiLMtpoYy9oOHh66C+FGGrf1p7q3C1w="}]},"_npmUser":{"name":"ousc","email":"sundaiyue@foxmail.com"},"directories":{},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/when-case_2.1.6_1689221164126_0.695022387573234"},"_hasShrinkwrap":false,"deprecated":"This project has been renamed. Install using conditio instead."}},"time":{"created":"2021-09-15T12:45:49.817Z","1.0.1":"2021-09-15T12:45:49.945Z","modified":"2023-11-14T10:08:29.374Z","1.0.2":"2021-09-15T13:04:22.633Z","1.0.3":"2021-09-15T13:10:11.131Z","1.0.4":"2021-09-16T03:18:49.306Z","1.0.5":"2021-09-16T10:24:32.395Z","1.0.6":"2021-09-22T08:29:36.321Z","1.0.7":"2021-10-02T07:34:55.911Z","1.0.8":"2021-10-08T08:50:25.845Z","1.0.9":"2022-02-01T07:17:12.873Z","1.0.10":"2022-02-01T07:43:20.870Z","1.0.11":"2022-02-01T07:48:40.122Z","2.0.0":"2023-06-23T23:24:36.730Z","2.0.1":"2023-06-24T08:31:53.839Z","2.0.2":"2023-06-24T08:56:44.115Z","2.0.3":"2023-06-24T10:23:22.792Z","2.0.4":"2023-06-24T10:32:12.431Z","2.0.5":"2023-06-24T10:40:02.851Z","2.1.0":"2023-06-24T11:02:45.978Z","2.1.1":"2023-06-24T12:15:19.780Z","2.1.2":"2023-06-24T13:25:38.504Z","2.1.3":"2023-06-24T13:35:41.901Z","2.1.4":"2023-06-24T13:38:04.225Z","2.1.5":"2023-07-12T06:17:10.457Z","2.1.6":"2023-07-13T04:06:04.306Z"},"maintainers":[{"name":"ousc","email":"sundaiyue@foxmail.com"}],"description":"A lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.","homepage":"https://github.com/ousc/case.js#readme","keywords":["when","case","swtich","kotlin","typescript"],"repository":{"type":"git","url":"git+https://github.com/ousc/case.js.git"},"author":{"name":"ousc"},"bugs":{"url":"https://github.com/ousc/case.js/issues"},"license":"ISC","readme":"# `when-case`\nA lightweight library that provides a simple and expressive way to write conditional expressions with return values in JavaScript.\n## Usage\n\n### Installation\n```shell\nnpm install when-case --save\n```\n\n### Import\n```javascript\nimport { when, If, Is, In, Matches, Between, BelongTo, IsNaN, Else, Not, NotIn, NotMatches, NotBetween, NotBelongTo } from 'when-case';\n```\n\n### Quick Start\n```javascript\nconst foo = 'bar';\nconst result = when(foo)(\n    Is('bar', 'foo is bar'),\n    Is('baz', 'foo is baz'),\n    Else('foo is neither bar nor baz')\n);\n\n//or\n\nconst a = 1;\nconst result = when(\n    If(a > 1, 'a > 1'),\n    If(a > 0, () => 'a > 0'), // use arrow function, do something and return a result\n    () => 'a <= 0' // default result\n)\n\n// `If` statement can be used alone:\nconst b = 5;\nconst result = If(b > 5)(() => {\n    // do something.\n    return 'b is greater than 5';\n}).elseIf(b === 5)(() => {\n    // do something.\n    return 'b is equal to 5';\n}).else(() => {\n    // do something.\n    return 'b is less than 5';\n})\n```\n\n### Conditional Functions\n- `If(condition, result | fn)`: This function takes a condition and returns a result or function if the condition is true. Alternatively, you can pass a function as the second argument. When the first parameter is true, this function will be called and its return value will be used as the result.\n\n- `Is(value, result | fn)`: This function returns the second parameter if the first parameter is strictly equal to the given value, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `In(values, () => result)`: This function returns the second parameter if the first parameter is included in the values array, otherwise returns undefined. Alternatively, the second parameter should be a function that returns the result.\n\n- `Matches(regexp, result | fn)`: This function returns the second parameter if the first parameter matches the given regular expression, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `Between(min, max, result | fn)`: This function returns the second parameter if the first parameter is between the given min and max, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `BelongTo(type, result | fn)`: This function returns the second parameter if the first parameter is of the given type, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `Else(result | fn)`: This function provides a default result if none of the previous conditions returned a result. If a function is provided, it will be called and its return value will be used as the final result.\n\n- `Not(condition, result | fn)`: This function returns the second parameter if the first parameter is false, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `NotIn(values, () => result)`: This function returns the second parameter if the first parameter is not included in the values array, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `NotMatches(regexp, result | fn)`: This function returns the second parameter if the first parameter does not match the given regular expression, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `NotBetween(min, max, result | fn)`: This function returns the second parameter if the first parameter is not between the given min and max, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n- `NotBelongTo(type, result | fn)`: This function returns the second parameter if the first parameter is not of the given type, otherwise returns undefined. Alternatively, the second parameter can also be a function that returns the result.\n\n### `when` Function\n\nThe `when` function is used to conditionally execute functions based on a given value. It is a curried function, which means it returns another function until all conditions are chained together.\n\n\n```javascript\nconst result = when(value)(\n    If(condition, result | fn),\n    Is(value, result | fn),\n    In(values, () => result),\n    Matches(regexp, result | fn),\n    Between(min, max, result | fn),\n    BelongTo(type, result | fn),\n    Not(condition, result | fn),\n    NotIn(values, () => result),\n    NotMatches(regexp, result | fn),\n    NotBetween(min, max, result | fn),\n    NotBelongTo(type, result | fn),\n    Else(result | fn),\n    // or you can use a function as the default result\n    // () => { // do something and return a result }\n);\n```\n\nThe first parameter of the `when` function is the value to be tested. `If`, `Is`, `In`, `Matches`, `Between` and `BelongTo` functions will test the given value against a condition or set of conditions and execute the corresponding result function (or return the result value if one is provided).\n\n`Else` function is provided as the default fallback and will be executed if none of the previous conditions return a result.\n\n`Not`, `NotIn`, `NotMatches`, `NotBetween` and `NotBelongTo` functions provide a way to execute a condition based on the opposite of a condition.\n\n## Example\n\n```javascript\nconst a = 1;\nconst result = when(a)(\n    If(a > 1, () => 'a > 1'),\n    If(a > 0, () => 'a > 0'),\n    In(-1, -2, -3, () => 'a in -1/-2/-3'), // use varaible arguments\n    In([-4, -5, -6], 'a in -4/-5/-6'), // use array\n    Else(() => {\n        console.log(123);\n        return 'a <= 0';\n    })\n);\nconsole.log(result); // output: 'a > 0'\n```\n\nIn this example, we first define the value of `a` as `1`, and then use the `when` function to check whether it satisfies the given conditions. The `when` function will return a function that takes in multiple conditions and returns the corresponding values based on whether the conditions are true or false.\n\nIn the above example, we check if `a` is greater than `1`, if it is greater than `0`, if it is included in the array `[-1, -2, -3]`, if it is included in the array `[-4]`, and finally use the `Else` function as the default result if none of the previous conditions are met.\n\nSince the condition `a > 1` is not satisfied, the function moves on to the next condition `a > 0`. This condition is true, so its corresponding function is executed and returns the value `'a > 0'`. Therefore, the final value of `result` is `'a > 0'`.\n\nYou can chain multiple conditions together in this way to create more complex conditional logic.","readmeFilename":"readme.md"}