fix: repair packaging error

This commit is contained in:
nebv 2020-10-11 01:18:38 +08:00
parent 7150b3e261
commit 526e6ce22b

View File

@ -2,7 +2,7 @@ type ProxyItem = [string, string];
type ProxyList = ProxyItem[]; type ProxyList = ProxyItem[];
export function createProxy(list: ProxyList) { export function createProxy(list: ProxyList = []) {
const ret: any = {}; const ret: any = {};
for (const [prefix, target] of list) { for (const [prefix, target] of list) {
ret[prefix] = { ret[prefix] = {