@babel/plugin-proposal-decorators 7.17.12 → 7.18.2

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.
@@ -263,13 +263,14 @@ function transformClass(path, state, constantSuper) {
263
263
  const {
264
264
  key,
265
265
  value,
266
- static: isStatic
266
+ static: isStatic,
267
+ computed
267
268
  } = element.node;
268
269
  const newId = generateClassPrivateUid();
269
270
  const valueNode = value ? _core.types.cloneNode(value) : undefined;
270
271
  const newField = generateClassProperty(newId, valueNode, isStatic);
271
272
  const [newPath] = element.replaceWith(newField);
272
- addProxyAccessorsFor(newPath, key, newId, element.node.computed);
273
+ addProxyAccessorsFor(newPath, key, newId, computed);
273
274
  }
274
275
  }
275
276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/plugin-proposal-decorators",
3
- "version": "7.17.12",
3
+ "version": "7.18.2",
4
4
  "author": "The Babel Team (https://babel.dev/team)",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -20,9 +20,9 @@
20
20
  "decorators"
21
21
  ],
22
22
  "dependencies": {
23
- "@babel/helper-create-class-features-plugin": "^7.17.12",
23
+ "@babel/helper-create-class-features-plugin": "^7.18.0",
24
24
  "@babel/helper-plugin-utils": "^7.17.12",
25
- "@babel/helper-replace-supers": "^7.16.7",
25
+ "@babel/helper-replace-supers": "^7.18.2",
26
26
  "@babel/helper-split-export-declaration": "^7.16.7",
27
27
  "@babel/plugin-syntax-decorators": "^7.17.12",
28
28
  "charcodes": "^0.2.0"
@@ -31,9 +31,9 @@
31
31
  "@babel/core": "^7.0.0-0"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/core": "^7.17.12",
34
+ "@babel/core": "^7.18.2",
35
35
  "@babel/helper-plugin-test-runner": "^7.16.7",
36
- "@babel/traverse": "^7.17.12",
36
+ "@babel/traverse": "^7.18.2",
37
37
  "babel-plugin-polyfill-es-shims": "^0.6.0",
38
38
  "object.getownpropertydescriptors": "^2.1.1"
39
39
  },