{"_id":"babel-plugin-transform-flow-enums","_rev":"3570043","name":"babel-plugin-transform-flow-enums","description":"Babel transform for Flow Enums.","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"flowtype","email":"flowtype+npm@fb.com"},{"name":"gkz","email":""}],"time":{"modified":"2024-09-30T01:29:51.000Z","created":"2020-12-10T23:29:56.179Z","0.0.2":"2021-09-13T17:28:49.226Z","0.0.1":"2020-12-10T23:29:56.179Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/facebook/flow.git"},"versions":{"0.0.2":{"name":"babel-plugin-transform-flow-enums","version":"0.0.2","description":"Babel transform for Flow Enums.","main":"index.js","license":"MIT","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/facebook/flow.git"},"dependencies":{"@babel/plugin-syntax-flow":"^7.12.1"},"devDependencies":{"babel-plugin-tester":"^10.0.0","jest":"^26.6.3"},"licenseText":"MIT License\n\nCopyright (c) Facebook, Inc. and its affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-transform-flow-enums@0.0.2","dist":{"shasum":"d1d0cc9bdc799c850ca110d0ddc9f21b9ec3ef25","size":2763,"noattachment":false,"key":"/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-flow-enums/download/babel-plugin-transform-flow-enums-0.0.2.tgz"},"_npmUser":{"name":"flowtype","email":"flow@fb.com"},"directories":{},"maintainers":[{"name":"flowtype","email":"flowtype+npm@fb.com"},{"name":"gkz","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-flow-enums_0.0.2_1631554129095_0.2637842511950488"},"_hasShrinkwrap":false,"publish_time":1631554129226,"_cnpm_publish_time":1631554129226,"_cnpmcore_publish_time":"2021-12-16T20:28:13.771Z"},"0.0.1":{"name":"babel-plugin-transform-flow-enums","version":"0.0.1","description":"Babel transform for Flow Enums.","main":"index.js","license":"MIT","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/facebook/flow.git"},"dependencies":{"@babel/plugin-syntax-flow":"^7.12.1"},"devDependencies":{"babel-plugin-tester":"^10.0.0","jest":"^26.6.3"},"licenseText":"MIT License\n\nCopyright (c) Facebook, Inc. and its affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-transform-flow-enums@0.0.1","dist":{"shasum":"ac9777bd1c5998364f83c0ec000ef878d169ec1a","size":2610,"noattachment":false,"key":"/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-flow-enums/download/babel-plugin-transform-flow-enums-0.0.1.tgz"},"_npmUser":{"name":"gkz","email":"z@georgezahariev.com"},"directories":{},"maintainers":[{"name":"flowtype","email":"flowtype+npm@fb.com"},{"name":"gkz","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-flow-enums_0.0.1_1607642996031_0.31397024424469766"},"_hasShrinkwrap":false,"publish_time":1607642996179,"_cnpm_publish_time":1607642996179,"_cnpmcore_publish_time":"2021-12-16T20:28:13.994Z"}},"readme":"babel-plugin-transform-flow-enums\n=================================\n\nThis Babel transform turns [Flow Enums](https://flow.org/en/docs/enums/) `EnumDeclaration` nodes into calls to the [Flow Enums runtime](https://www.npmjs.com/package/flow-enums-runtime).\n\nThis plugin requires the [Flow syntax plugin](https://babeljs.io/docs/en/babel-plugin-syntax-flow), with `{enums: true}` enabled.\n\nRead more about how to [enable Flow Enums in your project](https://flow.org/en/docs/enums/enabling-enums/).\n\n## Options\n- `getRuntime`:\n  - Optional function. Called with [Babel types](https://babeljs.io/docs/en/babel-types) as the first argument.\n  - If supplied, will be called to produce a Babel AST node which will be a reference to the Flow Enums runtime.\n  - If omitted, `require('flow-enums-runtime')` will be used.\n","_attachments":{},"license":"MIT"}