summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-24 11:05:37 +0900
committerGitHub <noreply@github.com>2021-03-24 11:05:37 +0900
commitce340aba7a37394c70b9f3d7cece9cfa5e91d94c (patch)
tree99612ea0d039f20e0baa9ca243e8cec0af96b11a /src/misc
parentfix bug (diff)
downloadsharkey-ce340aba7a37394c70b9f3d7cece9cfa5e91d94c.tar.gz
sharkey-ce340aba7a37394c70b9f3d7cece9cfa5e91d94c.tar.bz2
sharkey-ce340aba7a37394c70b9f3d7cece9cfa5e91d94c.zip
Refactor (#7394)
* wip * wip * wip * wip * wip * Update define.ts * Update update.ts * Update user.ts * wip * wip * Update request.ts * URL * wip * wip * wip * wip * Update invite.ts * Update create.ts
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/convert-host.ts1
-rw-r--r--src/misc/download-url.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/convert-host.ts b/src/misc/convert-host.ts
index ef0ff18fcf..f8957a64a8 100644
--- a/src/misc/convert-host.ts
+++ b/src/misc/convert-host.ts
@@ -1,3 +1,4 @@
+import { URL } from 'url';
import config from '@/config';
import { toASCII } from 'punycode';
diff --git a/src/misc/download-url.ts b/src/misc/download-url.ts
index d3abf9c34f..dafeff6fc8 100644
--- a/src/misc/download-url.ts
+++ b/src/misc/download-url.ts
@@ -1,6 +1,7 @@
import * as fs from 'fs';
import * as stream from 'stream';
import * as util from 'util';
+import { URL } from 'url';
import fetch from 'node-fetch';
import { getAgentByUrl } from './fetch';
import { AbortController } from 'abort-controller';