@entropicwarrior/sdoc 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@entropicwarrior/sdoc",
3
3
  "displayName": "SDOC",
4
4
  "description": "A plain-text documentation format with explicit brace scoping — deterministic parsing, AI-agent efficiency, and 10-50x token savings vs Markdown.",
5
- "version": "0.1.6",
5
+ "version": "0.1.7",
6
6
  "publisher": "entropicwarrior",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -96,7 +96,8 @@ function extractNotionPageId(filePath) {
96
96
  const text = fs.readFileSync(filePath, "utf-8");
97
97
  const parsed = parseSdoc(text);
98
98
  const { meta } = extractMeta(parsed.nodes);
99
- const pageId = meta.properties["notion-page"] || meta.properties["notion_page"] || null;
99
+ const props = meta.properties || {};
100
+ const pageId = props["notion-page"] || props["notion_page"] || null;
100
101
  return pageId ? pageId.trim() : null;
101
102
  }
102
103