@babel/plugin-proposal-decorators 7.7.4 → 7.10.1

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.
@@ -63,7 +63,11 @@ function applyMethodDecorators(path, state) {
63
63
  }
64
64
 
65
65
  function hasMethodDecorators(body) {
66
- return body.some(node => node.decorators && node.decorators.length);
66
+ return body.some(node => {
67
+ var _node$decorators;
68
+
69
+ return (_node$decorators = node.decorators) == null ? void 0 : _node$decorators.length;
70
+ });
67
71
  }
68
72
 
69
73
  function applyObjectDecorators(path, state) {
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@babel/plugin-proposal-decorators",
3
- "version": "7.7.4",
3
+ "version": "7.10.1",
4
4
  "author": "Logan Smyth <loganfsmyth@gmail.com>",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "description": "Compile class and object decorators to ES5",
10
- "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-decorators",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/babel/babel.git",
13
+ "directory": "packages/babel-plugin-proposal-decorators"
14
+ },
11
15
  "main": "lib/index.js",
12
16
  "keywords": [
13
17
  "babel",
@@ -15,16 +19,16 @@
15
19
  "decorators"
16
20
  ],
17
21
  "dependencies": {
18
- "@babel/helper-create-class-features-plugin": "^7.7.4",
19
- "@babel/helper-plugin-utils": "^7.0.0",
20
- "@babel/plugin-syntax-decorators": "^7.7.4"
22
+ "@babel/helper-create-class-features-plugin": "^7.10.1",
23
+ "@babel/helper-plugin-utils": "^7.10.1",
24
+ "@babel/plugin-syntax-decorators": "^7.10.1"
21
25
  },
22
26
  "peerDependencies": {
23
27
  "@babel/core": "^7.0.0-0"
24
28
  },
25
29
  "devDependencies": {
26
- "@babel/core": "^7.7.4",
27
- "@babel/helper-plugin-test-runner": "^7.7.4"
30
+ "@babel/core": "^7.10.1",
31
+ "@babel/helper-plugin-test-runner": "^7.10.1"
28
32
  },
29
- "gitHead": "75767d87cb147709b9bd9b99bf44daa6688874a9"
33
+ "gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf"
30
34
  }