@oystehr/sdk 4.3.6 → 4.3.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oystehr/sdk",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "Oystehr SDK",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -408,10 +408,12 @@ function subParamsInPath(path: string, params: Record<string, unknown>): [string
408
408
  export function addParamsToSearch(params: Record<string, unknown>, search: URLSearchParams): void {
409
409
  for (const [key, value] of Object.entries(params)) {
410
410
  if (Array.isArray(value)) {
411
- value.forEach((v) => search.append(key, v as string));
411
+ value.forEach((v) => v !== null && v !== undefined && search.append(key, v as string));
412
412
  continue;
413
413
  }
414
- search.append(key, value as string);
414
+ if (value !== null && value !== undefined) {
415
+ search.append(key, value as string);
416
+ }
415
417
  }
416
418
  }
417
419