2020-10-15 19:41:53 +03:00
|
|
|
import http from 'http';
|
|
|
|
import https from 'https';
|
2020-07-21 02:30:44 +03:00
|
|
|
import fetch, { Headers } from 'node-fetch';
|
|
|
|
import AuthClient from './lib/client';
|
|
|
|
|
2020-07-29 01:31:08 +03:00
|
|
|
http.globalAgent = new http.Agent({
|
2020-10-15 19:41:53 +03:00
|
|
|
keepAlive: true,
|
|
|
|
});
|
2020-07-29 01:31:08 +03:00
|
|
|
https.globalAgent = new https.Agent({
|
2020-10-15 19:41:53 +03:00
|
|
|
keepAlive: true,
|
|
|
|
});
|
2020-07-29 01:31:08 +03:00
|
|
|
|
2020-10-15 19:41:53 +03:00
|
|
|
// @ts-ignore
|
2020-07-21 02:30:44 +03:00
|
|
|
global.fetch = fetch;
|
2022-08-27 20:59:06 +03:00
|
|
|
// @ts-ignore
|
2020-07-21 02:30:44 +03:00
|
|
|
global.Headers = Headers;
|
|
|
|
|
|
|
|
export default AuthClient;
|
|
|
|
export * from './lib/client';
|
2020-12-08 08:03:10 +03:00
|
|
|
export * from './lib/hawk';
|