@dyrl/utils
Advanced tools
@@ -1,1 +0,10 @@ | ||
| export declare const getDictionary: (key: string) => {} | undefined; | ||
| export declare const getDictionary: (key: string) => { | ||
| valueEnum: Record<string, { | ||
| text: string; | ||
| status?: 'Default' | 'Success' | 'Error' | 'Processing' | 'Warning'; | ||
| }>; | ||
| options: { | ||
| label: string; | ||
| value: number | string; | ||
| }[]; | ||
| }; |
| export var getDictionary = function getDictionary(key) { | ||
| var _window$dictionary; | ||
| if (!window.dictionary) { | ||
| console.error('未加载字典'); | ||
| return {}; | ||
| } | ||
| return window.dictionary.get(key); | ||
| return ((_window$dictionary = window.dictionary) === null || _window$dictionary === void 0 ? void 0 : _window$dictionary.get(key)) || { | ||
| options: [], | ||
| valueEnum: {} | ||
| }; | ||
| }; |
+1
-1
| { | ||
| "name": "@dyrl/utils", | ||
| "version": "1.0.25", | ||
| "version": "1.0.26", | ||
| "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
58239
0.62%694
1.76%