vue-hook-optimizer 0.0.19 → 0.0.20

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/dist/index.mjs CHANGED
@@ -87022,7 +87022,7 @@ function gen(graph, usedNodes) {
87022
87022
  message: `There is a loop call in nodes [${nodes.length > 10 ? nodes.slice(0, 10).map((node2) => node2.label).join(",") + "...(" + nodes.length + ")" : nodes.map((node2) => node2.label).join(",")}], perhaps you can refactor it.`
87023
87023
  });
87024
87024
  }
87025
- const paths = findLinearPaths(onlyFunctions(g));
87025
+ const paths = findLinearPaths(g);
87026
87026
  paths.forEach((path2) => {
87027
87027
  suggestions.push({
87028
87028
  type: "warning" /* warning */,
@@ -87030,16 +87030,13 @@ function gen(graph, usedNodes) {
87030
87030
  });
87031
87031
  });
87032
87032
  if (g.size > 5) {
87033
- const ap = findArticulationPoints(onlyFunctions(g));
87034
- const noIndegreeNodes2 = noIndegreeFilter(g);
87033
+ const ap = findArticulationPoints(g);
87035
87034
  ap.forEach((node2) => {
87036
- if (!noIndegreeNodes2.includes(node2)) {
87037
- suggestions.push({
87038
- type: "info" /* info */,
87039
- // eslint-disable-next-line max-len
87040
- message: `Node [${node2.label}] is an articulation point, perhaps you need to pay special attention to this node.`
87041
- });
87042
- }
87035
+ suggestions.push({
87036
+ type: "info" /* info */,
87037
+ // eslint-disable-next-line max-len
87038
+ message: `Node [${node2.label}] is an articulation point, perhaps you need to pay special attention to this node.`
87039
+ });
87043
87040
  });
87044
87041
  }
87045
87042
  });