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 +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.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
|
-
|
87036
|
-
|
87037
|
-
|
87038
|
-
|
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
|
});
|