@http-forge/core 0.4.3 → 0.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.
|
@@ -22,6 +22,8 @@ export declare class CollectionService implements ICollectionService {
|
|
|
22
22
|
private collections;
|
|
23
23
|
private fileWatcher?;
|
|
24
24
|
private loader;
|
|
25
|
+
/** Debounce timer for coalescing rapid file-watcher change events */
|
|
26
|
+
private debounceTimer;
|
|
25
27
|
/**
|
|
26
28
|
* In-memory Local Values for collection variables (not persisted)
|
|
27
29
|
*/
|
|
@@ -49,6 +49,15 @@ export declare class FolderCollectionStore implements ICollectionStore {
|
|
|
49
49
|
* Ensure collections directory exists
|
|
50
50
|
*/
|
|
51
51
|
private ensureDirectory;
|
|
52
|
+
/**
|
|
53
|
+
* Read and parse a JSON metadata file, tolerating transient partial/empty reads.
|
|
54
|
+
*
|
|
55
|
+
* While another process writes files (e.g. importing a collection), a file watcher may
|
|
56
|
+
* trigger a load before the write completes, yielding empty or truncated content. Such
|
|
57
|
+
* cases are transient and expected, so they are skipped silently. Genuinely malformed
|
|
58
|
+
* (non-empty, complete) JSON is still reported.
|
|
59
|
+
*/
|
|
60
|
+
private readJsonFileSafe;
|
|
52
61
|
/**
|
|
53
62
|
* Load all collections from disk
|
|
54
63
|
*/
|
package/package.json
CHANGED