@weborigami/async-tree 0.5.6 → 0.5.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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weborigami/async-tree",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Asynchronous tree drivers based on standard JavaScript classes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./main.js",
|
|
7
7
|
"browser": "./browser.js",
|
|
8
8
|
"types": "./index.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@weborigami/types": "0.5.
|
|
10
|
+
"@weborigami/types": "0.5.7"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "24.3.0",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import isPlainObject from "../utilities/isPlainObject.js";
|
|
2
|
+
import isUnpackable from "../utilities/isUnpackable.js";
|
|
2
3
|
import map from "./map.js";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -63,6 +64,9 @@ export default async function mapExtension(treelike, arg2, arg3) {
|
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
options.extension = arg2;
|
|
67
|
+
if (isUnpackable(arg3)) {
|
|
68
|
+
arg3 = await arg3.unpack();
|
|
69
|
+
}
|
|
66
70
|
if (typeof arg3 === "function") {
|
|
67
71
|
options.value = arg3;
|
|
68
72
|
} else if (isPlainObject(arg3)) {
|