mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-08-06 16:23:57 +09:00
wip
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import * as iconv from 'iconv-lite';
|
||||
import * as jschardet from 'jschardet';
|
||||
import iconv from 'iconv-lite';
|
||||
import jschardet from 'jschardet';
|
||||
|
||||
const regCharset = new RegExp(/charset\s*=\s*["']?([\w-]+)/, 'i');
|
||||
|
||||
|
@ -10,9 +10,9 @@ import { readFileSync } from 'node:fs';
|
||||
const _filename = fileURLToPath(import.meta.url);
|
||||
const _dirname = dirname(_filename);
|
||||
|
||||
export let agent: Got.Agents | undefined = undefined;
|
||||
export let agent: Got.Agents = {};
|
||||
export function setAgent(_agent: Got.Agents) {
|
||||
agent = _agent;
|
||||
agent = _agent || {};
|
||||
}
|
||||
|
||||
export type GotOptions = {
|
||||
|
Reference in New Issue
Block a user