@vmz/diagnostic 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -25,7 +25,12 @@ export type DiagnosticInput = {
25
25
  message?: string;
26
26
  span?: SourceSpan;
27
27
  };
28
- /** Optional offset → line/col context (aligned with compiler OffsetIndex later). */
28
+ /**
29
+ * Optional offset → line/col context.
30
+ * Hosts back this with compiler `OffsetIndex` via the N-API helper
31
+ * (`offsetIndexLineCol` / `@vmz/core/position-context`); this package stays
32
+ * free of a native dependency.
33
+ */
29
34
  export type PositionContext = {
30
35
  lineCol(offset: number): {
31
36
  line: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/diagnostic",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "description": "Language-neutral diagnostic catalog render and pretty printer",
6
6
  "license": "MIT",