{"_id":"@asmundwien/more-hooks","_rev":"10-199814c470369c292b47fbbdabf69758","name":"@asmundwien/more-hooks","dist-tags":{"latest":"2.0.2"},"versions":{"0.1.0":{"name":"@asmundwien/more-hooks","version":"0.1.0","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@0.1.0","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"c7f24259a134fb17381a6914540ac4c471bddba6","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-0.1.0.tgz","fileCount":6,"integrity":"sha512-q+IOw9p6a996J968L+6toG+oIx4jPTWST2Z9DaJ43WBaNlAP5dU0XP/aViVvBmiMAK7yVj9NJJnC1C4oBGZXrA==","signatures":[{"sig":"MEQCIETJKukC/iKzZFXFpVTUjf+OI9fHYlgiGjTZ0d6Zy1hUAiARZ3xGiPeMJJCwo1VcTJfZ95doHo7q1XLiMq3myLQ2kQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMPM1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6qA//VWT4R3diHbDC0EEZ0T8imdNb4JohopbBJNZahBl4i0RBMn9C\r\npI6mLr8NzBLGzjpA0+HT9YwVafbHezyPBhOCyjEgvNpRTMMjDG3U+RH5fSu7\r\nIigur69H2UtFoZHFfbV51w3eVM6MdHS0yFfWj4mhlhf5bT+fJQdjMbiIVk8w\r\nSyzwQ1kznIYzbjUBrQOjFVO6JADxaRLe/Jzk04SS4rMYIH937CnXf52g8Vpo\r\npFIY75eNhLpd4iMcF6TLKx/UxdXOicHGb1MHCs7tbPGLX+zYktjcpbsLFqhd\r\nVtG6PO34J+GSnhiKQj6Crl5CtW1zAw5aTclwTseXohkadfL2B0Xb4zrRNSBf\r\nIqZdeF4sWe+K5nhqzStwdAMTzuRL+ZoVAJafl/O8AWPKu9SVnhoUu087xKYz\r\nqkTqKf4tzFdbBqj4j0cxJBoukNd5UueJ1T/z0sQNSp/LwKCO1fx7+p8+9nmX\r\nx0W4jqlp8grDTIGlh7Hp5D7umSh8IIJhrYEPuUt8AQTO3c+cf2MciVcn0dwo\r\nqOP/PvbAcG8//q20i7ZDO1W2JjOE8ajU+EKUtq89xhrS4SjTRPfy7SHg69al\r\nJKiUVRQxvBTUENj+iF0a1aKeYvAjKclvn1cp3FlO0uVufgLQlyFsHznxZFnB\r\nbeP5X/MgWptDVt+iGrPEr2Tl4XO+VZs2hxg=\r\n=oMVd\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"7.21.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_0.1.0_1647375156942_0.16332493434132211","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.1":{"name":"@asmundwien/more-hooks","version":"0.1.1","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@0.1.1","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"118022a11e438f991c629511ef5b6b8d2a3e3a09","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-0.1.1.tgz","fileCount":7,"integrity":"sha512-+DLmmJJUQs5bj+ddIA5CBSg11rGe2utIO/RvF68nqjKBnRg1oRPACM4RClzXLBMjLr7wblYRwtZVuyo3uNqLrA==","signatures":[{"sig":"MEUCIERwOk3T5afmia/LLCVjQwLzBljlxtuPVLLdCuGJAeyeAiEAgTZ6qMPJ0v25QoPDLUenikiVyzifv1k7Wv+9qwIqEKw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMP43ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbxRAAiE/IwD5LOdkVyQPCkkSVCAkSRWF1/LlKrjhEfdZ6AxavwNOo\r\nynEHFZhnIXjBh7bpcl3E8L9mVaWRm4VeKR3dFSIBwkAZ9GJN4cqnthJFZhR1\r\nJheexArRu/nFAHOFSjPqmkgakcPOyQjXNwRvpmxxbKACkxq9o7QQiLxMDaQh\r\nW369AVzzLKoEi6tltG5g6bUM0kJgi1QBRXpHxLU2ydM2BJpgZpTGacwxWlp7\r\nQ+XvUPQRxfZAwlT7TImCZZGqXwoglenY2Qo4YHlKAPonnEwE9fz6djDOQ8Su\r\n+QWWRYuZQarL7glhiGCVp4nsEDld+Gs3owRMS/H2bnRb57uzzSy4LR8bokjE\r\nXVRZU9tJZkS0p+9VKJTa1YFeApl1mOo9VToXD1mc1dyNd+jJ7igmGVNd15fW\r\nmKm8xLWAJo5ee50zR2hJRtAUSaKicyZMXixqPdoztKvTmPvJBsLdceZMZy8e\r\nbDOPmMH17c4sStt2dOBjz4GGRwS29N7ja7h/x1vHuzfAr7ioJ2FtWHJL8fyx\r\nJsvJ+SbFByS4V9NtAvAHwMKKS6rsjuw+e5qO0O54D84POqSqXEK/02n48F8h\r\nc8TgtxvbguT5i+MfHwJedDeqqKjHtT1hfk4a2RwunhLBCHJFj9LFhdIxzhdH\r\nhrveNL0WKV2uJACqNoVEUx0KPrlHenyQdtg=\r\n=Wc+E\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"7.21.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_0.1.1_1647377974997_0.2778538927631611","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.2":{"name":"@asmundwien/more-hooks","version":"0.1.2","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@0.1.2","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"a0dd7d22d8b1146b7c0c7127a12085596cb749a5","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-0.1.2.tgz","fileCount":7,"integrity":"sha512-nUEKhXbqKh7yaqye2vimpLqfivXAxIxEXOl5+PTyICaeTDM/3gzHVN38uueEm4dWswG/xS+Tu2XXFm5xN86TUw==","signatures":[{"sig":"MEUCIQCZaonVv7JW8yBToUIVr9mMaON7nq03Mj6Ep5H6nnqYeQIgUF+RlMBWVLuYJtqiSPrnqOsQ6KG4bDE+L3kU2KUlW+o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMP/OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLLg//T5l0NeNqLuxsPy88p5gm7tJ8sCACHJyWEUfh2XQvDX0OZnGE\r\nTIPRlkwmLtjF+/1sGjYf649q7Z/bB/7ocEss1pY2ZqM4RzSK8T2CoHfvgDwZ\r\nk/pEjRRRMlBSSJ37SzLTkNltAnJrjj3YB7OEpL6ykIfDKTv6ip9aXde4utqu\r\nwIuBvn8aMhZYYtGxf2Nk1L2cudsluDXePAqCc+HM+jYhdDzTEsX92SJPQ9tG\r\n8zzqTawR+lRsxNcS5qNFkz2k3OabwyxFQCXmyuP7p3W15JjYa7Qb4pG+JpXi\r\nOn6P40JR2/JZlqaIaxZ9hHmB5Pghgto5/GQxUl6aomI5BQhYbeMptrOBYZeP\r\nYhwBffyu2Xod/6za2cJngKfaKokhUGH9l0WZEsr8X0nXuZz2JjYpVkHZwVvL\r\nxpTh6cZwzRvuP6gRUBOvj6+djBGSGKGY+7VT8kzFSOg88zAuU8o1Cr/IINyd\r\nQbMsSdU8ClMj1d/Tygki/ACIxcJ7UxAuScCobTSfQQH0uPZgErNN5eVZeqmG\r\nmfz7pJwfGRx3S2YxPNppZErKKtMmRXNvzImk0HWoqoAugzUlxWIrXk1gRiRL\r\nbgPzqAyoiB2KWmk177WN+z/4EPvxNPixOaga9jqd0KHZuoV5SI6e7KsJALoa\r\nrQu5P/CqQ/IAEY9DFG3fbiWGM+dQA9oMy9g=\r\n=iuEF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"7.21.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_0.1.2_1647378382503_0.4611234480003228","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0":{"name":"@asmundwien/more-hooks","version":"1.0.0","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@1.0.0","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"8a6eda40ac7afceba6fe34227f0a98618b8887ed","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-1.0.0.tgz","fileCount":8,"integrity":"sha512-EhG0bflNHxWluqVu9gKeDMpyU69tRcN+MAFjO0oHqQ05wupMyl3+doIfplzCrfQM1XP1a8wEr9XBIylivS3ENA==","signatures":[{"sig":"MEYCIQCX9ogFxiSd+yFS2o9pHl/PZLW7oCXa4TdCYcTjc02CaQIhAKJylJtKEKe0/Q+4TletQuJtENZee+fXOJ4GNsuDa//1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR5AhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaZBAAhT0Tb6hBUXP66qkYGBrvyw7JrOKIJb1KSdIa+teZoHGsZM0A\r\nYvbiF05eZsZty1BhYFTF0aP+YH3uX0Ke4zIZVWJ7Yk0XU2ODNvB7pr9Rd53i\r\nsQWKQqO99Dwl1FInMhH3JVZqc2dO6YOHkRtVToTspboJUCAGGbeaIjs0E1tb\r\nfJi+kM5l8SjgpeJOhzECNAwLhl2F2trrV7UoXggywpTY2TWyhqe8TtdiBfR/\r\nLRj6u8ajIbe494ivb4zMu6FSs8xtrlV5osWk98qOE9peeK1MZKWlgnzCTS2Q\r\nFHUAc3oVZA0+vxSyDAf+cv5g+lRTOejPM9DuXbsMFBBzlkhH52J9cQiHMAz7\r\nELh0zZsRddOQ4sTHa1N0Yl1sqZ1heTpK2XErDqqaLrr6emdUAYhNeUlLByaT\r\nH3amMPsD6pfbdve8T252FI2iL3Sjk2qgXEBACEzxgqR1BQP/Qcmu7Hy4DwBN\r\nvT/6OlVGNRRGTEqxF08sqVXh84dz6Khm3F6sEOsj4v5MQ9gPentfsCmUzL18\r\nyezL4ZvSZoiEk7hYxNSxMLBHZmF8ea5DnNQZ3ENz8tviFRCG5HYm2DLDWn6d\r\nUSGL6ITL9mL+eT4kKceZavp7qK8XWbIXWKzfPEo0bSECxi2sDvnmkc8/qqFZ\r\nmgfnnJtpYtxg48juyDTRYRCDSmb/04Jrzx8=\r\n=WcqL\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"7.21.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_1.0.0_1648857121541_0.4981559715547157","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.1.0":{"name":"@asmundwien/more-hooks","version":"1.1.0","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@1.1.0","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"e5904f97f56d5350b321991a685cecdf13d4602d","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-1.1.0.tgz","fileCount":8,"integrity":"sha512-n4CdRv1yCIm/W1KGh/ockzgQbgqPperSJKzLvdzUvM/kNJljBSX78vu1ytxmZpow/n4drq7IGtHqJP85uwKABg==","signatures":[{"sig":"MEQCIALh7cuix3+s8uUML+VtMBoQNzCEstmpTKjs9bQr6EX9AiAIBGbUyWRs9vyONRgURnMzm/VtQjXePAjl/Q3QDwVgzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSZbQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOxQ/+KUoxmc4Y2J9UkDqlH28VeVf3F6qaXcsVbaeKibnwkean2DaV\r\nthyOzsVOnMnOUMB1BptrKuR9gCMjm1maCRNbW5N3ybNftNTog7vnFoWUOpAn\r\n2srYMROq8PHX+N7x2W5WDaZyRZ8iw2pEJNvfEHCsdAQ6VUgm6foE9pVfRy0K\r\njFgw5vHxAx4xeHH5+2qGfRWk6TtdZHFtZUVgmGit8crAJCdyyZSFw1TmVb/g\r\ndFJp56GBicOoxbh02Wunp9FztcFSKtYfU5Riht6M2oBv4AVCHaDsUELIbprg\r\nl2jk3wq9creScGtQldLjnsm61Axp90m+2Cp1EukPmZeanf8jvhGFqyEqswFC\r\nq2iJa+VUlOfXXMJu3AZiDtbPg76lmKThUbMDw5zzG5d39jEr6dJYe5aBJ8m8\r\ncCAhX/vMLXZ9xJc3ss5LosQ7zTKgBtEZSWqq+2HYfSxTzyZvX7TmntZkw9Qw\r\nH3gKeQFKDjjRs/gRDfW1+g15uOCr7K7Gq6zp1coixQoWgLPPC7YFRkVoPcqN\r\na1YiZRxv5LnDEdbgT4O9KEgN8PhFAQHmWC4AWQMFN0HPtCcSW1oQYcvNo66H\r\nUbyuw/rH0JqJAq15Zwdi0iZA++A4byw+jVWxEkzTvzS0anN2Nel1WqRT9rFv\r\nHGZSOUXvHq4uy1PKnj0TF3h1rC6itofAAsU=\r\n=IJwb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"7.21.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_1.1.0_1648989904767_0.3571373832268603","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0":{"name":"@asmundwien/more-hooks","version":"2.0.0","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@2.0.0","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"4a1c64696d262eae82da037135f04e42dbf82764","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-2.0.0.tgz","fileCount":10,"integrity":"sha512-Q66C0gij4F9OvHKM2MZg2jOVZAPzXDfR5hSScjGNhW3YEs6AD0B9bHfggJMmNi4rT8SkFSI15rBuZ4DOXdZZIw==","signatures":[{"sig":"MEUCIAaryIU5ZDOB9u7C+Fqskmd2fvK6wf8rN6vM8wICrm7GAiEAl3NZH+hhsr9gdUsXqSELHWumIU14ymkExm+o5+J7uKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifm7VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozcA/+JAMKpnRX1TUnZLCwXzyz1LUEZF2reDDphV5s3zoN8msVYy4G\r\nyvXZyG19ieagqeWdtkd2cdWAJmEk+3u7OmyuP+A9KCaWMjsMV6vb/7TSIKQ0\r\n5Q3hLSFlhmCfSIKT5dPKOn4PgWQ/mK7pMPlOpPw0JRL8kHpyCADfGuv8sL0r\r\nGcrymGoUIWIMKy9y1p5syAG6+G8k1G+uEFiYRqjdzD1L50sFknK5atllZb9P\r\n9vId+gn9131x9q7RBnmz1SpQqQg7C7oqbd+bhcC3haSAkVhGNr3i1p/dJNes\r\nCWMNottUwcQLEMd2+vELSH9CjLe06pxOYzo218wx27MC4JXBfBTEca3PLgiI\r\nPyXHbQTsK3fUDcbNLxhnw275Dq8XCxqzqK1jNgBooS077YTUsufew60kNHa6\r\ncqzSWH6J5ROt1uqv3AxJlP8Jaoa7AaML6Oj6oOWV+y5SHDT0j2SkaFPTzNcl\r\nzQWFC2eVgW5N+9gl4pQPz+HyAZDpkzt3xy9gF0cf34YP4nja851u/StU/rLI\r\nVFF+6Q7yG0HTzM+b0wYKW2irTgO7SQU1Xgrf/Ycx7uTRpq3eVUsJRSF+MAXc\r\nKhnk8gOb28WAlx9V7lw9zAFhs/Il/nhOf8OqGuWIQDrx1aosH+KWGMAFfVx1\r\nDevU3D+L3fdJzBvybWvuZb+SI7xahwiwk7s=\r\n=QOIu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"npm":">=5","node":">=8"},"gitHead":"cf54bf9725703e291a38ecfb81c3f9bfe8d08a58","scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"8.7.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_2.0.0_1652453077122_0.5247922981277822","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.1":{"name":"@asmundwien/more-hooks","version":"2.0.1","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@2.0.1","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"09f3d5b3696313327be7ded25f6afba83f27df7d","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-2.0.1.tgz","fileCount":10,"integrity":"sha512-6pHPIRD7fzE7nTFbMmJ2H7euCGofAMd3cSVXlEcK037zNhy/WZBC7bVKlRffwqLNN+VmVSac5H1utWecA1MfSA==","signatures":[{"sig":"MEQCIBk4lAUWtll8zJSQKSUqkxmzeiRSb+plg1koknnrfhlIAiAazzhGEwzaUg+c+R704SKkrzbNElgXwEkdnQZKXOf//w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifm8hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSHw//YjDxTNRiEnGrRb6itF4l26ZyPgRemRIxFDIxdGKhyBkSVgRM\r\nsMWiy57jWS+u0gz9NjBYYZM2IaDCGdLRLnTesdnLyfJGRPxC8WnbUZm6lEeB\r\nEZyzmuo30RvDZr8nVktug66ylGDq2878nAb2JhcL2e8j0Y9YfjVXpVjrxess\r\nib/dzoKFz+6xOjf8GZa7RrjODAR7DbcgDR8C2rfKx1L22TEOcTbVXuBMlvkd\r\ntz2+bni2uAQtA1xImXZmKl3BYyGXpLOhCZrp8N7TkswZLE4zuUefMoCg0UFe\r\nLA8CH8ufl6hroZrtdxPKYdMfk2De2ge/1FLsDf36dv5ovplAs0KTH2xdzA/v\r\nm9Mg3BuC9pTAbgLnReib1pWbqmsszN5foqBuZyEh644SwVi0FO/RBXBl4nKT\r\nCD8fq8GE6GHilyw1+u3vmUsf5RWU8LvXgkhyZiRBND925Q4apF9C9UkT8SgY\r\n5HylYPLrKglKef/sUeowVo9IV3yGJctHKikrO4pRhnhR3URVVoGPManw7OS8\r\n4JDtf6Npd3ldJpIK7wvs2w01nTmvq18vMnrGOOI9aR+TVilP2t0KghXwT0oN\r\npvtjj7DpfamwzqEI07bMSHa91DkkGrIeuKAMC0hlVrU3V91DbQ883rw4pEF7\r\nJhMsBpBElG7KzQj446TbPJqdzmh4JVSDLe8=\r\n=TuH2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"npm":">=5","node":">=8"},"gitHead":"cf54bf9725703e291a38ecfb81c3f9bfe8d08a58","scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"8.7.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_2.0.1_1652453153678_0.07962554174637515","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.2":{"name":"@asmundwien/more-hooks","version":"2.0.2","keywords":["react","react hooks","typescript","npm"],"author":{"name":"asmundwien"},"license":"Apache-2.0","_id":"@asmundwien/more-hooks@2.0.2","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"homepage":"https://github.com/asmundwien/more-hooks#readme","bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"dist":{"shasum":"11ed06e960d709603447d910a01380e2a1dd7794","tarball":"https://registry.npmjs.org/@asmundwien/more-hooks/-/more-hooks-2.0.2.tgz","fileCount":9,"integrity":"sha512-56KQLjAn47AaNc2VLAuraqwf0MtG4Mm12QejNkH+fiYKcxdnZk26Vj59NLBdolWCb96syo8Lx9Ab15VbAH+6CA==","signatures":[{"sig":"MEQCIH8Q2ukcOTEV3dkriqObJ5n+ZoOsuaNvbZg2QTlOSpTHAiBaDz/6OyhMkHHU8SYfGr0fuUWLQHuDdkO3tivzelgvog==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifm9iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrH9BAAkPzgDSamlTaKopgwVNOV2nY0DmIEf4gj1Jgkw4Cle6sTMSid\r\nxoga0pZLcSTzaLVCsdDfYHMotRRFDe7u0p0qSmptevtslpUYWM1zSgc3h9sw\r\nbB7K8hqararoCAq3DEb9R1zm0xLVeT0PQ3RQu2a5Yxz4snC8cRO1PGH3O6Nz\r\nBkKEhbN60Ok0jcdonfS3Iw4SVMxCJWQupWdJUhQFJdGY2CQdb19wjxQoemD+\r\nsc1fQewKjZmu9r5RSMCZfErMoMt1+qISeWJuE35+9sKMSPmYzBgnqVX6d0Wm\r\nLi9GqF+V1WtqBcB6x+Y0S12TkPK2aQkO3fT1SbQL0dTkneHuso2otk+bLy2q\r\niz7HDxjK7Z34KbpN1ofp8z/VQxbHvFs+U2Wp/BLpUuN9wVWzaWl49fl8+R21\r\n407UxjrmL9xUFSX/bhSrZ3fvca6Gd0bDf0NRa3y7mUhCq3US7w4pTMVHxEh3\r\ntmv+MX1Tv1Ew1sFzIUsWxGtRKnv+iI5Cs8A1Ih4w1zpbmal6PE5BiJwqbXkg\r\np4GlZ3sHHWQXEBedwxFKWxmfD9FgptT4nqYLiJ9ffklcpIbGi+4QO8WLA2rI\r\n3u4R0Za37imDvJgE9g0agBI0rwxgPBAsWdFUsgjr2ZA4wcTjQtfr5RBQvXz1\r\nbwHb9m0htxsIVAZn2dERhpOianvWZJL+7y4=\r\n=oHKA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"],"modulePathIgnorePatterns":["<rootDir>/dist/"]},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"npm":">=5","node":">=8"},"gitHead":"cf54bf9725703e291a38ecfb81c3f9bfe8d08a58","scripts":{"test":"jest --watch","build":"rollup -c","start":"rollup -c -w"},"_npmUser":{"name":"asmundwien","email":"asmundwien@gmail.com"},"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"_npmVersion":"8.7.0","description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","directories":{},"_nodeVersion":"16.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^26.1.0","react":"^17.0.2","rollup":"^1.29.0","ts-jest":"^26.1.3","react-dom":"^17.0.2","babel-core":"^6.26.3","typescript":"^3.8.3","@types/jest":"^26.0.7","@types/react":"^16.3.13","babel-runtime":"^6.26.0","@types/react-dom":"^16.0.5","rollup-plugin-sass":"^1.2.2","react-test-renderer":"^17.0.2","rollup-plugin-uglify":"^6.0.4","eslint-plugin-react-hooks":"^4.0.8","rollup-plugin-typescript2":"^0.25.3","@testing-library/react-hooks":"^3.4.1"},"peerDependencies":{"react":">= 17.0.2","react-dom":">= 17.0.2"},"_npmOperationalInternal":{"tmp":"tmp/more-hooks_2.0.2_1652453218183_0.5281564830777139","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-03-15T20:12:36.893Z","modified":"2026-05-28T11:52:19.462Z","0.1.0":"2022-03-15T20:12:37.080Z","0.1.1":"2022-03-15T20:59:35.213Z","0.1.2":"2022-03-15T21:06:22.622Z","1.0.0":"2022-04-01T23:52:01.719Z","1.1.0":"2022-04-03T12:45:04.928Z","2.0.0":"2022-05-13T14:44:37.283Z","2.0.1":"2022-05-13T14:45:53.833Z","2.0.2":"2022-05-13T14:46:58.309Z"},"bugs":{"url":"https://github.com/asmundwien/more-hooks/issues"},"author":{"name":"asmundwien"},"license":"Apache-2.0","homepage":"https://github.com/asmundwien/more-hooks#readme","keywords":["react","react hooks","typescript","npm"],"repository":{"url":"git+https://github.com/asmundwien/more-hooks.git","type":"git"},"description":"A collection of usefull hooks that are commonly used in React development. All credits to the great community for coming up with and sharing these ideas with the world.","maintainers":[{"name":"asmundwien","email":"asmundwien@gmail.com"}],"readme":"# more-hooks\n\nA collection of usefull hooks that are commonly used in React development.\n\nWe take no credits for these components as they are merely a collection of ideas shared accross the community. Thanks for being great!\n\nThis library is written with full **TypeScript** support.\n\n## Table of content\n\n- [ useAsync ](#useAsync)\n- [ useOnMount ](#useOnMount)\n- [ createDefinedContext ](#createDefinedContext)\n\n## useAsync\n\n<a name=\"useAsync\"></a>\n\nThis hook is designed to simplify the handling of a asynchronous calls.\n\n### Example\n\n```js\nimport { useAsync } from \"@asmundwien/more-hooks\";\n\nconst App = () => {\n  const { pending, error, response, call } = useAsync(someAsyncFunc);\n  return (\n    <>\n      {pending && <LoadingSpinner />}\n      {error && <MyError error={error} />}\n      {response && <MyData data={response} />}\n      <Button onClick={() => call()}>Fetch something</Button>\n    </>\n  );\n};\n```\n\n### Input arguments\n\n| #   | required | type              | description                                                 |\n| --- | -------- | ----------------- | ----------------------------------------------------------- |\n| 1   | true     | `async Function`  | The method that this hook will call                         |\n| 2   | false    | `UseAsyncOptions` | Options object. See documentation on UseAsyncOptions below. |\n\n### Types\n\n#### `UseAsyncResponse`\n\n| name          | type             | description                                                                                                                                       |\n| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |\n| pending       | `boolean`        | Whether or not the asynchronous call is currently pending.                                                                                        |\n| response      | `T`              | The response from the asynchronous call. `T` is the same response type as the asynchronos method the hook was initialized with.                   |\n| call          | `async Function` | Will initialize a call to the method that the hook was initialized with. Will expect the same input parameters as the original method definition. |\n| error         | `unknown`        | Whatever exception the asynchronous call may have thrown.                                                                                         |\n| success       | `boolean`        | Whether or not the asynchronous call was completed without catching any errors.                                                                   |\n| hasBeenCalled | `boolean`        | Defaults to `false`. Will remain `true` once the asynchronous call has been made at at least once.                                                |\n\n#### `UseAsyncOptions`\n\nObject containing optional pramaters.\n| name | type | description |\n| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |\n| immediate | `tuple` | A list with the same parameters as the call-method. Will initialize a call when the component mounts. |\n\n## useOnMount\n\n<a name=\"useOnMount\"></a>\n\nThis tiny hook will run only during your components first render lifecycle. Remeber `componentDidMount()`?.\n\n### Example\n\n```js\nimport { useOnMount } from \"@asmundwien/more-hooks\";\n\nconst Component = () => {\n  const [text, setText] = useState(\"\");\n\n  const fetch = async () => {\n    const response = await myApi();\n    setText(response);\n  };\n\n  useOnMount(fetch);\n\n  return (\n    <>\n      {text && <p>Response text: {text}</p>}\n      {!text && <Alert>Just mounted anew, hang on...</Alert>}\n    </>\n  );\n};\n```\n\n### Input arguments\n\n| #    | type       | description                                                                                                                                                                                                               |\n| ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| rest | `Function` | Methods that will be called when the component mounts. Because it is a [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) any number of methods can be passed. |\n\n## createDefinedContext\n\n<a name=\"createDefinedContext\"></a>\n\nAn implementation on top of React Context. It ensures the existance of your ContextProvider and its value. The content of your context can therefore never be undefined.\n\n### Example\n\n```js\nimport { createDefinedContext, useOnMount } from \"@asmundwien/more-hooks\";\n\nexport const [useUserContext, UserProvider] = createDefinedContext<User>();\n\nconst UserContext = ({ children }: Props) => {\n  const [user, setUser] = useState<User>();\n  useOnMount(() => getUser().then(setUser));\n\n  if (!user) {\n    return <Loading />;\n  }\n\n  return <UserProvider value={user}>{children}</UserProvider>;\n};\n```\n\n1. Create a new defined context.\n1. Get your data from somewhere, then feed it to your provider. In this example it calls for an async user object.\n\n```js\nimport { UserContext, UserDetails } from \".\";\n\nconst App = () => (\n  <UserContext>\n    <UserDetails />\n  </UserContext>\n);\n```\n\nAny children of your context will have access to the data in the context provider.\n\n```js\nimport { useUserContext } from \"UserContext\";\n\nconst UserDetails = () => {\n  const { name } = useUserContext();\n  return <p>User name: {name}</p>;\n};\n```\n\nFinally, access the hook from your DefinedContext.\n\n### Input\n\nIn a TypeScript-project, a Type-definition is required.\n\n### Return\n\nReturns a tuple containing a hook to access your data, and the React Context Provider needed to initialize the context.\n","readmeFilename":"README.md"}