Skip to content

Commit 184d710

Browse files
author
Ivan Golubev
authored
Update the validation of values in query parameters (#488)
* Add check 'false' value in query params * Update changes * Fix the comparison * Update comprasion
1 parent e3daeea commit 184d710

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

api/VsoClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class VsoClient {
185185
}
186186

187187
private queryParamsToStringHelper(queryParams: any, prefix: string): string {
188-
if (!queryParams) {
188+
if (queryParams == null || queryParams.length === 0) {
189189
return '';
190190
}
191191
let queryString: string = '';

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-devops-node-api",
33
"description": "Node client for Azure DevOps and TFS REST APIs",
4-
"version": "11.1.0",
4+
"version": "11.1.1",
55
"main": "./WebApi.js",
66
"types": "./WebApi.d.ts",
77
"scripts": {

test/package-lock.json

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

0 commit comments

Comments
 (0)