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.25
to
1.0.26
+10
-1
dist/getDictionary.d.ts

@@ -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;
}[];
};
+5
-2
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: {}
};
};
{
"name": "@dyrl/utils",
"version": "1.0.25",
"version": "1.0.26",
"description": "A react library developed with dumi",

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