@dyrl/utils
Advanced tools
+1
-1
@@ -18,3 +18,3 @@ export { default as BigNumber } from './BigNumber'; | ||
| export { default as toFormData } from './toFormData'; | ||
| export { default as toTreeData } from './toTreeData'; | ||
| export { TreeDataType, toTreeData } from './toTreeData'; | ||
| export { default as tryFunction } from './tryFunction'; | ||
@@ -21,0 +21,0 @@ export * from './withNativeProps'; |
+1
-1
@@ -18,3 +18,3 @@ export { default as BigNumber } from "./BigNumber"; | ||
| export { default as toFormData } from "./toFormData"; | ||
| export { default as toTreeData } from "./toTreeData"; | ||
| export { TreeDataType, toTreeData } from "./toTreeData"; | ||
| export { default as tryFunction } from "./tryFunction"; | ||
@@ -21,0 +21,0 @@ export * from "./withNativeProps"; |
@@ -1,2 +0,2 @@ | ||
| type treeDataType = { | ||
| export type TreeDataType = { | ||
| id?: string | number; | ||
@@ -6,3 +6,3 @@ label: string; | ||
| _original: any; | ||
| children?: treeDataType[]; | ||
| children?: TreeDataType[]; | ||
| }; | ||
@@ -16,3 +16,3 @@ type fieldNamesType = { | ||
| }; | ||
| declare const toTreeData: (data: any[], fieldNames: fieldNamesType, iteratee?: ((item: treeDataType) => any) | undefined) => treeDataType[]; | ||
| export default toTreeData; | ||
| export declare const toTreeData: (data: any[], fieldNames: fieldNamesType, iteratee?: ((item: TreeDataType) => any) | undefined) => TreeDataType[]; | ||
| export {}; |
| import { defaults, isArray } from 'lodash-es'; | ||
| var toTreeData = function toTreeData(data, fieldNames, iteratee) { | ||
| export var toTreeData = function toTreeData(data, fieldNames, iteratee) { | ||
| var _defaults = defaults(fieldNames, { | ||
@@ -47,3 +47,2 @@ id: 'id', | ||
| return treeData; | ||
| }; | ||
| export default toTreeData; | ||
| }; |
+1
-1
| { | ||
| "name": "@dyrl/utils", | ||
| "version": "1.0.29", | ||
| "version": "1.0.30", | ||
| "description": "A react library developed with dumi", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
60191
-0.03%746
-0.13%