obsidian-sync-mcp 0.5.4 → 0.5.6

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.
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  // Node polyfills for livesync-commonlib browser globals
3
3
  if(!("navigator" in globalThis)){globalThis.navigator={language:"en"};}
4
+ import {
5
+ deriveContent
6
+ } from "./chunk-SGLPTZJA.js";
4
7
  import {
5
8
  __reExport,
6
9
  parseFrontmatterAndLinks
@@ -11024,12 +11027,8 @@ var Vault = class _Vault {
11024
11027
  static docToChange(doc, callback, seq) {
11025
11028
  const path = doc.path ?? "";
11026
11029
  if (!path.endsWith(".md")) return;
11027
- if (doc.deleted) {
11028
- callback(path, null, void 0, seq);
11029
- } else {
11030
- const content = "data" in doc && Array.isArray(doc.data) ? doc.data.join("") : null;
11031
- callback(path, content, doc.mtime, seq);
11032
- }
11030
+ const content = deriveContent(doc);
11031
+ callback(path, content, content === null ? void 0 : doc.mtime, seq);
11033
11032
  }
11034
11033
  async catchUp(since, callback, onBatch) {
11035
11034
  const BATCH_SIZE2 = 50;
@@ -11155,4 +11154,4 @@ var Vault = class _Vault {
11155
11154
  export {
11156
11155
  Vault
11157
11156
  };
11158
- //# sourceMappingURL=vault-5Y35MEZS.js.map
11157
+ //# sourceMappingURL=vault-BL4NJC75.js.map