@nodii/dev 0.6.22 → 0.6.23
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/core.js +1 -1
- package/dist/vendor/ds-conformance.mjs +4 -3
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.23";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
// it until it returns [] (each round can reveal instances inside slot
|
|
31
31
|
// content).
|
|
32
32
|
|
|
33
|
-
export const VERSION = "1.0.
|
|
33
|
+
export const VERSION = "1.0.10";
|
|
34
34
|
|
|
35
35
|
/** @typedef {{ nodeId: string, check: string, detail: string }} Finding */
|
|
36
36
|
/**
|
|
@@ -425,7 +425,8 @@ function outOfScopeRoot(n, parent, componentLabel, memo) {
|
|
|
425
425
|
const hit = memo.get(x.id);
|
|
426
426
|
if (hit) return hit;
|
|
427
427
|
let kind = /** @type {"kit" | "other" | "none"} */ ("none");
|
|
428
|
-
if (
|
|
428
|
+
if (!visibleNode(x)) kind = "none";
|
|
429
|
+
else if (emailKitPart(x, parent, componentLabel)) kind = "kit";
|
|
429
430
|
else if (
|
|
430
431
|
x.type === "INSTANCE" ||
|
|
431
432
|
x.type === "TEXT" ||
|
|
@@ -637,7 +638,7 @@ export function checkConformance({
|
|
|
637
638
|
const viewer = new Set();
|
|
638
639
|
for (const a of analyses)
|
|
639
640
|
for (const n of a.byId.values()) {
|
|
640
|
-
if (n.type !== "TEXT" || a.out.has(n.id)) continue;
|
|
641
|
+
if (n.type !== "TEXT" || a.out.has(n.id) || !a.shown(n)) continue;
|
|
641
642
|
const ids = identifiers(textOf(n));
|
|
642
643
|
if (ids.length === 0) continue;
|
|
643
644
|
if (isSelf(a, n)) for (const id of ids) viewer.add(id);
|