@holmdigital/engine 3.3.1 → 3.3.3
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/{chunk-VCZZMEKN.mjs → chunk-DD4VIRME.mjs} +1 -1
- package/dist/{chunk-2PCUWYZI.mjs → chunk-OVSNTJFG.mjs} +11 -2
- package/dist/cli/index.js +32 -15
- package/dist/cli/index.mjs +21 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{plain-report-V5ZUHISZ.mjs → plain-report-PR4PSW23.mjs} +3 -3
- package/package.json +2 -2
|
@@ -21,12 +21,21 @@ function impactBreakdown(reports, levelOf, order) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// src/reporting/legal-line.ts
|
|
24
|
-
|
|
24
|
+
var PRIVATE_SECTOR_LINES = {
|
|
25
|
+
"name-role-value": "Standard: WCAG 2.2, framg\xE5ngskriterium 4.1.2 Namn, roll, v\xE4rde (niv\xE5 A). Motsvaras av EN 301 549. En knapp utan tillg\xE4ngligt namn kan inte tolkas av sk\xE4rml\xE4sare.",
|
|
26
|
+
"region": "Standard: WCAG 2.2, framg\xE5ngskriterium 1.3.1 Information och relationer (niv\xE5 A), samt god praxis f\xF6r sidstruktur.",
|
|
27
|
+
"heading-order": "Standard: WCAG 2.2, framg\xE5ngskriterium 1.3.1 Information och relationer (niv\xE5 A), samt god praxis f\xF6r rubrikstruktur."
|
|
28
|
+
};
|
|
29
|
+
var UNKNOWN_LINE = "Lagrum ok\xE4nt. Fyndet kunde inte kopplas till ett specifikt lagrum.";
|
|
30
|
+
function klarsprakLegalLine(dosLagenReference, opts) {
|
|
25
31
|
const ref = (dosLagenReference ?? "").trim();
|
|
32
|
+
if (opts?.sector === "private") {
|
|
33
|
+
return opts.ruleId && PRIVATE_SECTOR_LINES[opts.ruleId] || UNKNOWN_LINE;
|
|
34
|
+
}
|
|
26
35
|
const isRealDosLagen = ref.includes("2018:1937");
|
|
27
36
|
const isNotYetLaw = ref.includes("\xE4nnu inte lagkrav");
|
|
28
37
|
if (ref === "" || !isRealDosLagen && !isNotYetLaw) {
|
|
29
|
-
return
|
|
38
|
+
return UNKNOWN_LINE;
|
|
30
39
|
}
|
|
31
40
|
if (isNotYetLaw) {
|
|
32
41
|
return "\xC4nnu inte lagkrav under DOS-lagen (WCAG 2.2-kriterium). Blir bindande n\xE4r EN 301 549 V4.x refereras i EU:s officiella tidning.";
|
package/dist/cli/index.js
CHANGED
|
@@ -983,22 +983,32 @@ var init_needs_review = __esm({
|
|
|
983
983
|
});
|
|
984
984
|
|
|
985
985
|
// src/reporting/legal-line.ts
|
|
986
|
-
function klarsprakLegalLine(dosLagenReference) {
|
|
986
|
+
function klarsprakLegalLine(dosLagenReference, opts) {
|
|
987
987
|
const ref = (dosLagenReference ?? "").trim();
|
|
988
|
+
if (opts?.sector === "private") {
|
|
989
|
+
return opts.ruleId && PRIVATE_SECTOR_LINES[opts.ruleId] || UNKNOWN_LINE;
|
|
990
|
+
}
|
|
988
991
|
const isRealDosLagen = ref.includes("2018:1937");
|
|
989
992
|
const isNotYetLaw = ref.includes("\xE4nnu inte lagkrav");
|
|
990
993
|
if (ref === "" || !isRealDosLagen && !isNotYetLaw) {
|
|
991
|
-
return
|
|
994
|
+
return UNKNOWN_LINE;
|
|
992
995
|
}
|
|
993
996
|
if (isNotYetLaw) {
|
|
994
997
|
return "\xC4nnu inte lagkrav under DOS-lagen (WCAG 2.2-kriterium). Blir bindande n\xE4r EN 301 549 V4.x refereras i EU:s officiella tidning.";
|
|
995
998
|
}
|
|
996
999
|
return "Lagkrav: DOS-lagen (2018:1937), 10 \xA7.";
|
|
997
1000
|
}
|
|
1001
|
+
var PRIVATE_SECTOR_LINES, UNKNOWN_LINE;
|
|
998
1002
|
var init_legal_line = __esm({
|
|
999
1003
|
"src/reporting/legal-line.ts"() {
|
|
1000
1004
|
"use strict";
|
|
1001
1005
|
init_cjs_shims();
|
|
1006
|
+
PRIVATE_SECTOR_LINES = {
|
|
1007
|
+
"name-role-value": "Standard: WCAG 2.2, framg\xE5ngskriterium 4.1.2 Namn, roll, v\xE4rde (niv\xE5 A). Motsvaras av EN 301 549. En knapp utan tillg\xE4ngligt namn kan inte tolkas av sk\xE4rml\xE4sare.",
|
|
1008
|
+
"region": "Standard: WCAG 2.2, framg\xE5ngskriterium 1.3.1 Information och relationer (niv\xE5 A), samt god praxis f\xF6r sidstruktur.",
|
|
1009
|
+
"heading-order": "Standard: WCAG 2.2, framg\xE5ngskriterium 1.3.1 Information och relationer (niv\xE5 A), samt god praxis f\xF6r rubrikstruktur."
|
|
1010
|
+
};
|
|
1011
|
+
UNKNOWN_LINE = "Lagrum ok\xE4nt. Fyndet kunde inte kopplas till ett specifikt lagrum.";
|
|
1002
1012
|
}
|
|
1003
1013
|
});
|
|
1004
1014
|
|
|
@@ -1055,7 +1065,7 @@ __export(plain_report_exports, {
|
|
|
1055
1065
|
function levelOf(report) {
|
|
1056
1066
|
return report.plainLanguage?.impactLevel ?? RISK_TO_IMPACT[report.holmdigitalInsight.diggRisk] ?? "putsning";
|
|
1057
1067
|
}
|
|
1058
|
-
function renderPlainReport(result, lang = "en", plainFallbackFrom) {
|
|
1068
|
+
function renderPlainReport(result, lang = "en", plainFallbackFrom, sector) {
|
|
1059
1069
|
setLanguage(lang);
|
|
1060
1070
|
if (plainFallbackFrom) {
|
|
1061
1071
|
console.log(import_chalk.default.yellow(t("plain.gate_fallback", { lang: languageDisplayName(plainFallbackFrom) })));
|
|
@@ -1111,7 +1121,7 @@ function renderPlainReport(result, lang = "en", plainFallbackFrom) {
|
|
|
1111
1121
|
console.log(` ${t("plain.fallback_framing")} ${report.remediation.description}`);
|
|
1112
1122
|
}
|
|
1113
1123
|
if (isSwedish) {
|
|
1114
|
-
console.log(` ${klarsprakLegalLine(report.dosLagenReference)}`);
|
|
1124
|
+
console.log(` ${klarsprakLegalLine(report.dosLagenReference, { sector, ruleId: report.ruleId })}`);
|
|
1115
1125
|
}
|
|
1116
1126
|
console.log("");
|
|
1117
1127
|
});
|
|
@@ -1582,7 +1592,7 @@ function isInterstitialPage(pageTitle, hasMetaRefresh, bodyTextLength) {
|
|
|
1582
1592
|
return false;
|
|
1583
1593
|
}
|
|
1584
1594
|
function getEngineVersion() {
|
|
1585
|
-
return "3.3.
|
|
1595
|
+
return "3.3.3";
|
|
1586
1596
|
}
|
|
1587
1597
|
function getStandardsVersion() {
|
|
1588
1598
|
try {
|
|
@@ -2331,7 +2341,7 @@ function generateReportHTML(result, sector = "public", audience = "developer", p
|
|
|
2331
2341
|
return inconclusiveReportHTML(result);
|
|
2332
2342
|
}
|
|
2333
2343
|
if (audience === "plain") {
|
|
2334
|
-
return generatePlainReportHTML(result, plainFallbackFrom);
|
|
2344
|
+
return generatePlainReportHTML(result, plainFallbackFrom, sector);
|
|
2335
2345
|
}
|
|
2336
2346
|
const criticalCount = result.stats.critical;
|
|
2337
2347
|
const highCount = result.stats.high;
|
|
@@ -2678,7 +2688,7 @@ function getLogoDataUri() {
|
|
|
2678
2688
|
cachedLogoDataUri = "";
|
|
2679
2689
|
return cachedLogoDataUri;
|
|
2680
2690
|
}
|
|
2681
|
-
function generatePlainReportHTML(result, plainFallbackFrom) {
|
|
2691
|
+
function generatePlainReportHTML(result, plainFallbackFrom, sector) {
|
|
2682
2692
|
const lang = getCurrentLang();
|
|
2683
2693
|
const safeUrl = escapeHtml(result.url);
|
|
2684
2694
|
const logoDataUri = getLogoDataUri();
|
|
@@ -2706,7 +2716,7 @@ ${sortedGroups.map((group) => {
|
|
|
2706
2716
|
const occurrences = group.count > 1 ? `, ${escapeHtml(t("plain.occurrences", { count: group.count }))}` : "";
|
|
2707
2717
|
const headingHtml = pl?.headline ? `${escapeHtml(pl.headline)} <span class="issue-rule-ref">(${escapeHtml(report.ruleId)})</span>` : escapeHtml(report.ruleId);
|
|
2708
2718
|
const legalHtml = isSwedish ? `
|
|
2709
|
-
<p class="issue-legal">${escapeHtml(klarsprakLegalLine(report.dosLagenReference))}</p>` : "";
|
|
2719
|
+
<p class="issue-legal">${escapeHtml(klarsprakLegalLine(report.dosLagenReference, { sector, ruleId: report.ruleId }))}</p>` : "";
|
|
2710
2720
|
if (pl) {
|
|
2711
2721
|
return ` <li class="issue-item ${cardClass}">
|
|
2712
2722
|
<span class="badge ${badgeClass}">${badgeText}</span>
|
|
@@ -3732,7 +3742,12 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
3732
3742
|
// ett fält, inte hela regelobjektet. Samma korta 3-fals-
|
|
3733
3743
|
// klarspråk som --plain, annars felmärks WCAG 2.2-fynden som
|
|
3734
3744
|
// lagkrav i widgeten (Karins beslut 2026-08-25).
|
|
3735
|
-
|
|
3745
|
+
// Intern #56: sektorsstyrd lydelse även i widget-JSON:en —
|
|
3746
|
+
// annars påstår den publika widgeten DOS-lagen för privata kunder.
|
|
3747
|
+
legalBasis: klarsprakLegalLine(r.dosLagenReference, {
|
|
3748
|
+
sector: options.sector,
|
|
3749
|
+
ruleId: r.ruleId
|
|
3750
|
+
}),
|
|
3736
3751
|
// Plain-language (klarspråk) fields, present when the rule
|
|
3737
3752
|
// is covered; undefined values drop out of the JSON.
|
|
3738
3753
|
headline: r.plainLanguage?.headline,
|
|
@@ -3746,7 +3761,7 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
3746
3761
|
} else if (result.complianceStatus === "INCONCLUSIVE") {
|
|
3747
3762
|
if (options.audience === "plain") {
|
|
3748
3763
|
const { renderPlainReport: renderPlainReport2 } = await Promise.resolve().then(() => (init_plain_report(), plain_report_exports));
|
|
3749
|
-
renderPlainReport2(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
3764
|
+
renderPlainReport2(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom, options.sector);
|
|
3750
3765
|
} else {
|
|
3751
3766
|
console.log("");
|
|
3752
3767
|
console.log(import_chalk2.default.yellow.bold(t("cli.inconclusive_headline")));
|
|
@@ -3778,7 +3793,7 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
3778
3793
|
Scan: ${result.metadata.scanDuration}ms | ${result.metadata.engineVersion}`));
|
|
3779
3794
|
} else if (options.audience === "plain") {
|
|
3780
3795
|
const { renderPlainReport: renderPlainReport2 } = await Promise.resolve().then(() => (init_plain_report(), plain_report_exports));
|
|
3781
|
-
renderPlainReport2(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
3796
|
+
renderPlainReport2(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom, options.sector);
|
|
3782
3797
|
} else {
|
|
3783
3798
|
const violations = violationsOf(result.reports);
|
|
3784
3799
|
const needsReview = needsReviewOf(result.reports);
|
|
@@ -3918,10 +3933,6 @@ ${t("cli.badge_withheld")}`));
|
|
|
3918
3933
|
if (spinner) spinner.succeed(t("cli.junit_saved", { path: options.junit }));
|
|
3919
3934
|
else if (!options.json) console.log(import_chalk2.default.green(`\u2713 JUnit report saved to ${options.junit}`));
|
|
3920
3935
|
}
|
|
3921
|
-
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
3922
|
-
if (!options.json) console.error(import_chalk2.default.yellow("\nCI/CD: scan inconclusive \u2014 real content not assessed (interstitial/wait page). Not treated as a pass."));
|
|
3923
|
-
process.exit(1);
|
|
3924
|
-
}
|
|
3925
3936
|
if (options.ci && result.stats.critical > 0) {
|
|
3926
3937
|
if (!options.json) console.error(import_chalk2.default.red(t("cli.critical_failure")));
|
|
3927
3938
|
process.exit(1);
|
|
@@ -3949,6 +3960,12 @@ ${t("cli.badge_withheld")}`));
|
|
|
3949
3960
|
}
|
|
3950
3961
|
}
|
|
3951
3962
|
}
|
|
3963
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
3964
|
+
if (!options.json) {
|
|
3965
|
+
console.error(import_chalk2.default.yellow("\nScan inconclusive \u2014 real content not assessed (interstitial/wait page). Exiting 1 so an unmeasured page is never read as success."));
|
|
3966
|
+
}
|
|
3967
|
+
process.exit(1);
|
|
3968
|
+
}
|
|
3952
3969
|
} catch (error) {
|
|
3953
3970
|
if (spinner) spinner.fail(t("cli.scan_failed"));
|
|
3954
3971
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
generateStatementContent,
|
|
9
9
|
getEngineVersion,
|
|
10
10
|
isBadgeWithheldByRobustness
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-DD4VIRME.mjs";
|
|
12
12
|
import {
|
|
13
13
|
groupReportsByRule,
|
|
14
14
|
impactBreakdown,
|
|
15
15
|
isPlainLanguageSupported,
|
|
16
16
|
klarsprakLegalLine,
|
|
17
17
|
languageDisplayName
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-OVSNTJFG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
getCurrentLang,
|
|
21
21
|
setLanguage,
|
|
@@ -143,7 +143,7 @@ function generateReportHTML(result, sector = "public", audience = "developer", p
|
|
|
143
143
|
return inconclusiveReportHTML(result);
|
|
144
144
|
}
|
|
145
145
|
if (audience === "plain") {
|
|
146
|
-
return generatePlainReportHTML(result, plainFallbackFrom);
|
|
146
|
+
return generatePlainReportHTML(result, plainFallbackFrom, sector);
|
|
147
147
|
}
|
|
148
148
|
const criticalCount = result.stats.critical;
|
|
149
149
|
const highCount = result.stats.high;
|
|
@@ -490,7 +490,7 @@ function getLogoDataUri() {
|
|
|
490
490
|
cachedLogoDataUri = "";
|
|
491
491
|
return cachedLogoDataUri;
|
|
492
492
|
}
|
|
493
|
-
function generatePlainReportHTML(result, plainFallbackFrom) {
|
|
493
|
+
function generatePlainReportHTML(result, plainFallbackFrom, sector) {
|
|
494
494
|
const lang = getCurrentLang();
|
|
495
495
|
const safeUrl = escapeHtml(result.url);
|
|
496
496
|
const logoDataUri = getLogoDataUri();
|
|
@@ -518,7 +518,7 @@ ${sortedGroups.map((group) => {
|
|
|
518
518
|
const occurrences = group.count > 1 ? `, ${escapeHtml(t("plain.occurrences", { count: group.count }))}` : "";
|
|
519
519
|
const headingHtml = pl?.headline ? `${escapeHtml(pl.headline)} <span class="issue-rule-ref">(${escapeHtml(report.ruleId)})</span>` : escapeHtml(report.ruleId);
|
|
520
520
|
const legalHtml = isSwedish ? `
|
|
521
|
-
<p class="issue-legal">${escapeHtml(klarsprakLegalLine(report.dosLagenReference))}</p>` : "";
|
|
521
|
+
<p class="issue-legal">${escapeHtml(klarsprakLegalLine(report.dosLagenReference, { sector, ruleId: report.ruleId }))}</p>` : "";
|
|
522
522
|
if (pl) {
|
|
523
523
|
return ` <li class="issue-item ${cardClass}">
|
|
524
524
|
<span class="badge ${badgeClass}">${badgeText}</span>
|
|
@@ -1165,7 +1165,12 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1165
1165
|
// ett fält, inte hela regelobjektet. Samma korta 3-fals-
|
|
1166
1166
|
// klarspråk som --plain, annars felmärks WCAG 2.2-fynden som
|
|
1167
1167
|
// lagkrav i widgeten (Karins beslut 2026-08-25).
|
|
1168
|
-
|
|
1168
|
+
// Intern #56: sektorsstyrd lydelse även i widget-JSON:en —
|
|
1169
|
+
// annars påstår den publika widgeten DOS-lagen för privata kunder.
|
|
1170
|
+
legalBasis: klarsprakLegalLine(r.dosLagenReference, {
|
|
1171
|
+
sector: options.sector,
|
|
1172
|
+
ruleId: r.ruleId
|
|
1173
|
+
}),
|
|
1169
1174
|
// Plain-language (klarspråk) fields, present when the rule
|
|
1170
1175
|
// is covered; undefined values drop out of the JSON.
|
|
1171
1176
|
headline: r.plainLanguage?.headline,
|
|
@@ -1178,8 +1183,8 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1178
1183
|
console.log(JSON.stringify(result, null, 2));
|
|
1179
1184
|
} else if (result.complianceStatus === "INCONCLUSIVE") {
|
|
1180
1185
|
if (options.audience === "plain") {
|
|
1181
|
-
const { renderPlainReport } = await import("../plain-report-
|
|
1182
|
-
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
1186
|
+
const { renderPlainReport } = await import("../plain-report-PR4PSW23.mjs");
|
|
1187
|
+
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom, options.sector);
|
|
1183
1188
|
} else {
|
|
1184
1189
|
console.log("");
|
|
1185
1190
|
console.log(chalk.yellow.bold(t("cli.inconclusive_headline")));
|
|
@@ -1210,8 +1215,8 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1210
1215
|
console.log(chalk.gray(`
|
|
1211
1216
|
Scan: ${result.metadata.scanDuration}ms | ${result.metadata.engineVersion}`));
|
|
1212
1217
|
} else if (options.audience === "plain") {
|
|
1213
|
-
const { renderPlainReport } = await import("../plain-report-
|
|
1214
|
-
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
1218
|
+
const { renderPlainReport } = await import("../plain-report-PR4PSW23.mjs");
|
|
1219
|
+
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom, options.sector);
|
|
1215
1220
|
} else {
|
|
1216
1221
|
const violations = violationsOf(result.reports);
|
|
1217
1222
|
const needsReview = needsReviewOf(result.reports);
|
|
@@ -1351,10 +1356,6 @@ ${t("cli.badge_withheld")}`));
|
|
|
1351
1356
|
if (spinner) spinner.succeed(t("cli.junit_saved", { path: options.junit }));
|
|
1352
1357
|
else if (!options.json) console.log(chalk.green(`\u2713 JUnit report saved to ${options.junit}`));
|
|
1353
1358
|
}
|
|
1354
|
-
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
1355
|
-
if (!options.json) console.error(chalk.yellow("\nCI/CD: scan inconclusive \u2014 real content not assessed (interstitial/wait page). Not treated as a pass."));
|
|
1356
|
-
process.exit(1);
|
|
1357
|
-
}
|
|
1358
1359
|
if (options.ci && result.stats.critical > 0) {
|
|
1359
1360
|
if (!options.json) console.error(chalk.red(t("cli.critical_failure")));
|
|
1360
1361
|
process.exit(1);
|
|
@@ -1382,6 +1383,12 @@ ${t("cli.badge_withheld")}`));
|
|
|
1382
1383
|
}
|
|
1383
1384
|
}
|
|
1384
1385
|
}
|
|
1386
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
1387
|
+
if (!options.json) {
|
|
1388
|
+
console.error(chalk.yellow("\nScan inconclusive \u2014 real content not assessed (interstitial/wait page). Exiting 1 so an unmeasured page is never read as success."));
|
|
1389
|
+
}
|
|
1390
|
+
process.exit(1);
|
|
1391
|
+
}
|
|
1385
1392
|
} catch (error) {
|
|
1386
1393
|
if (spinner) spinner.fail(t("cli.scan_failed"));
|
|
1387
1394
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
impactBreakdown,
|
|
4
4
|
klarsprakLegalLine,
|
|
5
5
|
languageDisplayName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OVSNTJFG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentLang,
|
|
9
9
|
setLanguage,
|
|
@@ -44,7 +44,7 @@ var BADGE_KEY = {
|
|
|
44
44
|
function levelOf(report) {
|
|
45
45
|
return report.plainLanguage?.impactLevel ?? RISK_TO_IMPACT[report.holmdigitalInsight.diggRisk] ?? "putsning";
|
|
46
46
|
}
|
|
47
|
-
function renderPlainReport(result, lang = "en", plainFallbackFrom) {
|
|
47
|
+
function renderPlainReport(result, lang = "en", plainFallbackFrom, sector) {
|
|
48
48
|
setLanguage(lang);
|
|
49
49
|
if (plainFallbackFrom) {
|
|
50
50
|
console.log(chalk.yellow(t("plain.gate_fallback", { lang: languageDisplayName(plainFallbackFrom) })));
|
|
@@ -100,7 +100,7 @@ function renderPlainReport(result, lang = "en", plainFallbackFrom) {
|
|
|
100
100
|
console.log(` ${t("plain.fallback_framing")} ${report.remediation.description}`);
|
|
101
101
|
}
|
|
102
102
|
if (isSwedish) {
|
|
103
|
-
console.log(` ${klarsprakLegalLine(report.dosLagenReference)}`);
|
|
103
|
+
console.log(` ${klarsprakLegalLine(report.dosLagenReference, { sector, ruleId: report.ruleId })}`);
|
|
104
104
|
}
|
|
105
105
|
console.log("");
|
|
106
106
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/engine",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@holmdigital/components": "^4.0.0",
|
|
89
|
-
"@holmdigital/standards": "^3.0.
|
|
89
|
+
"@holmdigital/standards": "^3.0.6",
|
|
90
90
|
"axe-core": "^4.13.0",
|
|
91
91
|
"chalk": "^6.0.0",
|
|
92
92
|
"commander": "^15.0.0",
|