You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@dyrl/utils

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dyrl/utils - npm Package Compare versions

Comparing version
1.0.29
to
1.0.30
+1
-1
dist/index.d.ts

@@ -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';

@@ -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;
};
{
"name": "@dyrl/utils",
"version": "1.0.29",
"version": "1.0.30",
"description": "A react library developed with dumi",

@@ -5,0 +5,0 @@ "license": "MIT",