Skip to content

Commit bf79321

Browse files
authored
Merge pull request #560 from piotrsapiejewskismartbear/master
SDCB-14059 update qs and allow empty arrays serialization
2 parents 57e9a83 + 9ed76b4 commit bf79321

7 files changed

Lines changed: 36 additions & 14 deletions

dist/bitbar-cloud-api-client.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "1.5.16",
3+
"version": "1.5.17",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",
@@ -79,7 +79,7 @@
7979
"axios": "^0.26.1",
8080
"form-data": "^4.0.4",
8181
"node-abort-controller": "^3.1.1",
82-
"qs": "6.10.3"
82+
"qs": "6.14.0"
8383
},
8484
"overrides": {
8585
"glob": "^9.0.0",

src/api/APIEntity.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ export class APIEntity<RESPONSE = any, QUERY_PARAMS extends QueryParams | void =
233233

234234
protected paramsSerializer(params: DATA | QUERY_PARAMS): string {
235235
return stringify(params, {
236-
arrayFormat: 'brackets'
236+
arrayFormat: 'brackets',
237+
allowEmptyArrays: true
237238
});
238239
}
239240
}

0 commit comments

Comments
 (0)