omgbase 0.30.0 → 0.30.1
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/build-info.json +2 -2
- package/dist/src/cmd/show.js +8 -5
- package/package.json +4 -4
package/dist/build-info.json
CHANGED
package/dist/src/cmd/show.js
CHANGED
|
@@ -15,12 +15,15 @@ function showOne(cli, ref, include) {
|
|
|
15
15
|
if (!res)
|
|
16
16
|
throw new EngineErrorLike("doc_missing", `no document ${ref}`);
|
|
17
17
|
const links = docLinks(ws.store, resolved.docId, { direction: "both" });
|
|
18
|
-
// The authored keys, merged (frontmatter + inline — the `_data` view)
|
|
19
|
-
// computed rows
|
|
20
|
-
// spec/
|
|
21
|
-
//
|
|
22
|
-
|
|
18
|
+
// The authored keys, merged (frontmatter + inline — the `_data` view), then
|
|
19
|
+
// the computed rows under their own heading from `properties.computed`
|
|
20
|
+
// (`_title`/`_tags`, `spec/properties` 2.0 — the store's own keys now).
|
|
21
|
+
// The merged bag carries every source, so the computed keys are subtracted
|
|
22
|
+
// from it BY NAME rather than by sigil: through properties 1.2 a
|
|
23
|
+
// `!k.startsWith("$")` filter did this, and the 2.0 rename silently
|
|
24
|
+
// defeated it — `_title` appeared in both sections (caught by spec/cli).
|
|
23
25
|
const computed = res.properties.computed ?? {};
|
|
26
|
+
const properties = Object.fromEntries(Object.entries(docPropertiesMerged(ws.store.db, resolved.docId)).filter(([k]) => !(k in computed)));
|
|
24
27
|
const payload = { kind: "document", ...res };
|
|
25
28
|
return { payload, render: () => renderDocCard(cli, res._path, properties, computed, links) };
|
|
26
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omgbase",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Open Markdown Graph Base — CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"omg": "./dist/src/main.js"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@omgbase/core": "^0.
|
|
48
|
+
"@omgbase/core": "^0.34.0",
|
|
49
49
|
"@omgbase/fs-adapter": "^0.2.0",
|
|
50
|
-
"@omgbase/git-adapter": "^0.1.
|
|
51
|
-
"@omgbase/sync": "^0.7.
|
|
50
|
+
"@omgbase/git-adapter": "^0.1.1",
|
|
51
|
+
"@omgbase/sync": "^0.7.4",
|
|
52
52
|
"yaml": "^2.9.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|