dot-language-support 4.0.3 → 4.0.5
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.mjs +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2425,6 +2425,7 @@ function forEachChild(node, cbNode, cbNodes) {
|
|
|
2425
2425
|
|
|
2426
2426
|
//#endregion
|
|
2427
2427
|
//#region src/checker.ts
|
|
2428
|
+
const validShapesLowerCase = new Set(shapes.map((s) => s.toLowerCase()));
|
|
2428
2429
|
function checkSourceFile(file) {
|
|
2429
2430
|
const g = file.graph;
|
|
2430
2431
|
if (g) {
|
|
@@ -2468,7 +2469,7 @@ function checkShapeLabelValues(root) {
|
|
|
2468
2469
|
if (leftId.text.trim().toLocaleLowerCase() !== "shape") return;
|
|
2469
2470
|
const rightText = rightId.text.trim();
|
|
2470
2471
|
const shapeCandidate = rightText.toLowerCase();
|
|
2471
|
-
if (
|
|
2472
|
+
if (validShapesLowerCase.has(shapeCandidate)) return;
|
|
2472
2473
|
invalidShapes.push({
|
|
2473
2474
|
category: diagnosticCategory.Warning,
|
|
2474
2475
|
code: createCheckerError(checkError.InvalidShapeName),
|
|
@@ -2703,8 +2704,8 @@ function createBinder() {
|
|
|
2703
2704
|
if (node.compassPt) bind(node.compassPt);
|
|
2704
2705
|
}
|
|
2705
2706
|
function bindNodeId(node) {
|
|
2706
|
-
ensureGlobalSymbol(node.id);
|
|
2707
2707
|
bind(node.id);
|
|
2708
|
+
ensureGlobalSymbol(node.id);
|
|
2708
2709
|
if (node.port) bind(node.port);
|
|
2709
2710
|
}
|
|
2710
2711
|
function bindChildren(nodes) {
|