@weborigami/async-tree 0.0.71 → 0.0.73

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weborigami/async-tree",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "Asynchronous tree drivers based on standard JavaScript classes",
5
5
  "type": "module",
6
6
  "main": "./main.js",
@@ -11,7 +11,7 @@
11
11
  "typescript": "5.6.2"
12
12
  },
13
13
  "dependencies": {
14
- "@weborigami/types": "0.0.71"
14
+ "@weborigami/types": "0.0.73"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "node --test --test-reporter=spec",
package/src/SiteTree.js CHANGED
@@ -45,7 +45,7 @@ export default class SiteTree {
45
45
  }
46
46
 
47
47
  // HACK: For now we don't allow lookup of Origami extension handlers.
48
- if (key.endsWith("_handler")) {
48
+ if (key.endsWith(".handler")) {
49
49
  return undefined;
50
50
  }
51
51
 
@@ -7,6 +7,8 @@ export default function invokeFunctions(treelike) {
7
7
  let value = await tree.get(key);
8
8
  if (typeof value === "function") {
9
9
  value = value();
10
+ } else if (Tree.isAsyncTree(value)) {
11
+ value = invokeFunctions(value);
10
12
  }
11
13
  return value;
12
14
  },