diffninja 0.1.0 → 0.1.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.
@@ -540,9 +540,12 @@ function assertEdited(document, label, target, values) {
540
540
  throw new Error(`Cannot write ${label}: the edit does not produce the expected ${pathText(target)} table.`);
541
541
  }
542
542
  }
543
- /** Objects and dates are the only TOML values that can hold subtables. */
543
+ /**
544
+ * A table is any object that is not an array or a date. smol-toml 1.9 builds
545
+ * tables without a prototype, so `instanceof Object` would miss them.
546
+ */
544
547
  function isTomlTable(node) {
545
- return node instanceof Object && !Array.isArray(node);
548
+ return Object(node) === node && !Array.isArray(node) && !(node instanceof Date);
546
549
  }
547
550
  function tableAt(root, path) {
548
551
  let current = root;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffninja",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Local, deterministic PR review for coding agents over MCP: call flows, change facts, and a human review workspace",
5
5
  "type": "module",
6
6
  "exports": {
@@ -62,7 +62,7 @@
62
62
  "@modelcontextprotocol/sdk": "^1.30.0",
63
63
  "incur": "^0.4.26",
64
64
  "picocolors": "^1.1.1",
65
- "smol-toml": "^1.8.0",
65
+ "smol-toml": "^1.9.0",
66
66
  "tree-sitter": "^0.25.1",
67
67
  "tree-sitter-javascript": "^0.25.0",
68
68
  "zod": "^4.6.5"