@intlayer/sync-po-plugin 9.4.2 → 9.4.4

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.
@@ -2,7 +2,7 @@ import { Locale } from "@intlayer/types/allLocales";
2
2
  import { FilePathPattern } from "@intlayer/types/filePathPattern";
3
3
  import { Plugin } from "@intlayer/types/plugin";
4
4
  //#region src/loadPO.d.ts
5
- type LoadPOPluginOptions = {
5
+ export type LoadPOPluginOptions = {
6
6
  /**
7
7
  * The source of the plugin.
8
8
  * Is a function to build the source from the key and locale.
@@ -61,7 +61,6 @@ type LoadPOPluginOptions = {
61
61
  * Read-only PO ingestion plugin: loads gettext PO files as dictionaries
62
62
  * without ever writing back to them.
63
63
  */
64
- declare const loadPO: (options: LoadPOPluginOptions) => Plugin;
64
+ export declare const loadPO: (options: LoadPOPluginOptions) => Plugin;
65
65
  //#endregion
66
- export { LoadPOPluginOptions, loadPO };
67
66
  //# sourceMappingURL=loadPO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadPO.d.ts","names":[],"sources":["../../src/loadPO.ts"],"mappings":";;;;KASY;;;;;;;;;;;;EAYV,QAAQ;;;;;;;;;;;;;;EAeR,SAAS;;;;;;;;;;;;;;;;;;;EAoBT;;;;;;;;EASA;;;;;;cAOW,SAAM,SAAa,wBAAsB"}
1
+ {"version":3,"file":"loadPO.d.ts","names":[],"sources":["../../src/loadPO.ts"],"mappings":";;;;YASY;;;;;;;;;;;;EAYV,QAAQ;;;;;;;;;;;;;;EAeR,SAAS;;;;;;;;;;;;;;;;;;;EAoBT;;;;;;;;EASA;;;;;;qBAOW,SAAM,SAAa,wBAAsB"}
@@ -4,17 +4,16 @@ import { FormatCodec } from "@intlayer/engine/syncPluginKit";
4
4
  * Parse a PO file string into a flat msgid → msgstr record.
5
5
  * Skips the PO header (msgid ""), comment lines, and plural/context keywords.
6
6
  */
7
- declare const parsePO: (fileContent: string) => Record<string, string>;
7
+ export declare const parsePO: (fileContent: string) => Record<string, string>;
8
8
  /**
9
9
  * Serialize a flat key → value record to PO file format.
10
10
  * Non-string values are silently skipped.
11
11
  */
12
- declare const serializePO: (content: Record<string, unknown>, locale?: string) => string;
12
+ export declare const serializePO: (content: Record<string, unknown>, locale?: string) => string;
13
13
  /**
14
14
  * PO payload codec bridging {@link parsePO} / {@link serializePO} to the
15
15
  * sync-plugin kit.
16
16
  */
17
- declare const poCodec: FormatCodec;
17
+ export declare const poCodec: FormatCodec;
18
18
  //#endregion
19
- export { parsePO, poCodec, serializePO };
20
19
  //# sourceMappingURL=poFormat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"poFormat.d.ts","names":[],"sources":["../../src/poFormat.ts"],"mappings":";;;;;;cAsBa,UAAO,wBAA0B;;;;;cAsEjC,cAAW,SACb,yBAAuB;;;;;cA+BrB,SAAS"}
1
+ {"version":3,"file":"poFormat.d.ts","names":[],"sources":["../../src/poFormat.ts"],"mappings":";;;;;;qBAsBa,UAAO,wBAA0B;;;;;qBAsEjC,cAAW,SACb,yBAAuB;;;;;qBA+BrB,SAAS"}
@@ -4,7 +4,7 @@ import { Plugin } from "@intlayer/types/plugin";
4
4
  import { extractKeyAndLocaleFromPath } from "@intlayer/engine/syncPluginKit";
5
5
  import { DictionaryLocation } from "@intlayer/types/dictionary";
6
6
  //#region src/syncPO.d.ts
7
- type SyncPOPluginOptions = {
7
+ export type SyncPOPluginOptions = {
8
8
  /**
9
9
  * The source of the plugin.
10
10
  * Is a function to build the source from the key and locale.
@@ -48,7 +48,7 @@ type SyncPOPluginOptions = {
48
48
  * Two-way PO synchronization plugin: ingests gettext PO files as dictionaries
49
49
  * and writes the merged build output back to the same files.
50
50
  */
51
- declare const syncPO: (options: SyncPOPluginOptions) => Promise<Plugin>;
51
+ export declare const syncPO: (options: SyncPOPluginOptions) => Promise<Plugin>;
52
52
  //#endregion
53
- export { SyncPOPluginOptions, extractKeyAndLocaleFromPath, parsePO, serializePO, syncPO };
53
+ export { extractKeyAndLocaleFromPath, parsePO, serializePO };
54
54
  //# sourceMappingURL=syncPO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"syncPO.d.ts","names":[],"sources":["../../src/syncPO.ts"],"mappings":";;;;;;KAeY;;;;;;;;;;;EAWV,QAAQ;;;;;;;;;;;;;;;;;;;EAoBR,WAAW;;;;;;;;EASX;;;;;;cAOW,SAAM,SAAmB,wBAAsB,QAAQ"}
1
+ {"version":3,"file":"syncPO.d.ts","names":[],"sources":["../../src/syncPO.ts"],"mappings":";;;;;;YAeY;;;;;;;;;;;EAWV,QAAQ;;;;;;;;;;;;;;;;;;;EAoBR,WAAW;;;;;;;;EASX;;;;;;qBAOW,SAAM,SAAmB,wBAAsB,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/sync-po-plugin",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "A plugin for Intlayer that syncs Portable Object (.po) files to dictionaries.",
6
6
  "keywords": [
@@ -72,10 +72,10 @@
72
72
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "9.4.2",
76
- "@intlayer/core": "9.4.2",
77
- "@intlayer/engine": "9.4.2",
78
- "@intlayer/types": "9.4.2",
75
+ "@intlayer/config": "9.4.4",
76
+ "@intlayer/core": "9.4.4",
77
+ "@intlayer/engine": "9.4.4",
78
+ "@intlayer/types": "9.4.4",
79
79
  "fast-glob": "3.3.3"
80
80
  },
81
81
  "devDependencies": {
@@ -84,9 +84,9 @@
84
84
  "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsdown-config": "1.0.4",
86
86
  "rimraf": "6.1.3",
87
- "tsdown": "0.22.14",
87
+ "tsdown": "0.23.0",
88
88
  "typescript": "7.0.2",
89
- "vitest": "4.1.11"
89
+ "vitest": "5.0.0"
90
90
  },
91
91
  "engines": {
92
92
  "node": ">=14.18"