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

@hudiemon/utils

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hudiemon/utils - npm Package Compare versions

Comparing version
1.0.12
to
1.0.13
+2
dist/tryFunction.d.ts
declare const tryFunction: (payload: any) => any;
export default tryFunction;
import { isFunction } from "lodash-es";
var tryFunction = function tryFunction(payload) {
if (isFunction(payload)) return payload();
return payload;
};
export default tryFunction;
+1
-2
import BigNumber from 'bignumber.js';
import toNumber from 'lodash/toNumber';
import isNaN from 'lodash/isNaN';
import { toNumber, isNaN } from 'lodash-es';

@@ -5,0 +4,0 @@ /**

@@ -14,1 +14,2 @@ export { default as attachPropertiesToComponent } from './attachPropertiesToComponent';

export { default as isDev } from './isDev';
export { default as tryFunction } from './tryFunction';

@@ -13,2 +13,3 @@ export { default as attachPropertiesToComponent } from "./attachPropertiesToComponent";

export { default as yuan2fen } from "./yuan2fen";
export { default as isDev } from "./isDev";
export { default as isDev } from "./isDev";
export { default as tryFunction } from "./tryFunction";

@@ -1,3 +0,2 @@

import defaults from 'lodash/defaults';
import get from 'lodash/get';
import { get, defaults } from "lodash-es";
var toTreeData = function toTreeData(data, fieldNames, iteratee) {

@@ -4,0 +3,0 @@ var propsFieldNames = defaults(fieldNames, {

import BigNumber from 'bignumber.js';
import toNumber from 'lodash/toNumber';
import isNaN from 'lodash/isNaN';
import { toNumber, isNaN } from 'lodash-es';
/**

@@ -5,0 +4,0 @@ * 元转分

{
"name": "@hudiemon/utils",
"version": "1.0.12",
"version": "1.0.13",
"description": "A react library developed with dumi",

@@ -49,3 +49,3 @@ "license": "MIT",

"classnames": "^2.3.2",
"lodash": "^4.17.21"
"lodash-es": "^4.17.21"
},

@@ -56,3 +56,3 @@ "devDependencies": {

"@commitlint/config-conventional": "^17.7.0",
"@types/lodash": "^4.14.200",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.2.22",

@@ -59,0 +59,0 @@ "@types/react-dom": "^18.2.7",