refactor: requests

This commit is contained in:
手瓜一十雪 committed 2024-05-15 21:13:41 +08:00
1 parent cfc60f913f
commit ec4633f2bb
2 files changed
+10 -6

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ export function cacheFunc(ttl: number, customKey: string = '') {
return descriptor;
};
}
function isValidOldConfig(config: any) {
export function isValidOldConfig(config: any) {
if (typeof config !== 'object') {
return false;
}
@@ -110,7 +110,7 @@ function isValidOldConfig(config: any) {
}
return true;
}
function migrateConfig(oldConfig: any) {
export function migrateConfig(oldConfig: any) {
const newConfig = {
http: {
enable: oldConfig.enableHttp,