qase-javascript-commons 2.5.3 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +6 -0
- package/dist/client/clientV2.js +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# qase-javascript-commons@2.5.4
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
- Fixed an issue where non-string parameter values (e.g. numbers) were sent to the Qase API as-is, causing validation errors. The `transformParams` method now converts all parameter values to strings.
|
|
6
|
+
|
|
1
7
|
# qase-javascript-commons@2.5.3
|
|
2
8
|
|
|
3
9
|
## What's new
|
package/dist/client/clientV2.js
CHANGED
|
@@ -146,8 +146,8 @@ class ClientV2 extends clientV1_1.ClientV1 {
|
|
|
146
146
|
transformParams(params) {
|
|
147
147
|
const transformedParams = {};
|
|
148
148
|
for (const [key, value] of Object.entries(params)) {
|
|
149
|
-
if (value) {
|
|
150
|
-
transformedParams[key] = value;
|
|
149
|
+
if (value != null) {
|
|
150
|
+
transformedParams[key] = String(value);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
return transformedParams;
|