zen-fs-config 0.6.0 → 0.6.2
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.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +317 -177
- package/dist/index.mjs +317 -177
- package/dist/zen-fs-config.js +313 -176
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1098,6 +1098,16 @@ declare class ConfigRepo implements IConfigRepo {
|
|
|
1098
1098
|
* (they have no sync pair, so they never show up in getSyncStatuses()).
|
|
1099
1099
|
*/
|
|
1100
1100
|
getBackendSyncStates(): Map<string, BackendSyncState>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Mirror per-pair `sync:error` into `getBackendSyncStates()`.
|
|
1103
|
+
*
|
|
1104
|
+
* `SyncEngine.syncAll()` catches per-pair exceptions and substitutes an empty
|
|
1105
|
+
* result, so a failed replica otherwise only shows up as a missing
|
|
1106
|
+
* `lastResult`. Recording the real error lets callers report the actual
|
|
1107
|
+
* status (401/403/404/timeout) instead of guessing "remote unreachable or
|
|
1108
|
+
* invalid credentials".
|
|
1109
|
+
*/
|
|
1110
|
+
private trackSyncErrors;
|
|
1101
1111
|
/** Registered replica backend descriptors (excludes the implicit local primary). */
|
|
1102
1112
|
listBackends(): AppDataBackendDescriptor[];
|
|
1103
1113
|
/** 配置组的权威后端列表(`.config/backends/`),与 `listBackends()` 相同。 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1098,6 +1098,16 @@ declare class ConfigRepo implements IConfigRepo {
|
|
|
1098
1098
|
* (they have no sync pair, so they never show up in getSyncStatuses()).
|
|
1099
1099
|
*/
|
|
1100
1100
|
getBackendSyncStates(): Map<string, BackendSyncState>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Mirror per-pair `sync:error` into `getBackendSyncStates()`.
|
|
1103
|
+
*
|
|
1104
|
+
* `SyncEngine.syncAll()` catches per-pair exceptions and substitutes an empty
|
|
1105
|
+
* result, so a failed replica otherwise only shows up as a missing
|
|
1106
|
+
* `lastResult`. Recording the real error lets callers report the actual
|
|
1107
|
+
* status (401/403/404/timeout) instead of guessing "remote unreachable or
|
|
1108
|
+
* invalid credentials".
|
|
1109
|
+
*/
|
|
1110
|
+
private trackSyncErrors;
|
|
1101
1111
|
/** Registered replica backend descriptors (excludes the implicit local primary). */
|
|
1102
1112
|
listBackends(): AppDataBackendDescriptor[];
|
|
1103
1113
|
/** 配置组的权威后端列表(`.config/backends/`),与 `listBackends()` 相同。 */
|