@babel/plugin-proposal-decorators 7.4.4 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -140,7 +140,11 @@ var _default = {
140
140
  const replacement = decoratedClassToExpression(decl);
141
141
 
142
142
  if (replacement) {
143
- path.replaceWithMultiple([replacement, _core().types.exportNamedDeclaration(null, [_core().types.exportSpecifier(_core().types.cloneNode(replacement.declarations[0].id), _core().types.identifier("default"))])]);
143
+ const [varDeclPath] = path.replaceWithMultiple([replacement, _core().types.exportNamedDeclaration(null, [_core().types.exportSpecifier(_core().types.cloneNode(replacement.declarations[0].id), _core().types.identifier("default"))])]);
144
+
145
+ if (!decl.node.id) {
146
+ path.scope.registerDeclaration(varDeclPath);
147
+ }
144
148
  }
145
149
  },
146
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/plugin-proposal-decorators",
3
- "version": "7.4.4",
3
+ "version": "7.6.0",
4
4
  "author": "Logan Smyth <loganfsmyth@gmail.com>",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  "decorators"
16
16
  ],
17
17
  "dependencies": {
18
- "@babel/helper-create-class-features-plugin": "^7.4.4",
18
+ "@babel/helper-create-class-features-plugin": "^7.6.0",
19
19
  "@babel/helper-plugin-utils": "^7.0.0",
20
20
  "@babel/plugin-syntax-decorators": "^7.2.0"
21
21
  },
@@ -23,8 +23,8 @@
23
23
  "@babel/core": "^7.0.0-0"
24
24
  },
25
25
  "devDependencies": {
26
- "@babel/core": "^7.4.4",
26
+ "@babel/core": "^7.6.0",
27
27
  "@babel/helper-plugin-test-runner": "^7.0.0"
28
28
  },
29
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba"
29
+ "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d"
30
30
  }