fxa/packages/fxa-auth-client/server.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 строка
420 B
TypeScript
Исходник Постоянная ссылка Обычный вид История

2020-10-15 19:41:53 +03:00
import http from 'http';
import https from 'https';
import fetch, { Headers } from 'node-fetch';
import AuthClient from './lib/client';
http.globalAgent = new http.Agent({
2020-10-15 19:41:53 +03:00
keepAlive: true,
});
https.globalAgent = new https.Agent({
2020-10-15 19:41:53 +03:00
keepAlive: true,
});
2020-10-15 19:41:53 +03:00
// @ts-ignore
global.fetch = fetch;
// @ts-ignore
global.Headers = Headers;
export default AuthClient;
export * from './lib/client';
export * from './lib/hawk';