sculp-js 1.19.6 → 1.19.12

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.
Files changed (63) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/array.cjs +1 -1
  3. package/dist/cjs/async.cjs +1 -1
  4. package/dist/cjs/base64.cjs +1 -1
  5. package/dist/cjs/clipboard.cjs +1 -1
  6. package/dist/cjs/cloneDeep.cjs +1 -1
  7. package/dist/cjs/cookie.cjs +1 -1
  8. package/dist/cjs/date.cjs +1 -1
  9. package/dist/cjs/dom.cjs +1 -1
  10. package/dist/cjs/download.cjs +1 -1
  11. package/dist/cjs/file.cjs +1 -1
  12. package/dist/cjs/func.cjs +1 -1
  13. package/dist/cjs/index.cjs +3 -2
  14. package/dist/cjs/isEqual.cjs +1 -1
  15. package/dist/cjs/math.cjs +1 -1
  16. package/dist/cjs/number.cjs +1 -1
  17. package/dist/cjs/object.cjs +1 -1
  18. package/dist/cjs/path.cjs +1 -1
  19. package/dist/cjs/qs.cjs +1 -1
  20. package/dist/cjs/random.cjs +1 -1
  21. package/dist/cjs/string.cjs +1 -1
  22. package/dist/cjs/tooltip.cjs +1 -1
  23. package/dist/cjs/tree.cjs +53 -46
  24. package/dist/cjs/type.cjs +1 -1
  25. package/dist/cjs/unicodeToolkit.cjs +1 -1
  26. package/dist/cjs/unique.cjs +1 -1
  27. package/dist/cjs/url.cjs +1 -1
  28. package/dist/cjs/validator.cjs +1 -1
  29. package/dist/cjs/variable.cjs +1 -1
  30. package/dist/cjs/watermark.cjs +1 -1
  31. package/dist/esm/array.mjs +1 -1
  32. package/dist/esm/async.mjs +1 -1
  33. package/dist/esm/base64.mjs +1 -1
  34. package/dist/esm/clipboard.mjs +1 -1
  35. package/dist/esm/cloneDeep.mjs +1 -1
  36. package/dist/esm/cookie.mjs +1 -1
  37. package/dist/esm/date.mjs +1 -1
  38. package/dist/esm/dom.mjs +1 -1
  39. package/dist/esm/download.mjs +1 -1
  40. package/dist/esm/file.mjs +1 -1
  41. package/dist/esm/func.mjs +1 -1
  42. package/dist/esm/index.mjs +3 -2
  43. package/dist/esm/isEqual.mjs +1 -1
  44. package/dist/esm/math.mjs +1 -1
  45. package/dist/esm/number.mjs +1 -1
  46. package/dist/esm/object.mjs +1 -1
  47. package/dist/esm/path.mjs +1 -1
  48. package/dist/esm/qs.mjs +1 -1
  49. package/dist/esm/random.mjs +1 -1
  50. package/dist/esm/string.mjs +1 -1
  51. package/dist/esm/tooltip.mjs +1 -1
  52. package/dist/esm/tree.mjs +53 -46
  53. package/dist/esm/type.mjs +1 -1
  54. package/dist/esm/unicodeToolkit.mjs +1 -1
  55. package/dist/esm/unique.mjs +1 -1
  56. package/dist/esm/url.mjs +1 -1
  57. package/dist/esm/validator.mjs +1 -1
  58. package/dist/esm/variable.mjs +1 -1
  59. package/dist/esm/watermark.mjs +1 -1
  60. package/dist/types/tree.d.ts +54 -48
  61. package/dist/umd/index.min.js +2 -2
  62. package/package.json +8 -5
  63. /package/{LICENSE.md → LICENSE} +0 -0
package/README.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  **A Modern JavaScript Utility Library for Web**
6
6
 
7
- [![Node.js CI](https://github.com/chandq/sculp-js/actions/workflows/node.js.yml/badge.svg)](https://github.com/chandq/sculp-js/actions/workflows/node.js.yml)
7
+ [![Node.js CI](https://github.com/chandq/sculp-js/actions/workflows/release.yml/badge.svg)](https://github.com/chandq/sculp-js/actions/workflows/release.yml)
8
8
  [![sculp-js](https://img.shields.io/github/package-json/v/chandq/sculp-js?style=flat-square)](https://www.npmjs.com/package/sculp-js)
9
- [![license:MIT](https://img.shields.io/npm/l/vue.svg?sanitize=true)](https://github.com/chandq/sculp-js/blob/main/LICENSE.md)
9
+ [![license:MIT](https://img.shields.io/npm/l/vue.svg?sanitize=true)](https://github.com/chandq/sculp-js/blob/main/LICENSE)
10
10
  [![codecov](https://codecov.io/gh/chandq/sculp-js/graph/badge.svg?token=VZ6TERPGI9)](https://codecov.io/gh/chandq/sculp-js)
11
11
 
12
12
  </div>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/date.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/dom.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/file.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/func.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -190,8 +190,9 @@ exports.flatTree = tree.flatTree;
190
190
  exports.forEachDeep = tree.forEachDeep;
191
191
  exports.formatTree = tree.formatTree;
192
192
  exports.fuzzySearchTree = tree.fuzzySearchTree;
193
+ exports.getPathById = tree.getPathById;
193
194
  exports.mapDeep = tree.mapDeep;
194
- exports.searchTreeById = tree.searchTreeById;
195
+ exports.searchTreeById = tree.getPathById;
195
196
  exports.add = math.add;
196
197
  exports.divide = math.divide;
197
198
  exports.multiply = math.multiply;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/math.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/path.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/qs.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/tree.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -24,10 +24,11 @@ function getChildNodes(item, childField, isDomNode) {
24
24
  return isDomNode && type.isNodeList(child) ? Array.from(child) : Array.isArray(child) ? child : null;
25
25
  }
26
26
  /**
27
- * 深度遍历函数 (支持 continue break 操作), 可用于遍历 Array NodeList 类型的数据
28
- * @param {ArrayLike<V>} tree 树形数据
29
- * @param {Function} iterator 迭代函数,返回值为 true continue, 返回值为 false 时 break
30
- * @param {options} options 支持定制子元素名称、反向遍历、广度优先遍历,默认{
27
+ * Tree traversal function (default DFS, supports continue and break operations).
28
+ * Can be used to traverse Array and NodeList type data.
29
+ * @param {V[]} tree - Tree data
30
+ * @param {Function} iterator - Iterator function. Returns true to continue, false to break.
31
+ * @param {object} options - Options to customize child element name, reverse traversal, breadth-first traversal. Default: {
31
32
  childField: 'children',
32
33
  reverse: false,
33
34
  breadthFirst: false,
@@ -102,10 +103,10 @@ function forEachDeep(
102
103
  tree = null;
103
104
  }
104
105
  /**
105
- * 树查找函数,可用于查找 Array NodeList 类型的数据
106
- * @param {ArrayLike<V>} tree 树形数据
107
- * @param {Function} predicate 断言函数
108
- * @param {options} options 支持定制子元素名称、反向遍历、广度优先遍历,默认{
106
+ * Tree search function, can be used to search Array and NodeList type data.
107
+ * @param {V[]} tree - Tree data
108
+ * @param {Function} predicate - Predicate function
109
+ * @param {object} options - Options to customize child element name, reverse traversal, breadth-first traversal. Default: {
109
110
  childField: 'children',
110
111
  reverse: false,
111
112
  breadthFirst: false,
@@ -137,10 +138,10 @@ function findDeep(
137
138
  return result;
138
139
  }
139
140
  /**
140
- * 树过滤函数,可用于过滤 Array NodeList 类型的数据
141
- * @param {ArrayLike<V>} tree 树形数据
142
- * @param {Function} predicate 断言函数
143
- * @param {options} options 支持定制子元素名称、反向遍历、广度优先遍历,默认{
141
+ * Tree filter function, can be used to filter Array and NodeList type data.
142
+ * @param {V[]} tree - Tree data
143
+ * @param {Function} predicate - Predicate function
144
+ * @param {object} options - Options to customize child element name, reverse traversal, breadth-first traversal. Default: {
144
145
  childField: 'children',
145
146
  reverse: false,
146
147
  breadthFirst: false,
@@ -171,16 +172,17 @@ function filterDeep(
171
172
  return result;
172
173
  }
173
174
  /**
174
- * 创建一个新数组,深度优先遍历的 Map 函数 (支持 continue break 操作), 可用于 insert tree item remove tree item
175
+ * Creates a new array using a depth-first traversal Map function (supports continue and break operations).
176
+ * Can be used for inserting or removing tree items.
175
177
  *
176
- * 可遍历任何带有 length 属性和数字键的类数组对象
177
- * @param {ArrayLike<V>} tree 树形数据
178
- * @param {Function} iterator 迭代函数,返回值为 true continue, 返回值为 false break
179
- * @param {options} options 支持定制子元素名称、反向遍历,默认{
178
+ * Can traverse any array-like object with a length property and numeric keys.
179
+ * @param {V[]} tree - Tree data
180
+ * @param {Function} iterator - Iterator function. Returns true to continue, false to break.
181
+ * @param {object} options - Options to customize child element name, reverse traversal. Default: {
180
182
  childField: 'children',
181
183
  reverse: false,
182
184
  }
183
- * @returns {any[]} 新的一棵树
185
+ * @returns {any[]} A new tree structure
184
186
  */
185
187
  function mapDeep(
186
188
  tree,
@@ -238,14 +240,14 @@ function mapDeep(
238
240
  return newTree;
239
241
  }
240
242
  /**
241
- * 在树中找到 id 为某个值的节点,并返回上游的所有父级节点
243
+ * Retrieves the path (ancestors + self) for a given node ID.
242
244
  *
243
- * @param {ArrayLike<T>} tree - 树形数据
244
- * @param {number | string} nodeId - 目标元素 ID
245
- * @param {ITreeConf} options - 迭代配置项,默认:{ children = 'children', id = 'id' }
246
- * @returns {[(number | string)[], V[]]} - parentId...childId, parentObject-childObject 组成的二维数组
245
+ * @param {ArrayLike<T>} tree - Tree data
246
+ * @param {number | string} nodeId - Target node ID
247
+ * @param {ITreeConf} options - Configuration. Default: { childField = 'children', keyField = 'id' }
248
+ * @returns {[(number | string)[], V[]]} - Array of IDs and Array of Nodes from root to target
247
249
  */
248
- function searchTreeById(tree, nodeId, options = { childField: 'children', keyField: 'id' }) {
250
+ function getPathById(tree, nodeId, options = { childField: 'children', keyField: 'id' }) {
249
251
  const { childField = 'children', keyField = 'id' } = type.isObject(options) ? options : {};
250
252
  const flatMap = {};
251
253
  // 扁平化 - 使用迭代而非递归,避免栈溢出
@@ -283,11 +285,11 @@ function searchTreeById(tree, nodeId, options = { childField: 'children', keyFie
283
285
  return [ids, nodes];
284
286
  }
285
287
  /**
286
- * 扁平化数组转换成树
287
- * @param {any[]} list
288
- * @param {IFieldOptions} options 定制 id 字段名,子元素字段名,父元素字段名,默认
288
+ * Converts a flat array into a tree structure.
289
+ * @param {any[]} list - Flat list of items
290
+ * @param {IFieldOptions} options - Customizes id field name, child element field name, parent element field name. Default:
289
291
  * { keyField: 'key', childField: 'children', pidField: 'pid' }
290
- * @returns {any[]}
292
+ * @returns {any[]} Tree structure array
291
293
  */
292
294
  function formatTree(list, options = defaultFieldOptions) {
293
295
  const { keyField = 'key', childField = 'children', pidField = 'pid' } = type.isObject(options) ? options : {};
@@ -313,11 +315,11 @@ function formatTree(list, options = defaultFieldOptions) {
313
315
  return treeArr;
314
316
  }
315
317
  /**
316
- * 树形结构转扁平化
317
- * @param {any[]} treeList
318
- * @param {IFieldOptions} options 定制 id 字段名,子元素字段名,父元素字段名,默认
318
+ * Converts a tree structure into a flat array.
319
+ * @param {any[]} treeList - Tree structure array
320
+ * @param {IFieldOptions} options - Customizes id field name, child element field name, parent element field name. Default:
319
321
  * { keyField: 'key', childField: 'children', pidField: 'pid' }
320
- * @returns {any[]}
322
+ * @returns {any[]} Flat array
321
323
  */
322
324
  function flatTree(treeList, options = defaultFieldOptions) {
323
325
  const { keyField = 'key', childField = 'children', pidField = 'pid' } = type.isObject(options) ? options : {};
@@ -344,23 +346,26 @@ function flatTree(treeList, options = defaultFieldOptions) {
344
346
  return res;
345
347
  }
346
348
  /**
347
- * 模糊搜索函数,返回包含搜索字符的节点及其祖先节点, 适用于树型组件的字符过滤功能
348
- * 以下搜索条件二选一,按先后优先级处理:
349
- * 1. 过滤函数filter, 返回true/false
350
- * 2. 匹配关键词,支持是否启用忽略大小写来判断
349
+ * Fuzzy search function that returns nodes containing the search character and their ancestor nodes.
350
+ * Suitable for character filtering in tree components.
351
351
  *
352
- * 有以下特性:
353
- * 1. 可配置removeEmptyChild字段,来决定是否移除搜索结果中的空children字段
354
- * 2. 若无任何过滤条件或keyword模式匹配且keyword为空串,返回原对象;其他情况返回新数组
355
- * @param {V[]} nodes
356
- * @param {IFilterCondition} filterCondition
357
- * @param {ISearchTreeOpts} options 默认配置项 {
352
+ * Two search conditions are available, processed in priority order:
353
+ * 1. Filter function `filter`, returning true/false.
354
+ * 2. Keyword matching, supporting case-insensitive check.
355
+ *
356
+ * Features:
357
+ * 1. Configurable `removeEmptyChild` field to decide whether to remove empty children fields in search results.
358
+ * 2. If no filter condition is provided, or keyword mode is used with an empty keyword, the original object is returned; otherwise, a new array is returned.
359
+ *
360
+ * @param {V[]} nodes - Tree nodes
361
+ * @param {IFilterCondition} filterCondition - Filter conditions
362
+ * @param {ISearchTreeOpts} options - Default configuration: {
358
363
  childField: 'children',
359
364
  nameField: 'name',
360
365
  removeEmptyChild: false,
361
366
  ignoreCase: true
362
367
  }
363
- * @returns {V[]}
368
+ * @returns {V[]} Filtered tree nodes
364
369
  */
365
370
  function fuzzySearchTree(nodes, filterCondition, options = defaultSearchTreeOptions) {
366
371
  if (!type.objectHas(filterCondition, 'filter') && !filterCondition.keyword) {
@@ -415,7 +420,8 @@ var tree = {
415
420
  findDeep,
416
421
  filterDeep,
417
422
  mapDeep,
418
- searchTreeById,
423
+ getPathById,
424
+ searchTreeById: getPathById,
419
425
  formatTree,
420
426
  flatTree,
421
427
  fuzzySearchTree
@@ -428,5 +434,6 @@ exports.flatTree = flatTree;
428
434
  exports.forEachDeep = forEachDeep;
429
435
  exports.formatTree = formatTree;
430
436
  exports.fuzzySearchTree = fuzzySearchTree;
437
+ exports.getPathById = getPathById;
431
438
  exports.mapDeep = mapDeep;
432
- exports.searchTreeById = searchTreeById;
439
+ exports.searchTreeById = getPathById;
package/dist/cjs/type.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/cjs/url.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/date.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/dom.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/file.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/func.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -123,8 +123,9 @@ export {
123
123
  forEachDeep,
124
124
  formatTree,
125
125
  fuzzySearchTree,
126
+ getPathById,
126
127
  mapDeep,
127
- searchTreeById
128
+ getPathById as searchTreeById
128
129
  } from './tree.mjs';
129
130
  import * as math from './math.mjs';
130
131
  export { add, divide, multiply, strip, subtract } from './math.mjs';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/math.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/path.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/qs.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.19.6
2
+ * sculp-js v1.19.12
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */