@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/dist/cjs/client/client.cjs +4 -2
- package/dist/cjs/client/client.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/esm/client/client.js +4 -2
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/client/client.ts +4 -2
package/package.json
CHANGED
package/src/client/client.ts
CHANGED
|
@@ -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
|
-
|
|
414
|
+
if (value !== null && value !== undefined) {
|
|
415
|
+
search.append(key, value as string);
|
|
416
|
+
}
|
|
415
417
|
}
|
|
416
418
|
}
|
|
417
419
|
|