mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
fix: #227 Fixing array syntax thanks to [Lukas Eipert](https://github.com/leipert)
This commit is contained in:
parent
1e5146c770
commit
f9bc34dcb5
747
package-lock.json
generated
747
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -48,6 +48,7 @@
|
||||
"got": "^9.2.2",
|
||||
"humps": "^2.0.1",
|
||||
"ky": "^0.4.1",
|
||||
"query-string": "^6.2.0",
|
||||
"randomstring": "^1.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import Request from 'got';
|
||||
import { decamelizeKeys } from 'humps';
|
||||
import { stringify } from 'query-string';
|
||||
|
||||
interface GetPaginatedOptions {
|
||||
showPagination?: boolean;
|
||||
@ -12,7 +13,7 @@ function defaultRequest(service, endpoint, { body, query }: { body?: Object, que
|
||||
[service.url, endpoint].join('/'),
|
||||
{
|
||||
headers: service.headers,
|
||||
query: query && decamelizeKeys(query),
|
||||
query: query && stringify(decamelizeKeys(query), { arrayFormat: 'bracket' }),
|
||||
body: body && decamelizeKeys(body),
|
||||
rejectUnauthorized: service.rejectUnauthorized,
|
||||
json: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user