@signalhousellc/sdk 1.0.23 → 1.0.24
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/package.json +1 -1
- package/src/SignalHouseSDK.js +5 -1
package/package.json
CHANGED
package/src/SignalHouseSDK.js
CHANGED
|
@@ -125,7 +125,11 @@ export class SignalHouseSDK {
|
|
|
125
125
|
const params = new URLSearchParams();
|
|
126
126
|
Object.entries(obj).forEach(([key, value]) => {
|
|
127
127
|
if (value !== undefined && key !== "options") {
|
|
128
|
-
|
|
128
|
+
if (Array.isArray(value)) {
|
|
129
|
+
if (value.length > 0) params.append(key, value.join(","));
|
|
130
|
+
} else {
|
|
131
|
+
params.append(key, value);
|
|
132
|
+
}
|
|
129
133
|
}
|
|
130
134
|
});
|
|
131
135
|
return params.toString() ? `?${params.toString()}` : "";
|