refactor: refactoring imports
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
This commit is contained in:
@@ -3,11 +3,11 @@ import * as stream from 'stream';
|
||||
import * as util from 'util';
|
||||
import { URL } from 'url';
|
||||
import fetch from 'node-fetch';
|
||||
import { getAgentByUrl } from './fetch';
|
||||
import { getAgentByUrl } from './fetch.js';
|
||||
import { AbortController } from 'abort-controller';
|
||||
import config from '@/config';
|
||||
import config from '@/config/index.js';
|
||||
import * as chalk from 'chalk';
|
||||
import Logger from '../services/logger';
|
||||
import Logger from '@/services/logger.js';
|
||||
|
||||
const pipeline = util.promisify(stream.pipeline);
|
||||
|
||||
|
Reference in New Issue
Block a user