@intlayer/sync-json-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.
@@ -4,13 +4,12 @@ import { FormatCodec, SyncContent } from "@intlayer/engine/syncPluginKit";
4
4
  * JSON payload codec: standard JSON parsing, pretty-printed serialization
5
5
  * (2-space indentation, trailing newline).
6
6
  */
7
- declare const jsonCodec: FormatCodec;
7
+ export declare const jsonCodec: FormatCodec;
8
8
  /**
9
9
  * Read one JSON source through `loadExternalFile`, which also supports JSON5,
10
10
  * JSONC and transpiled JS/TS message files. Returns `undefined` for missing or
11
11
  * unreadable files so callers fall back to empty content.
12
12
  */
13
- declare const readJSONEntry: (absoluteFilePath: string) => Promise<SyncContent | undefined>;
13
+ export declare const readJSONEntry: (absoluteFilePath: string) => Promise<SyncContent | undefined>;
14
14
  //#endregion
15
- export { jsonCodec, readJSONEntry };
16
15
  //# sourceMappingURL=jsonCodec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonCodec.d.ts","names":[],"sources":["../../src/jsonCodec.ts"],"mappings":";;;;;;cAOa,WAAW;;;;;;cAUX,gBAAa,6BAEvB,QAAQ"}
1
+ {"version":3,"file":"jsonCodec.d.ts","names":[],"sources":["../../src/jsonCodec.ts"],"mappings":";;;;;;qBAOa,WAAW;;;;;;qBAUX,gBAAa,6BAEvB,QAAQ"}
@@ -3,7 +3,7 @@ import { DictionaryFormat } from "@intlayer/types/dictionary";
3
3
  import { FilePathPattern } from "@intlayer/types/filePathPattern";
4
4
  import { Plugin } from "@intlayer/types/plugin";
5
5
  //#region src/loadJSON.d.ts
6
- type LoadJSONPluginOptions = {
6
+ export type LoadJSONPluginOptions = {
7
7
  /**
8
8
  * The source of the plugin.
9
9
  * Is a function to build the source from the key and locale.
@@ -91,7 +91,6 @@ type LoadJSONPluginOptions = {
91
91
  * Read-only JSON ingestion plugin: loads JSON message files as dictionaries
92
92
  * without ever writing back to them.
93
93
  */
94
- declare const loadJSON: (options: LoadJSONPluginOptions) => Plugin;
94
+ export declare const loadJSON: (options: LoadJSONPluginOptions) => Plugin;
95
95
  //#endregion
96
- export { LoadJSONPluginOptions, loadJSON };
97
96
  //# sourceMappingURL=loadJSON.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadJSON.d.ts","names":[],"sources":["../../src/loadJSON.ts"],"mappings":";;;;;KAUY;;;;;;;;;;;;EAYV,QAAQ;;;;;;;;;;;;;;EAeR,SAAS;;;;;;;;;;;;;;;;;;;;;;;EAwBT;;;;;;;;;EAUA;;;;;;;;;;;EAYA,SAAS;;;;;;;;;;;;;EAcT;;;;;;cAOW,WAAQ,SAAa,0BAAwB"}
1
+ {"version":3,"file":"loadJSON.d.ts","names":[],"sources":["../../src/loadJSON.ts"],"mappings":";;;;;YAUY;;;;;;;;;;;;EAYV,QAAQ;;;;;;;;;;;;;;EAeR,SAAS;;;;;;;;;;;;;;;;;;;;;;;EAwBT;;;;;;;;;EAUA;;;;;;;;;;;EAYA,SAAS;;;;;;;;;;;;;EAcT;;;;;;qBAOW,WAAQ,SAAa,0BAAwB"}
@@ -3,7 +3,7 @@ import { DictionaryFormat, DictionaryLocation } from "@intlayer/types/dictionary
3
3
  import { FilePathPattern } from "@intlayer/types/filePathPattern";
4
4
  import { Plugin } from "@intlayer/types/plugin";
5
5
  //#region src/syncJSON.d.ts
6
- type SyncJSONPluginOptions = {
6
+ export type SyncJSONPluginOptions = {
7
7
  /**
8
8
  * The source of the plugin.
9
9
  * Is a function to build the source from the key and locale.
@@ -84,7 +84,7 @@ type SyncJSONPluginOptions = {
84
84
  * Two-way JSON synchronization plugin: ingests JSON message files as
85
85
  * dictionaries and writes the merged build output back to the same files.
86
86
  */
87
- declare const syncJSON: (options: SyncJSONPluginOptions) => Promise<Plugin>;
87
+ export declare const syncJSON: (options: SyncJSONPluginOptions) => Promise<Plugin>;
88
88
  //#endregion
89
- export { SyncJSONPluginOptions, extractKeyAndLocaleFromPath, syncJSON };
89
+ export { extractKeyAndLocaleFromPath };
90
90
  //# sourceMappingURL=syncJSON.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"syncJSON.d.ts","names":[],"sources":["../../src/syncJSON.ts"],"mappings":";;;;;KAiBY;;;;;;;;;;;EAWV,QAAQ;;;;;;;;;;;;;;;;;;;;;;;EAwBR,WAAW;;;;;;;;;EAUX;;;;;;;;EASA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;EAyBT;;;;;;cAOW,WAAQ,SACV,0BACR,QAAQ"}
1
+ {"version":3,"file":"syncJSON.d.ts","names":[],"sources":["../../src/syncJSON.ts"],"mappings":";;;;;YAiBY;;;;;;;;;;;EAWV,QAAQ;;;;;;;;;;;;;;;;;;;;;;;EAwBR,WAAW;;;;;;;;;EAUX;;;;;;;;EASA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;EAyBT;;;;;;qBAOW,WAAQ,SACV,0BACR,QAAQ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/sync-json-plugin",
3
- "version": "9.4.2",
3
+ "version": "9.4.4",
4
4
  "private": false,
5
5
  "description": "A plugin for Intlayer that syncs JSON files to dictionaries.",
6
6
  "keywords": [
@@ -71,10 +71,10 @@
71
71
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
72
72
  },
73
73
  "dependencies": {
74
- "@intlayer/config": "9.4.2",
75
- "@intlayer/core": "9.4.2",
76
- "@intlayer/engine": "9.4.2",
77
- "@intlayer/types": "9.4.2",
74
+ "@intlayer/config": "9.4.4",
75
+ "@intlayer/core": "9.4.4",
76
+ "@intlayer/engine": "9.4.4",
77
+ "@intlayer/types": "9.4.4",
78
78
  "fast-glob": "3.3.3"
79
79
  },
80
80
  "devDependencies": {
@@ -83,9 +83,9 @@
83
83
  "@utils/ts-config-types": "1.0.4",
84
84
  "@utils/tsdown-config": "1.0.4",
85
85
  "rimraf": "6.1.3",
86
- "tsdown": "0.22.14",
86
+ "tsdown": "0.23.0",
87
87
  "typescript": "7.0.2",
88
- "vitest": "4.1.11"
88
+ "vitest": "5.0.0"
89
89
  },
90
90
  "engines": {
91
91
  "node": ">=14.18"