@develit-io/backend-sdk 12.3.0 → 12.3.1
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/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -734,6 +734,7 @@ function nullToOptional(obj) {
|
|
|
734
734
|
return Object.fromEntries(
|
|
735
735
|
Object.entries(obj).map(([k, v]) => {
|
|
736
736
|
if (v === null) return [k, void 0];
|
|
737
|
+
if (typeof v === "string") return [k, v.trim() === "" ? void 0 : v];
|
|
737
738
|
if (Array.isArray(v))
|
|
738
739
|
return [
|
|
739
740
|
k,
|