{"_id":"react-fetch-component","_rev":"61-db74272e113b583f771732d627c89a95","name":"react-fetch-component","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","dist-tags":{"latest":"7.0.1","next":"8.0.0-13"},"versions":{"0.1.0":{"name":"react-fetch-component","version":"0.1.0","devDependencies":{"react-scripts":"0.8.5"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"start":"react-scripts start","build":"react-scripts build","test":"react-scripts test --env=jsdom","eject":"react-scripts eject"},"description":"React component to declaratively fetch some data","_id":"react-fetch-component@0.1.0","_shasum":"6b4ec6c3ece6fbd15980ce9d6973d3ccb7cfca88","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"6b4ec6c3ece6fbd15980ce9d6973d3ccb7cfca88","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.1.0.tgz","integrity":"sha512-b4jzgXwRTKqVhJEtEl02glVuAPbnELWcaAEmix9hfTw/J8/VkLIc/zWs0h3dL3BhRjZDaDUPHUGI4MmL8g9f9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7w7vdCJYSVxNOwoZu/pe9sEABIVZrbBFX+vCotkhpswIgTWkKtmh1O1BrrJLX2bLektKynMbyjMz+tqvLOmhlhnw="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.1.0.tgz_1486321190327_0.2624998730607331"},"directories":{}},"0.2.0":{"name":"react-fetch-component","version":"0.2.0","devDependencies":{"babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest"},"gitHead":"4e5fcb0420b441b01a564e458bed1cb6ededc698","description":"React component to declaratively fetch data","_id":"react-fetch-component@0.2.0","_shasum":"77255eb655830918a6252431848c81ee2bb26b88","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"77255eb655830918a6252431848c81ee2bb26b88","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.2.0.tgz","integrity":"sha512-mDvSgiZkFpA6L8FO3Ws46vSLY48/RDZYpVABjqGqoKFtHhLPZ6SiDJxWRca1L/4Be1TXYFEVpMAhmUTcMujGHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIs1lMhmwbYdVkHQDr/lJ5G/jWvUL7D3972yzIBmy2OgIgYvPgWD7fOPkQh9sBWMJxk96u1889KdJoG8unjrdmLZ8="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.2.0.tgz_1486414989933_0.5770281327422708"},"directories":{}},"0.2.1":{"name":"react-fetch-component","version":"0.2.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"03c3d42775935418d8f1cebf37f33f732cb5a46f","description":"React component to declaratively fetch data","_id":"react-fetch-component@0.2.1","_shasum":"91e51ead8842445aec0dc547633714a814914d0b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"91e51ead8842445aec0dc547633714a814914d0b","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.2.1.tgz","integrity":"sha512-c75vjfjc0B5hJYlsmrNA7oh/SWiqCoJrH9PQV9ZjPeU2Dlphb/YhI4iCoLqbvnGjXPElaiG+U501SFE+VUUjCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz0/eNMOdQFJqWP6yiEt/LCB0c8etXFDdOd6zmCABlFAIgX809ZMTgSj+1DzWpVz9+9+7GxKVL4qOdG1gJDVYbdSE="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.2.1.tgz_1486419259420_0.09073499473743141"},"directories":{}},"0.3.0":{"name":"react-fetch-component","version":"0.3.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"2815783ab4b216bbf684186aa474b73a193dd0a9","description":"React component to declaratively fetch data","_id":"react-fetch-component@0.3.0","_shasum":"7c4a04221328369f560fa3210259898bb011d93d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"7c4a04221328369f560fa3210259898bb011d93d","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.3.0.tgz","integrity":"sha512-36vfvjEfB0XCJe0O2tBn5Z2l2bQP/et8ahvaWYXYIG/N55NOGHOhC9azSudayz+h2ZFsmeAC5b0w1u7/oA4jcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrw/rr9zWD8H9W4+9kx2MsgnJ8+QduB/FV3wfWRE/FngIhAKjMmXWo559iDBRHwn+cm3jpYUaY4/UwhNNNcOna4FNK"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.3.0.tgz_1486616275257_0.5740977947134525"},"directories":{}},"0.3.1":{"name":"react-fetch-component","version":"0.3.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"3984c97db9536dc844305f6b603e996b4173dd8c","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@0.3.1","_shasum":"4da6a97409eff61cc6145004dc576abd36f88ded","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"4da6a97409eff61cc6145004dc576abd36f88ded","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.3.1.tgz","integrity":"sha512-QDN3iXuqpOF26KL4BfFvPPqYHtycMxrLwxUlpB+CiWSKZS2WH7Cr4cjBISb6X/Uc4aag0bEMtwdAOhNBtSM1Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHbWtvvy3eAEetnyTonET56RAww8DV3DXSHi2ExppMYAiA65Cujb7STQ4MWE9vlMO3ols4FtjXHpvb0HSvtAiaDFQ=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.3.1.tgz_1487962679698_0.8715670083183795"},"directories":{}},"0.4.0":{"name":"react-fetch-component","version":"0.4.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"627e60a3a9d4e006c6b5dd6f45baaa8aeddc8da6","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@0.4.0","_shasum":"9ca490fb60759ead0190b83f2537ea1521643c5c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"9ca490fb60759ead0190b83f2537ea1521643c5c","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.4.0.tgz","integrity":"sha512-wZhImR8IlucX6MHWQMQfxpkdsC/qChD4wB5BAC6HS7hT2iudh5cWc8HkilgxMvgQJXlC4elJW48NW/TsudcjYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0HHFsVZ51klhofwSV7l6uqjNaMzYan3SIE9+EplA2CAiAJwwTl9lvnmE3i4k+ns2O4580GOcUrHcHcci1dm3FB1Q=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.4.0.tgz_1488855620922_0.5133440680801868"},"directories":{}},"0.5.0":{"name":"react-fetch-component","version":"0.5.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"edd1bf80abc068dbca65d5e19faeba5dcc416d1f","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@0.5.0","_shasum":"d9b349f056fc65a8416af51b27af20dc1f0d7e5d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"d9b349f056fc65a8416af51b27af20dc1f0d7e5d","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-0.5.0.tgz","integrity":"sha512-qGI7A8iyd+pKfQILoQtMzDthIsBhmpZVFmqEg4cmwJLgpw8ZKZucoMYecqBbnHyXzfDeiSAzwiZvcPelSGLalA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK4kvJKGhpaxeO54l7o3jGnd+F0hsfQENQtfZBUis5MgIhAKl9e4gwd5mI16yK85nZGz7TMnrG8VOB1JK49ayzv7Kc"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-0.5.0.tgz_1489087708802_0.7147205627989024"},"directories":{}},"1.0.0":{"name":"react-fetch-component","version":"1.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"45d1b7b4b0b22dedad1c4da09f094df3c0340fd5","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@1.0.0","_shasum":"5ac552d82274860c9d5d69f5b1006a684f5ebe36","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"5ac552d82274860c9d5d69f5b1006a684f5ebe36","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-1.0.0.tgz","integrity":"sha512-yO9Zq/8RUQlbHacyWVS30dZAzVjEYg/wPkxxOP89gb2eJq1L8JagRHVv1ZwVcaWp1dRWObZJqiaxTLkPhV+uzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvYxTnVA/p1HcmYjc23gb3eGCq8uOwB6VOnF9eu71HhAiEAiCehD3p/dfqf9MKuXReX7FGL68hj/xPb58ynJCa7hS8="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-1.0.0.tgz_1489162574067_0.020226649241521955"},"directories":{}},"1.0.1":{"name":"react-fetch-component","version":"1.0.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"a2ba19f6dc028f689d4e5e6c21c1835de5435f78","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@1.0.1","_shasum":"37a9fc23df46ef6030a49dbc21e34e5e60ca1909","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"37a9fc23df46ef6030a49dbc21e34e5e60ca1909","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-1.0.1.tgz","integrity":"sha512-o7cB9wvBP3ctAtQzDCFxWcJHSyN5PZyP+hx0xm4qZNAboh1obkxIXNkLE7SvfZjblf6c+8uJ7PNFVWw/SJsFmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk+ZKglwG2msEabI/Btqnm/iA25EEC2B1NAB+ndivb+gIhAICUKDm7/7vnLLwo+zgNfFIIyX8WXrg28qe0TM0yDrIC"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-1.0.1.tgz_1489203832365_0.679832199588418"},"directories":{}},"1.0.2":{"name":"react-fetch-component","version":"1.0.2","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"5db4295416d49b5c22a6041d18bc4fe343d65c12","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@1.0.2","_shasum":"80650fe5cd2c174fc03b3ed44a59d7d644cc7af7","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"80650fe5cd2c174fc03b3ed44a59d7d644cc7af7","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-1.0.2.tgz","integrity":"sha512-8zoxC4cQ5xUjo0hJQwXXSfvzVmQW37jEufBe7ZRijhbDU4XBtVlVjfMxuBHDbv/pemJJOm7R2XvA+ZLsDJZFDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTfaFvsASVzaiAQIJXV4SoYM+/hXFOGObIZNL2XjzaeQIhAJJxMb7JP+Xxb2jPUUyQ4QobZGUwuPwy4ziquD4UsV0C"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-1.0.2.tgz_1490664406100_0.8443727635312825"},"directories":{}},"2.0.0":{"name":"react-fetch-component","version":"2.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"0c95cd169c42f1a286e04ff98d5ac00d2d7c9f77","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.0.0","_shasum":"5f34c66af3ff539fd61afc02ba23059500fd2cf4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"5f34c66af3ff539fd61afc02ba23059500fd2cf4","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.0.0.tgz","integrity":"sha512-QceBBroZy/vPaBnJIs9/00jxqw4QJhZ5oHsn4O/T5Zy3Fdcc7E9YGZaM4xQuUX8at/2jdR56HlHB/9yCYbpdFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEx2fwK72jTRykDY/9YuU8u0F1I6PqoBWL7GKSvm1KPwAiBLszhLKz1Ju31fcfrS8EY/+TuY8xFcCWVbDzTKVCv8wA=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.0.0.tgz_1491243512089_0.09993577119894326"},"directories":{}},"2.1.0":{"name":"react-fetch-component","version":"2.1.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"3b7916ba9a3f04355631f6bbceb81222a927f23f","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.1.0","_shasum":"3612041873ffef54d0fd2193294056a6dfee1e57","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"3612041873ffef54d0fd2193294056a6dfee1e57","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.1.0.tgz","integrity":"sha512-lJWjrH9VMpGr+eeTPYMsW5QIhR/IdN7LA6xglbqq9Ii3yI0ixGFCtbPkwSrjxmkRzvTgK73Dl+YVY7wzMqFPHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu3P7mjPimAWvHuyrQgD9r/CQMCEGl76oV9qTXwDUZNAIgVcpjSh830WRPihA+aXbz3WYonGwkSZe+PvTej+cqzGI="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.1.0.tgz_1491454020264_0.530428439611569"},"directories":{}},"2.2.0":{"name":"react-fetch-component","version":"2.2.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"6fa5b3d539f42c2f0eb8aa09fb1774010b85111c","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.2.0","_shasum":"8fdb477827c161e736ed4cf02b12e94178440cc4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"8fdb477827c161e736ed4cf02b12e94178440cc4","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.2.0.tgz","integrity":"sha512-bxk8Z/wytDJqi4BdlNNA2FAO7DJUZPe6G1trSpP3zPKtyCDjMoUYfNkJ0dypXzz1mJwxxSeyK7FCIvjZgcbG5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9fMefL2ooCUNIuOipcrfhbb9B0hNbm0sQD+WKHKQGSAiEAoH8UqhMGJwYyS+zxa5kEUuF6a1dJWVNsnw18xVYy2co="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.2.0.tgz_1491455680567_0.19638147274963558"},"directories":{}},"2.3.0":{"name":"react-fetch-component","version":"2.3.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"be292a3e565bb5706218802ee590989bfd66ebf8","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.3.0","_shasum":"d48f11cae0da44bd7e9fb709a370d2a7e951cde2","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"d48f11cae0da44bd7e9fb709a370d2a7e951cde2","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.3.0.tgz","integrity":"sha512-D1AXE1vVHUGknKb/sCe97IedAijkTg7Vs54E8HruGaEerk9i6rArjpi/t1F4MH6AL9Zz7/JPihz+8lwcYx9JkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgDW/SHZOK5w62K72MbEZqsDkX8BAbwcNJICfzgZBY8AiBGksNkrc7CegUOSbgFLJ3vl/7IB4qF5KrfbAQen1vYzQ=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.3.0.tgz_1491958900723_0.9929330828599632"},"directories":{}},"2.4.0":{"name":"react-fetch-component","version":"2.4.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"3bb54fa2b17c383bd7e5e1ed4801a6d688b64d86","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.4.0","_shasum":"4587308c6f17cead51b3dadb4b6fcdbdec40b804","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"4587308c6f17cead51b3dadb4b6fcdbdec40b804","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.4.0.tgz","integrity":"sha512-KOLIwKFG91TvL7TFe5JtuoEtB7D33Wubkd7pjOwYZ1yRUbzPSbsxpjKNk3AJ0VBV/oN6EGsEOGdnJscV9BWnDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVpgd7YTSFIGiISTKBdeE9nJsA8t42wIbme/cs58sZgAiEAl9spTS0aRkiRCx6r7cKI9bF+qI5HUcwLVzyznO/UWFc="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.4.0.tgz_1492227063974_0.8266952442936599"},"directories":{}},"2.5.0":{"name":"react-fetch-component","version":"2.5.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.22.2","babel-jest":"^18.0.0","babel-preset-react-app":"^2.0.1","enzyme":"^2.7.1","fetch-mock":"^5.9.3","jest":"^18.1.0","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"714fa753121b3345b7556f0d7f7dee058d957611","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.5.0","_shasum":"2f387298356e99ae8688065372d817059cc87f7a","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"2f387298356e99ae8688065372d817059cc87f7a","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.5.0.tgz","integrity":"sha512-uVHk4kChmD0mRkGaDDhEXMd9vJlac0pHFaH/RkJ7CGwpmLoHlkNg5DXVBirE085nMW87WKMqoTdoiTpNkH2WZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6ZfEtMH5FUTz8TwBkeWzOeMgRJA9prcadG5/RKG2PZAiEA+TJK6OVC+v4qSDGqKhGOsekLRPg7+KvIIDoLWAWhpTc="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.5.0.tgz_1492580087637_0.9617000815924257"},"directories":{}},"2.5.1":{"name":"react-fetch-component","version":"2.5.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^19.0.0","babel-preset-react-app":"^2.2.0","enzyme":"^2.8.2","fetch-mock":"^5.10.0","jest":"^19.0.2","react-addons-test-utils":"^15.4.2"},"dependencies":{"react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"136a6005935e11936ba204dca9c1372720fea6f2","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.5.1","_shasum":"aa9d719151e30d6e6ee741593b746eb0ecc88737","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"shasum":"aa9d719151e30d6e6ee741593b746eb0ecc88737","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.5.1.tgz","integrity":"sha512-yqAzhVZguDBygPBHunRCPzYS3Uwv/6vyd7yJkbHRwH+jipD8H9PWbb/n4R6FpQUX0VQ97JiBVcgKmCV7vr35uA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIZQsD6d6Lvz1dPBEyzk9xLYY+3eoNGwHon91oiZgcZwIgNT+Hvp0GzwxTaCIItyexV2uL+v2RigdgQ64S5C1n9wU="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-fetch-component-2.5.1.tgz_1493661151197_0.8918024573940784"},"directories":{}},"2.6.0":{"name":"react-fetch-component","version":"2.6.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"7f67cee4268c713a9960f90df44a1023f2abf524","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@2.6.0","_npmVersion":"5.0.1","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-SwSUOPcOUNHqgbV8CXfOf6DqVlAWB0P+N1c5xpxjHPPQw5XQpwcjPChG//6ZYqV/7Qo/Lq1weYARfEnsPTVY+A==","shasum":"78016979c7a2218f325a29506e7c2014b4053ae1","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-2.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY6Wt9sY6WFDcp6Pwozoxepn+3GxAUdyc9+3Xch0ubugIhAOIbr9ja6ZTmqN76AHcsMqhfD1zdkGCyzgmntUy5+KDJ"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-2.6.0.tgz_1498766183829_0.1885321638546884"},"directories":{}},"3.0.0":{"name":"react-fetch-component","version":"3.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"50389608955f538ab19c8354ce4801f6c15d79f7","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@3.0.0","_npmVersion":"5.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-kEwPA9a0Bi9w1KwzTLMFaeLQRJOKQ46ua5Q5h76LWTCl9VwdR78HJAwM2pAhkeSfB0UQSW5lrQGoNm8yD7EDmA==","shasum":"c929fe96076266771dce2364407193e3d09662ee","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCabhNM+oMZZKpqLJszFP4P8CtFTwmn4YqrlIE1CzC6/AIgNp28JVHzrM0ql43bAZN2lUZ05VkUiw5MCeEvVh1lH7A="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-3.0.0.tgz_1500180353061_0.7698466570582241"},"directories":{}},"4.0.0-0":{"name":"react-fetch-component","version":"4.0.0-0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"1080af9a71ed4802b2b214ddf59d2d52f4fec210","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.0.0-0","_npmVersion":"5.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-oVx5VOStX+Bv5EAkt/aeqxqY4n4KJ+gx0BjMZxS0EBN3wzWtMiyFHvHNQLe7OtxF6fKpLOm25anz6sHhzm5PCA==","shasum":"0bcc6457a577ea23be4d1250718cf01cf4a61c4e","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.0.0-0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh64twgNBxHQIHUH8d5oWaz3EMrfoc3OYQsXycgO1b/gIhAJTqw4ueX4Hd5Lz/85sPJaJEQX2w4hcV/+yjjBzSFoZy"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.0.0-0.tgz_1501114866305_0.7122025692369789"},"directories":{}},"4.0.0":{"name":"react-fetch-component","version":"4.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"5ccf6bb1c573ba7249809f4cac3110bda9c3006b","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.0.0","_npmVersion":"5.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-rYemSnp8dtrGtvgV81KLYzPA61aqnfvacEtx1i4HXYBLVO41zHfDA0Apns3+7OKAWIsvrpB7ffV4HLerZaP57A==","shasum":"2ba1c2a8abc3824779bcbc6eff7218ff23ede355","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7hTljOHKismchQ43c13enYhucSdzk21FQCyU6Rq3seQIgYRVxhg+QKzaSd/gaZj7L7YaSM6eEwBOpMCIuYw6m9/k="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.0.0.tgz_1504230442614_0.8416142163332552"},"directories":{}},"4.1.0":{"name":"react-fetch-component","version":"4.1.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"ea0bd4f51f0217a99b30413f6663c7aa4964456c","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-LMpD2QQAS0wmiK1vcSmg9NfGz21qRMaTHb0wpKTWNiDzYGcvDBxCZVfZijddLM3ea6Aovq51ioNwfMSBvnpg5w==","shasum":"79ef6255a0a7e588f8e7bca72a79f200ab39b8de","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGyo4fRpqkM88qV9nc2P+AutTZ39+R1h1n16HN/qsSaAIhANWq4h+z1mpLdirElNhDQ3B4ieps3FJ72hngKN5+o9RQ"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.1.0.tgz_1506434272402_0.6504865963943303"},"directories":{}},"4.1.1":{"name":"react-fetch-component","version":"4.1.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"0027fbd567ac82d013906b5e61bb85130a4d3aef","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-U3HTPs5PeP/6xqrHhPH7gfJFafHqwB/nFspZfr9AN1vu+nzfLiZpzrR95+ik6gZITcxxYJR8LcHWtEureIWR9A==","shasum":"50e8b918995cee0fc6021a9e3d0c1e35d68486b8","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf2U/06Di4hJHg3asQGz6kDWqmYRt7U9H3O7N2ECANewIhAKmCKg0E9v2tkjguGnQuqQ+5CVYOwIb4mPnfKcZKkKRS"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.1.1.tgz_1506441511742_0.27803342230618"},"directories":{}},"4.1.2":{"name":"react-fetch-component","version":"4.1.2","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"84b3843de3bcd3c8aff50e42e8a4527026385371","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.1.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-LccOZD63IQnmwYBOQQ6la9dcAnnsAh/tfKcGbUvVKiPsCZgJlB9CVZoE97PKMQnWy0SdXbwV/Cx7XVlkUABDSA==","shasum":"2838f2fec2c3e5f6eeffee893107cc1028cde321","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcJucOXZ2m3wN70MzSEH5BYKmm0KRQlnc/w2cBaRhCrQIhAIYIzgkdq8klQNWnYhFCl2/tV3/KTIfACwoL9Iy5r3XO"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.1.2.tgz_1506483052531_0.1222887106705457"},"directories":{}},"4.1.3":{"name":"react-fetch-component","version":"4.1.3","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"4cd97beba1e3a92aa24b2f119738af87b8db7b57","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.1.3","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-e/5/L53uXNFhVWydhI1BMAN3t95nSLwR6BHc73jGuZi7pBrMJML/ngP93P+OZcSY2YrXwlMSqbssdr/4b6DJ5A==","shasum":"c06c8772529f9cc3d64f06df137cb8fa790e2b83","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENFLKI0IbHXU/OwnDQjbyMtHp68Qep+LFg+IOw75MuEAiEA5J3gHgnrxZuQ6nq1P21wDuxMdR5NPPeuMUxNc+XeIm8="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.1.3.tgz_1506565531504_0.053819746943190694"},"directories":{}},"4.2.0":{"name":"react-fetch-component","version":"4.2.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","enzyme":"^2.9.1","fetch-mock":"^5.12.0","jest":"^20.0.4","react-addons-test-utils":"^15.4.2"},"dependencies":{"babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","react":"^15.4.2","react-dom":"^15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"gitHead":"50c80e3b2b96f3e0fbbc9b8fb0c7d82e6a255be8","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@4.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-earTJsn+nAH1ZPCaJLGseVDbNzgK/zlp1W4hCFYZg1eNAV4SV+8m8LxYWJKf/gC5D9/QhhSDhgkapxxHBHNpeg==","shasum":"7ab105125f7b782454b1a5b59c6311f0cfeeaee7","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-4.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYQoyBY7RCUhMFMg1zru1Wt7c+s5uTwlhJHm3Os/jDlAIhAP9TBKFYy4CDdwAc4m3qhFi9OJIAIl7qWYP7K2qwHUCo"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-4.2.0.tgz_1506568096579_0.11698780837468803"},"directories":{}},"5.0.0":{"name":"react-fetch-component","version":"5.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.0","fetch-mock":"^5.12.0","jest":"^20.0.4","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"gitHead":"07ff857e52a813686d134cc44f81b08022091217","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@5.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-G3neR5xlmDPmtZFUTtkyYUSZirXhtcvYhnFx1qQvDbMI/9EMCDLn+p+nBQ/N3rPWGzE6HI0VOohh+aW8Dmr21A==","shasum":"551f2d3e0ea26cbe79b909178a032ad35bc0a8ee","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiadIl8dUmY252PwICby04XhWFxs1puz2qAfU30UztywIgR6WiGCYo+UECP2LviEYitlwfI9N6s6SQBiOB4GaE+kU="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-5.0.0.tgz_1506738415841_0.05981037672609091"},"directories":{}},"5.1.0":{"name":"react-fetch-component","version":"5.1.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.0","fetch-mock":"^5.12.0","jest":"^20.0.4","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"gitHead":"81292bf152056d13adec89c587c2d21bf261cac4","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@5.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-10nFRpYM6h5nv+nCwiC0BJOiqjCnEOZOpYnBom1RWfUj/t/8E0ADCk4XbpMzQmLJaoelRbvflu1OiJb1aS+rYw==","shasum":"a62f76f6748ef59aeef10cb2e32c0b673bbbb1a7","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLIzLEfyvalvCdLD+zc0JhxPsVZnib0qmVKgjmXLhTdwIhAMYLEbxCCgpjGD97QRZJyETqPeEZ/Ec7jwt4Lgdm/6nK"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-5.1.0.tgz_1509640665094_0.11616003629751503"},"directories":{}},"5.1.1":{"name":"react-fetch-component","version":"5.1.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.0","fetch-mock":"^5.12.0","jest":"^20.0.4","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"gitHead":"84c7dccd2ec2572754eef8af50be279a69e0fc09","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@5.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-qgIP3/dEM6macxlvyagQGtJ2GlHzciXf3q2FPcztvA5KorM153Ry/WgUjU6tv7pE8Y7OPDRq3HlhIZzcoIKkIA==","shasum":"306c7e442d4fe0fe8f5e7e3274ffa3e396bac224","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ8phjQJCyH0OVXY9WHPLpSOvLGbMAzvqA1L5J8THeuAiARd93iN8A2eb798ss4BW5S05Ladk9pWCRn/Z9497nzEA=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-5.1.1.tgz_1510172515251_0.2844332039821893"},"directories":{}},"5.1.2":{"name":"react-fetch-component","version":"5.1.2","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.5.2","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.0","fetch-mock":"^5.12.0","jest":"^20.0.4","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"gitHead":"f2cdf446199a58b3f9c8a8c8f10a0722873f6c22","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@5.1.2","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-0+2wiIneSvVkog2UDsGIRiRridEbhTr7r91K/sCfyxkPGaphiF9ublgl3wpJHWWq1XDF3m9WQ8NHSlqbRTtnMA==","shasum":"1a71828cc2b87f42cf27475ffb0a29f9df6fc205","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJVdqRBkm4hxDN2IqehvfQtgSGh4cCd1wzZz0w5ly4qAiEAgaYoE7GC3kcQbdSctLKMNXdrMLGvb1u6cLBS2lt2cKs="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component-5.1.2.tgz_1510173245900_0.14816588419489563"},"directories":{}},"5.1.3":{"name":"react-fetch-component","version":"5.1.3","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.1.3","dist":{"shasum":"177ee6493540a59787a7ba11f39076af2ac42f17","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.1.3.tgz","fileCount":6,"unpackedSize":16853,"integrity":"sha512-tawDKo+Sfz6FPWpYBAxZNd1p6nZFSw05ezMIU9T9rJoURV1vlv99Rx0zhAYA3HMheTVdb3CQ4v/F9X9MhjBeXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoVoZbRSSQzjKqapM6qVsfPaGEEW++aLjqz+3NK4iZKAiEAwV04OkbZWUuA3awK/ZmRJENvr8p38DFSrQiLeKO6OrI="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.1.3_1522120350054_0.7051887040922631"},"_hasShrinkwrap":false},"5.1.4":{"name":"react-fetch-component","version":"5.1.4","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.1.4","dist":{"shasum":"29b634ff5afa7bce4752df03db856c4c8e86e467","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.1.4.tgz","fileCount":6,"unpackedSize":16865,"integrity":"sha512-oJJYXJbKRevkAR/jAj6vKb6khWlWMG+11pPk+egcXAXWMeHa2jDPuu222UDWtb/+4lDbGdb+mZRzHcslPgawGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEY47+h+jp5G+LV9bkTI6UsWXFT6szKQAVXwQx+Px37IAiEA+tXTYt1jxEraxqiwANm/ctgXqbczHwOkVlpecYFoSjA="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.1.4_1522121423221_0.6965566900288622"},"_hasShrinkwrap":false},"5.2.0":{"name":"react-fetch-component","version":"5.2.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{"whatwg-mimetype":"^2.1.0"},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.2.0","dist":{"shasum":"4a496f8febc405b87f53b775de3e7ed6472f5f9d","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.2.0.tgz","fileCount":6,"unpackedSize":18201,"integrity":"sha512-JnuBJFvxRn3E58kCh5AtgSARuivTgqUMfGvEeWCKlW4Y5DFwXcqv6R+3LAhqfcGzT3iwu5kIbzg8uxvTxjghEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICc4Zsidqfb2mHICgRzx4baSq5MJjhcNfDaTqMgekHXuAiEAkjkps+0n00X5Yb1ugCugG79nqMslhQ7oZjZw5ogGPyY="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.2.0_1522166835665_0.15921665921236094"},"_hasShrinkwrap":false},"5.2.1":{"name":"react-fetch-component","version":"5.2.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.2.1","dist":{"shasum":"133a41c0e9a2312195486621460768f194eb6910","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.2.1.tgz","fileCount":6,"unpackedSize":17939,"integrity":"sha512-k4JKTY35JYMKZGINtqYmoCOIU4cU9ejXKxzvPFvqLusWQiJec9tq5tCDOUFF84kyFvm3zvFzz4f/xrLprkSTXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRxgT9s4OcZzBWP2KrwjLep/ZyguWXn3ELwAJQD5SJkQIgc3lWcdgEh59Rx3miyOAraU4VbfcDXos8upJqbg0CJPY="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.2.1_1522265610029_0.2478361536087219"},"_hasShrinkwrap":false},"5.3.0":{"name":"react-fetch-component","version":"5.3.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/Fetch.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.3.0","dist":{"shasum":"b789d5591677efa77e4e5a7bc8214fdd3bc191ab","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.3.0.tgz","fileCount":6,"unpackedSize":19042,"integrity":"sha512-URrE6rGzBIy8JBFL735DHqaXVvx5DHimT33EL4QbqbjGT35Ul/T2wOLXi9A5mWXJkizwq2co0HgHxJV2lq1jwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+MS86jRG2YXlmaD6fS2hi1wl4Q868p6zbdUC/r60RpQIhAJ1+h6nkgza4eWYbwTCR6tYjmYnvUWJNZOoXr8edcc7g"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.3.0_1523045637092_0.35159369022180775"},"_hasShrinkwrap":false},"5.4.0":{"name":"react-fetch-component","version":"5.4.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.4.0","dist":{"shasum":"8c50d77bc84c84269e51f63e796dda4b6c901912","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.4.0.tgz","fileCount":9,"unpackedSize":22516,"integrity":"sha512-C7Ju8dGH2oCu6Yild4Q6G/J2mo7Y9JPKcm/12BTVhtUyISA0Z37Fm4OEHZoDTIADlvbpEI2OfUuwYA8DT/+FJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc+McrhIy1GBCkQ7vQs32k1Wq7I0EptRsLFI0kPwFQ1QIgMq4Z+ZXr+sEEQpFXfRjpqitj3iIihbFPOfj8c6Sqx5I="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.4.0_1523370392684_0.21143341081696376"},"_hasShrinkwrap":false},"5.4.1":{"name":"react-fetch-component","version":"5.4.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","enzyme":"^3.3.0","enzyme-adapter-react-16":"^1.1.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.2.0","react-dom":"^16.2.0","react-test-renderer":"^16.2.0"},"peerDependencies":{"react":">=15.4.2"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@5.4.1","dist":{"shasum":"93fadf5140ecd2b1f8a3b87ae5c7462ddbcff4d7","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-5.4.1.tgz","fileCount":9,"unpackedSize":22815,"integrity":"sha512-Sn869pIypto6gJ7LLYrkBrQYYNX8alANQkjgnMtISAd3toTicZgQxJr3VP1gPgXO9hIBLL1E27aKpjTs1oc55w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz/iQwKFnuQMPBx4mv/DZ6NRA7Hlo6q/Ke0XHUj4z50QIhAJY74Bz6jecP7Xd3gfhRmCZlQnG0HtmBuEQjp3TqbhRY"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_5.4.1_1523370866495_0.18602229808007742"},"_hasShrinkwrap":false},"6.0.0":{"name":"react-fetch-component","version":"6.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.3.2","react-dom":"^16.3.2","react-test-renderer":"^16.3.2","react-testing-library":"^2.3.0"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@6.0.0","dist":{"shasum":"e1830efccea46b86bc6a7cb975accbf798ba2a3d","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-6.0.0.tgz","fileCount":9,"unpackedSize":22246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6IFcCRA9TVsSAnZWagAAeR8P/069wfZ7j8fpI9W4frQy\nBYLUoqAd6Mk7wHjZD0RlEtFtHYrVBdYmHEV3xHUJ6e7qxA+qIb9WZ3NGgFQv\nEYBiPGwlLyUxwpQEA2NdCKCcMXfDdjxeJ5UB18cKDAI8M+Bl8JIzJlefNSCN\nSUSHJ7THZY4XefSDbXbVI7Fljn/Oaa2mjEg97Y3lW+YgjVjE1Tsm3XH858Rr\nrGlA93cIR2R/k/IxvwQDU8tFYYgUiCUizUAKZhhKp3pjlWHgaMNzvuZmr2pZ\nz44GD6+VSkvsmMkQji1E0ZX87QdyhRIe2xd6uZUY2CUCjHdOVWkw+6/EQo2i\nvQ4dF7Vp6QDqkSlqdjGgNzwW+PWbE2STkh9xSChVaM/uFmCb+Wu7QVY1w4TW\nQsAje0ExNQFNKjIB50VkZIzy1CICjD8wXzXBTxhIkdft8wEiVjbRWmQN2eH1\nNhr5UHNLIqeovdTKDNtJ5J5t3NJAthrwMynW2M2oBQHrCq+tBn19esahxZwB\n4iYS0DCsM89V/r2IGFxc2UF0EVhf2/j9i4TQL5CeyX4yh1RIqlmvYbNQOSNv\n+e6fhPRGWrOmvZD/wsUzFNVMKqybqZmaDSorUbX+rsI/MK3KYEW9u4ogfp3H\nIziIEMn+twzNYfMb6wkW6jLcc1GDKhSfXwirk+9YDvlYjSzLvaSE8+ddb6QH\nYLcw\r\n=LnA1\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-9ipnPLRlCdmYore48B3ynGSwtyF0Lm65XFgBPreyx9sgSHK2U2CWBHNzNOdq7tszejqyLYL9i+JNsCnwdxpceQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC773JGcVw3fnV9lcRBhl9W/3mWCxKHnTKcIsdRNzKOSgIgYoV+10ifdXcQT8YnGLgAAcBN04jIkKU2PdFApyqlJO0="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_6.0.0_1525186907299_0.3806139210127353"},"_hasShrinkwrap":false},"6.0.1":{"name":"react-fetch-component","version":"6.0.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.6.1","fetch-mock":"^6.3.0","jest":"^22.4.3","react":"^16.3.2","react-dom":"^16.3.2","react-testing-library":"^2.5.2"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@6.0.1","dist":{"shasum":"e4ec51d2a350bc27e490830858ca5bf961644449","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-6.0.1.tgz","fileCount":9,"unpackedSize":22862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9fx5CRA9TVsSAnZWagAARE8QAJ5Oceor4lMrLh/AwaRv\nESIXhpACNR5kG/V2D6eDZ910Sx89H7MZe/KjnvCfRAHFAPvm5t2DP1eLjwYi\nZWaqpN7QZGKG+cOR93oif4UNZLhAyDuaNirskIKkuncp9HuLNrElswnmXLOU\n6kB1N3KsyFTbkAEMneq+rapto0Cmm6kDRLiNf5HvgMsbJQ9YpJbhYlUgeCl8\nmu//WBxKFwE6iYtrGQUNcn/XJqeSOaO1eYd0JqKFdBgFPcSbnIM7SlWjo27O\n+BQGJbdXAeHLuCcqxpjHB685z4chL9Jy6gADxJ+bfcuVdWazvfJRi0Ez3IKS\nd3PTSgCCwXq9oESZPe2C2FbQPZAwfx73k7rY/b9rcclH47qJ0YQ87OR9JkDJ\nqie4gZ1kNapSO5YDYYCncQbJZu0uL3VYO0zoGJwzlsDdzOYaI70rMGilCb2n\na99sZEbCsovSAXF9FsAbxeWr12BBhgaBijePC7W296ennfjdzOLVxbUn3+h4\nhSjg2DVUsLs8ZKH9KShrlOrBY/sMwH3PuaImXVh5Ph2bV6G2/NJdILyGJiCv\nxh+q4712HqqcCPZZ4n/i4N5/WYMEoxhGor+4CI1GItlFkrXoNHAVfMs3/uGb\nM6jSDbZQR27GR9d8uy/kuUPTfZqvWWBoKw2RyABPphfDT29+WUd66iEf4Fv4\nVmlu\r\n=//dJ\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-8G7rhLINpZ7dAZlcYF3cuaHmsW3t6v33e9csSEYfhRUEtFpFh6nppmb/rxfU+inI3SBZirjJDntwfYC86GTfqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDA4yKzJaJCYonGwvyCRmKYTrvBh7a1CkkaEXuxS1JkAiAKzPMBgJUeoGolSfFvwnPuSbG0NJj38NTRQBIU8U99Sg=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_6.0.1_1526070392392_0.6123697286873606"},"_hasShrinkwrap":false},"6.0.2":{"name":"react-fetch-component","version":"6.0.2","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","react":"^16.4.1","react-dom":"^16.4.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@6.0.2","dist":{"shasum":"8f5e9602158cc606d7cead09a8243f66def11321","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-6.0.2.tgz","integrity":"sha512-/lIiqrIL2FmlB5vCoAPrXwrWmuaDosmdbfkg3M9khuEXlWzYAWEmQ4gZoWdEB8f4q1Tfl5phrVA86apPxRyzJw==","fileCount":9,"unpackedSize":22889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbDUTCRA9TVsSAnZWagAAzFAQAIBQnY7sZo+N9rUjADSd\n6e9YTx3C1scjG1omFGX+OID4MdA94LGkgJ0CclTR3ZFVxZ4YZb9V5LaiLMTi\nXhaF3xXY42Qt0e26xHQamYhv6VBZbZsIHYb3BysGKHvmoxMNTyJUtVvOHiyG\npJgKj6LuHYeloMGy+Wqoqf1VWMR7Xn9Tznr7y8MwIFzvlkOX6VVrp3wfKw29\nbLHpJj+Cpj94crf5cp0e2nS/qFJfYVRPBIjoLa7Y19O/42bTWSG+wUHcBB+0\nqxPGHi6nTNbhS9YqGPJpSRwkBJ5Br8FcwceA02QOHGMWkKBL3/1UDE7UHUSg\noDsn7KiTTPb8cTpe+TNTiv5DUaSacHKUM1586RpbuRBDLBzlPZeCgaPfkUMl\n8hTo/z7JaMXVACYjGwYKUgP5+nhVf2knkMXskGL9AZ6KGwx10r5/xkV+HhRb\nd8YiAEy8wfOslRHYzBmBfUDnd8DcFcCQmSV7gqQfZsGNeAjBXltA4JqulkiB\nu1ZS9+iw6CGHYaKd6rQseQf0VOGJRmk/6wlhfo3D2rlK5vueMxs1lDDVk+SL\naQZ2qR13FoHIT+Ic63ZbPSPpWEcOu8n2tcZ+YKr9dBqJVZTk4KwOrTS9+ULq\nnnm/rjUHm8O2Qgfr/nXBW4S8IWty0KOFpkQJG6E7o9bGMoaiaZNrTnifxRXM\ndLOy\r\n=CSle\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF+VULmof1pTuylOhvflrx9HW4hcsg72yHHjW4W9LOaAIgZnuFuw5MXerJp9NbCJNbW6juMZW89Fp+zRGmBuvCa6c="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_6.0.2_1533818130379_0.054990610768052006"},"_hasShrinkwrap":false},"6.0.3":{"name":"react-fetch-component","version":"6.0.3","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","react":"^16.4.1","react-dom":"^16.4.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@6.0.3","dist":{"shasum":"b17a4eb59e413acbb07de7c54af8ab75f9c720a5","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-6.0.3.tgz","integrity":"sha512-LyJhNZax6szoXWOZMF8eHSPned/+0qI4igyY4KYq5A6Q5lqX/I8gcPtOkLuNYzgV9lIADz46xrdDzFz65Vq7FQ==","fileCount":9,"unpackedSize":22896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbckZjCRA9TVsSAnZWagAAyYUP/0ZmYfiiFD1qQ4tkyEzY\npM2sTEx8NRkMkk2MI7RMdLS0l4AQVZvf6mX6yM77SaNaS8CibVsIPN9gaGW1\nR7FUiReo2eGqbYI+Wl0rt4E74hjrYmaP72J3pT+eeahlcfDUBJOiN+4ZDVIT\nTk+57mMtqG4XOAR8ZNI1z54vqrF9LSdo+/QgHxJidNttypAv1yrv7ts+Ek7X\nNGTikkmh4RXT/XagrF3Pqe24PD8HSVG8h68knIZwZZxRd2vpQWszSRN0BxRh\nR5obBcdbnzlG8GEYSvUP484KHRVgRwJGGCyDLnyYQI08q52xWf/iFvPrhW0t\nGUqifGvpbMPLs//SBox0SqDgRltnMDYcbFlzlWnLrwZIbZSEmc1ofYS7iAeT\nFONfePx7UNAupfJ2V8yrLcyUStxYiOkH7S6fRLk7vc0YG/CEQx4WPxY7+8h7\nOUhDtOmFj9mpMHjRS6EICYHZes7phzfBDiPa6S59FLoZDtQrkIkEn+N/82A7\nIujlMzuYsEvPHQWXj/R+pjdzyf6S9YWK/xz0p9UEJ9qcy/Vw+xBpNTd4WF3J\nqiBucCx+ZxVqayWP9Wxx32SKC+7+69nTBJGiQlfzmWpCRfbz30bLkb2ItzIs\nslrrbzAFnWIdovcK9t2gTnf+hky4bcbBtAKRvixMDPvzvslV+etlqXrFr7tY\nOjp/\r\n=W1a7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMvV0V/z/7L3UrhrifFGA8g1zkGjKytm9k2OIuNYRN0AiEAjqXRWYgj/5dbFpPCWsZSE8WWalWKYAWsFjIXSynDGSw="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_6.0.3_1534215778770_0.6982680058974333"},"_hasShrinkwrap":false},"6.1.0":{"name":"react-fetch-component","version":"6.1.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"files":["dist","index.d.ts"],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","react":"^16.4.1","react-dom":"^16.4.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@6.1.0","dist":{"shasum":"8c03de1152c8eac7e29246071002a1babb098c76","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-6.1.0.tgz","integrity":"sha512-H17qmv+ti/AM7h6pZgIni8t2KkOwIcp6T6pHV0hSnr9Xml2CZ7TpQ+Otw9pW8a3pSi6oF11G0duDX5dzbsae9g==","fileCount":10,"unpackedSize":24165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhJ5QCRA9TVsSAnZWagAAyLsP/1s/9szeDo+BC+BUVfGA\ng32/o15ECXXrgnuZYC1xegzdUmUJRb3PW2OwaGsPJ+/gHB6PpWtfo4hlszjJ\nf+YSiNWo2DkmbHaanX4UhmbsvyLsRLkfjdWbFPNECLemu5XxlXqZWT5J0VKf\n7fkCJJiqMakhn9GeS2iHadScRu5r1l5VullgPbN2IeqFvFX56h48QN7ZYqOd\n893EyXGRPVqo3JtNHkwPIMLL654CvtZipMjsIbVPiDes2a+bitOkq7sOTTQV\nX+m2CqMkxknOGAT/g7LD0BbPwJsocqXCCnvWkGXla2/yCUrOGCEDBkiTW9B4\nZyKWMWR18bF7i6mVBNcBaltR3R5K3ddInIWXZ1tjGYyJIzwplbgiIz8moVHS\nrOkm9turaJSm/jg2u2Ma7L+tfv7LcwGQuBrT4xvh4IkX7fNDnnFCcNsXM6Hr\nPLr3pvYxPCcIWCv6zOuvll5UGcS4ZGXzECHud+HsqmDN3zwh2Evjf0BNa+QF\n/g6yzz+olg/WroFDSA4NnIBv/Zn30EDjtCHtmHZlJMqX8hRWLqBEWNxcklSm\n8ss0penncpXxarvW5uPp+mW5D2U1SuonKik3x1Vy7ZGhj6WiSAoA/LIlaFR1\nTNCwDA9Vrr59gYoQyzepQdjUYq46a7kXQhKeBs4wbdWdN2fXPmfqNrnpZtuU\nKyAK\r\n=YS9B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjorJAcGmhdLrE5YRdaMJTe2+2CBY34UItve0yC8jp2wIhANDtZOEKZ7kp8IJTAvh8KYHtTg6o6QeGHIcxFuQloxKh"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_6.1.0_1535417935475_0.7924775317064814"},"_hasShrinkwrap":false},"7.0.0":{"name":"react-fetch-component","version":"7.0.0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","react":"^16.4.1","react-dom":"^16.4.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@7.0.0","dist":{"shasum":"c2bd03b779e308869dc00010ff5af0963d049a44","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-7.0.0.tgz","integrity":"sha512-9nnnLOnX0vc9WYFC/xDhCkPGR9AN6Bj8I0nexnjHBN71GA8DTdLrPuZgiPhtrEAjDiFpm6GJjccuUCWjUbb6lw==","fileCount":10,"unpackedSize":24594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtCAACRA9TVsSAnZWagAAs8UP/3PDf35QyiPiKQoias4/\nrA/oHfb1mCyBBCjlvjIIxbkzUFmsO5YRPvq9249oKk2R3kIdPElj8K7Dv75m\n+R7+P0kjltOBRY/0rUALGhPDYwu71rtdOyeWzFYqCTe9/XEhFfVhEfZzQxbq\nFNRKReEit1s72Loi4gzYE6jgWFqI70DAY8EFRmJAb0o8QtxxvmqP8l2HO3Z7\ntN/K5hDskZMMvRUlnXhciSDG1Bwnr8QYHN6HCq+l6TYR5VA5S1GhAzpaIxBA\nPsf4YsamTEwff4KrUjHnxhDCFepPsgCftYTUSmb4233ZhcOep8YtOzYtgGAO\nVsqa9DLraWPghJEm3SnAJtWJ55veB46s2dilaNMIg1PEYWxFkpMeZNLhxVHR\ngBV2EUQMsc1oGYvjQNZhm2XqYN4WBQGo45AgPeaR3z6LAVLChGp+6SfDKrs3\ntwWdt65lLggZINP9Gpz4KXJFG6twsCwB4HnFEmTpVvZ3BIy3WZ3fp64k/BBJ\ntNJ0BHvIyIpH9AGH85erd8qgigID/tjkP5gCKWAXJ/QZHPzhaErG3PVD41M0\nP8YUCLORAYsRxKrH1KEKiBXEzp27laI3z0yAFvLkvgrfUu3W7nth/cjgjQti\nZjRWfR6M6t/Xg4DvuaYp6xTO0ZR13W+CkfgXR7KoCvJYOaJ2d9/LntxHkvYd\noA1b\r\n=RuJa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSlKx5qk9dlVn5oOEvykc9SP7dDoaiMES9+z87ohEGbwIhAI5l8MNWtX2RPJl+kLlAAP8j97co34QA+rt3pNwX+GwP"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_7.0.0_1538531327475_0.557465834807036"},"_hasShrinkwrap":false},"7.0.1":{"name":"react-fetch-component","version":"7.0.1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","react":"^16.4.1","react-dom":"^16.4.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.3.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017-present, Sean Lynch\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"react-fetch-component@7.0.1","dist":{"shasum":"04430af5cb927c26a95b88511a86af197712583c","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-7.0.1.tgz","integrity":"sha512-sQjf80PV+HJTJia6K6DhlIPbvIFxrxtW2T9vN/ZmsYaja11MRRlcaP0ncT/wOVO9riVT24pli1zynmG767AI9w==","fileCount":10,"unpackedSize":24602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4uthCRA9TVsSAnZWagAAI5cP/R72sz6VQycMqbOm3oCs\noeDFzL7KtyGIp0nm9YnBraWZxASHp54ydqVNrWr1yQ1NZvpE+sc7ch2iuJr0\nr44bUhDy9Bos01uYZCqrtbIX/BiyEeJ64gJ7WZGrn9SIgM4k7mdp0xRtweld\nMX0uhcM/zYBPCgbbJVpCKW+w2sL5W3WjDuSvjMEWaBoDFg2TvWGWnAQqKSPI\nZAHOiiKwfYDldrUmUc6inxnBwDZI6shB2aH6yOvOedsd582ep1GazC3y5QkO\nObWbpWrjLsz+jY1nWttskh1DFyHyyeFO+iDj8AChF4Uxzl5hyHR3eTPaZg9z\nxJ1dOiARoE/izpUUMzwWo592oFMEBaDk8e8FsWsvpI7NHCj7fJKZsrC20S3z\n1cRxkmTt4rUBVwu8aHyA8haI96iHIOtUOxHEOGL2y/X6e7W9jzobM4LyD0Qh\n7OXKyXfqzB5cTIyJoBJmhyLDq+hDY38Q04d+2OVdM0olH9xCmVUslGqN6EnP\nJV97eB7nhbnmXKCtomsxF/zRKu99LcTMg6AVGLJmimYH83DILK/JFtJgAwPs\n90vGczb41syKP9gVWUP98Gx+wxOSP7DABA/AorJPiA3+75oZGK3AG0UO47FX\nSrbrmj9tOZVSntlDVy1NBpwET6+gbUpewPjyDj9Li0q4Fim4xF+QEAeABGE+\n9JKR\r\n=k28R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzaQZaGKagemtYUzNXO55DZOSLwjRi9Viyyw7JCJSScAiAjOk3dwEtvdfDvvrPugHrNCQe03HcCn/F84L5NIk4/hA=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_7.0.1_1541598048623_0.3439899653426488"},"_hasShrinkwrap":false},"8.0.0-0":{"name":"react-fetch-component","version":"8.0.0-0","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"4cfda9744f52c690fcdf9def144667dc3c10c5f0","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-o3AVq+AolvBi4pffOLdTj9vrg1rGFiKj0HStimU6x451i6j2phQ7zUufG+0SsE5v3L60HSYXiLfuYYbyfs6/Cg==","shasum":"578d98ffe24033962bc0a9da7c632d1e0192be02","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-0.tgz","fileCount":8,"unpackedSize":22712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCGicCRA9TVsSAnZWagAABvkP/2Q/KQplQYAQWYtjfdjM\n7LCMuc9MK5xHuSrsqFBvkjiECdhq+dEUDcs9VmJgTMNenS/u7o8C1X1/JaOe\nitxjAd8yuGg2WZeL/SVJBR/71XOSFS1tzabLp1eoTpqkSp+tQjUngPCEwbXt\nBAbNvIDQAYYHY00S3+LRd2TnatR92HEKz6iiJdHhP8WwGo5q4zz70H+f4fkB\nRm1z0bOGG/FlwCH8Fqanbf3MBUzhpqbu+6XSB7XP/He7CACxeyaGT93qnSbs\nnSEl6ccM1Vo3GiaoSEWzWg0LClMkSBBwIp1ix73ceZBCLtK4V1pgczcCnUn+\nZOp05Vn2E9k2xJpspw6IVWVZ/I55SDDih/IEFl3sbf2Q6X4NUBSnJk8LtsiE\nlnmkHIq6aZSen6P32c8n2urx9JOJ60SoItOyn5oBtTQRgn4JK1Mtq7lfTJkO\nA5NGy1n1gXERu1QCiIRyVoBp0hfiP1MgRgtB/8Va9j9l8HOnmQ490EedQ1SS\n/75lVTEoVbKRdb+WypTK2pXXtKNSK/9k6C9N7jxBJb+ijMsqWHWG49q2nBOG\nxRHd+QJ58haR5wFY2I3MtRhBbQpptwSpe7QzGIyMRhf7edKQqkQqQp6wW7St\natYrx9reRgEKUEB/ro8Rz6tN8tDrfOLnopqaBQpxNucpbbU0KhVQsC+xswO7\njLl0\r\n=vvYT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6KEVPNPIKCOYtLxYDg59qWMgwiSr98eycqfZQeFOOqAiBLbnxydjrwApXSSGPDw5qbtTbScHZRI6p9ViUxGfWxYA=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-0_1544054939729_0.08327861013107363"},"_hasShrinkwrap":false},"8.0.0-1":{"name":"react-fetch-component","version":"8.0.0-1","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"c3d5e9e2bb90000b25263d12cddc2f4e41488e95","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-KUVXElJM5O9uOV32+iNlzE1Tj1tSipWGVzlZHmnNrqv43Ffe4AVLHh+s7m18YZ9HBnRtXM9Jley8vSIz0wmw7Q==","shasum":"0d373639d664dc15b5673fd7645d75d1780b29c8","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-1.tgz","fileCount":8,"unpackedSize":22837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCHmwCRA9TVsSAnZWagAAGV8P+wRhz3JB/hAazlR30UC1\n5UI2+7lCZVguZCsVxbq0icgJjoZ/GI6cMCD2Lu3N3QxGvpeaVDu8nvA0etNi\nAxVIN2c4C3lpuVzsx7keC9w9FhzqnktC81zuK2xA5OoTUUM9sMF9rLyEPu2t\nVYRcjrgHpzKSgAV0sXtZ4wnM9wkKPunhLpycs5Mzv8+g/RnWlMpUJjvwr/W5\nCzUG+nNCY6TJalPqbPrePfE2SUWDO7d5zm6dPumB+l8TY7Vp6ZZLxpmSHv5I\nwEitX6BjrVlPuk1AHqKcQRIyA1bmyNKmZlxSuMcx57ECLBnAyVqfG/1nnr1C\nnITZgI6gNFA4f5s0nSS+PTICOtOPfF0yLIDq09FGouE8r03pMgRjyezbgxhD\nuWy/65+iIXcCtuvIKotcyVFKFkL+FbZuIHl72dC6UTmg0OJZD4GUrdW3LK/h\nYdDoxqWCfzQv+3zqtw50sGYHa2Or3eg2biILjCoLY0lZDR0mhmglQs8/FseM\nZMUKYeD3pLZ6ud42nQWscEMiflNX9M4peZzwik0g5EU/L3VSYik49zuEZoSx\nOwJdFh7atNYn8p6lYfZpll/AsBPCCRcstoL7wWU216Qgd/ngWWmGs62P4355\nhOlWia0ZXR6feHfbJygbI4XyhdlWbgvLkZPL9Ip0xC5VnEhKUgAnh61xK3UF\ngbZc\r\n=57iX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdN5X15ZFyray59Ni+xWfvdOl7AGtQZYIu1gFjLtytswIgMFdaPn8G+EaLKaR7CbWdg8kDcXnwvZ/6SArxdtIkqUk="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-1_1544059312190_0.4334583271420933"},"_hasShrinkwrap":false},"8.0.0-2":{"name":"react-fetch-component","version":"8.0.0-2","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"b69a5c7b86ecb269bcd3550970456ebaa1d2f611","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-qCu04GM6USD+6Bu3FnKdH0g3RFhFvDmtJQ13e7E5WPb4voB8QrpUzT1RwXMN5APxL7Q5eAwYmnLKtF2Ef0LiRQ==","shasum":"7b780d21b1750538054cde246311610635635254","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-2.tgz","fileCount":8,"unpackedSize":22845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcETenCRA9TVsSAnZWagAA0LIP/3Wu6wz5IX7oi35CUgnY\nyoGDr31NDpLWYrPDIEKXK6ZEOoj87brKenXkAAasDTt3ibjMzOL7a9AMwYod\nVZHqP3c11HYFXFAQ+2Mi4KB1Rzs7KoxwnVm9+agNK7ayUm/km2UqOkZklvfU\nBHY9jtdZVplIxA8fR9u3jsG9qan03cObgAOuxh/uOpd2PD+q+7mmQs3AKcFE\nCZTha9mjzanniEaXdB1zSJFUEBn36VKfTYQ0camZtEvjevhIkVYgLVFrxZyd\nj7GwIjJEXyQ6tRN1xdU3ZvAIsm+7VaZ9lAYAiTHKd/PArjEfya92ikmi+7Dw\nntX69dIl/hpMPKVYlDdBA+yFvO/PD2G6Zjcr5EAh4g77M5/usc9c/bYgvGVk\nsAV18LjNt8M+tmtTIifoihXDEV7Pzhgn2F+K/yc5YuP/XxaUAb97mcoWepcI\nD0D5bqNl7YWjejF155cwZlIMGcLpfQRZ9efewXdkAnHJjE1MZbXSkVKsd8ve\nngRVIz2ZdiKfZaLYPFhGw15VAC1oOCjxGqlCkBEO/WIBEqDUeKPAco9qhobX\novjtlb2QyGYrBhAovv7JgKzoU5LbfrFPeEh1w0xzKgCsAeUSGWSZfexpCj8d\ndc4J2mPw/SYXeYSUHmrYPv1zqgeE9e9X0vCHqDfJVucq34LBsV/ZfFz6ZPug\n+3OV\r\n=lK/Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQSxUGSj4OH+3lg0YUXO+AEZR5auEWJFzW0RfW1NniJAIhAK5c0yooBb6LpaNTlpVV5E0zS4aYfwGJSHTVmFC1NbpS"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-2_1544632230700_0.7906979544501795"},"_hasShrinkwrap":false},"8.0.0-3":{"name":"react-fetch-component","version":"8.0.0-3","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"a209777cb45a91bf2ebccb7e671c1b63751b66af","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-3","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-SpeSm3YKh3a8DK5F1RYK2j+DhyXBDzOuOgyoXd2jaRd56pBeeym3NtrhRbn9eyt12ZWejvM5/WgKA/3klDOa7g==","shasum":"8fb7b743fef402558dec0dbe5910cd0d246f5d23","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-3.tgz","fileCount":8,"unpackedSize":22892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEol6CRA9TVsSAnZWagAAdOcP/A+fFmJBH3eBND7z0oUZ\nAFPPoICgrxmYyVgIWrmsOzfLj49zX2GoO8stne7Wor5dfHSi7PlRkPeo6rho\nyKH4Ir0xccbOj9BZciwwGnHmI7CWPZ1QWpXwbMlIRGCW7yBH8ofoyvpOnXN7\njRqm1WbD8DXLiczo0QPPNfpLmSqVPTJDz/Jfh6Dhdwe/lftwPRP30MutNZTl\n6BPlOmmBxUZQnP8NeggXXw2ZScdQIaQNGXnz6RQpLoW+0776/YqkJjcV4qEh\nCdZiXLsla33Ysi77Nz2afzRBanv1HcoMzlVicp6Vy5x+LIWNW7bMx4dhaEif\nzjf50ovEftFM+Ci6GwS6HszxKNMvy0X8tk5am+1eoV90B4cWSgZqIGyK9JSS\nByKlUDA6LZWPV87SGKE50x9k99BigVo9gpsFGBW32/ZCj4E0a8j2Gd3n7XiL\nVVLAoFjhSA24GFN0JDy5Pdvgn1v6GE9dAM9/5wguWi14Fpy3D/JTKIboxvOG\n88OeUfGeQhNewUMMKf7PogIhAX/qsNb8M4NDXw3Cu2gOBV3vVjl69Nbuw1oe\nGJeOHXiLaB7i5B15tmyEOuJBSq00mT8H4MJDFMjsTS+OkT72KFXVYjtc0DzF\nkE7Du3dxXvGdojRC490pZQaBrOJhf8OpD+v8EQoqNLDu/DWrn+TO4gy/WGkA\nEYlI\r\n=uQza\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBl0CMg9O3bBnmhIkxJZHu+QeUFFmaHad8imeFaHJDAtAiEAxcU/pIYflx539Nz9qm23Id5ZeP0J3mVmM9uQ/NczFVg="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-3_1544718714052_0.3171085484082088"},"_hasShrinkwrap":false},"8.0.0-4":{"name":"react-fetch-component","version":"8.0.0-4","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"e9c40350dd667fdcbe1733e383bf70f2b847ac02","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-4","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-UGC8T5yyf1JOfIVWKBh4lzUheV5CUz9hFsrq+cAtqhjkoXntK9SyazkBxNMA5Cz2lNs+Dm7AJhgOHj2lpJ6+xQ==","shasum":"cf4bb91add4e968cdedef35c0a99a882d6e26472","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-4.tgz","fileCount":8,"unpackedSize":22952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGrEGCRA9TVsSAnZWagAA0BYP/0O8iFkrYxvzas+uSKUS\n/5INZPIVGh5xHtN0nZNJyAPFYs83jN24NmZ3p3cLdtucMRy5vmr26e23zs8h\nKr/7UWi/R40EpCXTTixAdPyg1h+W2ysah3pQTWdzrDOZ5hC+7u0S/521ypRC\n/gEXt3KrzNkYY5FSNNuoIZnE+XiKg0p9O4bTpFhSjGiycZ7CJDi1fddrtINc\n5nPTR4IiEinJGgPgJvGrTeQkBrVRgBBipvdmN9URLbVbuz45+oBBjiCgFWJF\n4LNCwaMDQFRhu3qetncxJmE4wlD0pexAdLo/Jl0ViFlID+XOevgxuS2jgZDH\n7pql9cWlUGSKtiJOUi5kmTAvOooRE2occGdq9cgRt/XfNsjCRrpRPQf5ax8U\n7CMlDYYxbLEEHs8iuMP+DslqrXzxcS8Zi8WbcUVxpJvV7VmYAGq7QPGKU0D7\n21LfZ/IvFXVJYzno7PAz3MhWG8t+XSjEx9glz4yptg/e4tZr0NT1rrrX1r72\ngv31nEmOoq+ewJJoFXkik6bnEEH4Fec2/6geulEETWUnkKQcUt+WiUmbb4s4\nGkWn43RdrXhSr3Dq8p8onP+GaX/eobZPAofzuNptoedcnb9t1l7nkPAAbp9E\nDeU/N5znf/vDyVsSy9Z5WcxXG3phPU0jx1oIS8Djpm36IvjAiQD+k2w0bNAk\noLIv\r\n=QlXa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEvNK45ZhTwIdWxqz5VmooGF8SGJQQA5uLScKOqlxFwVAiAlTQQQq7mLkjyeeAE21owqf7/l9Iv2ZLqaA541eAvDvA=="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-4_1545253125918_0.8177865185480433"},"_hasShrinkwrap":false},"8.0.0-5":{"name":"react-fetch-component","version":"8.0.0-5","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"571832225d63662f9a3a0a1eeb3ccca9617f168b","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-5","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-egP7UkKHWmLWx8yFD57rEj9ueGRadEn4TOIG1NFKi7IsdqyxhlHgMRket3MwN6eKrVTsXsj4tDvBxAUCSQXjdg==","shasum":"7e20a2274d25ea765ff2e92ec2f65b57eb72feee","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-5.tgz","fileCount":8,"unpackedSize":23085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGrOLCRA9TVsSAnZWagAAFnIP/0y7nRIWo9X64AuuHv2J\nTv2hCBcsGtY3rucbNSpZCIm1m0JPHlK+t+Ovw2G7/4lCR6CvEWtrvdY1RMKt\nkRLhfjuwrJxI73wm2HfDNw3HsB9GoZXZ62KKPSGZ25HxNVCeaPtTPqdOvamL\nCxrCA9SICsU7XLRkpsrYGWR6/dpkIefH8tMR8JD1io/HowlDsPJzcgpPrbQM\ng6CILLAWDRbElv70HpNxIXQ7ed+CEsvnzWUVjf+xYSvWG+2FvJDwfNwdOyoI\nVxUf8X9ppzZmsC2bNM1IrEQBKZzxbg42bZk4yyOKvRHDiZizUwnwEjtlzq5J\nEzJrVzfKGdKn2OkDFvXYRa9oQ08K4ws17+JjS6agjgSqA2vF3DAMFHVBxXED\nAE+pRwUMTz2Jn0WN5OcjLrTSzDa/lax81Trv9MSvn5asu5+hfYwNfg5LEsXf\n2Sfn5Dffg0aB8NDmjAZygEvmywGJzCc7+NZjEj1suFDFJAm+eVGNhIIP9N5T\nGuc1Jpj9NT0jDF4zT7VGQ9AJT9ZeFuJ/r6ElWlgcufy+dnDiJOlyJPUzNBgK\nYaQgXTvwl9DacWZG8A6ir6PY0AxxS7+99s25ZBgldTqkcN95G7QuN7iNqTUt\n/rKBBrBCVSx2wXh8rrc4zZXy8V8k5yns/SpnnP7yNBZg0Ye4IlU0Ux/77rOs\n0vr8\r\n=5g7i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVQmkhfl9Ab+iWjPaOlR9l0ObxFH4JhBFsHzgKUAc9oQIhALETJnemV8lKoDW+tCjxeVJb2nc9KT3bu20ZhAnm7zgD"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-5_1545253770902_0.9279728082100991"},"_hasShrinkwrap":false},"8.0.0-6":{"name":"react-fetch-component","version":"8.0.0-6","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"7d8141ec6a38cc99cb313c97c1b0695767643a2e","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-6","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-GbtK8y6MNBFaEHg+AGn374B5wg16HQy2QfdlLAI1ZlSsSe2ZViGPbqi7A0/Pf9Zg/v6rT+m32BPeYOJ8DRukYw==","shasum":"0370faeb6f4b58da911105c0ba4c2e7cd60efba3","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-6.tgz","fileCount":8,"unpackedSize":23175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSfxBCRA9TVsSAnZWagAAdxIP/0tmPps778tCqekXY1/y\nldWVapCyDYMlXJtu45X9qrZ9o9mr6sv95IRy7JVhaQl9rHIrhKQsuS5s88dM\nk+1cy0+vn2lLhqbhssUCEm8iISnIVapxXk+jtAz6rdwOcGBaHoNTh/+VT4Je\nMJeJzKAiUXANzWMuZ/hNasBIrumcXjl5sTMTCq6LX4WgHiT6Bta25yOolgP4\nF0y9HsG001NmpVBy/pVMAPLG0nwDv07BNKkTTYGe9ZZ9/FKm5nUl6QkPN8QM\nLyqLTCi7dnYWGvVAr8C+9uhfKcq3AWoo6kkIxBCxrIwn+AjVcAsg9cXSqFwj\nXLSB/iqUgMt8AvkgQgHmGcoBW6xzkHmVU0eMwyerpq93DMiVpebig+cfwvzN\nGfQO4m5t+k0Bup1IIdqMN9BnB1xAJOU9ORVqC3eCjAWDq3uZPM6a6JpTrUBu\np6Ah6i1Gxzuekk6e5ajWEZd0qPJbvFiPubr/M5h/tnukgWU/1eFB13lm5YlI\nQhMdsXdjHMtDO/eMl6aQkzq079MPHZdLQS02x5zaruT7Z0c7vUEy7sNk2x+m\nGFjaQYJW92j90Gw/oMXrYXAdqWLhKfHQS4pjwclTCZ1mWFv6SE4LlfVuCl9t\nxAdfTZBRyLvssifjTFCLi4uZllH6ZlP50lj+a8i2hX04VNkIOJ4/IjIqDyze\nkWen\r\n=drxR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPidpd8JxJ4btCA9iHNuNpBS3PZixLktkCABkzdjC2oAiEA6+CqOczhDAVPxdEPI4oowBDMaBrqMxhjLGshcNjgAyo="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-6_1548352577054_0.5890651721942839"},"_hasShrinkwrap":false},"8.0.0-7":{"name":"react-fetch-component","version":"8.0.0-7","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"c273cb8f34e5834ca846fa8032a00599c055a3f7","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-7","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-h3NF/QBpMfzO+XhawzoLoB3LbevgnfI7GlrfmXH040QC3mtTRG8KSS8HSIVU2ix7XXGduhe10h5Kmx/f9n1lAQ==","shasum":"028d50d9aee43a48c89de0cc83e813244d34c2b0","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-7.tgz","fileCount":8,"unpackedSize":23198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSf4fCRA9TVsSAnZWagAAKXEP/iGL7mfb7jaUo4LEIFTx\na2kYnS0wFPJJc7N2q4NSJL+BoGwGGk7GXtUC+bC42Tx7QUSennXbV0a0tElo\n98I8X+gys7TlOQNZ+Ulu/60Z6HSZmajtmaRDih6jsBPL70xRWvPOcPSIy/zH\nkx/ku7lLn499WPpIMRtgcPPkHJqaVVGVOEgi1wldGy0lL1eRMQv5IHfrz/Bb\nc9AxYIQaD2J+ptbzhZmYQD5sMLTt2tlo2McnrVGQJ12CqZkJIs9xEqvNhQJR\nCG2o55ob/Hz50SH3rZb1yubO4g7vJ3IhyO137fl/XdyY6Bx96qLDFO/78bS3\n2pqoChFH0rXp2sFeyNNRltyn9SRSbKP6ZQBK+xNoEj3XDDApQmIoKG1g+vJp\n7DUkSybSuxFJg8bWOp8TtckCszFnSsDMoVRU4IjAXqSrWCR8BthLfW8U9Sna\nvQ5z3yIju+AnbVPFPTbs+gBGzpCLdSpOktlSNB3W1/tON/akbouF/35XwbFa\nNZNbMa5oNot6wAgKLsJek9Ra5dPgVcziEE0dGLhNrtNf4fc8J7Vd6pHGMh6S\n62lrlWKKjjmpos7UkpF487SRE3dU78pcELx0MJeBumqNfZnJzoGNCjx6RLv2\nome2iV4y5hY/3OKICGsOT+2gIl7zk/d3A9YONaha9NA1pgDLZ4gHX0Yij691\nyzPF\r\n=JJum\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpZEHFx5dx7gm/LFhAxvbMOOdEoHH45vTB1mIQUE0w+QIgMQ/bj/NO5dU0/8HyGUbutnrvo7wA8qVOr0qaOHmQqgs="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-7_1548353055290_0.4977110816609356"},"_hasShrinkwrap":false},"8.0.0-8":{"name":"react-fetch-component","version":"8.0.0-8","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"16d42040ff6bac8cc4de5256b5c1583e4858577a","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-8","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-8bnMOba4sI9olM0ztJuFFyDrsdu8fpcApls/0AR3evnvtEgBlYE5jNHhN2Oek90p77l7wSp++RR9yb2stiemoQ==","shasum":"c269851fec92316a05a846a3584e82420fe21136","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-8.tgz","fileCount":8,"unpackedSize":23261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUJiFCRA9TVsSAnZWagAAgtIQAIDKaoyN4uBT7ZchdxL2\nSThgyd9U2n0jp+wOLDRt9wqS/CSUl3Yo5vm65X5bXtAggYS8tQR50KaK6FWW\nGKkwimtfca7Er3cqjvFq1+4YDbz18DVEYvmKzkGngCyztyRy+nxCSdEeCxAc\naoW1RoyJ3ZDH6yfsn+dSubvN+xnO4RyTBvfUMmEdCXjgMW0UKadh1e8OQG8a\nknaA/8PH4DNag0HXGZIL5Wrz/dVPJMUumG5r0C8LmageAhwbZCxfEUW9Idav\nkr725ChrcwwX6tJSRmussK0OU8lqMHziT/u80nHzLSwBgD71TPvLvQhqkWAc\nqilP8RLklGiiZovq2YiNTXji971vFh6p9BuhPelXmfWv18LP0U7uIvyI+Z/9\nGZRoPHTLa6AG+90G/Zmj7GnzXrGk1EutXfnSRNvcoaFOl5ZKie7v2wkHFsh/\nOGhDh2NbtmFiYoFrqV3KzlmyGnwLq6TU/myv8gQ+oRIrJrYTEqol5Is9Jaek\ndf3qLSAd87coTbLgJ8z38prY5tzE3/PrPEBpAbUXCraoSE0KkQCc57eLFMPV\nsonLBnMzceBMKbPDnLsH6SW45ykXl+6nO+x4pRhPPsHh5Q7jmQqJo83RZqp1\nn8BkYSs39OJPcsw0ykdl1FEBdHPrc8XurWocQnJU2zfS6t/v1o8VO3eBodlK\nzH7z\r\n=QRpQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDik/nxnRvGZfsWo0+s68cgskeAvw+qm5GoVlA6nQXkFgIhAPY5O/QNV3xbBKYcd8z6NBHeUh0iGrx3F2u4S+hGiS0p"}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-8_1548785797240_0.05430190565069304"},"_hasShrinkwrap":false},"8.0.0-9":{"name":"react-fetch-component","version":"8.0.0-9","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.7.0-alpha.2","react-dom":"^16.7.0-alpha.2","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"9991de818f15c8b5f45b4aa049bea3ad5752cbf6","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-9","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-QPldbtfoaUSQiTfBm3F9ABan8VKzpzccUSjzEfX6zNGv3/0+/hMwoGZOxBT5LAvFw4R7tkUGMBchYm1EPdNqpg==","shasum":"1a0e6d2b681cdf1b81900201dd47e31e27c0bd6b","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-9.tgz","fileCount":8,"unpackedSize":23519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUlA0CRA9TVsSAnZWagAA0AMP/jrNtdmEg438aCZjym0T\nCl7I4rVTupPHMI6+BLwUwYqkJ5woLsMXk/9fWpej/EcAHueHcUsulWXZqeQ0\neoX4u007EZj2PAGcz9KH9HuR6C+TkdLJ+9nepNvMgu14f218ec85tBrJxY+n\nW4BO8O1KlI7DHz4Ln718iL72r3w27tZi3sucYzIu62xgA6ecN9IDepWEYNPb\nish/HL8fluShfaLsfEIOL9HA3w9NF8ZnCwe0gdQhdGTkvy1pBOjgu9llVa2L\nSNqGfiRRqwwuNpkr0gJPAgEE4VpB5eNlXs+TTsQ4o8GQXfVsVD/vDL0dzI6x\nFOunIrfTu3p19IyVUWrlXurPPie6lnC0jj5RAQIf7pfocvTTfYZjDjgwHJWB\no0QWevz97/BnedmtdK4oDkdHGGeKFTbgDBXNvqeedZxxZpyRQavzt+7fAwyl\n0qhmgSKUwLKYb3EAoV4HwS4t4B8azv4ajm4eta7CDfyIhu+6AMRq27EYTg5L\nCIYCDVuue5WY46AhFNmMWJCJEZpFmGGQ0AQMCS6zdZwRsij1rOj3IlDOWogP\nFqRWPBiYULVyFuHJ4jZy33cfc+M5s+8QO6dP9hmDr/0JMmMU0+bsRMDp0H8u\nIiHCWtOHQ0HmbrfKFEh+M2yg4KSUySiAUBoNfluLuFxibRFLiuBcMO6hymUV\nKf5Y\r\n=NaXJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnymJ/l8V6K/oLzvrfPICJWdwSbqCEPXWbujexiK/+igIgL8bIKlvjw6RFpfagvC2heXdP7arupggqJLp6gfo0kMs="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-9_1548898355998_0.6804724548950933"},"_hasShrinkwrap":false},"8.0.0-10":{"name":"react-fetch-component","version":"8.0.0-10","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"6542ece66e8198d8585b3e47e900740b87585186","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-10","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"dist":{"integrity":"sha512-sEGaEVlEQrZmy0sTxx4SNwN1mZXedHi44jX4WD5CSjcZFEouEkIR5pjq3n3PoDs86uy3ZtqM5255hPJR9clV+Q==","shasum":"4ac93e47e65a4fe759f2181efafc9199b7e7426a","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-10.tgz","fileCount":8,"unpackedSize":23609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZEJ9CRA9TVsSAnZWagAABagP/3jWZJP9nlF5QLFLfFNx\nSQvkf+mSzTWfOiQLfbAYHtY8qS5pGW+7whkhHESZf0+KpyiZQ9jr97tyxv71\nmeh18GhAd+wkXPoeofLhWGnOCE7i8Uw570kGQXJMkK5cJFKcG333TSjt9IPS\n7ofV0/a2ZkNR7DlxJAmlRxM2gG4oSFdKHd3IxaI1xy3mj4OAuhToBsh8W1ok\n4auEJXtUJuQFzlWLLj1CPxI2Lx96747jtaQLJVqKuAQonJgwpqWdZ3Ka7b8I\nxnCbgeVlvmAw9msxFmP1s+1V2yEm+eOpOAHystUvkLR/pDDGk55oOg/4t+5D\noWfIdyYEhMr0SFxGdstdDiM8muAoJjr5o+LD5+reXO5Il/rYpfrsng00DIzm\nGTRutgnWzojja68FKCNjguoFi+LbWkDwhLALJE/X1+rnSeU2OBfJ6cWSA6PL\nwlt4Ub2+G09eMbtZomGxXkpB1cK49xiJrOferihKwQpMb1USVd+qmda2+jTm\ngWdJUnQiSfp9T2tWRv0q+ud5hM9LI7/f5Tf5ZbF5T/F2Vw/7ioqf3ehFX8Ay\nm47BJZ2GnfoKHLxD9ilfDvajB0419aOyfekLf020I15rwk0NmEXigk4oDK3N\ngyfsOIH9aZn5dRuW69CHCopf3Yqjjl3+QklOhZMs9ygjd9M9PnGZ5GlJ9kIu\nSv6E\r\n=xyR6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID91rXAEyvBWV8i6uhW/Uk+WKo3DQiAyFdvcwzOp0f7gAiEAqh6CU27KRN3CvEtZg2NgABi9ITm7Oju4i3BLPXNScTY="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-10_1550074492928_0.8248590132901279"},"_hasShrinkwrap":false},"8.0.0-11":{"name":"react-fetch-component","version":"8.0.0-11","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"prettier":{"singleQuote":true},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"b2f8b27e770165f5c3e7f35203cdb3eddd23b483","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-11","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-aakDzW5fdPe3MHbJcbmziDMC6WtjLibgIpbRToAT5tmOdSRIYj/bPWUmBOATchSx0fn+3YO4tR9W4gFdrrZzbw==","shasum":"3bfd243f19853b8f25d2fc0f11e60fff7c91ed2c","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-11.tgz","fileCount":8,"unpackedSize":24038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+7o7CRA9TVsSAnZWagAAxJkP/17wY25UrJBOCk4Q8o0Z\nkAeOuLkUg2FBTolB7Mdr2pyCjo9rTmEWN0X+SZsrRdpZyLH3JxScmOmUWqZU\nGQZAtyDBdQqCzw0iqV+83O6QpoVKC//TapquR/rpKMrtedxaUopaP3EsD4+g\n/HQYJyJPUZcd62QU367PUIfZS85Gjr+gKwNp6dNXRaFR7pGmA+g8xN1VDqYe\nxu++eFQBnyGIhvFxFCe1GFFOyEAO/pOO1luGXGf4iORqJrRCCZB2l1GGIcWr\nL/hb54n35EAzVEpzcP85cW0Iozwq3erZleym9ajHPex+j1m2n+xGlU0J5UkU\n2bv7n5ROzTRusFqD0GXtoEBwwdcYdMdPC3Z/DzDEwPd03DjyW3Syk3oacJsg\niG5BhOcIjfdzqOaO/+4novVFARAXwZIOgiXQmH7avrn0sVGIEodwAgOCRZmo\nuLgfaTeCalE2Ks3A78DnlI3llVWHBjLQ7hviFhoH9Ldr4cmPgBjmZeU1EiWK\nZj13U2ZSj+fmhIjl9TZIlCcOhc/T8rf3oDYqgz7adicoZWHuhlO4XPiEcITg\nXygkQNozdkaQsqNlcBKHkadmIBcbCTfJXC/40KZSa7LaGiWzMNVOMD8udG9Z\nuVBI8X/S9F8uQn4C7roZGBWU3Kx0T68QG2kWiHhC2/rputCP58Al79XjuV5c\nS0I+\r\n=nZjb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZGh0/ucPOzbEAq+i2c6UavhHQ604gIZtq77tTpE/J4wIgHuqOubNYE6MT1i364rEt1U01Ohrzjn4tQWUFVXTMaJQ="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-11_1576778299223_0.8264115892615977"},"_hasShrinkwrap":false},"8.0.0-12":{"name":"react-fetch-component","version":"8.0.0-12","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"prettier":{"singleQuote":true},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"3257fb0d6d334bb7a47f435682fa8419f07a02b0","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-12","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-TmvPOFpwtebj/LSdfqUyUAWWka6v6SfqkxMb9sy23vgE+OGbtClG22qV/7wE7+Ot5OeXMojQR6P/5QOLvSEjeg==","shasum":"f9bf90369a722c3b1e8a382aabc5913c8794fb02","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-12.tgz","fileCount":8,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeK0PYCRA9TVsSAnZWagAA0jwP/RA/Q3FK0vc04p2YzmEZ\n4sYefozwy2v6lq7W0Zj18sf3jZR/+PidWPc+sOpZO0G43CCm5meUuC3mj/Vf\nd5uJRQrGr+/guhiFsPFaD3Rse9ooT9Vi5DldbulkUBHgZqI4e9Oc8gbSo4nv\ntF1MWWg3Jwc+11xp3hMiOfrBsgSrtGxKAY9rPwH2lft2mSKRq8j4HCTusYkX\nljqyqaCOy+emo7vhmtphetKefemYkYHbeeyWmThzNSgT0oRpnW7dYXOZedGQ\nnRMy6jRoVYpoWcG4VnoZGp3QtVZa7BMrs5x2XSZTVkpI5WXWkZRJUGMUphy6\nVl9GO93hpe+aduohkF2L+qwCcLjkU1TVjXeuP3wwRkJWCbQH3nAtlXL1crUO\no3XDRWEa3UC3QC7SWlMWDFd84fiANNADJGgijhkAE1gKuZ/jKWRVdyLzMuSk\nyg2i9Wy7rOqnt6vxYdjGZOQTU9KjEwu8mrGKLxHoKXDqt4/cMywHFjDsLiIf\noTvUPdXFDlrbSXY5vEChTHGDrHGbI0c/KM4jwcLOTyWqwqQbKX5c2FdGZFin\nILgL5JwiZiLGD+h1SZuXzdn8Xq9xo8ihBMm/mfDnGEv0TWxgB3RC3zOlTkwA\nNpkPgYhOb4MoHYAana9t4SmxMhglwXecgu+vUejaAWdmoWVyUH+cOGJl4csr\nJQ/L\r\n=iru8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwevnh/uTQtLV4xHviyQ7ZePXQSs9HhPORCPVxfEcQagIgLZ0xq+KiWDaxtjNYtdx6Fn1S2uhg2JdB3zLn4cgIFeU="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-12_1579893719577_0.35717979076064577"},"_hasShrinkwrap":false},"8.0.0-13":{"name":"react-fetch-component","version":"8.0.0-13","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/techniq/react-fetch-component.git"},"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-jest":"^23.0.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-preset-env":"^1.7.0","fetch-mock":"^6.4.4","jest":"^23.0.1","node-fetch":"^2.3.0","react":"^16.8.1","react-dom":"^16.8.1","react-testing-library":"^3.1.7"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"test":"jest","test-watch":"jest --watch","build":"NODE_ENV=production babel src -d dist --ignore test.js","preversion":"npm run build"},"jest":{"setupFiles":["<rootDir>/config/testSetup.js"]},"prettier":{"singleQuote":true},"dependencies":{},"typings":"index.d.ts","readme":"# react-fetch-component [![CircleCI](https://circleci.com/gh/techniq/react-fetch-component.svg?style=svg)](https://circleci.com/gh/techniq/react-fetch-component)\n\nReact component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data\n\n## Install\n\n```\nyarn add react-fetch-component\n```\n\nor\n\n```\nnpm install --save react-fetch-component\n```\n\n## Usage\n\nYou supply a single function as a child of `<Fetch />` which receives a single argument as an object. The function will be called anytime the state of the fetch request changes (for example, before a request has been made, while the request is in flight, and after the request returned a response).\n\nWhile you can pass a single property to the function (for example, `(fetchProps) => ...`), it is common to instead use object destructuring to peel off the properties on the object you plan to use.\n\nAn example of destructing and using the most common properties `loading`, `error`, and `data`.\n\n```js\n<Fetch url=\"someUrl\">\n  {({ loading, error, data }) => (\n    <div>\n      {loading &&\n        {\n          /* handle loading here */\n        }}\n      {error &&\n        {\n          /* handle error here */\n        }}\n      {data &&\n        {\n          /* handle data here */\n        }}\n    </div>\n  )}\n</Fetch>\n```\n\nYou can also use React's context via `<Fetch.Consumer>` for accessing the state in a deep tree (or to create components based on state)\n\n```js\nconst Loading = () => <Fetch.Consumer>{({ loading }) => loading ? <MySpinner /> : null}</Fetch.Consumer>\nconst Error = () => <Fetch.Consumer>{({ error }) => error ? <MyError error={error} /> : null}</Fetch.Consumer>\n\n<Fetch url=\"someUrl\">\n  <div>\n    <div>\n      <div>\n        <Loading />\n        <Error />\n        <Fetch.Consumer>\n          {({ data }) => <div>{ data ? /* handle data here */ : null}</div>}\n        </Fetch.Consumer>\n      </div>\n    </div>\n  </div>\n</Fetch>\n```\n\n## Props\n\n- `url` (string) - address of the request. Initial fetch will only be created when it's a non-empty string. You can initially set this to `undefined`, `false`, or an empty string to delay the fetch to a later render.\n- `options` (object|function) - request options such as `method`, `headers`, `credentials`, etc. If passed as a function, it will not be evaluated until the request is sent, which is useful when calling expensive methods like `JSON.stringify` for `options.body` for example.\n  - see [Request properties](https://developer.mozilla.org/en-US/docs/Web/API/Request#Properties) for all available options.\n- `as` - declare how to handle the response body\n  - default: `auto` (will attempt to parse body based on `Content-Type` header)\n  - can either be a string for any of the [body methods](https://developer.mozilla.org/en-US/docs/Web/API/Body#Methods) including:\n    - `arrayBuffer`\n    - `blob`\n    - `formData`\n    - `json`\n    - `text`\n  - or a `function` that takes in the `response` and returns a `Promise`. For example `<Fetch as={res => res.text()} />`\n  - or an `object` that maps the `Content-Type` of the response to a function that takes in the `response` and returns a `Promise`. For example `<Fetch as={{ 'application/json': res => JSON.parse(res.text(), customReviver)}} />`. `html`, `json`, `xml`, and `other` are also available for simplification.\n- `cache` (boolean|object)\n  - If set, will cache responses by `url` and return values from cache for matches urls without issues another request. Useful for typeahead features, etc.\n  - If `true`, will use an instance of `SimpleCache` per component instance\n  - Can supply an instance with `get(url)` and `set(url, promise)` methods. Passing an instance of `SimpleCache` allows for multiple instances to share the same (simple) cache\n  - Other implementations of a cache can be supplied for more control (LRU, persist to local/sessionStorage, etc)\n  - default: `false`\n- `manual` (boolean) - If `true`, requires calling `fetch` explicitly to initiate requests. Useful for better control of POST/PUT/PATCH requests.\n  - default: `false`\n- `onDataChange` (function) - Function called only when data is changed. It is called before `onChange`, and if a result is returned (i.e. not `undefined`), this value will be used as `data` passed to `onChange` and the child function instead of the original data. `onDataChange` also receives the current data as the second parameter, which allows for concatenating data (ex. infinity scroll).\n- `onChange` (function) - Function called with same props as child function. Useful to call `setState` (or dispatch a redux action) since this is not allowed within `render`. `onChange` will always be called even if `<Fetch />` component has been unmounted.\n  - default: `undefined`\n- `fetchFunction` (function) - Specify own fetch function. Useful to debounce fetch requests (although probably best to debounce outside of `<Fetch />` so not call unneccessary renders)\n  - default: `window.fetch`\n\n## Object properties passed to child function\n\n- `loading`\n  - Set to `true` while request is in flight\n  - Set to `false` once response has returned\n  - Set to `null` when `manual={true}` before `fetch()` is called\n- `error`\n  - Is `undefined` while request is pending\n  - Will be set to the parsed response body (`json` by default) if `!response.ok` (i.e. status < 200 || status >= 300)\n  - Will be set to an `Error` instance if thrown during the request (ex. CORS issue) or if thrown while attemping to parse the response body, such as returning text/html when `json` was expected (which is the default parser)\n  - Will remain `undefined` if neither of the previous occur\n- `data`\n  - Is `undefined` while request is pending\n  - Set to parsed response body (`json` by default) unless one of the `error` conditions occur\n- `request`\n  - Set to an object containing the props passed to the component (`url`, `options`, etc) when request is sent.\n  - Added for convenience when `<Fetch />` is wrapped by your own data component (ex. `<UserData />`)\n- `response`\n  - Set to the [response](https://developer.mozilla.org/en-US/docs/Web/API/Response) of the `fetch` call\n  - Useful to check the status code/text, headers, etc\n- `fetch`\n  - Function that can be called to create a new fetch request (useful when last request had an error or you want to manually refresh the data (see `manual` prop))\n  - The first 2 parameters match `window.fetch` (`url`, `options`). A third parameter (`updateOptions`) is available to pass options to the update phase (where `onChange`, `onDataChange`, and the child render function is called). Currently only 1 option is available (`ignorePreviousData`) which passes `undefined` as the current data (second parameter) to `onDataChange`, which is useful when using `onDataChange` to concatenate data across requests (ie. infinite loading) and the query changes\n- `clearData`\n\n  - Function to clear data state.\n\n## Examples\n\n### Include credentials\n\n```js\n<Fetch url=\"someUrl\" options={{ credentials: 'include' }}>\n  {/* ... */}\n</Fetch>\n```\n\nMore interactive examples on [CodeSandbox](https://codesandbox.io/s/Z6R7OrOgQ)\n\n## See also\n\n- [react-odata](https://github.com/techniq/react-odata) - uses `<Fetch />` for OData endpoints\n","readmeFilename":"README.md","gitHead":"9cfa5c933a491b02de51f63da8117886aa23db7a","description":"React component to declaratively [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) data","bugs":{"url":"https://github.com/techniq/react-fetch-component/issues"},"homepage":"https://github.com/techniq/react-fetch-component#readme","_id":"react-fetch-component@8.0.0-13","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-L+K52jIJeTWYT2bCG1Bk+lrTdG3tRuEF16r70k58l2z+Ibo4Ar5qYQTgcwT9Aig7Ut45PeMRnjcsYVAOmFuojg==","shasum":"a50db191764b105b63edfb310ab67c18212b246c","tarball":"https://registry.npmjs.org/react-fetch-component/-/react-fetch-component-8.0.0-13.tgz","fileCount":8,"unpackedSize":24059,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebSy1CRA9TVsSAnZWagAACmsP/1S9B18wTZKGLZyEICcz\nVtD9ppAEsg2CnKlt1xk3ta+CzJXttmpFQ5HgIkdrW44HQlCJv5XQNLB5FcHQ\nkm5Yk/Lg9tkGD1eaoD2GRRQ27A97SprTWZj4veGrACP6yQi/yIgymwnAzafd\nu9ffty4QhJt19Mq9jMZ+TSAV10z/0E301YVsV52kuC8lYC1o99xlhWC8o4j1\n8CAWB8Qnf8oHVqu3jiwBz0mfc+vPO5h/W/q2R2n8ubJ0EmEQ8K2ICSv2yM7O\nP0E+WLEXc1ELaOZIOSrm0uX3A4WQxVXYh6ttvT9mHUyb3Sk0OaxgfFQItq1B\nel0fQ/03nbIPYE1dBPjsCxBUDINjFcrokni3+kr2OV8J1zJF1hhPyPX1pxbI\n6Pmjy/dl0BAMt02X2xDdQNZuKGTJp0J3frfENbtVupL0uDj02BOARG/xQbTT\npar9PDEPeGXiS/MCJaeIXZQB90JL0tazxx9dzDzoOudIcJUdE5QrijRlv5QG\nuddE2U9/0lp4TRwDwnMgeBQqpuLSqbxLBWsoim+gESLKQdPqgbSPljWu0Z9I\nC2AHt2N4ux4yYiahz+QwdzeaakmS8zm658pIDjL5EcTg4L64R22BBzTRg14G\ns60+R6TMHMXvYa8seqBF9O1RI3bqClLL0E4oKC++k0JpnOO04HEeH3k9SlRc\ne7ty\r\n=3dmm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFww7zJ4Ro01Es+AH8HgxyWqOw+M/N+wJO89+QexD5eqAiEA5/IwgqrnqXXrh0+tgAKdmJOdeU56Cepw1kbGixRoMvI="}]},"maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"_npmUser":{"name":"techniq","email":"techniq35@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-fetch-component_8.0.0-13_1584213172599_0.37045341359326445"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"name":"techniq","email":"techniq35@gmail.com"}],"time":{"modified":"2022-06-25T21:29:39.827Z","created":"2017-02-05T18:59:50.873Z","0.1.0":"2017-02-05T18:59:50.873Z","0.2.0":"2017-02-06T21:03:11.994Z","0.2.1":"2017-02-06T22:14:21.112Z","0.3.0":"2017-02-09T04:57:55.924Z","0.3.1":"2017-02-24T18:58:00.280Z","0.4.0":"2017-03-07T03:00:23.074Z","0.5.0":"2017-03-09T19:28:29.393Z","1.0.0":"2017-03-10T16:16:14.656Z","1.0.1":"2017-03-11T03:43:52.969Z","1.0.2":"2017-03-28T01:26:48.099Z","2.0.0":"2017-04-03T18:18:33.982Z","2.1.0":"2017-04-06T04:47:00.986Z","2.2.0":"2017-04-06T05:14:41.243Z","2.3.0":"2017-04-12T01:01:42.667Z","2.4.0":"2017-04-15T03:31:04.745Z","2.5.0":"2017-04-19T05:34:48.060Z","2.5.1":"2017-05-01T17:52:33.137Z","2.6.0":"2017-06-29T19:56:24.760Z","3.0.0":"2017-07-16T04:45:54.469Z","4.0.0-0":"2017-07-27T00:21:07.231Z","4.0.0":"2017-09-01T01:47:23.537Z","4.1.0":"2017-09-26T13:57:53.361Z","4.1.1":"2017-09-26T15:58:32.738Z","4.1.2":"2017-09-27T03:30:53.436Z","4.1.3":"2017-09-28T02:25:32.406Z","4.2.0":"2017-09-28T03:08:20.087Z","5.0.0":"2017-09-30T02:26:57.078Z","5.1.0":"2017-11-02T16:37:45.997Z","5.1.1":"2017-11-08T20:21:56.192Z","5.1.2":"2017-11-08T20:34:06.827Z","5.1.3":"2018-03-27T03:12:30.098Z","5.1.4":"2018-03-27T03:30:23.298Z","5.2.0":"2018-03-27T16:07:15.716Z","5.2.1":"2018-03-28T19:33:30.100Z","5.3.0":"2018-04-06T20:13:57.152Z","5.4.0":"2018-04-10T14:26:32.772Z","5.4.1":"2018-04-10T14:34:26.589Z","6.0.0":"2018-05-01T15:01:47.405Z","6.0.1":"2018-05-11T20:26:32.449Z","6.0.2":"2018-08-09T12:35:30.523Z","6.0.3":"2018-08-14T03:02:58.873Z","6.1.0":"2018-08-28T00:58:55.581Z","7.0.0":"2018-10-03T01:48:47.593Z","7.0.1":"2018-11-07T13:40:48.736Z","8.0.0-0":"2018-12-06T00:08:59.820Z","8.0.0-1":"2018-12-06T01:21:52.307Z","8.0.0-2":"2018-12-12T16:30:30.789Z","8.0.0-3":"2018-12-13T16:31:54.191Z","8.0.0-4":"2018-12-19T20:58:46.042Z","8.0.0-5":"2018-12-19T21:09:31.066Z","8.0.0-6":"2019-01-24T17:56:17.213Z","8.0.0-7":"2019-01-24T18:04:15.404Z","8.0.0-8":"2019-01-29T18:16:37.426Z","8.0.0-9":"2019-01-31T01:32:36.152Z","8.0.0-10":"2019-02-13T16:14:53.031Z","8.0.0-11":"2019-12-19T17:58:19.335Z","8.0.0-12":"2020-01-24T19:21:59.730Z","8.0.0-13":"2020-03-14T19:12:52.703Z"},"readmeFilename":"","author":{"name":"Sean Lynch","email":"techniq35@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/techniq/react-fetch-component.git"}}