{"_id":"@asyarb/use-intersection-observer","_rev":"9-819a726a13b26a59b9610dc5970999fd","name":"@asyarb/use-intersection-observer","dist-tags":{"latest":"2.0.2"},"versions":{"1.1.0":{"name":"@asyarb/use-intersection-observer","version":"1.1.0","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.1.0","dist":{"shasum":"de6916b2014db8e15e772fa59c921afe54a5dc58","integrity":"sha512-uW5UQ85Jxq6Wk5alxe9x2Tv2oojVZhM4SWUIOXIYglubM+Vn+JSFhw+AeJRheiLg5IGD7NMQNU+3j7Ad+Ql9fw==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.1.0.tgz","fileCount":15,"unpackedSize":16770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTha8CRA9TVsSAnZWagAAEMsP/2X7ItixW2sRRTcACvro\nAEYaTSIldr27dvzf34f3vjGkkw7Ejisagags25B3omdLlDTgTspPTY2nufQP\nTcs8OPqMmSAB4DGMaAjKNUKarGMcm86+i/k+xE2glmV8G7TWLEt2dNCm/j4s\no0yBBtjthArsehkHetFnHO42sPa4hzXIrAf7SSmejGKrioBiS+CxREKGvDnF\notaJcufEccM5mLteuAat6Dl4359o42v0BPkIDCqtdHO9ivnJhdsbnXBvwhER\nhJolRqV3Rrtd5W5OiDWy2atxPQ/L2yaJTN4YoHCY2bl9iGRFT+L0TFWc7vtE\nsPZMQgxrB2Jy5Mx1wLJvYp6RUevxD/LNRIrxn7cKCYCOYgV5UsL2ErY8oztM\nsIIyN9AYnkPuOJjG+HyJI1doNCDm3ZwVIAFZl+iHd9Rw6VrbNtd5FEVLjf8C\niLqdJTdaDMkN0cMzzwDFRSOF3LCd4fapDnYyrEjpuFYMdEcLJLYWDnookjjA\nU8L9LqFmlsJxHGUZWmxazKIGJEvayHfaa5B7a6W8xzNR3Q2f4NSOx+Ubfi1J\n5rhNQTIvyCPz4ZcNx8VgZeoLndgbFynsgiclywI8DzTH58+we9h3TDHzPB1K\nDbsDW/xe02Z8zHH0PSWUAELuq0tcENdzBTzhSpd6skavScy+ndfS6UwcLCYW\nXuyu\r\n=dvhS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAinVm3+obXFOueqNBluydzLz6P7MQ/bNCHUxKLK5+BmAiAVytH/qok1/tyloxwKzzp28/yIzBjnPl7CjCaHURnWNw=="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.1.0_1565398715760_0.9784205058610593"},"_hasShrinkwrap":false},"1.1.1":{"name":"@asyarb/use-intersection-observer","version":"1.1.1","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.1.1","dist":{"shasum":"8d9ecfba1836e847466a32f76f1749e52c791d13","integrity":"sha512-AiXAwp2TNWrdpW/lO315Hok04g2zSyIVJXO++RcTAn3f15Rei3nN29dM7ueDP7A90Xh8vrHxrDbkNMXwNeDfSA==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.1.1.tgz","fileCount":15,"unpackedSize":16993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdThc9CRA9TVsSAnZWagAAMW0QAI2BG4hNHBrVnrNtfdlR\n6NTxT0sQIKATTSyj7s3PML+SXzzGSHmRmkVON2yKXQZGzcgdS2aO3E4uWYmq\nL9+U97ZalcczLzKy4bdQudShJpsMbG0/QGxU3wprPEGNvIH93NmdEn+WJWbv\nA7Osk4YzRkugJkvoZfLjKJLm74xwbH+JtpD9bLrrVAO9iujvUVDX5igf0q67\nyUT5lWNdKtFvK5dchn2VBLliDgktMJzra+fII9b7fXic+sYxJCAOszxx5Hea\neyqzGep1sjuAriTIliP6ZZoN/TjP61T81T+s+OMQ925IpbGFWsBLvcgIU5X0\nZrDnervc821/Ym8pJZlVgK5vsBD9v/BysKmKDyd+h3Dnm5b49+YZLLupbwUq\n6oHxB3ddgxu9jKSjLC4sNYSXvcSVk3F0jGBJGDZeXIcjbz2K07hq3qolo9Bt\njUQ2tp6Y7AEx1x8HBVxebO3li/dfpsNI0j9D+sJRtgjvM3PtZoQNXiDjX7Mi\nAboEBKNSsLRlBBO8l6XJBgr3KiAc7nB/e+N7W4+ggxPtx118wtTszxESbYcx\nyUX3LmzmhsMpOd+JQZqIvTsy1ZIxnPwLVSjE6JbdnwHLiRKqiPlErxn4+s1b\nzAmVe/p9r01VoLS2KWDeBsQiT/2ucVgXKmxp531CnmFv1rDE15psg2oT4UDr\nKvrd\r\n=vk2U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJEVy28J5ai5n/AigjhEtlYu0C3uz+3IBFgxWxHpgL5AIgJdd3uEJ5anLg203TULZNIU7UqYmwE+Aedfaw+s2huSc="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.1.1_1565398844957_0.13187353402256075"},"_hasShrinkwrap":false},"1.2.0":{"name":"@asyarb/use-intersection-observer","version":"1.2.0","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","types":"./use-intersection-observer.d.ts","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.2.0","dist":{"shasum":"8f1ccf9648adc77dbefdec43cc5079ee29f7b6e4","integrity":"sha512-/lAuMuHLyv2ZoRYifpWTRcV/pt0agFHd/jvpQlQY4ZZEgVO3yzvJV2Vjd+r7+mkV7MpPk2Rg1S9T8YPJB/oigA==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.2.0.tgz","fileCount":16,"unpackedSize":15507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdT6qjCRA9TVsSAnZWagAA3iEP/j9q6m2UPnAL554YlGCy\nXdqTZTL08yUE78iYO+l5uwQk4WRn6KWwtirH2ERqA9vgBndoWEXabOA4DlB8\nPQF3WOrrqWV/Up4ZNbmFuy5tZLGFBTceQ3FZ6ZZIt3Qnuedi6pLsYqGAXXmP\nV5ufW148hGbv951V1u51T8qUocZr4JfmWLjqGZbSjASH2WNvbODsWAJuH3O4\ngDqBtj6HRaN6LsAAJTkraPLcn+lcsnQvBA9yd5f0mg2kHgMdbyEXyF0cQT+d\n6vSWmc+XPlmBrPKkE8j+hL5uSekpqMbVw9krm0e7fXe+50KVL98D9NHIkncG\nb+9C29SER2KUZ37GLW+dP/QPpHipsaSoGzuaeda6FoEti3t3vt/iDkihbaAd\nEpUMVt1KgNKI8b8FXTiKnI9pExamXdBaxginK/xaD0AoI58afHE2S0P0Ar6H\nAhHtjbQIkx7Mj5aJZPqCnfajFC+EKnXdnDNxMMah62Bc+vduSqfVq7Nu4MNK\npjMcZVwaB+i6B9KzVP5FRafyBEVqPl/AbTmig4sa95i0LDFUdw0mzIQXwE5F\nDiE2D7Z6psHpCcNg66dFTgDO+7A3ZRwi7IGt7jMtCtm8/r/q3kiuRlWOQLnO\nfj3e5fsHaSgOg0TwYDfOAMhOPbt0a5ySbXoZTYt2jyW0mFhgOVHvcWL5OIfp\ni4Lo\r\n=bcJM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTdMhfJv1MQvMGH9gTHJNAVRu4HPGCy8+l4DAslGXJ7wIhANy4e5lM66B8kOgDAEfvRI8zjzcyY/JD0S+UMpohcqx7"}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.2.0_1565502114516_0.23144343207659768"},"_hasShrinkwrap":false},"1.2.1":{"name":"@asyarb/use-intersection-observer","version":"1.2.1","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","types":"./use-intersection-observer.d.ts","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.2.1","dist":{"shasum":"5151307ea422df1713f9fb4958e0b7d774855891","integrity":"sha512-j+Wf1OboWiF6qOZp9qhEkg1c1I+36gpdx6cDUdiqu3Wxm0QdXMVnvPG0z6bZSIxJlo+RMdyWf0wDCQKCiCvfeg==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.2.1.tgz","fileCount":16,"unpackedSize":15558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdT68PCRA9TVsSAnZWagAADaUQAJtwgr6FPms6HhrzUtnh\nENhfZ5sHJYfvTza/5qwoiAjA0T0OG/F2EtbpBUEyYjqUQpWewmPo015CD+8f\nq7qIXobuXXcD/gsSt9YH+S9fyR7g4L2g5v5nEOcOOh5/Qy4D+yxA6eoTyilG\n0ag6JNsr8nKQqCbAOD1pQ8p5tjFPRwxMjaQltDW/9GR2/HcPEe4Zt+FDSNSF\nc/d7htw79ZOeKFqi1gbEBienu3HGovjY4QbHu22CH0sGu29uw+tL7k8WjCy6\ntYAuk/F1QxUWi3ZYtAvyppC85S+56mAI9ZTM6z1lXwezpToLMFWgPs9ZcPml\n8g2PjQmP6QspKU0YmgFaqp1gwPJAIN3J0ybVPEa4SroTt2c2dg/DOUCIy/Jn\nr+SWbPeuklWBC12rzfcB4d4LaeiUkgpL2Gps2B6bHpp4NitdNiYlUyc1f1uz\nfOwu+tBZKajifefrmJ3ZqG4rRoLkHs0mZayy9yrLRZU72sa4nv02/DdD40S3\nPgw9F5qu1lIN7Bb+UrLPy2FKgh3IvBvpQjkoWKZnJe1HtQTIaL2YR4PbHclM\nzs6pMa72ah4Mm2KtP9fuTDZeeHxLoGlclfIOEFOM1V710xnUc9DX6U/B0RoS\ncly3/2so8/ufMO0dG/8gOoOVzuqYbS1i6SiXNP2XiXXfWGDMKyYZc+kQTU+H\nhHfp\r\n=62ak\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfNzRrDcxACEfN8HiVax3UnSqrvS+enH6cyuC4DbV/dAiEA0xFMIqwcO2yuos1dZACp4Y2X6hkBOqPeX/ixuFvglh8="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.2.1_1565503246814_0.8477589946850812"},"_hasShrinkwrap":false},"1.3.0":{"name":"@asyarb/use-intersection-observer","version":"1.3.0","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","types":"./use-intersection-observer.d.ts","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.3.0","dist":{"shasum":"e2f0091d987a2bd517ca5598d6316d622ff35e98","integrity":"sha512-4Rb/bIYC7VIt+HTGg5K13Rxj3IiD+7gjm1eTRXekzWd35ZHTBibZwy8nXuGGEMpvQ40Sn4VWoVxZU1Ib2a8pQw==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.3.0.tgz","fileCount":16,"unpackedSize":17838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdT7ZzCRA9TVsSAnZWagAACQkQAI8tdyrC1KsusZR76fNR\nNw23Xt6/G3iMFPKQBh1xuW+xVggt+Sm62qjOUz6vrPfLyqNcZsg1N/psEI2s\nmdb/GKrV19WE7eERSVxZNnG8W3jSqrwBgWIS/BdZxHtZEN4rCzpDTl0h+7p8\nMW1X+vaLp+jAg4XaR7XG+6srKvD+BBn1HsJX7MNVM3fovnuW9+r+UFKmb8Uk\nqWa4Z8B905bdrD5XdflvKxqs3es8RxgcjLHNMpfK13OTj+uJxMWNs8mmfRoT\nVVW93I63w6z6JXSsBgXTbgtdqRqdPnlNcNNCfL1A2z/siXI31n1CSyb0P/r/\nTzdQLQTj+2SKaUwImvg05lOJgdK6Xw3hyXWgw6J9EIX+MjDijdmryEh2eucq\nzrrNQp1xTMYnOewu5j2AfxWSRsTgRq6FtQj3VfvGgoO9cmA7W7ACI3BAzZaZ\nKbDhYuZvcld9pq50A0Bz3B/Eir35wPi7w7+NABRN3/K8VknvKmGf0FBtvqUp\nQTkISDVxJ5MUjheOCW2a7IekTSjU7sLcgx36ieX5LZSunvFFz1Ui3PWB7U2W\nU4+KYpRWZmPZg7Vx1MMpp/ETekjFSGYKP8tCxrF15a5iOWTk7DjpVh8h9qyw\n7g7W7qeEyRw5mhubRAqrW29aRdQweWap4eSd/cNc+i9fB5YYy24j+qS225xP\nTOC4\r\n=y/td\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/cVtj+xGegfqtZ4uZ78kg1Gt78/mcMj+h7lfHjFkgCQIgTNT0WzdFGsYZmgnD3UhFERhyMQpbZJHqL+jfnMqxRBs="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.3.0_1565505138539_0.8432950073632017"},"_hasShrinkwrap":false},"1.3.1":{"name":"@asyarb/use-intersection-observer","version":"1.3.1","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","source":"src/index.js","modern":"dist/index.mjs","types":"./use-intersection-observer.d.ts","scripts":{"build":"microbundle -o dist/index.js --compress true","watch":"microbundle watch -o dist/index.js --compress false","format":"prettier --write 'src/**/*.js' 'rollup.config.js' 'README.md'","prebuild":"rimraf dist","prepublish":"yarn build","release":"standard-version","test":"jest"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","babel-eslint":"^10.0.2","eslint":"^6.1.0","eslint-plugin-react":"^7.14.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^3.0.3","microbundle":"^0.11.0","prettier":"^1.18.2","rimraf":"^2.6.3","standard-version":"^7.0.0"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@1.3.1","dist":{"shasum":"e39f01df0b077052c5102abe12b47ba7d6909022","integrity":"sha512-zKboz3CDr4BqNg5tPkZFF15m3we1k+ODFjlHI51voHhmCLNFaxWopVmplHq4F9ZjGU2Yf7thSDp4/z7ticzxWw==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-1.3.1.tgz","fileCount":16,"unpackedSize":18531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdT7lHCRA9TVsSAnZWagAAmmAP/ibw0ABPK7jJF39ZVJ1Z\n9ExidguMsXSIUhbCgt3dWj2WcnnPZlxaL+epyylrXuMpk9n64v/Z4w6XMXMk\nKuQaYoghigiXJPMWyU1ysscwHG6i90+GsHw3O6ghR621Wal+mMycRBSYbMDZ\nh+ERMzuI7IQGu1XMCwWv0psonV1zMbiqvH+D+CInxTNH0xt2lVLWzxbicZtU\nENrfhFFtrR6AfGt70pmq6epIUUeuVqaCkQ0fFR6Tryd5FqtwBVExafF0iWxF\nPsprw+POQZWUC4WUPmc5zm1sChSlwzFPKP7c/v+gDGLLq77hgWZX9fYTk4F4\n9Rqmtd6+L0yGSWDP4ZCECArrLQuI/1xQGncayStTj4azIq4zv57Ulh+ZCAXu\n8gRxmxF4pwi5uunbVOgwY44PBUKKr18Ppz0ijUoWpy35W/FsUPO2EuMGNJkL\nVaCnj0RZcFXznClXQkVjNMZA6Dw96NS5muxZuzKCI8nXAsJBQJ4TIVPiAItN\n/Pan7X/i/fXpJedmu5O8g42OB/6S29ZGN/KLpWSf74CuEP+IfLPGdlvZIRWZ\nr4iMOKz17HIhWiJxMcECwqDF15+qSwyuwj2TocO61bMFHBROqBDxfRWSzTpm\nIcr9sgz2CV6IYrGAZVtUNIW89abkl3g8RJD54A1QMgIv2rTJmuhXiXp9vNQh\nBgMI\r\n=p111\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE4xTGTdDB5uegYm5ILG1TQhpSD41bPBXu3sATf+GJFQIhAKPy/cI8dzvKmAJvxODi2OiN531IOywuqzgRp4gxHEkF"}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_1.3.1_1565505862708_0.05064957220495425"},"_hasShrinkwrap":false},"2.0.0":{"name":"@asyarb/use-intersection-observer","version":"2.0.0","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","module":"dist/test.esm.js","typings":"dist/index.d.ts","scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --env=jsdom","lint":"tsdx lint","release":"standard-version"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@testing-library/jest-dom":"^4.1.0","@testing-library/react":"^9.1.4","@types/jest":"^24.0.18","@types/react":"^16.9.2","delay":"^4.3.0","husky":"^3.0.5","intersection-observer":"^0.7.0","react":"^16.9.0","react-dom":"^16.9.0","standard-version":"^7.0.0","tsdx":"^0.9.1","tslib":"^1.10.0","typescript":"^3.6.2"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@2.0.0","dist":{"shasum":"3dd39f308a33daf7fb78c965300c8d65feb50fbc","integrity":"sha512-xO6dwtbuCVKU8sGMKHd0S7ct2SKAunC+kj5xmHgSvp7oPw6sFGkBCOpcKxFmRIbBNGughmm6vg3zvER1GsEwmw==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-2.0.0.tgz","fileCount":14,"unpackedSize":27710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddNvmCRA9TVsSAnZWagAAFyMP/R2eMn/iLjwn1HMOnL+a\nBpMPSl2Ps2M+ZcpDpSZlac+dY023m4Glu9us1Np3KH+YKXiVOYafEU+/U/gG\np8rJ+ZC4v5L00GDRc7XhBUM2xNx9GNY4CdWX4+YkUkYBv2NZnn2AEsLYve4g\nhaUO8lSNVi/fZhu+cvsUs5jvxkIwx74j4WWUaXBXCKFngt3zABdoFjHQnrHV\nLYEMxDwN9XathcA9ZpdZrR9ChI16By6lwnEWIINjBlMEZoUFTn3wjJZqrdij\nVb1s3ugvRAFCrGwlZiWqmKMUI7JzRBkYmQcQRmNWdHYbO/6/syyROu2H6thR\nuKiTNNbExI/1IX9ALulZggpWQQCcJsvVApU4nN89mDbJqmns+09w1USS7ti5\nbaqK2Asmew/NPJlPGhca3qMfZMlWd7CsIbuZt2pvZDiiXaK/xGmPg4nOkvjl\nemeDLNWlnaOGVpVUF2BJ36f2DMIzJU30XigWWY/eIrhB5T1nY58Oo8M7acgm\n80+KMV98aj/U5zKS64U5TBX/LI6oJZ1zZ6N9WXxOWNOuPybSK3YKKWgLOot6\n+0fCkHVaB8Tt+RV04tC/9GApbbdwTDpspNZoVBGcIYea/Y5YTbGq0lX6V/dy\nF4BehbNn4/GFbhswm7Gf08LcuNEKwtC4+izVz1q1quxMNlOkif8Hofwpxcjd\nQV/2\r\n=gDrm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3YrT5g05EZU4hDrxZMIdJEA8E0wXUkbKRsHuQS1SGRAiEAg8VW7U7BU4RIPD1Oy7WMoBpHGJ+VI3Uv4Hm7MkU+Oac="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_2.0.0_1567939557603_0.1715806682476093"},"_hasShrinkwrap":false},"2.0.1":{"name":"@asyarb/use-intersection-observer","version":"2.0.1","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","module":"dist/test.esm.js","typings":"dist/index.d.ts","scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --env=jsdom","lint":"tsdx lint","release":"standard-version"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@testing-library/jest-dom":"^4.1.0","@testing-library/react":"^9.1.4","@types/jest":"^24.0.18","@types/react":"^16.9.2","delay":"^4.3.0","husky":"^3.0.5","intersection-observer":"^0.7.0","react":"^16.9.0","react-dom":"^16.9.0","standard-version":"^7.0.0","tsdx":"^0.9.1","tslib":"^1.10.0","typescript":"^3.6.2"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@2.0.1","dist":{"shasum":"f2448db6aca5de89b4bb0e0f81341843a764f9e3","integrity":"sha512-5nKd8kobUR1PoyImiWga65HMJ1woYRR9rlV/SDMt+MAiO9EsOynoXbafj0WbDyV4pDEa17blF5bY+lKhQ7bWPA==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-2.0.1.tgz","fileCount":14,"unpackedSize":27930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddNw1CRA9TVsSAnZWagAAfYIP/jzuBI9iBRjUqxWo8QY8\n3X5iRHDm/jcK4+gH04qaCKQqLW313O915QypVdhQet14eJI7aaghkYHlWW39\nq0RznuN4GvzAfWNdx24k2PqprVnn0ivy5GKpCejc70LSJ7FKU0q/tTVqYkmQ\nu49J8hvQ8/FBsH7vG0GHO8t/RFa4babTLCEQ93GkG667C/394UDE3fsIjRv6\ndWPmxFzesCrs1aSNIF4ksnSw0IRCtsZfysWfM6QPRQH65wnY93AQ4kTDWnrS\nojO7J4EuCxTMQfP19MuO2r43TBZWWJKvhjNEqhAB0oh9DwvKwtBkmNWdyRx8\nrgEt53cnqpwEe3dpQE1FokCBq+kem0mfc7AKbS7n3cy1ONV4uPMI4VaQWQcS\nZ5huDdXFe7N1Vt5LkxaO117vBJ+USzapd1mjnUb8TgMFJ38xIYALgWOYKiGN\nxdjYU12uUwOOcY9vqeXc41M3ju191j2mhzy7cSmbocGGXrGny2YhvDty7ja4\nocYxZYC8f8SSq8KPi7G9bpZnblasEcl9TYaA25HLTNx8nVwGomthBcJVaiXS\n0YeOBRo4yldTCvT/LgCpwhlVa3nuV8WEN7GWtrkRuNoiuw+Cs4Y6cu4UuY0i\nKi0fw3+VUrkrCWHEOnYDNM2o2ZCeeEW3/Ckqsc1C2aEfyBBVVbjpGEho9vc2\ncclk\r\n=uIUJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBi7onHX1oidiDsntSPvOhWaNKTP1DvNy/Cm0Il7WYQrAiAkT5dwjziGwDM5gNMaRVjoS2t1XLb3uGZB9ywi2NpZXA=="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_2.0.1_1567939636473_0.1541137120322702"},"_hasShrinkwrap":false},"2.0.2":{"name":"@asyarb/use-intersection-observer","version":"2.0.2","description":"An easy to use React hook wrapper around the IntersectionObserver API.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --env=jsdom","lint":"tsdx lint","release":"standard-version"},"homepage":"https://github.com/asyarb/use-intersection-observer","repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"keywords":["react","hooks","intersection","observer","web","polyfill"],"author":{"name":"Anthony Yarbrough"},"license":"MIT","devDependencies":{"@commitlint/cli":"^8.1.0","@commitlint/config-conventional":"^8.1.0","@testing-library/jest-dom":"^4.1.0","@testing-library/react":"^9.1.4","@types/jest":"^24.0.18","@types/react":"^16.9.2","delay":"^4.3.0","husky":"^3.0.5","intersection-observer":"^0.7.0","react":"^16.9.0","react-dom":"^16.9.0","standard-version":"^7.0.0","tsdx":"^0.9.1","tslib":"^1.10.0","typescript":"^3.6.2"},"peerDependencies":{"react":">=16.8"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"dependencies":{},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2019 Anthony Yarbrough\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","_id":"@asyarb/use-intersection-observer@2.0.2","dist":{"shasum":"b98b2a293157b70fa49e38761fcbca9fec079a61","integrity":"sha512-+eHrLfJu6KBsbCzxKwSoEjWWqdwPcQeNo84Co66qKTwHDtuyI3TOAcGXiraurTT0j+DMMqtSJym9mZB/hzS0rg==","tarball":"https://registry.npmjs.org/@asyarb/use-intersection-observer/-/use-intersection-observer-2.0.2.tgz","fileCount":14,"unpackedSize":28122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddYYKCRA9TVsSAnZWagAACR4P/RiNwUPFw/tL02JSFo4v\njqJ7z52YAEA7m4TWqVDDcKkT6r0BrZE1ILu4yHjaaIsnbZUO/PJZpjzawAyi\ngXoRIlVt4whLRt9zRI84bvkq67d0dcCTOPrY8o6+/6yo05enptMfsuMequWz\ngqbXRZN+zTYWknxwxRAXF3kBHlDoP0a+z0fvP/xuJpB+XYdOTPCklnpMKTHv\n9nMwp/s/lhpg6xQ+X1ACK8hAwHkHrx+7VxgIY9Fvi6txF8b8cVO/xEOeKA2U\nsuOMZzf8dhxv3xD9iAmJHZu8mNE2bs0WmkOblbe0DPDXWSa6IVsfuUGMN3/s\n0nhuonn6BTp4nAW1aMWcL4pUUFbFhRhO6OK5Gp9QVTG5kigWzhiPpt9dRB2L\nJ/cd/61ReBYEhGPluugfw56mGpRNpPhDPMBnwXgorloq3r2idPLlxaD8GdAh\nrgLfhfXqUmNpgBjY07Bp8N0D/H5b2wCDK79BAwT8H5vC/1WqKKeeWxWAJsu1\ndnyfoTsBY8luteuiw4M65lyxpF5A823VfJ8vJ/PPHm/APPB5gyrw0cKy+2pT\nQ5HqTTEJsSAFKpI6bXtjrXhXF0a7vT/B5n4/lGsBegBYc78WYgtJuXMx8DDq\nGheUdkKtFwVnVo/ppaQ7VvIoBvbOlB5GW1Opn/rarTwdjLQHYBhYe/a8AlyK\nO/nX\r\n=vpse\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH6y/OtcJP0U/6WBtUxnxGChzdYu9kFK+ZXIUwtNqnEwIgHurw0RkKZHf5EdmPPO/mw7YVWeODtC95mE7UBV2ftpA="}]},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"_npmUser":{"name":"asyarb","email":"asyarb@hawaii.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-intersection-observer_2.0.2_1567983113970_0.6285638190315119"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-10T00:58:35.537Z","1.1.0":"2019-08-10T00:58:35.947Z","modified":"2022-04-04T16:00:50.614Z","1.1.1":"2019-08-10T01:00:45.110Z","1.2.0":"2019-08-11T05:41:54.662Z","1.2.1":"2019-08-11T06:00:46.914Z","1.3.0":"2019-08-11T06:32:18.715Z","1.3.1":"2019-08-11T06:44:22.807Z","2.0.0":"2019-09-08T10:45:57.725Z","2.0.1":"2019-09-08T10:47:16.632Z","2.0.2":"2019-09-08T22:51:54.106Z"},"maintainers":[{"name":"asyarb","email":"asyarb@hawaii.edu"}],"description":"An easy to use React hook wrapper around the IntersectionObserver API.","homepage":"https://github.com/asyarb/use-intersection-observer","keywords":["react","hooks","intersection","observer","web","polyfill"],"repository":{"type":"git","url":"https://github.com/asyarb/use-intersection-observer.git"},"author":{"name":"Anthony Yarbrough"},"license":"MIT","readme":"# use-intersection-observer <!-- omit in toc -->\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Provide a `ref` from `useRef`](#provide-a-ref-from-useref)\n  - [Provide a DOM element](#provide-a-dom-element)\n- [API](#api)\n- [Why use this over `react-intersection-observer`](#why-use-this-over-react-intersection-observer)\n  - [Summary](#summary)\n- [License](#license)\n\n[![NPM](https://img.shields.io/npm/v/@asyarb/use-intersection-observer.svg?&color=green)](https://www.npmjs.com/package/@asyarb/use-intersection-observer)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/@asyarb/use-intersection-observer.svg?logoColor=brightgreen)\n\nReact implementation of the\n[intersection Observer Interface](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)\nto tell you when an element is visible in the viewport.\n\n**Demo**: TODO [Code Sandbox](https://codesandbox.io/)\n\n## Features\n\n- **Hooks API** - Just provide a ref!\n- **Alternative Native-esque API** - Pass an `HTMLElement` and an optional\n  function to handle `IntersectionObserver` callbacks.\n- **Performant** - Intersections will not cause other observed elements to\n  re-render.\n- **Typed** - Written with TypeScript!\n\n## Installation\n\nRun the following:\n\n```bash\n# Yarn\nyarn add @asyarb/use-intersection-observer\n\n# NPM\nnpm i @asyarb/use-intersection-observer --save\n```\n\n## Usage\n\n### Provide a `ref` from `useRef`\n\nTo observe the visibility of a component, pass a `ref` of that component to\n`useIntersectionObserver`:\n\n```jsx\nconst Example = () => {\n  const ref = useRef()\n\n  // Get the visibility boolean directly from the hook:\n  const inView = useIntersectionObserver({\n    ref,\n    options: {\n      threshold: 0.25,\n      triggerOnce: true,\n    },\n  })\n\n  useEffect(() => {\n    if (inView) {\n      // => Perform any side effect with it!\n    }\n  }, [inView])\n\n  return <div ref={ref}>Some content...</div>\n}\n```\n\n`inView` will be updated whenever the observed element passes the specified\nthreshold.\n\nOptionally, you can pass a callback function as the third parameter to perform\nany side effect on intersection. This function receives the\n`IntersectionObserver` entry (`IntersectionObserverEntry`) object as an\nargument.\n\n```jsx\nconst Example = () => {\n  const ref = useRef\n\n  // Pass an optional callback to perform side effects instead:\n  useIntersectionObserver({\n    ref,\n    callback: entry => console.log(entry.boundingClientRect),\n  })\n\n  return <div ref={ref}>Some content...</div>\n}\n```\n\n### Provide a DOM element\n\n`useIntersectionObserver` can alternatively take an `Element` such as the return\nvalue from `document.querySelector()`.\n\n```jsx\nconst element = document.querySelector('.someClass')\n\nconst Example = () => {\n  // Pass an HTMLElement directly:\n  const inView = useIntersectionObserver({ element })\n\n  return <div>Some content...</div>\n}\n```\n\nJust like the `ref` examples, you can optionally provide a callback function.\n\n## API\n\n| Argument   | Description                                                                                                                    |\n| ---------- | ------------------------------------------------------------------------------------------------------------------------------ |\n| `ref`      | React `ref` to observe.                                                                                                        |\n| `element`  | Alternative HTML `Element` to observe. If both `element` and `ref` are defined, `ref` is prioritized.                          |\n| `options`  | `IntersectionObserverOptions` object with additional `triggerOnce` flag.                                                       |\n| `callback` | Optional callback to fire on intersection. Receives the `IntersectionObserverEntry` object for the provided `ref` or `element` |\n\n## Why use this over `react-intersection-observer`\n\nThis package aims to prioritize performance for different use-cases.\n\n`react-intersection-observer` utilizes a single `IntersectionObserver` instance\nto observe all elements that use the `useInView` hook. By doing so, browsers can\nbatch `IntersectionObserver` callbacks together.\n\nConversely, this will cause any observered element's intersection to cause cause\n_all_ observered components to re-render, not just itself. Even when using the\n`triggerOnce` flag, components will still re-render post-intersection due to\ncallbacks still firing from a unified instance.\n\nThis package creates an `IntersectionObserver` instance for each unique\ncomponent that consumes the hook. This prevents the aforementioned issues at the\ncost of additional overhead of creating an instance per element and losing\nbatched callbacks. This is remedied a bit by the `triggerOnce` flag as we can\ndisconnect instances entirely after intersection.\n\n### Summary\n\nIf re-rendering your observered components are your most expensive operation, or\nyou just can't have re-rendering from other elements coming into view (e.g.\nanimations), consider using this package.\n\nIf callbacks are your most expensive operation during intersection,\n`react-intersection-observer` may be a better fit.\n\nAs always, try both and see what works best for your application.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}