dlsjs 0.1.17 → 0.1.19

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
@@ -3,7 +3,7 @@
3
3
  "author": "林川",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "0.1.17",
6
+ "version": "0.1.19",
7
7
  "description": "domain-language for js",
8
8
  "main": "dist/dlsjs.esm.js",
9
9
  "module": "dist/dlsjs.esm.js",
@@ -204,7 +204,7 @@ export function treeFilter(treeLike, func) {
204
204
  const res = list.filter(func)
205
205
  const resParentIds = res.map(item => item._parentIds).flat()
206
206
  const res2 = list.filter(item => resParentIds.includes(item.id))
207
- return list2Tree(res2)
207
+ return list2Tree([res, res2])
208
208
  }
209
209
 
210
210
  /**