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.
- package/README.md +2 -0
- package/dist/chunk-SGLPTZJA.js +22 -0
- package/dist/chunk-SGLPTZJA.js.map +1 -0
- package/dist/main.js +38 -20
- package/dist/main.js.map +1 -1
- package/dist/{vault-5Y35MEZS.js → vault-BL4NJC75.js} +6 -7
- package/dist/{vault-5Y35MEZS.js.map → vault-BL4NJC75.js.map} +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
11028
|
-
|
|
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-
|
|
11157
|
+
//# sourceMappingURL=vault-BL4NJC75.js.map
|