-
-
Notifications
You must be signed in to change notification settings - Fork 942
/
index.ts
29 lines (24 loc) · 911 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import create from './create.js';
import type {InstanceDefaults} from './types.js';
import Options from './core/options.js';
const defaults: InstanceDefaults = {
options: new Options(),
handlers: [],
mutableDefaults: false,
};
const got = create(defaults);
export default got;
// TODO: Remove this in the next major version.
export {got};
export {default as Options} from './core/options.js';
export * from './core/options.js';
export * from './core/response.js';
export type {default as Request} from './core/index.js';
export * from './core/index.js';
export * from './core/errors.js';
export type {Delays} from './core/timed-out.js';
export {default as calculateRetryDelay} from './core/calculate-retry-delay.js';
export * from './as-promise/types.js';
export * from './types.js';
export {default as create} from './create.js';
export {default as parseLinkHeader} from './core/parse-link-header.js';