@umijs/ast 4.6.0 → 4.6.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.
@@ -44,7 +44,8 @@ function getExportProps(code) {
44
44
  enter(path) {
45
45
  const node = path.node;
46
46
  const defaultExport = findExportDefault(node);
47
- if (!defaultExport) return;
47
+ if (!defaultExport)
48
+ return;
48
49
  if (t.isIdentifier(defaultExport)) {
49
50
  const { name } = defaultExport;
50
51
  props = findAssignmentExpressionProps({
@@ -196,7 +196,8 @@ function findClassStaticProperty(node) {
196
196
  return "static" in p && p.static === true;
197
197
  }
198
198
  let body = node.body;
199
- if (!t.isClassBody(body)) return;
199
+ if (!t.isClassBody(body))
200
+ return;
200
201
  const target = {};
201
202
  body.body.forEach((p) => {
202
203
  if (isStaticNode(p) && t.isIdentifier(p.key)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/ast",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "@umijs/ast",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/ast#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -15,7 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@umijs/bundler-utils": "4.6.0"
18
+ "@umijs/bundler-utils": "4.6.2"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"