vue-hook-optimizer 0.0.20 → 0.0.21

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.js CHANGED
@@ -86924,7 +86924,7 @@ function findLinearPaths(graph) {
86924
86924
  let linearPaths = [];
86925
86925
  let visitedNodes = /* @__PURE__ */ new Set();
86926
86926
  for (let [node2, edges] of graph.entries()) {
86927
- if (edges.size === 1 && !visitedNodes.has(node2)) {
86927
+ if (edges.size === 1 && !visitedNodes.has(node2) && node2.type === "fun" /* fun */) {
86928
86928
  let path2 = [node2];
86929
86929
  let nextNode = Array.from(edges)[0];
86930
86930
  visitedNodes.add(node2);
@@ -87045,11 +87045,13 @@ function gen(graph, usedNodes) {
87045
87045
  if (g.size > 5) {
87046
87046
  const ap = findArticulationPoints(g);
87047
87047
  ap.forEach((node2) => {
87048
- suggestions.push({
87049
- type: "info" /* info */,
87050
- // eslint-disable-next-line max-len
87051
- message: `Node [${node2.label}] is an articulation point, perhaps you need to pay special attention to this node.`
87052
- });
87048
+ if (node2.type === "fun" /* fun */) {
87049
+ suggestions.push({
87050
+ type: "info" /* info */,
87051
+ // eslint-disable-next-line max-len
87052
+ message: `Node [${node2.label}] is an articulation point, perhaps you need to pay special attention to this node.`
87053
+ });
87054
+ }
87053
87055
  });
87054
87056
  }
87055
87057
  });