vue-hook-optimizer 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +0 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -86886,15 +86886,6 @@ function noIndegreeFilter(graph) {
|
|
86886
86886
|
});
|
86887
86887
|
return nodes.filter((node2) => indegree.get(node2) === 0);
|
86888
86888
|
}
|
86889
|
-
function noOutdegreeFilter(graph) {
|
86890
|
-
const zeroOutdegreeNodes = [];
|
86891
|
-
for (let [node2, edges] of graph.entries()) {
|
86892
|
-
if (edges.size === 0) {
|
86893
|
-
zeroOutdegreeNodes.push(node2);
|
86894
|
-
}
|
86895
|
-
}
|
86896
|
-
return zeroOutdegreeNodes;
|
86897
|
-
}
|
86898
86889
|
function removeVariable(graph, targets) {
|
86899
86890
|
const newTarget = /* @__PURE__ */ new Set();
|
86900
86891
|
targets.forEach((target) => {
|
@@ -87064,15 +87055,6 @@ function gen(graph, usedNodes) {
|
|
87064
87055
|
});
|
87065
87056
|
}
|
87066
87057
|
});
|
87067
|
-
const noOutdegreeNodes = noOutdegreeFilter(graph.edges);
|
87068
|
-
noOutdegreeNodes.forEach((node2) => {
|
87069
|
-
if (!usedNodes.has(node2.label)) {
|
87070
|
-
suggestions.push({
|
87071
|
-
type: "info" /* info */,
|
87072
|
-
message: `Node [${node2.label}] is not used, perhaps you can remove it.`
|
87073
|
-
});
|
87074
|
-
}
|
87075
|
-
});
|
87076
87058
|
return suggestions;
|
87077
87059
|
}
|
87078
87060
|
|