@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 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
  ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-1330-22c55e?style=flat-square)
209
- ![Repository Size](https://img.shields.io/badge/Repository_Size-53.80_kB-6b7280?style=flat-square)
209
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-54.06_kB-6b7280?style=flat-square)
210
210
  ![Folders](https://img.shields.io/badge/Folders-5-4a4a4a?style=flat-square)
211
211
  ![Source Files](https://img.shields.io/badge/Source_Files-21-3178c6?style=flat-square)
212
212
 
213
213
  ### Measured Targets
214
214
 
215
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-2.15_kB_gzip-6b7280?style=flat-square)
215
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-2.18_kB_gzip-6b7280?style=flat-square)
216
216
 
217
217
  ### TypeScript
218
218
 
@@ -394,16 +394,16 @@ None.
394
394
  ### Markdown
395
395
 
396
396
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
397
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-253-1f6feb?style=flat-square)
397
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-267-1f6feb?style=flat-square)
398
398
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
399
- ![H2](https://img.shields.io/badge/H2-11-8b5cf6?style=flat-square)
400
- ![H3](https://img.shields.io/badge/H3-17-a78bfa?style=flat-square)
399
+ ![H2](https://img.shields.io/badge/H2-13-8b5cf6?style=flat-square)
400
+ ![H3](https://img.shields.io/badge/H3-19-a78bfa?style=flat-square)
401
401
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
402
402
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
403
403
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
404
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-54-64748b?style=flat-square)
405
- ![Lists](https://img.shields.io/badge/Lists-11-16a34a?style=flat-square)
406
- ![List Items](https://img.shields.io/badge/List_Items-34-22c55e?style=flat-square)
404
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-58-64748b?style=flat-square)
405
+ ![Lists](https://img.shields.io/badge/Lists-13-16a34a?style=flat-square)
406
+ ![List Items](https://img.shields.io/badge/List_Items-38-22c55e?style=flat-square)
407
407
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
408
408
  ![Tables](https://img.shields.io/badge/Tables-2-0284c7?style=flat-square)
409
409
  ![Table Rows](https://img.shields.io/badge/Table_Rows-10-0ea5e9?style=flat-square)
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 packages/ic-suite/conformetry/conformetry-output/src/modules/inventory/inventory.constants.ts
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 f(e, t) {
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 p(e, t, n, r) {
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 m = class {
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
- m = p([e(), f("design:paramtypes", [])], m);
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 h = class {};
72
- h = p([t({
71
+ var p = class InventoryModule {};
72
+ p = __decorate([t({
73
73
  controllers: [],
74
- exports: [m],
74
+ exports: [f],
75
75
  imports: [],
76
- providers: [m]
77
- })], h);
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 g = " ", _ = " ", v = "Conformance scores:", y = "All checked files conform.", b = class {
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
- `${_}${String(e.index + 1)}. ${t.message}`,
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 ? [] : [`${g}Expected: \`${t.expected}\``],
103
- ...t.actual === void 0 ? [] : [`${g}Actual : \`${t.actual}\``],
104
- ...(t.weight ?? r) <= r ? [] : [`${g}Weight : ${String(t.weight)} of the ${String(e.totalWeight)} requirements in this file`],
105
- `${g}Fix : ${t.fix}`
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
- `${_}Instance: ${n.relative(e.workingDirectory, t.instanceFilePath)}`,
117
- `${_}Template: ${n.relative(e.workingDirectory, t.templateFilePath)}`,
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 [`${g}${e.prefix}: Line ${String(e.line)}${t}`];
132
+ return [`${m}${e.prefix}: Line ${String(e.line)}${t}`];
133
133
  }
134
- return e.jsonPath === void 0 ? [] : [`${g}${e.prefix}: JSON path "${e.jsonPath}"`];
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
- v,
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, y].join("\n") : [...t, ...e.fileResults.flatMap((t, n) => this.formatFileResult({
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
- b = p([e(), f("design:paramtypes", [o === void 0 ? Object : o])], b);
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 x = class {};
178
- x = p([t({
177
+ var y = class ReportingModule {};
178
+ y = __decorate([t({
179
179
  controllers: [],
180
- exports: [b],
180
+ exports: [v],
181
181
  imports: [a],
182
- providers: [b]
183
- })], x);
182
+ providers: [v]
183
+ })], y);
184
184
  //#endregion
185
- export { h as InventoryModule, m as InventoryService, x as ReportingModule, b as ReportingService };
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",
8
- "@conformetry/languages": "0.0.8",
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.8"
61
+ "version": "0.0.10"
62
62
  }