Skip to content

Commit

Permalink
Update the validation of values in query parameters (#488)
Browse files Browse the repository at this point in the history
* Add check 'false' value in query params

* Update changes

* Fix the comparison

* Update comprasion
  • Loading branch information
Ivan Golubev authored Feb 17, 2022
1 parent e3daeea commit 184d710
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/VsoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class VsoClient {
}

private queryParamsToStringHelper(queryParams: any, prefix: string): string {
if (!queryParams) {
if (queryParams == null || queryParams.length === 0) {
return '';
}
let queryString: string = '';
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azure-devops-node-api",
"description": "Node client for Azure DevOps and TFS REST APIs",
"version": "11.1.0",
"version": "11.1.1",
"main": "./WebApi.js",
"types": "./WebApi.d.ts",
"scripts": {
Expand Down
18 changes: 9 additions & 9 deletions test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 184d710

Please sign in to comment.