{"_id":"@apikee/react-simple-store","_rev":"5-ce38b5fea365c8a48f33a210dedea036","name":"@apikee/react-simple-store","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@apikee/react-simple-store","license":"MIT","version":"1.0.0","type":"module","types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"f990de595294adde7ea64eb53d441d6e16ec61d6","description":"Simple and easy to use global store for React","_id":"@apikee/react-simple-store@1.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-F8178D22QDdpF+Go14I4qvvoFdyq8fJw8pK5LzskdMru1zdNL3GSTO6I5fFzyTbqyrljKDz+esUdzJe08LVQig==","shasum":"844828cd9b49189050a2fda5d242d74e1eaa2523","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-1.0.0.tgz","fileCount":5,"unpackedSize":6016,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqOxRvdf0xJaDUfAQIWVCdm1vwztFDj9bcTqh/KVX2/AiBVl8Zzd4JCK+Q4pGVAiKw8P/BvL6lFlBLypKxFOjRyLQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji92wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVCw/8DLwcdzTAFBl+E9TuLhfGzRI2N5fsC1oc5gBf+AY2YcJXmDpM\r\n8hL1fWnZtjummEzFJgnhCZ9bIMpasm2PaRXNR9UAoqyHPfG0Y8x0JWSQrelq\r\nFi9/jNok7Ei3IQJ0Pkp7n5Ocb8QJaTPefXt+w29MXO7+36BniRA98E1BNz5N\r\np67GpiQeLLO1i3K//L757DFp5mE3wrJo2CCX6geZx2wAlv/CNKk34sPLUaZu\r\n/IgKfQgOgJ+nT45TjcYUX3ubehqs6lBc+44jxnYfoBZhVCAMapL0DbF3Og/l\r\nKhW78nGa4f8LJ8M7F75qnKrycfBNW/gK03MwAs9YYWKYa0XMv87YotMfiXRB\r\nWF+vq3+T1M9BmZQfo9ZQvz5pAuq6hdAifM7CZ8jNfpRuzh6RIDPMy53R4RLT\r\nRdp2k4S5ZZSL7z89Qqswl7YbKDGDxrvxjK3rHoddU/3ftRcHoeGCjIyV5Acr\r\n57v/7ZV1EV4V4V9jscUmhFvjQsLSWHo/7NC6pKCWJx91PXvjBEut0a6I8lyn\r\njKQ/bH+rIgZ7fpRrZVC5iBnO47sUHqo+4wXd0GO9OsY5e/QkG2uFWEJH1vY6\r\nnEcDcTD/RUOWTN9UmEDe9GvQMH79VJbiCGqxXscKHtbZumNq2QpG220XJaC3\r\nsEBnR0RZBtoRJ3TRo4SxcioVnKJ+cMMcMl8=\r\n=TV0F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_1.0.0_1670110640255_0.9770989527484586"},"_hasShrinkwrap":false},"1.0.1":{"name":"@apikee/react-simple-store","license":"MIT","version":"1.0.1","type":"module","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build","publish":"npm publish --access public"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"7ab19c89b1cdc0781d02a348bba95d2ee3a5a86c","description":"Simple and easy to use global store for React","bugs":{"url":"https://github.com/apikee/react-simple-store/issues"},"homepage":"https://github.com/apikee/react-simple-store#readme","_id":"@apikee/react-simple-store@1.0.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-nCsLET3hlilZneoUAdyRfc7xlwF5g43qn05dG089uls4Xh4K/gykr3HySAWJi6z2EGSI/kJUmMJ96sYWBI2A8A==","shasum":"31a99fa3e3ca0b98b206a0f9291cb24fcebab149","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-1.0.1.tgz","fileCount":5,"unpackedSize":6162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6LHuxe85L3zmMpqu47DWic7tBbwlCFXisqrTsgZjgjQIgUDuQHHeOI1j18G4Gp3LO0LMjEOJHE6uvxw/xywlwPd0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji+xyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpc/BAAgew+iOBG7oIUQ9RQgWnshwRBMWHVYRT3aGoRsd3+U0P2YZNx\r\nMcRnts4Zg9WNhty2guTLRyah1zvLDq2EnUubKWlvoy8YaeKKmM9ToFv+Gvg9\r\nF7E+eem/taaK/2mqISd62DNaivup84o6h8EraM9aieM80hSGSGxftFI4jwMa\r\nn3MluP28nxbjmFrefuyzm11s6PXu3+lgwL3Xr+wAnzmfzFyc9r997FUZNnXP\r\nmvhTYPPoahkSI+AEBIpKpTh29GiBhlk5q4984mRVfq5idnydS0j4tVKklHsF\r\nY3zUJIwT0p4KAdYtDWeDBSlIaTF4VWAXBRP6QzSJYJfXfke7cMX7ssweg11X\r\n+GPPVtG0k2yiOAY85UxCETpTYA+CEq7SpDrR+bYaadlOR1CIowd+Kfh8XKbc\r\ni0mhbjKchXvoaoEc/7LAX1BGiMo1HLCg3oOBpcUuAd2ISv5O9bT1B3euWn7w\r\nYGRrq/QY2GIWSwoitX7OyInV3Jwaol8w6PkUF+g0yQbbXxCDpZVIHliTiPfg\r\ne+EjuH6C+Y2llk8zFx1JIdpPLZX148oIO1vK1OPnc6Wh+r597TXfB6/gLTWv\r\nGjD5FWAmXql4b/CrH5WZ21aHaXYkm8XOR1dK096jNY6Q5bVX9yoEOgnAqR6+\r\navLJF6d6TiWx3TAXrI3jZUM/WKgIfQHm6rU=\r\n=oUXf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_1.0.1_1670114418106_0.6674329691127072"},"_hasShrinkwrap":false},"1.0.2":{"name":"@apikee/react-simple-store","license":"MIT","version":"1.0.2","type":"module","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build","publish":"npm publish --access public"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"79eae64ab530c99728492b95aed8b3ac63b8a2c9","description":"Simple and easy to use global store for React","bugs":{"url":"https://github.com/apikee/react-simple-store/issues"},"homepage":"https://github.com/apikee/react-simple-store#readme","_id":"@apikee/react-simple-store@1.0.2","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-wH/sdO1pkfCOPab6A9RCBpPZ7odpgRoBvhrpDAPL/Z3FPLZx5XR187Qtl0wAvWu+H7NvS+Pfz6DijvuLCO3myg==","shasum":"4dec43f685ae88d28105d715e80365a1b252e4bf","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-1.0.2.tgz","fileCount":5,"unpackedSize":6162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBVOkJU9DCaFOC7bX2h3TBcx0KGJHDmmlJp7gLZX8txAiA7HpNCtLuzcvXAgingl0a4m4T1iJ6OflYrepwmjF0KvA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjFs5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZxA/9GonbdtdiNs4rX8cNFssXjiWLfj5EI9+gcqBthDQPiZLkXGmr\r\nt/KU3v46YtvRSkl8iC35HFihdWh0m7Vy2zuBc866ZYSWPKrdqit+mIMRuZjk\r\nAHkOq3UmMbGLtHbfFixcbyNchjQ+8ijXbCf3jlwyc3fVWj1cJ9z47aS3Q9nT\r\nPfZxkTzRaC9mkEKU1SmpRBbxzp+tsAmZtlkx6+q1EZFYJ+c45P5vSolE6/QM\r\nSxvN85wDCCuNLybH+1L4cis3xgW8AoY04exXHRTOnWT0p/A6Xjdx29RMciMw\r\nLjl7jzyZR4Wdu++HkZp3oIS4HfqhcvUOX8RfDoQw6Rrm2OQWOSJ/WquSz+Jh\r\nfioaoT6/XJ8fy1qz3YIIuRQQI2gu+rl0HuOX6AnfuYvTG2qV/k7gRBHWLvP6\r\nGkbmPiGWIyhEz3hz2Qqhc4ynPotkGqj1rBLtXgi5MSpsIMUBfh7ku6XBzQNS\r\nIj1KJ41BPZNCRiG5CKQbPS+vvh6dx+X4FfxZ88tmj+VnPBsAxveJUZlR9To0\r\n3rBudC3T04VDXqXrrArKwJZNjJCfbKUOgtaoa0JFCpsIZzzcDVRx37aThItI\r\nCIBadAC9DJ7VMv6hm8xna9m4NJVOKQqv9HdtitIMgGT7gwvdfYS7K2AkMUhR\r\nPisPR+KIZ11ipQYiaGcMuzguOFZK9ckfph4=\r\n=5cn8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_1.0.2_1670142777315_0.29832532442941484"},"_hasShrinkwrap":false},"1.0.3":{"name":"@apikee/react-simple-store","license":"MIT","version":"1.0.3","type":"module","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build","publish":"npm publish --access public"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"588685452045dc67b0ba7c8ce3364f128e3b162a","description":"Simple and easy to use global store for React","bugs":{"url":"https://github.com/apikee/react-simple-store/issues"},"homepage":"https://github.com/apikee/react-simple-store#readme","_id":"@apikee/react-simple-store@1.0.3","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-mNuH526E6wFl1Tze70Iu0a2+QuzUxY0T9CSoDw3y6wv3IhSBUIjx5XzPa/Gh2DwhN9l97YRWIedGCw+Gi76m0Q==","shasum":"578b7dc3c509e9272c47a7960fe937a0c055ad59","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-1.0.3.tgz","fileCount":5,"unpackedSize":6163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmQeBu+4sUGOpPwWirga7dwItgcmgTbSNOzbuvhy840wIgRiVHnOD3CvgRdNLzen7nKVlxWrLpbLodyi0WlsTd6DY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjFwEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgxBAAgT/VeMbQRAbZ2gOiqTb+9lmPz8W2uaCbDyYMnVkIUP2AwSFK\r\ng252xqhhs5xvEWm3Vyh7fhJidqDLmP/ofGsRBZxgIcSuwocRVe/6VmQT/9Dg\r\nt7CQCYXmtRlthdC4OQen5SdV5eCO7TjqrGNoJ3CRWyQnATiu+xEu/HKCjbsX\r\n9MD3nBazH4Cr4WZd/frn71uw5jNi+EHnBENIP+MoyKhScUFML3OPlLhd0mSf\r\nohP4TkDt93Ltzz7aa2EvorAuFrxwZl6+i9jPXSNNYdkdjwS6Q4qDW2bKqHZX\r\ngX0gsGMt2tZbkuHplrOBH1C63ChokE7fSbVTVJRv+fzT21NGfDYh9pr2byfy\r\nRtaAFys6OJe0g3MW58e4Mi3RpgCo4t+S3rw2PL7ajVpaTlf4q6IKRVgnZo6l\r\nxexNHg56ONfDwbKu/KudNLSVudBrJTUQCRi7/+w2q5x93aG2AwCx3zOnrSOQ\r\nMy4i4t7G6Kub8UzZ8pbnpOEOl8zXrKO5xEPXU7CYMe65oPv79892XQkjuBKq\r\nbQkDTlzmtulsECb5i4i9QNBZgi5/5LRYj4HJmTu8PeLSY8ohEQY6NGl7tV2t\r\nhv5+5SyX/NLuxUbJW/KjxaTTnCfFncLqZ/fEVyjDufuOjQtw3UzIP3YKejHG\r\nVeWcK1Tpbe1dgnGCqMa/Cca65n49DE+5Isg=\r\n=UeSA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_1.0.3_1670142980280_0.9852451098626394"},"_hasShrinkwrap":false},"2.0.0":{"name":"@apikee/react-simple-store","license":"MIT","version":"2.0.0","type":"module","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build","publish":"npm publish --access public"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"314911792a53553c2bd3e0d86a077ef4dc7b3de9","description":"Simple and easy to use global store for React","bugs":{"url":"https://github.com/apikee/react-simple-store/issues"},"homepage":"https://github.com/apikee/react-simple-store#readme","_id":"@apikee/react-simple-store@2.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-PjSOYeJ3YYY4NEnanj0DSW6n3wYADF7NdqJQjJBCkCxgv3PtQWyaVQuBh17Wj8ao4p81w/LPU+1wFb1Vf+CEuA==","shasum":"9e0494e03e189a091f117ef16e8d85e5aafbb693","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-2.0.0.tgz","fileCount":5,"unpackedSize":7013,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTE4zJC0DGJqkVu1hJMfy3WdAVQqKCNXIsXEDqgbglcAIgTNOylOyUr0AjYXcaqRDvVnY+kbEWhe4VM2hpuVSZg3Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjkCKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoS5Q/9EWGV+cCSLlV4GXfpIJffzzpCCU4zUeq2DakPOlnyAgui0kjH\r\n8JkJpUEp85lZjkfzgbOi+ZsjfGU1B77LCDD8regjYogT5ZhPbeXpcDLhVTDD\r\njiFdmIJ92Ljr+p+X2luI6D4m/cnejZt1qQHJefjRzhSybH34COyLUiP7Hxlv\r\ndsdPhT6mxtZOtP5NoFfNneTQePwd7ENAvBW0XyNOvJA2X1VTFQLZ/uMFV4Wr\r\ndHZYcI75M+Ozu0D8tJ0AD0NHMf8esfl733uMIkp/uNMyQq/5lS/8DLiqti7k\r\n1tiJjdZrdt/RnAH7RU+JrvWlHpZr8MxWQWavkshBWMcM/X51fGI90wRu5sBF\r\n5bMaqStAT7SDVFerldNTx7dF4A4Lf6PSPys/fir5Xq+n3Nnjoq+jY3GwTDiA\r\nuuwiJV8R34nBPJTRfgDQxMLu0Dvgnr4edj2qu/sXY4TsoRQQdlU4zEFe2e/L\r\nmQ+JQL7K/yt25F9icwlnUf3BukklVcVjyD/5v8setaoa3Z+sqX7oDAgEXGrs\r\nOzDLp48jlstF8n+S6p4hJfRP6fTghTnoIVV+YPaZdO5XVC4ASoyw60FtgLuH\r\n4R84UD/HXthozYD0O+byd9dQ8Y9Ol5bBKXS2hJu+B/fv3/Qy9NE3DmmoE9Uq\r\nBCM8cFZuxhrXWN0g3ecT6PW4EmHHUOS7qLc=\r\n=YB/2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_2.0.0_1670267017962_0.35535212350511336"},"_hasShrinkwrap":false},"2.0.1":{"name":"@apikee/react-simple-store","license":"MIT","version":"2.0.1","type":"module","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"types":"./dist/react-simple-store.d.ts","main":"./dist/react-simple-store.umd.cjs","module":"./dist/react-simple-store.js","exports":{".":{"import":"./dist/react-simple-store.js","require":"./dist/react-simple-store.umd.cjs"}},"scripts":{"build":"vite build","publish":"npm publish --access public"},"dependencies":{"react":"17.x || 18.x","vite-plugin-dts":"^1.7.1"},"devDependencies":{"@types/react":"^18.0.24","@vitejs/plugin-react":"^2.2.0","typescript":"^4.6.4","vite":"^3.2.3"},"peerDependencies":{"react":"17.x || 18.x"},"keywords":["React","State Management","Store","Global","Simple","Observability"],"gitHead":"b5f001a5b4f4a4b666937f3ec347e3450220c102","description":"Simple and easy to use global store for React","bugs":{"url":"https://github.com/apikee/react-simple-store/issues"},"homepage":"https://github.com/apikee/react-simple-store#readme","_id":"@apikee/react-simple-store@2.0.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-AxSCpdra7dkvC+T/TAWsPaSxUgCfJNc1I+XXVZ5IuZ4Qz0gTNARGcs+EwuvwYkE5ju1wCLxowECp0y+2TyfCaw==","shasum":"d9e10933a08c47fd316355d16e4e0ef8f6a98ebc","tarball":"https://registry.npmjs.org/@apikee/react-simple-store/-/react-simple-store-2.0.1.tgz","fileCount":5,"unpackedSize":7038,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6hvrLUKYlRzNH9dIaN/+TYclwG7j2Fe5KEt8SSbW2iwIhAMsQr0jexIjylBF3WP4umpAjqFQXVVUjEdvApF91+w/c"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjkF6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpetw//ZJ+mcQarlNC+hWOflqaLwSP30MnKCyXaFaXKfcvLV7OXnaM3\r\nWwrubI5K+Itc+xaQ0P3uTQ1xFt2V4BZEJgRysfO67DHbPMxLk8V+Gh9mmLQI\r\nsdyzF/z0s+0he2qg1hsxH2rVLxipD7y+XF5lWRmjoUxltNvCbEFSPcMv2R4C\r\nE98rbYLvBxwr+94b0RZ37suOVIkSOc1OdlQthmvlXLB5xzFAAZ0pW9rqQ3zD\r\n6CZKtAJDuBayPA4PdpqZ+e9N3c142eMEDkxu0avPYZ9MprV1tn9w2sQC4y2M\r\nYf9GUrQVWxGhxIozW9QoWFzQgAH+LIWIDPbzDGJE50ImFOEYuyqp0VaAq42u\r\nmolzYT0YP5WcfJoz/hBg6Bn0EoJxoALZ6wauGLVr9JUP4ji2iuwi8Uu4Y9o9\r\ns3QVQv2DTylUG7J8DTBVM9C5/HKXif8DcbI2vGO7t4cshfk48/p1kY11aeCb\r\nhVNpgMXOIqvE4F5yHuajJAqC5iMaSDUzDurVlAbW5lcnFN37AcQfv/0jQJgz\r\n26821mK9fxFuaX/XPq315CoK98PqUUVpSbBJa8ERvPpodiM1lUlBOYHaAy8k\r\n4hzCgM6tctngcMHwHUNRI/nYVXLg1RvAZqrf8F7U5BdNUIV7MnBbJ3mBQwdO\r\nUp5yhtM3H9zQfl0qvmycBVoHlO4PDyIfthY=\r\n=cVUM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-simple-store_2.0.1_1670267258035_0.6804897407445982"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-03T23:37:20.166Z","1.0.0":"2022-12-03T23:37:20.425Z","modified":"2022-12-05T19:07:38.337Z","1.0.1":"2022-12-04T00:40:18.278Z","1.0.2":"2022-12-04T08:32:57.595Z","1.0.3":"2022-12-04T08:36:20.525Z","2.0.0":"2022-12-05T19:03:38.091Z","2.0.1":"2022-12-05T19:07:38.237Z"},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"description":"Simple and easy to use global store for React","keywords":["React","State Management","Store","Global","Simple","Observability"],"license":"MIT","readme":"## react-simple-store\n\nSimple and easy to use global store for React\n\nUsage:\n\n1. Create store\n\n```tsx\nimport { simpleStore } from \"@apikee/react-simple-store\";\n\nconst store = simpleStore({\n  name: \"John\",\n  age: 32,\n});\n```\n\nWith Typescript:\n\n```tsx\nimport { simpleStore } from \"@apikee/react-simple-store\";\n\ninterface User {\n  name: string;\n  age: number;\n}\n\nconst store = simpleStore<User>({\n  name: \"John\",\n  age: 32,\n});\n```\n\n2. Use store data in components\n\n```tsx\nconst MyComponent = () => {\n  const data = store.useStore();\n\n  return <div>{data.name}</div>;\n};\n```\n\n3. Change store values from inside a component\n\n```tsx\n// ._set() method is a part of the data object, you can use it to change the store data\n<button onClick={() => data._set({ age: Math.floor(Math.random() * 60) })}>\n  Change Age\n</button>\n```\n\nOr outside of component\n\n```tsx\nconst store = simpleStore({\n  name: \"John\",\n  age: 32,\n});\n\nstore.set({ age: Math.floor(Math.random() * 60) });\n// Components gets re-rendered accordingly\n```\n\n4. Get store values outside of components\n\n```tsx\n// Note that if used in component this way, React will not re-render component when value changes\n// Always use store.useStore() in components to get the store values\nconst { name, age } = store.get();\n```\n\n5. If needed, create computed properties from several separate stores through custom hooks\n\n```tsx\nconst store1 = simpleStore({ firstName: \"John\" });\nconst store2 = simpleStore({ lastName: \"Doe\" });\n\nconst useFullName = () => {\n  const { firstName } = store1.useStore();\n  const { lastName } = store2.useStore();\n\n  return `${firstName} ${lastName}`;\n};\n\nconst MyComponent = () => {\n  // Component gets re-rendered if firstName or lastName changes\n  const fullName = useFullName();\n\n  ...\n}\n```\n\nExample:\n\n```tsx\nimport React, { useEffect, useState } from \"react\";\nimport { simpleStore } from \"@apikee/react-simple-store\";\n\nconst defaultValue = {\n  name: \"John\",\n  age: 32,\n};\n\n// Default value has to be object\nconst store = simpleStore(defaultValue);\n\nconst ComponentOne = () => {\n  const data = store.useStore();\n\n  useEffect(() => {\n    console.log(\"Name Changed\");\n  }, [data.name]);\n\n  return (\n    <>\n      <div>My name is {data.name}</div>\n\n      {/* Changing `age` property that is used in different component */}\n      <button\n        onClick={() => data._set({ age: Math.floor(Math.random() * 60) })}\n      >\n        Change Age\n      </button>\n    </>\n  );\n};\n\nconst ComponentTwo = () => {\n  const data = store.useStore();\n\n  const [newName, setNewName] = useState(\"\");\n\n  useEffect(() => {\n    console.log(\"Age Changed\");\n  }, [data.age]);\n\n  return (\n    <div>\n      <div>My age is {data.age}</div>\n      <input value={newName} onChange={(e) => setNewName(e.target.value)} />\n\n      {/* Changing `name` property that is used in different component */}\n      <button onClick={() => data._set({ name: newName })}>Change Name</button>\n    </div>\n  );\n};\n\nconst App = () => {\n  return (\n    <div>\n      <ComponentOne />\n      <ComponentTwo />\n    </div>\n  );\n};\n```\n","readmeFilename":"README.md","homepage":"https://github.com/apikee/react-simple-store#readme","repository":{"type":"git","url":"git+https://github.com/apikee/react-simple-store.git"},"bugs":{"url":"https://github.com/apikee/react-simple-store/issues"}}