obsidian-sync-mcp 0.7.3 → 0.8.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/README.md +2 -0
- package/dist/{chunk-SGLPTZJA.js → chunk-GSVMRHWP.js} +13 -2
- package/dist/{chunk-SGLPTZJA.js.map → chunk-GSVMRHWP.js.map} +1 -1
- package/dist/main.js +274 -24
- package/dist/main.js.map +1 -1
- package/dist/{vault-EJSNMND5.js → vault-IAH37QM4.js} +14 -5
- package/dist/{vault-EJSNMND5.js.map → vault-IAH37QM4.js.map} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
if(!("navigator" in globalThis)){globalThis.navigator={language:"en"};}
|
|
4
4
|
import {
|
|
5
5
|
deriveContent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GSVMRHWP.js";
|
|
7
7
|
import {
|
|
8
8
|
__reExport,
|
|
9
9
|
isValidNotePath,
|
|
@@ -10153,7 +10153,7 @@ var Vault = class _Vault {
|
|
|
10153
10153
|
const content = deriveContent(doc);
|
|
10154
10154
|
callback(path, content, content === null ? void 0 : doc.mtime, seq);
|
|
10155
10155
|
}
|
|
10156
|
-
async catchUp(since, callback, onBatch) {
|
|
10156
|
+
async catchUp(since, callback, onBatch, stats) {
|
|
10157
10157
|
const BATCH_SIZE2 = 50;
|
|
10158
10158
|
const db = this.manipulator.liveSyncLocalDB.localDatabase;
|
|
10159
10159
|
let currentSince = since;
|
|
@@ -10176,12 +10176,21 @@ var Vault = class _Vault {
|
|
|
10176
10176
|
try {
|
|
10177
10177
|
path = await decrypt4(path, this.passphrase, false);
|
|
10178
10178
|
} catch {
|
|
10179
|
+
if (stats) stats.unreadable++;
|
|
10179
10180
|
continue;
|
|
10180
10181
|
}
|
|
10181
10182
|
}
|
|
10182
|
-
if (
|
|
10183
|
+
if (meta.deleted) {
|
|
10184
|
+
if (isValidNotePath(path)) callback(path, null);
|
|
10185
|
+
continue;
|
|
10186
|
+
}
|
|
10187
|
+
if (!isValidNotePath(path)) continue;
|
|
10183
10188
|
const doc = await this.manipulator.getByMeta(meta).catch(() => null);
|
|
10184
|
-
if (doc)
|
|
10189
|
+
if (doc) {
|
|
10190
|
+
_Vault.docToChange(doc, callback);
|
|
10191
|
+
} else if (stats) {
|
|
10192
|
+
stats.unreadable++;
|
|
10193
|
+
}
|
|
10185
10194
|
}
|
|
10186
10195
|
totalProcessed += result.results.length;
|
|
10187
10196
|
currentSince = String(result.last_seq);
|
|
@@ -10275,4 +10284,4 @@ var Vault = class _Vault {
|
|
|
10275
10284
|
export {
|
|
10276
10285
|
Vault
|
|
10277
10286
|
};
|
|
10278
|
-
//# sourceMappingURL=vault-
|
|
10287
|
+
//# sourceMappingURL=vault-IAH37QM4.js.map
|