{"_id":"@putout/plugin-try-catch","_rev":"4159085","name":"@putout/plugin-try-catch","description":"🐊Putout plugin adds ability to apply try-catch","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:34:03.000Z","created":"2022-03-07T11:45:57.821Z","8.0.0":"2026-02-28T18:43:28.042Z","7.0.0":"2025-12-31T11:35:44.855Z","6.1.0":"2025-11-26T13:05:49.491Z","6.0.0":"2025-05-04T21:07:51.693Z","5.0.0":"2025-03-26T21:41:51.166Z","4.0.0":"2024-08-21T07:01:24.930Z","3.0.0":"2023-07-15T12:02:34.191Z","2.0.0":"2023-03-10T11:33:00.520Z","1.3.0":"2022-06-25T19:59:03.365Z","1.2.0":"2022-06-21T19:32:08.943Z","1.1.0":"2022-04-09T18:09:12.937Z","1.0.1":"2022-03-07T11:56:29.691Z","1.0.0":"2022-03-07T11:45:57.821Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"8.0.0":{"name":"@putout/plugin-try-catch","version":"8.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@8.0.0","gitHead":"942b0c5a771c2f8a155a3087a145f782ec185702","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.4.2","dist":{"shasum":"e211bdbe9ee732f035e96d879c3aea4ff5bf5fb2","size":4199,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-8.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-try-catch_8.0.0_1772304207852_0.35342461331543995"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-28T18:43:28.042Z","publish_time":1772304208042,"_source_registry_name":"default","_cnpm_publish_time":1772304208042},"7.0.0":{"name":"@putout/plugin-try-catch","version":"7.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@7.0.0","gitHead":"f3409c1756f3d7adcfb3ea0c377c530857877eb4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"18bfa68407bb1d023458c938ca705927061133e8","size":4163,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-7.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-try-catch_7.0.0_1767180944709_0.2751746191010971"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-31T11:35:44.855Z","publish_time":1767180944855,"_source_registry_name":"default","_cnpm_publish_time":1767180944855},"6.1.0":{"name":"@putout/plugin-try-catch","version":"6.1.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^14.0.0","c8":"^10.0.0","eslint":"v10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^28.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@6.1.0","gitHead":"5b6a88f27d3eb5935a340fb69033a5aaf8c149a9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"7754a75b16accddcbc429baf97060676ba9429b7","size":3811,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-6.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-try-catch_6.1.0_1764162349312_0.9944013710305213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-26T13:05:49.491Z","publish_time":1764162349491,"_source_registry_name":"default","_cnpm_publish_time":1764162349491},"6.0.0":{"name":"@putout/plugin-try-catch","version":"6.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@6.0.0","gitHead":"aff88018b81c1dd1cf5d5aba84041ced4a91bf8f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.15.0","_npmVersion":"11.1.0","dist":{"shasum":"1129cb7c8b66705799bc64e2ef14ea1213dca3d7","size":3779,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-6.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-try-catch_6.0.0_1746392871466_0.8703887226825926"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-04T21:07:51.693Z","publish_time":1746392871693,"_source_registry_name":"default","_cnpm_publish_time":1746392871693},"5.0.0":{"name":"@putout/plugin-try-catch","version":"5.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=39"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@5.0.0","gitHead":"774395853e5282b18963187d2de8d638a05221fa","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"shasum":"4b3f537963cdd8a67d08892eadf17381c32bb2a5","size":3749,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-5.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-try-catch_5.0.0_1743025310803_0.987510516204887"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-26T21:41:51.166Z","publish_time":1743025311166,"_source_registry_name":"default","_cnpm_publish_time":1743025311166},"4.0.0":{"name":"@putout/plugin-try-catch","version":"4.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-try-catch@4.0.0","gitHead":"1634b7d6b69b1f2632c6b24199c4dba9e4fa5146","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.16.0","_npmVersion":"10.8.2","dist":{"shasum":"27f111ebfc1e632091ac7d4d3d7da91f07eb7bfb","size":3705,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-4.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_4.0.0_1724223684769_0.5474229133310013"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-21T07:01:24.930Z","publish_time":1724223684930,"_source_registry_name":"default","_cnpm_publish_time":1724223684930},"3.0.0":{"name":"@putout/plugin-try-catch","version":"3.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^18.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=30"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"feb064663e3155d02ac99999c1d499c52b409684","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@3.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.6.6","dist":{"shasum":"466f2929a0a517cb10b2cff994c38bf052c528f3","size":3675,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-3.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_3.0.0_1689422553992_0.6074397989510931"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-15T12:02:34.191Z","publish_time":1689422554191,"_source_registry_name":"default","_cnpm_publish_time":1689422554191},"2.0.0":{"name":"@putout/plugin-try-catch","version":"2.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"3f9de6a80bb2d6501cb5c44a68d2a74409d8e36b","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@2.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"660a6903b46afb99ad595c6ddfbb76a4bf45e419","size":3687,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_2.0.0_1678447980356_0.6052689622120893"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-10T11:33:00.520Z","publish_time":1678447980520,"_cnpm_publish_time":1678447980520},"1.3.0":{"name":"@putout/plugin-try-catch","version":"1.3.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","lerna":"^5.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"ed40b9d43a0e46984cc06aaa923f87ce76de31c0","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@1.3.0","_nodeVersion":"18.4.0","_npmVersion":"8.3.0","dist":{"shasum":"34dad5d6f9a34a18bdbc4300d6e6b5ef8a5eda7a","size":3698,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-1.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_1.3.0_1656187143217_0.7858329809496629"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-25T19:59:08.739Z","publish_time":1656187143365,"_cnpm_publish_time":1656187143365},"1.2.0":{"name":"@putout/plugin-try-catch","version":"1.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","lerna":"^5.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"92330a3616d861aacf8b2b056cc17ac031c4eaae","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@1.2.0","_nodeVersion":"18.4.0","_npmVersion":"8.3.0","dist":{"shasum":"9b8249ae057785b2774eccee096ca4283166ae18","size":3691,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-1.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_1.2.0_1655839928803_0.594102693412359"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-21T20:11:04.254Z","publish_time":1655839928943,"_cnpm_publish_time":1655839928943},"1.1.0":{"name":"@putout/plugin-try-catch","version":"1.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"9e28a2169cb1bfca084a93e11ed0425ad59e1711","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"a0d51bd8154794b364e3feee469eee9331b9b8cd","size":3665,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-1.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_1.1.0_1649527752791_0.3710084531311708"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-09T18:09:37.797Z","publish_time":1649527752937,"_cnpm_publish_time":1649527752937},"1.0.1":{"name":"@putout/plugin-try-catch","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"937ee176fe2c13e7e56f428d828c9fe04f475a06","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@1.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.0","dist":{"shasum":"4cd40c866c61a401ec4fe884b0542a026b1433b9","size":3458,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_1.0.1_1646654189542_0.2668460751668198"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-07T11:57:05.312Z","publish_time":1646654189691,"_cnpm_publish_time":1646654189691},"1.0.0":{"name":"@putout/plugin-try-catch","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to apply try-catch","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-try-catch#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","plugin","try-catch","try-to-catch"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"937ee176fe2c13e7e56f428d828c9fe04f475a06","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-try-catch@1.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.0","dist":{"shasum":"fbf200ec38c27eba6ab8373fc43bdf837c04de2b","size":3468,"noattachment":false,"key":"/@putout/plugin-try-catch/-/@putout/plugin-try-catch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-try-catch/download/@putout/plugin-try-catch-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-try-catch_1.0.0_1646653557647_0.09121977592515873"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-07T11:46:04.998Z","publish_time":1646653557821,"_cnpm_publish_time":1646653557821}},"readme":"# @putout/plugin-try-catch [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-try-catch.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-try-catch \"npm\"\n\n> The `try...catch` statement marks a `try` block and a `catch` block. If the code in the `try` block throws an exception then the code in the `catch` block will be executed.\n>\n> (c) MDN\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds support of:\n\n- ✅ [try-catch](https://github.com/coderaiser/try-catch)\n- ✅ [try-to-catch](https://github.com/coderaiser/try-to-catch)\n\nWhich are drastically simplifies [`try...catch`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch) blocks.\n\n## Install\n\n```\nnpm i @putout/plugin-try-catch\n```\n\n## Rules\n\n- ✅ [await](#await);\n- ✅ [args](#args);\n- ✅ [apply-destructuring](#apply-destructuring);\n- ✅ [declare](#declare);\n- ✅ [expand-arguments](#expand-args);\n- ✅ [sync](#sync);\n- ✅ [async](#async);\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"try-catch/await\": \"on\",\n        \"try-catch/args\": \"on\",\n        \"try-catch/apply-destructuring\": \"on\",\n        \"try-catch/declare\": \"on\",\n        \"try-catch/expand-arguments\": \"on\",\n        \"try-catch/sync\": \"on\",\n        \"try-catch/async\": \"on\"\n    }\n}\n```\n\n## sync\n\n### ❌ Example of incorrect code\n\n```js\ntry {\n    log('hello');\n} catch(error) {}\n```\n\n### ✅ Example of correct code\n\n```js\nimport {tryCatch} from 'try-catch';\n\nconst [error] = tryCatch(log, 'hello');\n```\n\n## async\n\n### ❌ Example of incorrect code\n\n```js\ntry {\n    await send('hello');\n} catch(error) {}\n```\n\n### ✅ Example of correct code\n\n```js\nimport {tryToCatch} from 'try-catch';\n\nconst [error] = await tryToCatch(send, 'hello');\n```\n\n## await\n\n### ❌ Example of incorrect code\n\n```js\nawait tryCatch(a, b);\ntryToCatch(a, b);\n```\n\n### ✅ Example of correct code\n\n```js\nawait tryToCatch(a, b);\n```\n\n## args\n\n### ❌ Example of incorrect code\n\n```js\ntryCatch(send('hello'));\n```\n\n### ✅ Example of correct code\n\n```js\ntryCatch(send, 'hello');\n```\n\n## apply-destructuring\n\nCheckout in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/3356a8971b6ef8dcc7f35d09f0670576/6690425625bfa8df47db2e9afdd3e7490e15c6c0).\n\n### ❌ Example of incorrect code\n\n```js\nimport {tryCatch} from 'try-catch';\nimport {tryToCatch} from 'try-to-catch';\n```\n\n### ✅ Example of correct code\n\n```js\nimport {tryCatch} from 'try-catch';\nimport {tryToCatch} from 'try-to-catch';\n```\n\n## declare\n\n### ❌ Example of incorrect code\n\n```js\nconst [error] = tryCatch(fs.readFileSync, 'hello.txt');\n```\n\n### ✅ Example of correct code\n\n```js\nimport {tryCatch} from 'try-catch';\n\nconst [error] = tryCatch(fs.readFileSync, 'hello.txt');\n```\n\n## expand-args\n\n### ❌ Example of incorrect code\n\n```js\nimport {tryCatch} from 'try-catch';\n\ntest('some message', (t) => {\n    const fn = () => copymitter('/hello');\n    const [error] = tryCatch(fn);\n    \n    t.equal(error.message, 'to should be a string!');\n    t.end();\n});\n```\n\n### ✅ Example of correct code\n\n```js\nimport {tryCatch} from 'try-catch';\n\ntest('some message', (t) => {\n    const [error] = tryCatch(copymitter, '/hello');\n    \n    t.equal(error.message, 'to should be a string!');\n    t.end();\n});\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-try-catch#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}