@hudiemon/utils
Advanced tools
| 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 @@ /** |
+1
-0
@@ -14,1 +14,2 @@ export { default as attachPropertiesToComponent } from './attachPropertiesToComponent'; | ||
| export { default as isDev } from './isDev'; | ||
| export { default as tryFunction } from './tryFunction'; |
+2
-1
@@ -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, { |
+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 @@ * 元转分 |
+3
-3
| { | ||
| "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", |
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
52103
0.57%31
6.9%531
1.14%+ Added
+ Added
- Removed
- Removed