@hudiemon/utils
Advanced tools
| export declare const getDictionary: (key: string) => {} | undefined; |
| export var getDictionary = function getDictionary(key) { | ||
| if (!window.dictionary) { | ||
| console.error('未加载字典'); | ||
| return {}; | ||
| } | ||
| return window.dictionary.get(key); | ||
| }; |
+1
-0
@@ -5,2 +5,3 @@ export { default as BigNumber } from './BigNumber'; | ||
| export { default as fen2yuan } from './fen2yuan'; | ||
| export * from './getDictionary'; | ||
| export { default as isDev } from './isDev'; | ||
@@ -7,0 +8,0 @@ export { default as isPromise } from './isPromise'; |
+1
-0
@@ -5,2 +5,3 @@ export { default as BigNumber } from "./BigNumber"; | ||
| export { default as fen2yuan } from "./fen2yuan"; | ||
| export * from "./getDictionary"; | ||
| export { default as isDev } from "./isDev"; | ||
@@ -7,0 +8,0 @@ export { default as isPromise } from "./isPromise"; |
+1
-1
| { | ||
| "name": "@hudiemon/utils", | ||
| "version": "1.0.23", | ||
| "version": "1.0.24", | ||
| "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
57884
0.55%39
5.41%682
1.34%