vue-hook-optimizer 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -86911,7 +86911,7 @@ function findLinearPaths(graph) {
86911
86911
  let linearPaths = [];
86912
86912
  let visitedNodes = /* @__PURE__ */ new Set();
86913
86913
  for (let [node2, edges] of graph.entries()) {
86914
- if (edges.size === 1 && !visitedNodes.has(node2)) {
86914
+ if (edges.size === 1 && !visitedNodes.has(node2) && node2.type === "fun" /* fun */) {
86915
86915
  let path2 = [node2];
86916
86916
  let nextNode = Array.from(edges)[0];
86917
86917
  visitedNodes.add(node2);
@@ -87032,11 +87032,13 @@ function gen(graph, usedNodes) {
87032
87032
  if (g.size > 5) {
87033
87033
  const ap = findArticulationPoints(g);
87034
87034
  ap.forEach((node2) => {
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
- });
87035
+ if (node2.type === "fun" /* fun */) {
87036
+ suggestions.push({
87037
+ type: "info" /* info */,
87038
+ // eslint-disable-next-line max-len
87039
+ message: `Node [${node2.label}] is an articulation point, perhaps you need to pay special attention to this node.`
87040
+ });
87041
+ }
87040
87042
  });
87041
87043
  }
87042
87044
  });