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.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -87035,7 +87035,7 @@ function gen(graph, usedNodes) {
|
|
87035
87035
|
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.`
|
87036
87036
|
});
|
87037
87037
|
}
|
87038
|
-
const paths = findLinearPaths(
|
87038
|
+
const paths = findLinearPaths(g);
|
87039
87039
|
paths.forEach((path2) => {
|
87040
87040
|
suggestions.push({
|
87041
87041
|
type: "warning" /* warning */,
|
@@ -87043,16 +87043,13 @@ function gen(graph, usedNodes) {
|
|
87043
87043
|
});
|
87044
87044
|
});
|
87045
87045
|
if (g.size > 5) {
|
87046
|
-
const ap = findArticulationPoints(
|
87047
|
-
const noIndegreeNodes2 = noIndegreeFilter(g);
|
87046
|
+
const ap = findArticulationPoints(g);
|
87048
87047
|
ap.forEach((node2) => {
|
87049
|
-
|
87050
|
-
|
87051
|
-
|
87052
|
-
|
87053
|
-
|
87054
|
-
});
|
87055
|
-
}
|
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
|
+
});
|
87056
87053
|
});
|
87057
87054
|
}
|
87058
87055
|
});
|