@conformetry/output 0.0.8 → 0.0.10
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/CHANGELOG.md +14 -0
- package/README.md +8 -8
- package/dist/src/index.js +29 -29
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.0.10 (2026-10-08)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated conformetry-languages to 0.0.10
|
|
6
|
+
- Updated conformetry-core to 0.0.10
|
|
7
|
+
|
|
8
|
+
## 0.0.9 (2026-10-08)
|
|
9
|
+
|
|
10
|
+
### 🧱 Updated Dependencies
|
|
11
|
+
|
|
12
|
+
- Updated conformetry-languages to 0.0.9
|
|
13
|
+
- Updated conformetry-core to 0.0.9
|
|
14
|
+
|
|
1
15
|
## 0.0.8 (2026-10-08)
|
|
2
16
|
|
|
3
17
|
### 🧱 Updated Dependencies
|
package/README.md
CHANGED
|
@@ -206,13 +206,13 @@ None.
|
|
|
206
206
|
### Project
|
|
207
207
|
|
|
208
208
|

|
|
209
|
-

|
|
210
210
|

|
|
211
211
|

|
|
212
212
|
|
|
213
213
|
### Measured Targets
|
|
214
214
|
|
|
215
|
-

|
|
216
216
|
|
|
217
217
|
### TypeScript
|
|
218
218
|
|
|
@@ -394,16 +394,16 @@ None.
|
|
|
394
394
|
### Markdown
|
|
395
395
|
|
|
396
396
|

|
|
397
|
-

|
|
398
398
|

|
|
399
|
-

|
|
400
|
+

|
|
401
401
|

|
|
402
402
|

|
|
403
403
|

|
|
404
|
-

|
|
405
|
+

|
|
406
|
+

|
|
407
407
|

|
|
408
408
|

|
|
409
409
|

|
package/dist/src/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Injectable as e, Module as t } from "@nestjs/common";
|
|
2
2
|
import n from "node:path";
|
|
3
3
|
import { DEFAULT_ERROR_WEIGHT as r, PERFECT_SCORE as i, ScoringModule as a, ScoringService as o } from "@conformetry/languages";
|
|
4
|
-
//#region
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
5
|
var s = " ", c = " ", l = "Instances:", u = "Templates:", d = "Template: ";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
|
|
8
|
-
function
|
|
8
|
+
function __decorateMetadata(e, t) {
|
|
9
9
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
|
|
13
|
-
function
|
|
13
|
+
function __decorate(e, t, n, r) {
|
|
14
14
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
15
15
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
16
16
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -18,7 +18,7 @@ function p(e, t, n, r) {
|
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region packages/ic-suite/conformetry/conformetry-output/src/modules/inventory/inventory.service.ts
|
|
21
|
-
var
|
|
21
|
+
var f = class InventoryService {
|
|
22
22
|
constructor() {}
|
|
23
23
|
describePairing(e) {
|
|
24
24
|
let t = `${String(e.matchedFileCount)}/${String(e.templateFileCount)}`;
|
|
@@ -65,19 +65,19 @@ var m = class {
|
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
f = __decorate([e(), __decorateMetadata("design:paramtypes", [])], f);
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region packages/ic-suite/conformetry/conformetry-output/src/modules/inventory/inventory.module.ts
|
|
71
|
-
var
|
|
72
|
-
|
|
71
|
+
var p = class InventoryModule {};
|
|
72
|
+
p = __decorate([t({
|
|
73
73
|
controllers: [],
|
|
74
|
-
exports: [
|
|
74
|
+
exports: [f],
|
|
75
75
|
imports: [],
|
|
76
|
-
providers: [
|
|
77
|
-
})],
|
|
76
|
+
providers: [f]
|
|
77
|
+
})], p);
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region packages/ic-suite/conformetry/conformetry-output/src/modules/reporting/reporting.constants.ts
|
|
80
|
-
var
|
|
80
|
+
var m = " ", h = " ", g = "Conformance scores:", _ = "All checked files conform.", v = class ReportingService {
|
|
81
81
|
scoringService;
|
|
82
82
|
constructor(e) {
|
|
83
83
|
this.scoringService = e;
|
|
@@ -86,7 +86,7 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
86
86
|
let { error: t } = e;
|
|
87
87
|
return [
|
|
88
88
|
"",
|
|
89
|
-
`${
|
|
89
|
+
`${h}${String(e.index + 1)}. ${t.message}`,
|
|
90
90
|
...this.formatLocation({
|
|
91
91
|
column: t.instanceColumn,
|
|
92
92
|
jsonPath: t.instancePath,
|
|
@@ -99,10 +99,10 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
99
99
|
line: t.templateLine,
|
|
100
100
|
prefix: "Template"
|
|
101
101
|
}),
|
|
102
|
-
...t.expected === void 0 ? [] : [`${
|
|
103
|
-
...t.actual === void 0 ? [] : [`${
|
|
104
|
-
...(t.weight ?? r) <= r ? [] : [`${
|
|
105
|
-
`${
|
|
102
|
+
...t.expected === void 0 ? [] : [`${m}Expected: \`${t.expected}\``],
|
|
103
|
+
...t.actual === void 0 ? [] : [`${m}Actual : \`${t.actual}\``],
|
|
104
|
+
...(t.weight ?? r) <= r ? [] : [`${m}Weight : ${String(t.weight)} of the ${String(e.totalWeight)} requirements in this file`],
|
|
105
|
+
`${m}Fix : ${t.fix}`
|
|
106
106
|
];
|
|
107
107
|
}
|
|
108
108
|
formatFileResult(e) {
|
|
@@ -113,8 +113,8 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
113
113
|
failedWeight: this.scoringService.sumWeights(t.differences),
|
|
114
114
|
totalWeight: t.totalWeight
|
|
115
115
|
})}`,
|
|
116
|
-
`${
|
|
117
|
-
`${
|
|
116
|
+
`${h}Instance: ${n.relative(e.workingDirectory, t.instanceFilePath)}`,
|
|
117
|
+
`${h}Template: ${n.relative(e.workingDirectory, t.templateFilePath)}`,
|
|
118
118
|
...t.differences.flatMap((e, n) => this.formatError({
|
|
119
119
|
error: e,
|
|
120
120
|
index: n,
|
|
@@ -129,9 +129,9 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
129
129
|
formatLocation(e) {
|
|
130
130
|
if (e.line !== void 0) {
|
|
131
131
|
let t = e.column === void 0 ? "" : `, Column ${String(e.column)}`;
|
|
132
|
-
return [`${
|
|
132
|
+
return [`${m}${e.prefix}: Line ${String(e.line)}${t}`];
|
|
133
133
|
}
|
|
134
|
-
return e.jsonPath === void 0 ? [] : [`${
|
|
134
|
+
return e.jsonPath === void 0 ? [] : [`${m}${e.prefix}: JSON path "${e.jsonPath}"`];
|
|
135
135
|
}
|
|
136
136
|
formatScore(e) {
|
|
137
137
|
let { score: t } = e, r = t.ok ? `meets threshold ${this.formatPercentage(t.threshold)}` : `below threshold ${this.formatPercentage(t.threshold)}`, i = n.relative(e.workingDirectory, t.instancePath);
|
|
@@ -140,7 +140,7 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
140
140
|
formatScores(e) {
|
|
141
141
|
let t = e.scores.filter((e) => e.score < i);
|
|
142
142
|
return t.length === 0 ? [] : [
|
|
143
|
-
|
|
143
|
+
g,
|
|
144
144
|
...t.map((t) => this.formatScore({
|
|
145
145
|
score: t,
|
|
146
146
|
workingDirectory: e.workingDirectory
|
|
@@ -164,22 +164,22 @@ var g = " ", _ = " ", v = "Conformance scores:", y = "All checked fil
|
|
|
164
164
|
scores: e.scores ?? [],
|
|
165
165
|
workingDirectory: e.workingDirectory
|
|
166
166
|
});
|
|
167
|
-
return e.fileResults.length === 0 ? [...t,
|
|
167
|
+
return e.fileResults.length === 0 ? [...t, _].join("\n") : [...t, ...e.fileResults.flatMap((t, n) => this.formatFileResult({
|
|
168
168
|
fileResult: t,
|
|
169
169
|
index: n,
|
|
170
170
|
workingDirectory: e.workingDirectory
|
|
171
171
|
}))].join("\n").trimStart();
|
|
172
172
|
}
|
|
173
173
|
};
|
|
174
|
-
|
|
174
|
+
v = __decorate([e(), __decorateMetadata("design:paramtypes", [o === void 0 ? Object : o])], v);
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region packages/ic-suite/conformetry/conformetry-output/src/modules/reporting/reporting.module.ts
|
|
177
|
-
var
|
|
178
|
-
|
|
177
|
+
var y = class ReportingModule {};
|
|
178
|
+
y = __decorate([t({
|
|
179
179
|
controllers: [],
|
|
180
|
-
exports: [
|
|
180
|
+
exports: [v],
|
|
181
181
|
imports: [a],
|
|
182
|
-
providers: [
|
|
183
|
-
})],
|
|
182
|
+
providers: [v]
|
|
183
|
+
})], y);
|
|
184
184
|
//#endregion
|
|
185
|
-
export {
|
|
185
|
+
export { p as InventoryModule, f as InventoryService, y as ReportingModule, v as ReportingService };
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@conformetry/core": "0.0.
|
|
8
|
-
"@conformetry/languages": "0.0.
|
|
7
|
+
"@conformetry/core": "0.0.10",
|
|
8
|
+
"@conformetry/languages": "0.0.10",
|
|
9
9
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
10
10
|
"reflect-metadata": "^0.2.2"
|
|
11
11
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"strict": true
|
|
59
59
|
},
|
|
60
60
|
"types": "./dist/src/index.d.ts",
|
|
61
|
-
"version": "0.0.
|
|
61
|
+
"version": "0.0.10"
|
|
62
62
|
}
|