@verbaly/compiler 0.69.1 → 0.71.0

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/index.d.ts CHANGED
@@ -228,12 +228,13 @@ export declare function shippedCatalogs(cfg: ResolvedConfig, catalogs: Catalogs,
228
228
  export declare function pruneCatalogs(cfg: ResolvedConfig, catalogs: Catalogs, registry: MessageRegistry): Record<string, string[]>;
229
229
  //#endregion
230
230
  //#region src/state.d.ts
231
- export declare const STATE_FILE = ".verbaly-state.json";
231
+ export declare const STATE_FILE = "verbaly.lock";
232
232
  type Drafts = Record<string, string[]>;
233
233
  type Fingerprints = Record<string, Record<string, string>>;
234
234
  interface State {
235
235
  drafts: Drafts;
236
236
  fingerprints: Fingerprints;
237
+ migrated?: string[];
237
238
  }
238
239
  interface OutdatedEntry {
239
240
  locale: string;
@@ -253,6 +254,10 @@ interface TranslationWrite {
253
254
  entries: WrittenTranslation[];
254
255
  draft?: boolean;
255
256
  }
257
+ interface LockEntry {
258
+ file: string;
259
+ from?: string;
260
+ }
256
261
  export declare function loadState(cfg: ResolvedConfig): State;
257
262
  export declare function readState(cfg: ResolvedConfig): StateRead;
258
263
  export declare function updateState(cfg: ResolvedConfig, catalogs: Catalogs): State;
@@ -310,7 +315,9 @@ type Finding = ({
310
315
  kind: 'unparsed';
311
316
  } & UnparsedEntry) | ({
312
317
  kind: 'outdated';
313
- } & OutdatedEntry);
318
+ } & OutdatedEntry) | ({
319
+ kind: 'lock';
320
+ } & LockEntry);
314
321
  export declare function collisionEntries(registry: MessageRegistry): CollisionEntry[];
315
322
  export declare function formatCollision({ key, sites }: CollisionEntry, root?: string): string;
316
323
  export declare function formatFinding(finding: Finding, root?: string): string;
@@ -492,6 +499,7 @@ interface DoctorResult {
492
499
  entries: DoctorEntry[];
493
500
  }
494
501
  export declare function formatDoctorEntry(entry: DoctorEntry): string;
502
+ export declare function formatDoctorHealth(result: DoctorResult): string;
495
503
  export declare function doctor(cfg: ResolvedConfig): Promise<DoctorResult>;
496
504
  //#endregion
497
505
  //#region src/host.d.ts
@@ -515,6 +523,7 @@ interface InitResult {
515
523
  to: string;
516
524
  }[];
517
525
  refused: string[];
526
+ found?: string;
518
527
  }
519
528
  export declare function init(input?: InitOptions): Promise<InitResult>;
520
529
  //#endregion