{"_id":"babel-plugin-transform-decorators-legacy","_rev":"86411","name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","dist-tags":{"latest":"1.3.5"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"time":{"modified":"2021-06-03T10:28:03.000Z","created":"2015-12-02T23:57:32.273Z","1.3.5":"2018-05-30T19:46:20.966Z","1.3.4":"2015-12-20T04:16:24.526Z","1.3.3":"2015-12-17T20:31:13.407Z","1.3.2":"2015-12-17T08:16:48.425Z","1.3.1":"2015-12-14T18:19:47.701Z","1.3.0":"2015-12-13T21:28:08.749Z","1.2.0":"2015-12-08T08:08:02.253Z","1.1.0":"2015-12-03T16:10:15.209Z","1.0.0":"2015-12-03T06:18:37.153Z","0.0.0":"2015-12-02T23:57:32.273Z"},"users":{"326060588":true,"imasterale":true,"moimikey":true,"juankiz":true,"trikadin":true,"chocolateboy":true,"shipengyan":true,"ziliwesley":true,"ziflex":true,"ubi":true,"goodnights":true,"abhisekp":true,"migaky":true,"shonny.ua":true,"christopher.urquidi":true,"bh032":true,"dhanya-kr":true,"borasta":true,"bianlongting":true,"luckyulin":true,"tedyhy":true,"shuoshubao":true,"zuojiang":true,"dwqs":true,"ray0324":true,"ycjcl868":true,"yangteng":true,"cfleschhut":true},"author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"versions":{"1.3.5":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.5","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"ee7a789b92025cfc89e67a13787ba57894a22f12","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.5","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"0e492dffa0edd70529072887f8aa86d4dd8b40a1","size":6381,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.5.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-decorators-legacy_1.3.5_1527709580735_0.8732253556188978"},"_hasShrinkwrap":false,"publish_time":1527709580966,"_cnpm_publish_time":1527709580966},"1.3.4":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.4","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"a3fc05f766dac8324a049ee03b3393fe3d055e14","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.4","_shasum":"741b58f6c5bce9e6027e0882d9c994f04f366925","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"741b58f6c5bce9e6027e0882d9c994f04f366925","size":5905,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.4.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1450584984526,"_cnpm_publish_time":1450584984526,"_hasShrinkwrap":false},"1.3.3":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.3","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"dc6fecfe3f989acbe0a16dac8e72c0dc9e3284e8","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.3","_shasum":"82baea09d3b4a2837e3c66270c2e12a25e6d3401","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"82baea09d3b4a2837e3c66270c2e12a25e6d3401","size":5887,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.3.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1450384273407,"_cnpm_publish_time":1450384273407,"_hasShrinkwrap":false},"1.3.2":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.2","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"4158309524fd411d49b56918bd647959d9ba8502","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.2","_shasum":"a04ed1dced4bd24a2c276fde5240dc71177b9426","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"a04ed1dced4bd24a2c276fde5240dc71177b9426","size":5839,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.2.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1450340208425,"_cnpm_publish_time":1450340208425,"_hasShrinkwrap":false},"1.3.1":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.1","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"1849f806a0a1999b77e8269ffce3d8e28d351ef5","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.1","_shasum":"77ef6bbff6819a444d8186d0cb9fda769adec54a","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"77ef6bbff6819a444d8186d0cb9fda769adec54a","size":5120,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.1.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1450117187701,"_cnpm_publish_time":1450117187701,"_hasShrinkwrap":false},"1.3.0":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.3.0","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"ed9ababc0506d9ea339a5877b594a2c3f4c7b513","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.3.0","_shasum":"ffce5755197a208f8a636b7188275138e7d0b2b9","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"ffce5755197a208f8a636b7188275138e7d0b2b9","size":4953,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.3.0.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1450042088749,"_cnpm_publish_time":1450042088749,"_hasShrinkwrap":false},"1.2.0":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.2.0","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"65c1eae1b19957fbb37c01891f4d433d4b9d47f7","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.2.0","_shasum":"66c70dac26cae6391a1554ff43c3de2742d3a8a2","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"66c70dac26cae6391a1554ff43c3de2742d3a8a2","size":4308,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.2.0.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1449562082253,"_cnpm_publish_time":1449562082253,"_hasShrinkwrap":false},"1.1.0":{"name":"babel-plugin-transform-decorators-legacy","description":"A plugin for Babel 6 that (mostly) replicates the old decorator behavior from Babel 5.","version":"1.1.0","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"keywords":["babel","babel-plugin","es7","decorators"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"1189ca8e2b5b6459dd328f92d743b4a3e75c7f28","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.1.0","_shasum":"3ac52d3081b8a11645b85176804b1fd4adbe4039","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"3ac52d3081b8a11645b85176804b1fd4adbe4039","size":3844,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.1.0.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1449159015209,"_cnpm_publish_time":1449159015209,"_hasShrinkwrap":false},"1.0.0":{"name":"babel-plugin-transform-decorators-legacy","version":"1.0.0","main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-class-properties":"^6.3.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha -- test"},"gitHead":"f88362ff33c80c700bd97ef4f45819c0f3a0efe8","description":"This is a plugin for Babel 6 that is meant to replicate the old decorator behavior from Babel 5 in order to allow people to more easily transition to Babel 6 without needing to be blocked on updates to the decorator proposal or for Babel to re-implement i","bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@1.0.0","_shasum":"db1662734c1007410b4a2d96ef0a154431d7bd5a","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"db1662734c1007410b4a2d96ef0a154431d7bd5a","size":3672,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-1.0.0.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1449123517153,"_cnpm_publish_time":1449123517153,"_hasShrinkwrap":false},"0.0.0":{"name":"babel-plugin-transform-decorators-legacy","version":"0.0.0","main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.git"},"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18"},"dependencies":{"babel-plugin-syntax-decorators":"^6.1.18","babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build"},"babel":{"presets":["es2015"],"plugins":["transform-runtime"]},"gitHead":"907a7235eceb0b517134e01520c7dd74b96c1b93","description":"This is a plugin for Babel 6 that is meant to replicate the old decorator behavior from Babel 5 in order to allow people to more easily transition to Babel 6 without needing to be blocked on updates to the decorator proposal or for Babel to re-implement i","bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","_id":"babel-plugin-transform-decorators-legacy@0.0.0","_shasum":"a7b5f87543552ce460c439d88d83cd3cc9dc7fd6","_from":".","_npmVersion":"2.14.12","_nodeVersion":"5.1.0","_npmUser":{"name":"ide","email":"ide+npm@jameside.com"},"dist":{"shasum":"a7b5f87543552ce460c439d88d83cd3cc9dc7fd6","size":3325,"noattachment":false,"key":"/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-decorators-legacy/download/babel-plugin-transform-decorators-legacy-0.0.0.tgz"},"maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"directories":{},"publish_time":1449100652273,"_cnpm_publish_time":1449100652273,"_hasShrinkwrap":false}},"readme":"\n\n# Babel Legacy Decorator plugin\n\nThis is a plugin for Babel 6 that is meant to replicate the old decorator behavior from\nBabel 5 in order to allow people to more easily transition to Babel 6 without needing to\nbe blocked on updates to the decorator proposal or for Babel to re-implement it.\n\n## Babel >= 7.x\n\nThis plugin is specifically for Babel 6.x. If you're using Babel 7, this plugin is not for you.\nBabel 7's `@babel/plugin-proposal-decorators` officially supports the same logic that this\nplugin has, but integrates better with Babel 7's other plugins. You can enable this with\n\n```json\n{\n  \"plugins\": [\n    [\"@babel/plugin-proposal-decorators\", { \"legacy\": true }],\n  ]\n}\n```\nin your Babel configuration. Note that `legacy: true` is specifically needed if you\nwant to get the same behavior as `transform-decorators-legacy` because there\nare newer versions of the decorator specification coming out, and they do not\nbehave the same way as this plugin does.\n\n\n## Installation & Usage\n\n    $ npm install --save-dev babel-plugin-transform-decorators-legacy\n\nAdd the following line to your .babelrc file:\n\n    {\n        \"plugins\": [\"transform-decorators-legacy\"]\n    }\n\n#### NOTE: Order of Plugins Matters!\nIf you are including your plugins manually and using `transform-class-properties`, make sure that `transform-decorators-legacy` comes *before* `transform-class-properties`.\n\n```js\n/// WRONG\n\n\"plugins\": [\n  \"transform-class-properties\",\n  \"transform-decorators-legacy\"\n]\n\n// RIGHT\n\n\"plugins\": [\n  \"transform-decorators-legacy\",\n  \"transform-class-properties\"\n]\n```\n\n## Why \"legacy\"?\n\nDecorators are still only a relatively new proposal, and they are (at least currently) still\nin flux. Many people have started to use them in their original form, where each decorator\nis essentially a function of the form\n\n    function(target, property, descriptor){}\n\nThis form is very likely to change moving forward, and Babel 6 did not wish to support\nthe older form when it was known that it would change in the future. As such, I created this\nplugin to help people transition to Babel 6 without requiring them to drop their decorators\nor requiring them to wait for the new proposal update and then update all their code.\n\n## Best Effort\n\nThis plugin is a best effort to be compatible with Babel 5's transpiler output, but there\nare a few things that were difficult to reproduce, and a few things that were simply incorrect\nin Babel 5 with respect to the decorators proposal.\n\nTwo main things to mention as differences, though not things you are likely to encounter:\n\n1. Decorators expressions are evaluated top to bottom, and executed bottom to top. e.g.\n\n    ```\n    function dec(id){\n        console.log('evaluated', id);\n        return (target, property, descriptor) => console.log('executed', id);\n    }\n\n    class Example {\n        @dec(1)\n        @dec(2)\n        method(){}\n    }\n    ```\n\n    In Babel 5, this would output:\n\n    ```\n    evaluated 2\n    evaluated 1\n    executed 2\n    executed 1\n    ```\n\n    With this plugin, it will result in:\n\n    ```\n    evaluated 1\n    evaluated 2\n    executed 2\n    executed 1\n    ```\n\n    which is what the spec dictates as the correct behavior and was incorrect in Babel 5.\n\n2. Static class property initializers are evaluated once up front.\n\n    If you decorate a static class property, you will get a descriptor with an `initializer` property.\n    However whereas with Babel 5 this could be re-executed multiple times with potentially differing\n    results, `decorators-legacy` will precompute the value and return an initializer that will\n    return that value. e.g.\n\n    ```\n    function dec(target, prop, descriptor){\n        let {initializer} = descriptor;\n        delete descriptor.initializer;\n        delete descriptor.writable;\n\n        descriptor.get = function(){\n            return initializer.call(this);\n        };\n    }\n\n    var i = 0;\n\n    class Example {\n        @dec\n        static prop = i++;\n    }\n    ```\n\n    In Babel 5, every access to `prop` would increment `i`.\n    In Babel 6, the very first value of `i` will be cached for future `initializer` calls.\n\n    The spec is a little vague around how initializers work for repeat calls, and I'd consider\n    calling an `initializer` multiple times to be a mistake in general, so hopefully this will\n    not cause anyone trouble.\n\n## License\n\nMIT (c) 2015\n","_attachments":{},"homepage":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy#readme","bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues"},"license":"MIT"}