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.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
|
87049
|
-
|
87050
|
-
|
87051
|
-
|
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
|
});
|