We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af8be5c commit 7c3e2a7Copy full SHA for 7c3e2a7
1 file changed
src/api.ts
@@ -41,8 +41,8 @@ class API {
41
private readonly enterprise: boolean
42
private readonly _fetch: nodeFetchType
43
44
- constructor() {
45
- const {serverUrl, cookiePath, enterprise}: APIOptions = config
+ constructor(config: APIOptions) {
+ const {serverUrl, cookiePath, enterprise} = config
46
47
fs.ensureFileSync(cookiePath)
48
@@ -194,4 +194,4 @@ class API {
194
195
export default API
196
197
-export const APIClient = new API()
+export const APIClient = new API(config)
0 commit comments