{"_id":"@alesmenzel/error-boundary","_rev":"2-191841cb4bb6654bdb823af5c7cbb6e2","name":"@alesmenzel/error-boundary","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alesmenzel/error-boundary","version":"1.0.0","description":"React Error Boundary Component","license":"MIT","main":"./dist/error-boundary.js","types":"./dist/types/index.d.ts","author":{"name":"Aleš Menzel","email":"alesmenzel@gmail.com","url":"https://github.com/alesmenzel"},"scripts":{"clean":"rm -rf dist","build":"rollup --config rollup.config.js && tsc --emitDeclarationOnly --project tsconfig.json","cb":"run-s clean build","lint":"eslint .","format":"eslint --fix .","test":"run-s lint types","types":"tsc --noEmit --project tsconfig.json","prepublishOnly":"npm run test"},"engines":{"node":">=12.0.0","npm":">=6.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/alesmenzel/reactivex.git"},"peerDependencies":{"react":">=16"},"devDependencies":{"@babel/core":"^7.12.13","@babel/eslint-plugin":"^7.12.13","@babel/plugin-proposal-class-properties":"^7.12.13","@babel/plugin-transform-runtime":"^7.12.15","@babel/preset-env":"^7.12.13","@babel/preset-typescript":"^7.12.13","@babel/runtime":"^7.12.13","@babel/runtime-corejs3":"^7.12.13","@rollup/plugin-json":"^4.1.0","@types/debug":"^4.1.5","@types/jest":"^26.0.20","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/rollup-plugin-progress":"^1.1.0","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","core-js":"^3.8.3","eslint":"^7.19.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^7.2.0","eslint-import-resolver-typescript":"^2.2.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.3","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.3.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.22.0","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-unicorn":"^27.0.0","jest":"^26.6.3","npm-run-all":"^4.1.5","prettier":"^2.2.1","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.38.5","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-progress":"^1.1.2","rollup-plugin-terser":"^7.0.0","tslib":"^2.1.0","typescript":"^4.1.3"},"gitHead":"7221fd8b60b6eb145a55c7aded00a9600959b815","bugs":{"url":"https://github.com/alesmenzel/reactivex/issues"},"homepage":"https://github.com/alesmenzel/reactivex#readme","_id":"@alesmenzel/error-boundary@1.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Y4mLI31To08tr1iztpfPUf0u8IDFj/qtKh2pHzTn+ve4pBnsEH6G9qgr9i248QzHOxRESh2SDFQceMey0T8CKg==","shasum":"d8d3b37877b5652fd133c3cadf85edbe42982241","tarball":"https://registry.npmjs.org/@alesmenzel/error-boundary/-/error-boundary-1.0.0.tgz","fileCount":6,"unpackedSize":6279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKscUCRA9TVsSAnZWagAAbS0P/RouK2x3x5zjNw0hxDsa\ndb3GmZkeQlu3hZqpUxlhifOxgn9cE042vy5h7imUfPc2ku2g18UQCpK00o54\nmHQutU+Usf2niEc4MC4xj0624vTx92eFEbiTN4gSMfbORinwhKDAqe62LSmr\n5cMTgOJNe0Hr908JqJmaufH2Y8lKtVtPhsP49xU6R+Bhk046TSITdHraEMcC\nrlLygfI8mt/H2uAY1EJBEShdrLlI9K86cNlY8WDR7nNVzQFRv7qutw1Eye04\nwxekBVjarQbO7E0n8W/hI8YJWVPMoKtqVEQ/sQzLyAKqzkmN9/vDZz208RVi\nu/WBB7/I9zLRHLyMtC91mTCy33YSlZCjLaiZAioNxLXwV0NuYdSmIoX9QUDh\nPW1KO2R5jwiLeUNK7ftHeZ1PaisPo3pnPy3B0jlEG49u4zH3WKbLXAxhQlqq\nDk3+Q6227rLjl8WabjAl+rEsyv+BKP+f2kN1orn/cXdeIXuq7TxRVO5pJqB+\nd0N0mHaFjzvrMqffSQnHNrXXU4mZSBRuDKJDdhgaP/eEdCCSAGKZRpMdXzTJ\nI5pS1/llFvOeCVKZncxGYus+Vd4DW4P5GfHNlqkQmEPRzmPu5x9BjBc+dgNc\nRs16VGopRUe0i1byV+8K7EYobOjWC1RU6QAy/equP2uDZuzATgMQWGLo/sqH\nNT0I\r\n=waBG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhESWX7BLgFnxzPjg4ujnVSQRimuMOhrCBhhC9NXgSdAiAHo7Hvby/RH8fcyPDfIflcwjKcDsqC4jlXNEuOuLbvRQ=="}]},"_npmUser":{"name":"alesmenzel","email":"alesmenzel@gmail.com"},"directories":{},"maintainers":[{"name":"alesmenzel","email":"alesmenzel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/error-boundary_1.0.0_1613416211711_0.29291168536137646"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alesmenzel/error-boundary","version":"1.0.1","description":"React Error Boundary Component","license":"MIT","main":"./dist/error-boundary.js","types":"./dist/types/index.d.ts","author":{"name":"Aleš Menzel","email":"alesmenzel@gmail.com","url":"https://github.com/alesmenzel"},"scripts":{"clean":"rm -rf dist","build":"rollup --config rollup.config.js && tsc --emitDeclarationOnly --project tsconfig.json","cb":"run-s clean build","lint":"eslint .","format":"eslint --fix .","test":"run-s lint types","types":"tsc --noEmit --project tsconfig.json","prepublishOnly":"npm run test && npm run cb"},"engines":{"node":">=12.0.0","npm":">=6.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/alesmenzel/reactivex.git"},"peerDependencies":{"react":">=16"},"devDependencies":{"@babel/core":"^7.12.13","@babel/eslint-plugin":"^7.12.13","@babel/plugin-proposal-class-properties":"^7.12.13","@babel/plugin-transform-runtime":"^7.12.15","@babel/preset-env":"^7.12.13","@babel/preset-typescript":"^7.12.13","@babel/runtime":"^7.12.13","@babel/runtime-corejs3":"^7.12.13","@rollup/plugin-json":"^4.1.0","@types/debug":"^4.1.5","@types/jest":"^26.0.20","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/rollup-plugin-progress":"^1.1.0","@typescript-eslint/eslint-plugin":"^4.15.0","@typescript-eslint/parser":"^4.15.0","core-js":"^3.8.3","eslint":"^7.19.0","eslint-config-airbnb":"^18.2.1","eslint-config-prettier":"^7.2.0","eslint-import-resolver-typescript":"^2.2.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"^24.1.3","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.3.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.22.0","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-unicorn":"^27.0.0","jest":"^26.6.3","npm-run-all":"^4.1.5","prettier":"^2.2.1","react":"^17.0.1","react-dom":"^17.0.1","rollup":"^2.38.5","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-progress":"^1.1.2","rollup-plugin-terser":"^7.0.0","tslib":"^2.1.0","typescript":"^4.1.3"},"gitHead":"46dc69539d8528311d725f3969c2f21f1dd17ce9","bugs":{"url":"https://github.com/alesmenzel/reactivex/issues"},"homepage":"https://github.com/alesmenzel/reactivex#readme","_id":"@alesmenzel/error-boundary@1.0.1","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-/1vsHzmrMQxtgw6srLfkHHHac9xyJuftXL/Rm6SDNsBWSyA2G1hZmmyDiSJb0FZU+KIxo6Qd6DMWU8Uu5dp9XA==","shasum":"470643b252e1923c6756155e42befb60077dff71","tarball":"https://registry.npmjs.org/@alesmenzel/error-boundary/-/error-boundary-1.0.1.tgz","fileCount":8,"unpackedSize":7044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKspdCRA9TVsSAnZWagAAoAkP/2PMVso8ppUu73jDMDTs\nyBozGCHXQL2smv+kAVl8XVRqR6wmnP76lOnUO2mClBf/VPOUydjxXy3CxSZz\nnCPSg5POaV1B9JgZPH69S3ya95A+4hBPwCO2P8ZqXBGT8QGqFRI23iJyeL/N\nvL1KUDLbIqhDr/6EkdlJNkifb2PCfw2sJfK0pNj+yaF1tDWxDEOQ0PZImNe+\nXwg7mGLkAovUJjE7jNGc4xuHvmguGrA0mZ/sApM0brRVxgIrcVGIzMLRHeVT\naRpvgeYqEBxXVkaSM0EMzTwLddLoBWSlzIew+GuVZXw1dPonr89bwYtIEsyz\nUfD9s2I9h19ER3X1zmfDs0bUnSWSM3UsrlNfLVnKZHYVFFfVzmCDxcADj+ic\naDN99i466BGFBAgy1I0efOOFkJHGW4/fcqHGpvPxWn0rK9NwEvGaL35Pl6c1\nRMXpFq5cFljoBx67efmxxr1wJGlQtU12omweOiazsqA+s8OpUHpfDHzpR/h0\n6Na6FzqSjAv3bYo9lvlqF8ToJz11auxP95XZDBnEMrn/UdLxnrvmBeWEoLdY\nUJ8ZMQnwhANVkkXoHb4AM5OKJEA2BTmtcyNgyJ4U5lYac4LTNsxW4zRkUMN1\njRY45oFlVbSt0ngmpZt3HXU2vLQCnXYLbgqGf7Kd3d6b0ycaO1oZIOfy9ovO\nYtlm\r\n=SsX4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1mg9XjXZeqZAvpQW6oGGDw3PG8xTnWjJtF04BoBZ+RAiATbRxpJwRUIgg9RwAoj4YrZO/8Sldpt2f1bQBoH9rt8A=="}]},"_npmUser":{"name":"alesmenzel","email":"alesmenzel@gmail.com"},"directories":{},"maintainers":[{"name":"alesmenzel","email":"alesmenzel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/error-boundary_1.0.1_1613417052710_0.5890052806504873"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-15T19:10:11.666Z","1.0.0":"2021-02-15T19:10:11.852Z","modified":"2022-04-04T12:37:50.646Z","1.0.1":"2021-02-15T19:24:12.880Z"},"maintainers":[{"name":"alesmenzel","email":"alesmenzel@gmail.com"}],"description":"React Error Boundary Component","homepage":"https://github.com/alesmenzel/reactivex#readme","repository":{"type":"git","url":"git+ssh://git@github.com/alesmenzel/reactivex.git"},"author":{"name":"Aleš Menzel","email":"alesmenzel@gmail.com","url":"https://github.com/alesmenzel"},"bugs":{"url":"https://github.com/alesmenzel/reactivex/issues"},"license":"MIT","readme":"# Error Boundary\n\nSimple implementation of [React's Error Boundary](https://reactjs.org/docs/error-boundaries.html).\n\n## Installation\n\n```bash\nnpm install @alesmenzel/error-boundary\n```\n\n## Usage\n\n```js\nfunction App({ name }) {\n  return (\n    <ErrorBoundary\n      onError={(error, info) => /* optionally, send to your favourite logger */ }\n      fallback={({error, retry}) => <NoAvatar />}\n      // or\n      fallback={<NoAvatar />}\n    >\n      <Avatar name={name}/>\n    </ErrorBoundary>\n  )\n}\n```\n","readmeFilename":"README.md"}