{"_id":"babel-plugin-ava-throws-helper","_rev":"22-05c253fae028a1bf8afe44a8087771f1","name":"babel-plugin-ava-throws-helper","description":"Babel plugin for protecting against improper use of `t.throws()` in AVA","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.2":{"name":"babel-plugin-ava-throws-helper","version":"0.0.2","description":"My cool module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/babel-plugin-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"ava":"^0.14.0","babel-core":"^6.7.5","xo":"^0.13.0"},"gitHead":"8cb6ab825573d26394a0120656308447d323ccf2","bugs":{"url":"https://github.com/jamestalmage/babel-plugin-throws-helper/issues"},"homepage":"https://github.com/jamestalmage/babel-plugin-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@0.0.2","_shasum":"360e37ca4aef089b1adbd88ce75e16c8542d0851","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.9.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"360e37ca4aef089b1adbd88ce75e16c8542d0851","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-0.0.2.tgz","integrity":"sha512-QI70JpSPbta5FZ0rBqdhD1agDot91uI/sVCQXw8PTDzOdKMt/ZAiimqgCfJrzhNsHnFCIG97UdBpjn72Q4nf4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtkKX1rARqv/hCAyy5mFVeIGelS5L8qq4g8fNImutbngIgPY/lmf0GN1paSNYiaZP/SwNY0hqfUfubTbj5goUBttY="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-0.0.2.tgz_1460114397821_0.9499195842072368"},"directories":{}},"0.0.3":{"name":"babel-plugin-ava-throws-helper","version":"0.0.3","description":"My cool module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/babel-plugin-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava","preversion":"WRITE_EXAMPLES=1 npm run test && git add example-output.md"},"files":["index.js"],"keywords":[],"dependencies":{"babel-template":"^6.7.0","babel-types":"^6.7.2"},"devDependencies":{"ava":"^0.14.0","babel-core":"^6.7.5","xo":"^0.13.0"},"gitHead":"0f55027dbd0f1aca2d62b6f14f81befe017c5231","bugs":{"url":"https://github.com/jamestalmage/babel-plugin-throws-helper/issues"},"homepage":"https://github.com/jamestalmage/babel-plugin-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@0.0.3","_shasum":"d9ab1d519d879fbee111030ab66a914a0f8b6c38","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.9.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"d9ab1d519d879fbee111030ab66a914a0f8b6c38","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-0.0.3.tgz","integrity":"sha512-o0UmMh6QkMMlPY8zT8AmIu3mvkzmr2b72AWnN6PAJKqt7OemfVTZ8ZYQNOqxrYhyrvvu5nJxBo1oYv/hg/IT/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaNmnD4y6v7SDUMupWc2pJVJfHDaE31SzqnLyXGj6+TAIgLOXzge6Y1clmKuFVaT2q3NJv5YKPX83POVvYbIykq+g="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-0.0.3.tgz_1460160709519_0.7285981283057481"},"directories":{}},"0.0.4":{"name":"babel-plugin-ava-throws-helper","version":"0.0.4","description":"My cool module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/babel-plugin-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava","preversion":"WRITE_EXAMPLES=1 npm run test && git add example-output.md"},"files":["index.js"],"keywords":[],"dependencies":{"babel-template":"^6.7.0","babel-types":"^6.7.2"},"devDependencies":{"ava":"^0.14.0","babel-core":"^6.7.5","xo":"^0.13.0"},"gitHead":"04b1f976c954ea2e7d807402acaf7f59602f6c65","bugs":{"url":"https://github.com/jamestalmage/babel-plugin-throws-helper/issues"},"homepage":"https://github.com/jamestalmage/babel-plugin-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@0.0.4","_shasum":"982d1d8e244fd4bd33615da754414cc7b0a8730a","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.9.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"982d1d8e244fd4bd33615da754414cc7b0a8730a","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-0.0.4.tgz","integrity":"sha512-PkRTz2+iI6Yrp98Gr0r3JlKcN1QIatLyxurYKPFRs9ExqCCt5LxWG019/Otp+KAaDoj4+vNpazCHu2Oc2ozXJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBN9kU2Shhjh5KLRqO3QRIJLp7T2MHmTMHvIE+ccsUGfAiBW56m3ILN4JPxn5o8UAlRpSnOldlyigtRClu/S/sQcIQ=="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-0.0.4.tgz_1460164893872_0.420102396979928"},"directories":{}},"0.0.5":{"name":"babel-plugin-ava-throws-helper","version":"0.0.5","description":"Babel plugin for protecting against improper use of `t.throws()` in AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/babel-plugin-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava","preversion":"WRITE_EXAMPLES=1 npm run test && git add example-output.md"},"files":["index.js"],"keywords":["babel-plugin","babel","helper","ava","assertion","throws"],"dependencies":{"babel-template":"^6.7.0","babel-types":"^6.7.2"},"devDependencies":{"ava":"^0.14.0","babel-core":"^6.7.5","xo":"^0.15.1"},"gitHead":"edd57869573d0b412c87f3861c4bdcd832372d00","bugs":{"url":"https://github.com/avajs/babel-plugin-throws-helper/issues"},"homepage":"https://github.com/avajs/babel-plugin-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@0.0.5","_shasum":"ca920997766f0779785d15bd4d99c75fddde23af","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"ca920997766f0779785d15bd4d99c75fddde23af","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-0.0.5.tgz","integrity":"sha512-DrWa7oj8XvLT7NKkpEQnVmN25E/WsqDeY6qzhe75tQSsZ58iPgt8VvrZ16R3GTMjj1ZkklAbn+QeHm/JJVWUzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLI/AIC7+ExKq5Hy7tKqgOaD1rapxg6307WqGJ/UEQAAiBpkRaxhtm6D6Wlf34IExyzG4RPGgVvLN/L91jTHSqiZw=="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"},{"name":"novemberborn","email":"mark@novemberborn.net"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"vdemedes","email":"vdemedes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-0.0.5.tgz_1465855181560_0.4355327447410673"},"directories":{}},"0.1.0":{"name":"babel-plugin-ava-throws-helper","version":"0.1.0","description":"Babel plugin for protecting against improper use of `t.throws()` in AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/babel-plugin-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava","preversion":"WRITE_EXAMPLES=1 npm run test && git add example-output.md"},"files":["index.js"],"keywords":["babel-plugin","babel","helper","ava","assertion","throws"],"dependencies":{"babel-template":"^6.7.0","babel-types":"^6.7.2"},"devDependencies":{"ava":"^0.14.0","babel-core":"^6.7.5","xo":"^0.15.1"},"gitHead":"b6fb437d4bed1957b2aa099121c3665cf335546b","bugs":{"url":"https://github.com/avajs/babel-plugin-throws-helper/issues"},"homepage":"https://github.com/avajs/babel-plugin-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@0.1.0","_shasum":"951107708a12208026bf8ca4cef18a87bc9b0cfe","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"951107708a12208026bf8ca4cef18a87bc9b0cfe","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-0.1.0.tgz","integrity":"sha512-tX+9XRUU+fV+xiuPm33U/A28sxiEZUpqTMkxgPLERMGLPpxz1Cbu9ThNfS5hnTzHRAYbb3JJmdYNmLmFDiEuwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsAMaUzHKTaco6vzsaLSk2rMAI0sOLi0u2QuBtCX9bxAiADuKUQy2d018VuM2IL030RHIjOjiQDWWAutusUDrZwwg=="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"},{"name":"novemberborn","email":"mark@novemberborn.net"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"vdemedes","email":"vdemedes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-0.1.0.tgz_1465855334238_0.671503882156685"},"directories":{}},"1.0.0":{"name":"babel-plugin-ava-throws-helper","version":"1.0.0","description":"Babel plugin for protecting against improper use of `t.throws()` in AVA","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/babel-plugin-ava-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava","preversion":"WRITE_EXAMPLES=1 npm run test && git add example-output.md"},"files":["index.js"],"keywords":["babel-plugin","babel","helper","ava","assertion","throws"],"dependencies":{"babel-template":"^6.7.0","babel-types":"^6.7.2"},"devDependencies":{"ava":"^0.17.0","babel-core":"^6.7.5","xo":"^0.17.0"},"gitHead":"e0bc685ba3e37c881d86856e05540131e7e8aa5a","bugs":{"url":"https://github.com/avajs/babel-plugin-ava-throws-helper/issues"},"homepage":"https://github.com/avajs/babel-plugin-ava-throws-helper#readme","_id":"babel-plugin-ava-throws-helper@1.0.0","_shasum":"8fe6e79d2fd19838b5c3649f89cfb03fd563e241","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"novemberborn","email":"mark@novemberborn.net"},"dist":{"shasum":"8fe6e79d2fd19838b5c3649f89cfb03fd563e241","tarball":"https://registry.npmjs.org/babel-plugin-ava-throws-helper/-/babel-plugin-ava-throws-helper-1.0.0.tgz","integrity":"sha512-+cUf3TWqZSLwhQ0OzgBM+0kCoooEsDp0/2RvBRNV7Qx/FkD2mItzvJtj0WdDcCJF+QgIexuPYH7bYw6vX7fJDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIFHYgjTcy4dzFTBEkq6KOlGuiMVZZ4DitWN3vRSm+fQIhAMB/wrmLRiWGpCo4/3hhWhCnuKVov9fmi7JHJ5im3Gy6"}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"},{"name":"novemberborn","email":"mark@novemberborn.net"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"vdemedes","email":"vdemedes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-ava-throws-helper-1.0.0.tgz_1484674663799_0.25996335153467953"},"directories":{}}},"readme":"# babel-plugin-ava-throws-helper [![Build Status](https://travis-ci.org/avajs/babel-plugin-ava-throws-helper.svg?branch=master)](https://travis-ci.org/avajs/babel-plugin-ava-throws-helper)\n\n> Babel plugin for protecting against improper use of `t.throws()` in [AVA](https://ava.li)\n\nProbably not useful except as an internal plugin for the AVA test runner.\n\n[Genesis of the idea.](https://github.com/sindresorhus/eslint-plugin-ava/issues/75)\n\n## Issue\n\n> I've seen a lot of incorrect use of the throws assertion in other test runner and even done the mistake myself sometimes. Now I'm beginning to see it with AVA too, so would be nice to be preemptive about it.\n>\n> People don't realize they need to wrap their call in a function, so many end up doing `t.throws(foo())` instead of `t.throws(() => foo());`. It's an easy mistake to make.\n\nThe difficulty is that `t.throws(foo())` is allowed if `foo()` returns a promise or a function. There is no good way to differentiate between the two at runtime. So providing a good error message is going to take some AST transform magic.\n\n\n## Solution\n\nSee [`example-output.md`](example-output.md) for the transformation this plugin performs.\n\nThe example output can be generated by calling:\n\n```\n$ WRITE_EXAMPLES=1 ava\n```\n\nContributors should not commit new examples. They will be regenerated as part of the release process.\n\n\n## License\n\nMIT © [James Talmage](https://github.com/jamestalmage)\n","maintainers":[{"email":"vdemedes@gmail.com","name":"vdemedes"},{"email":"mark@novemberborn.net","name":"novemberborn"},{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"time":{"modified":"2023-06-17T00:10:17.914Z","created":"2016-04-08T11:20:00.080Z","0.0.2":"2016-04-08T11:20:00.080Z","0.0.3":"2016-04-09T00:11:50.451Z","0.0.4":"2016-04-09T01:21:36.218Z","0.0.5":"2016-06-13T21:59:44.396Z","0.1.0":"2016-06-13T22:02:16.780Z","1.0.0":"2017-01-17T17:37:44.411Z"},"homepage":"https://github.com/avajs/babel-plugin-ava-throws-helper#readme","keywords":["babel-plugin","babel","helper","ava","assertion","throws"],"repository":{"type":"git","url":"git+https://github.com/avajs/babel-plugin-ava-throws-helper.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bugs":{"url":"https://github.com/avajs/babel-plugin-ava-throws-helper/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"flumpus-dev":true}}