{"_id":"babel-plugin-transform-function-sent","_rev":"81628","name":"babel-plugin-transform-function-sent","description":"Patch function.sent","dist-tags":{"latest":"1.0.1","next":"7.0.0-beta.3"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"time":{"modified":"2021-06-03T10:26:05.000Z","created":"2016-06-06T20:00:40.004Z","7.0.0-beta.3":"2017-10-15T13:12:45.905Z","7.0.0-beta.2":"2017-09-26T15:16:22.751Z","7.0.0-beta.1":"2017-09-19T20:24:59.828Z","7.0.0-beta.0":"2017-09-12T03:03:16.220Z","7.0.0-alpha.20":"2017-08-30T19:04:58.812Z","7.0.0-alpha.19":"2017-08-07T22:22:26.704Z","7.0.0-alpha.18":"2017-08-03T22:21:43.660Z","7.0.0-alpha.17":"2017-07-26T20:57:12.163Z","1.0.1":"2016-06-20T18:34:20.558Z","1.0.0":"2016-06-06T20:00:40.004Z"},"users":{},"author":{"name":"hax","email":"johnhax@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/hax/babel-plugin-transform-function-sent.git"},"versions":{"7.0.0-beta.3":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-beta.3","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-beta.3","babel-plugin-syntax-function-sent":"7.0.0-beta.3"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-beta.3"},"_id":"babel-plugin-transform-function-sent@7.0.0-beta.3","_npmVersion":"5.5.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"a9f59630c1347cfe16a1af62102c287e9e7a6045","size":1495,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-beta.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-beta.3.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-beta.3.tgz_1508073165002_0.0698892327491194"},"directories":{},"publish_time":1508073165905,"_cnpm_publish_time":1508073165905,"_hasShrinkwrap":false},"7.0.0-beta.2":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-beta.2","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-beta.2","babel-plugin-syntax-function-sent":"7.0.0-beta.2"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-beta.2"},"_id":"babel-plugin-transform-function-sent@7.0.0-beta.2","_npmVersion":"5.4.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"ec4526be5b949519237fe632761acdf30c597bf0","size":1508,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-beta.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-beta.2.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-beta.2.tgz_1506438981829_0.4293680051341653"},"directories":{},"publish_time":1506438982751,"_cnpm_publish_time":1506438982751,"_hasShrinkwrap":false},"7.0.0-beta.1":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-beta.1","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-beta.1","babel-plugin-syntax-function-sent":"7.0.0-beta.1"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-beta.1"},"_id":"babel-plugin-transform-function-sent@7.0.0-beta.1","_npmVersion":"5.4.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"c2f38797d02d76f07a359587db4bd7140b20a1c1","size":1508,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-beta.1.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-beta.1.tgz_1505852699735_0.7603636523708701"},"directories":{},"publish_time":1505852699828,"_cnpm_publish_time":1505852699828,"_hasShrinkwrap":false},"7.0.0-beta.0":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-beta.0","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-beta.0","babel-plugin-syntax-function-sent":"7.0.0-beta.0"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-beta.0"},"_id":"babel-plugin-transform-function-sent@7.0.0-beta.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"944511f25ff7884d7340b1528ba15db0bb7e088f","size":1557,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-beta.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-beta.0.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-beta.0.tgz_1505185395273_0.7480451385490596"},"directories":{},"publish_time":1505185396220,"_cnpm_publish_time":1505185396220,"_hasShrinkwrap":false},"7.0.0-alpha.20":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-alpha.20","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-alpha.20","babel-plugin-syntax-function-sent":"7.0.0-alpha.20"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-alpha.20"},"_id":"babel-plugin-transform-function-sent@7.0.0-alpha.20","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"bbe2425d2f9b7841d7efeadceb1af7998da0ebb5","size":1556,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-alpha.20.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-alpha.20.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-alpha.20.tgz_1504119898724_0.06115569639950991"},"directories":{},"publish_time":1504119898812,"_cnpm_publish_time":1504119898812,"_hasShrinkwrap":false},"7.0.0-alpha.19":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-alpha.19","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-alpha.19","babel-plugin-syntax-function-sent":"7.0.0-alpha.19"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-alpha.19"},"_id":"babel-plugin-transform-function-sent@7.0.0-alpha.19","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"9d8e5bed529a12f251b2af761f1cf40add24c05b","size":1558,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-alpha.19.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-alpha.19.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-alpha.19.tgz_1502144546606_0.6672574356198311"},"directories":{},"publish_time":1502144546704,"_cnpm_publish_time":1502144546704,"_hasShrinkwrap":false},"7.0.0-alpha.18":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-alpha.18","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-alpha.18","babel-plugin-syntax-function-sent":"7.0.0-alpha.18"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-alpha.18"},"_id":"babel-plugin-transform-function-sent@7.0.0-alpha.18","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"cbe8a1f16f5e96e778b4caebca25b79a2e680963","size":1556,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-alpha.18.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-alpha.18.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-alpha.18.tgz_1501798903494_0.5084133250638843"},"directories":{},"publish_time":1501798903660,"_cnpm_publish_time":1501798903660,"_hasShrinkwrap":false},"7.0.0-alpha.17":{"name":"babel-plugin-transform-function-sent","version":"7.0.0-alpha.17","description":"Compile the function.sent meta propety to valid ES2015 code","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-helper-wrap-function":"7.0.0-alpha.17","babel-plugin-syntax-function-sent":"7.0.0-alpha.17"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-alpha.17"},"_id":"babel-plugin-transform-function-sent@7.0.0-alpha.17","scripts":{},"_shasum":"41eab68d1fd0f5d0dc34d5eafab0730391dd3875","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.9.0","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"41eab68d1fd0f5d0dc34d5eafab0730391dd3875","size":1562,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-7.0.0-alpha.17.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-7.0.0-alpha.17.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-function-sent-7.0.0-alpha.17.tgz_1501102631982_0.09660988743416965"},"directories":{},"publish_time":1501102632163,"_hasShrinkwrap":false,"_cnpm_publish_time":1501102632163},"1.0.1":{"name":"babel-plugin-transform-function-sent","version":"1.0.1","description":"Patch function.sent","main":"lib/index.js","files":["lib","src"],"scripts":{"test":"mocha --compilers js:babel-register","dev":"npm run test -- --watch","prepublish":"rm -rf lib && babel src -d lib && echo \"\nmodule.exports = exports['default'];\" >> lib/index.js"},"keywords":["babel-plugin","generators","function.sent","meta property"],"author":{"name":"hax","email":"johnhax@gmail.com"},"license":"MIT","dependencies":{"babel-plugin-syntax-function-sent":"^6.8.0","babel-runtime":"^6.9.2","babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.9.0","babel-core":"^6.9.1","babel-plugin-transform-runtime":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.9.0","babel-types":"^6.9.1","mocha":"^2.5.3"},"repository":{"type":"git","url":"git+https://github.com/hax/babel-plugin-transform-function-sent.git"},"gitHead":"a01dc207e9694b9538a0171432ce50e80ffce1b2","bugs":{"url":"https://github.com/hax/babel-plugin-transform-function-sent/issues"},"homepage":"https://github.com/hax/babel-plugin-transform-function-sent#readme","_id":"babel-plugin-transform-function-sent@1.0.1","_shasum":"bf9b475d91b9736058715b51d40e2bb456c5014b","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"hax","email":"hax@heshijun.net"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"dist":{"shasum":"bf9b475d91b9736058715b51d40e2bb456c5014b","size":1841,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-function-sent-1.0.1.tgz_1466447658176_0.44322218000888824"},"directories":{},"publish_time":1466447660558,"_cnpm_publish_time":1466447660558,"_hasShrinkwrap":false},"1.0.0":{"name":"babel-plugin-transform-function-sent","version":"1.0.0","description":"Patch function.sent","main":"lib/index.js","files":["lib"],"scripts":{"mocha":"mocha --ui tdd","test":"npm run patch; npm run mocha; e=$?; npm run unpatch; exit $e","patch":"ln -s .. node_modules/babel-plugin-transform-function-sent","unpatch":"rm node_modules/babel-plugin-transform-function-sent","prepublish":"babel src -d lib && echo \"\nmodule.exports = exports['default'];\" >> lib/index.js","dev":"babel src -d lib -w"},"keywords":["babel-plugin","generators","function.sent","meta property"],"author":{"name":"hax","email":"johnhax@gmail.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-helper-plugin-test-runner":"^6.8.0","babel-plugin-transform-runtime":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-preset-stage-0":"^6.5.0","babel-types":"^6.9.1","mocha":"^2.5.3"},"dependencies":{"babel-plugin-syntax-function-sent":"^6.8.0","babel-template":"^6.9.0"},"repository":{"type":"git","url":"git+https://github.com/hax/babel-plugin-transform-function-sent.git"},"gitHead":"97588f0ed4f5c76eb56f0be044056607d897df8a","bugs":{"url":"https://github.com/hax/babel-plugin-transform-function-sent/issues"},"homepage":"https://github.com/hax/babel-plugin-transform-function-sent#readme","_id":"babel-plugin-transform-function-sent@1.0.0","_shasum":"ca8bf55108da4295dfd546b582bee7a1ce91711b","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"hax","email":"hax@heshijun.net"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"dist":{"shasum":"ca8bf55108da4295dfd546b582bee7a1ce91711b","size":1552,"noattachment":false,"key":"/babel-plugin-transform-function-sent/-/babel-plugin-transform-function-sent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-function-sent/download/babel-plugin-transform-function-sent-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-function-sent-1.0.0.tgz_1465243237418_0.9814873053692281"},"directories":{},"publish_time":1465243240004,"_cnpm_publish_time":1465243240004,"_hasShrinkwrap":false}},"readme":"# babel-plugin-transform-function-sent\n\nPatch [function.sent meta property](https://github.com/allenwb/ESideas/blob/master/Generator%20metaproperty.md)\n\n\n[![npm version](https://badge.fury.io/js/babel-plugin-transform-function-sent.svg)](https://badge.fury.io/js/babel-plugin-transform-function-sent)\n[![build status](https://travis-ci.org/hax/babel-plugin-transform-function-sent.svg?branch=master)](https://travis-ci.org/hax/babel-plugin-transform-function-sent)\n[![dependencies](https://david-dm.org/hax/babel-plugin-transform-function-sent.svg)](https://david-dm.org/hax/babel-plugin-transform-function-sent)\n[![devDependencies](https://img.shields.io/david/dev/hax/babel-plugin-transform-function-sent.svg)](https://david-dm.org/hax/babel-plugin-transform-function-sent#info=devDependencies)\n\n\n## Why this plugin\n\nThe official transform-regenerator plugin already support `function.sent`, but\nrequire generators to be transformed. Many people avoid use regenerator,\nbecause all JavaScript engines already support ES2015 generators natively, and\nmajor browsers / node 0.12+ already ship generators for years.\n(See also https://github.com/alekseykulikov/babel-preset-es2015-node5/issues/3\nfor similar discussion and result plugin [transform-es2015-generator-return](https://github.com/hax/babel-plugin-transform-es2015-generator-return))\n\nIf you are one of them, this plugin is for you. It only patch `function.sent`,\nand will not touch other parts of your source code.\n\n\n## Installation\n```sh\nnpm install babel-plugin-transform-function-sent\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n#### .babelrc\n```json\n{\n\t\"plugins\": [\"transform-function-sent\"]\n}\n```\n\n### Via CLI\n```sh\nbabel --plugins transform-function-sent\n```\n\n### Via Node API\n```js\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-function-sent\"]\n})\n```\n\n### Use with `transform-es2015-function-name`\n**NOTE:** Please put `transform-es2015-function-name` before this plugin.\nSample:\n```json\n{\n\t\"plugins\": [\"transform-es2015-function-name\", \"transform-function-sent\"]\n}\n```\n","_attachments":{},"homepage":"https://github.com/hax/babel-plugin-transform-function-sent#readme","bugs":{"url":"https://github.com/hax/babel-plugin-transform-function-sent/issues"},"license":"MIT"}