@babel/plugin-proposal-decorators 7.2.3 → 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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -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.2.3",
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.2.3",
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.2.2",
26
+ "@babel/core": "^7.6.0",
27
27
  "@babel/helper-plugin-test-runner": "^7.0.0"
28
28
  },
29
- "gitHead": "d35f2ad92b322c3bb9c6792e2683807afae0b105"
29
+ "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d"
30
30
  }