refactor: Use path alias

This commit is contained in:
syuilo
2021-03-23 17:43:07 +09:00
parent d6e23b803b
commit c74fe3c6e2
391 changed files with 557 additions and 557 deletions

View File

@ -4,7 +4,7 @@ import * as cache from 'lookup-dns-cache';
import fetch, { HeadersInit } from 'node-fetch';
import { HttpProxyAgent } from 'http-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import config from '../config';
import config from '@/config';
import { URL } from 'url';
export async function getJson(url: string, accept = 'application/json, */*', timeout = 10000, headers?: HeadersInit) {