|
@ -682,7 +682,7 @@ $search: String! |
|
|
rsp = await fetchMethod(`${baseUrl ?? 'https://gitlab.com/api'}/graphql`, { |
|
|
rsp = await fetchMethod(`${baseUrl ?? 'https://gitlab.com/api'}/graphql`, { |
|
|
method: 'POST', |
|
|
method: 'POST', |
|
|
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' }, |
|
|
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' }, |
|
|
agent: agent as any, |
|
|
|
|
|
|
|
|
agent: agent, |
|
|
body: JSON.stringify({ query: query, variables: variables }), |
|
|
body: JSON.stringify({ query: query, variables: variables }), |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -734,7 +734,7 @@ $search: String! |
|
|
try { |
|
|
try { |
|
|
rsp = await fetchMethod(url, { |
|
|
rsp = await fetchMethod(url, { |
|
|
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' }, |
|
|
headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' }, |
|
|
agent: agent as any, |
|
|
|
|
|
|
|
|
agent: agent, |
|
|
...options, |
|
|
...options, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|