@weborigami/async-tree 0.6.5 → 0.6.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/index.ts CHANGED
@@ -1,5 +1,11 @@
1
+ /**
2
+ * Origami is a JavaScript project, but we use TypeScript as an internal tool to
3
+ * confirm our code is type safe.
4
+ */
5
+
1
6
  import AsyncMap from "./src/drivers/AsyncMap.js";
2
7
 
8
+ // Re-export all exports from main.js
3
9
  export * from "./main.js";
4
10
 
5
11
  export type Invocable = Function | Maplike | Unpackable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weborigami/async-tree",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "Asynchronous tree drivers based on standard JavaScript classes",
5
5
  "type": "module",
6
6
  "main": "./main.js",
@@ -23,7 +23,7 @@ import isMap from "./isMap.js";
23
23
  * @returns {Map|AsyncMap}
24
24
  */
25
25
  export default function from(object, options = {}) {
26
- const deep = options.deep ?? object[symbols.deep];
26
+ const deep = options.deep ?? object?.[symbols.deep];
27
27
  let map;
28
28
  if (object == null) {
29
29
  throw new TypeError("The tree argument wasn't defined.");